Share thread_rec between gdb and gdbserver
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
28688adf
TT
12020-04-08 Tom Tromey <tromey@adacore.com>
2
3 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
4 No longer static. Change parameters.
5 (child_add_thread, child_fetch_inferior_registers)
6 (child_store_inferior_registers, win32_resume)
7 (win32_get_tib_address): Update.
8
4834dad0
TT
92020-04-08 Tom Tromey <tromey@adacore.com>
10
11 * win32-low.h (struct win32_target_ops): Use qualified names where
12 needed.
13 * win32-i386-low.c: Add "using namespace".
14 * win32-low.c: Add "using namespace".
15 * win32-arm-low.c: Add "using namespace".
16
65bafd5b
TT
172020-04-08 Tom Tromey <tromey@adacore.com>
18
19 * win32-low.c (delete_thread_info): Don't call CloseHandle.
20
98a03287
TT
212020-04-08 Tom Tromey <tromey@adacore.com>
22
23 * win32-low.c (win32_require_context, suspend_one_thread): Use
24 windows_thread_info::suspend.
25 (continue_one_thread): Use windows_thread_info::resume.
26 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
27
62fe396b
TT
282020-04-08 Tom Tromey <tromey@adacore.com>
29
30 * win32-i386-low.c (update_debug_registers)
31 (i386_prepare_to_resume, i386_thread_added): Update.
32
e9534bd2
TT
332020-04-08 Tom Tromey <tromey@adacore.com>
34
35 * win32-low.c (child_add_thread): Use new.
36 (delete_thread_info): Use delete.
37
ae1f8880
TT
382020-04-08 Tom Tromey <tromey@adacore.com>
39
40 * win32-low.h (struct windows_thread_info): Remove.
41
e56f8ccb
TT
422020-04-08 Tom Tromey <tromey@adacore.com>
43
44 * win32-low.h (struct windows_thread_info): Rename from
45 win32_thread_info. Remove typedef.
46 (struct win32_target_ops, win32_require_context): Update.
47 * win32-low.c (win32_get_thread_context)
48 (win32_set_thread_context, win32_prepare_to_resume)
49 (win32_require_context, thread_rec, child_add_thread)
50 (delete_thread_info, continue_one_thread)
51 (child_fetch_inferior_registers, child_store_inferior_registers)
52 (win32_resume, suspend_one_thread, win32_get_tib_address):
53 Update.
54 * win32-i386-low.c (update_debug_registers)
55 (win32_get_current_dr, i386_get_thread_context)
56 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
57 (i386_fetch_inferior_register, i386_store_inferior_register):
58 Update.
59 * win32-arm-low.c (arm_get_thread_context)
60 (arm_fetch_inferior_register, arm_store_inferior_register):
61 Update.
62
0dd7b52e
TBA
632020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
64
65 * linux-low.h (struct linux_target_ops): Remove.
66 (the_low_target): Remove.
67 * linux-x86-low.cc (the_low_target): Remove.
68 * linux-aarch64-low.cc (the_low_target): Ditto.
69 * linux-arm-low.cc (the_low_target): Ditto.
70 * linux-bfin-low.cc (the_low_target): Ditto.
71 * linux-cris-low.cc (the_low_target): Ditto.
72 * linux-crisv32-low.cc (the_low_target): Ditto.
73 * linux-ia64-low.cc (the_low_target): Ditto.
74 * linux-m32r-low.cc (the_low_target): Ditto.
75 * linux-m68k-low.cc (the_low_target): Ditto.
76 * linux-mips-low.cc (the_low_target): Ditto.
77 * linux-nios2-low.cc (the_low_target): Ditto.
78 * linux-ppc-low.cc (the_low_target): Ditto.
79 * linux-riscv-low.cc (the_low_target): Ditto.
80 * linux-s390-low.cc (the_low_target): Ditto.
81 * linux-sh-low.cc (the_low_target): Ditto.
82 * linux-sparc-low.cc (the_low_target): Ditto.
83 * linux-tic6x-low.cc (the_low_target): Ditto.
84 * linux-tile-low.cc (the_low_target): Ditto.
85 * linux-xtensa-low.cc (the_low_target): Ditto.
86
fc5ecdb6
TBA
872020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
88
89 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
90 linux target define the op by overriding the declaration in
91 process_stratum_target.
92
93 * linux-low.h (struct linux_target_ops): Remove the op.
94 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
95 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
96 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
97 (x86_get_ipa_tdesc_idx): Turn into...
98 (x86_target::get_ipa_tdesc_idx): ...this.
99 (the_low_target): Remove the op field.
100 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
101 (ppc_get_ipa_tdesc_idx): Turn into...
102 (ppc_target::get_ipa_tdesc_idx): ...this.
103 (the_low_target): Remove the op field.
104 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
105 (s390_get_ipa_tdesc_idx): Turn into...
106 (s390_target::get_ipa_tdesc_idx): ...this.
107 (the_low_target): Remove the op field.
108
9eedd27d
TBA
1092020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
110
111 Turn the 'get_syscall_trapinfo' linux target op into a method
112 of process_stratum_target.
113
114 * linux-low.h (struct linux_target_ops): Remove the op.
115 (class linux_process_target) <get_syscall_trapinfo>
116 <gdb_catch_this_syscall>
117 <low_supports_catch_syscall>
118 <low_get_syscall_trapinfo>: Declare.
119 * linux-low.cc (get_syscall_trapinfo): Turn into...
120 (linux_process_target::get_syscall_trapinfo): ...this.
121 (linux_process_target::low_get_syscall_trapinfo): Define.
122 (gdb_catch_this_syscall_p): Turn into...
123 (linux_process_target::gdb_catch_this_syscall): ...this.
124 (linux_process_target::low_supports_catch_syscall): Define.
125
126 Update the callers below.
127
128 (linux_process_target::wait_1)
129 (linux_process_target::supports_catch_syscall)
130
131 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
132 <low_get_syscall_trapinfo>: Declare.
133 (x86_target::low_supports_catch_syscall): Define.
134 (x86_get_syscall_trapinfo): Turn into...
135 (x86_target::low_get_syscall_trapinfo): ...this.
136 (the_low_target): Remove the op field.
137 * linux-aarch64-low.cc (class aarch64_target)
138 <low_supports_catch_syscall>
139 <low_get_syscall_trapinfo>: Declare.
140 (aarch64_target::low_supports_catch_syscall): Define.
141 (aarch64_get_syscall_trapinfo): Turn into...
142 (aarch64_target::low_get_syscall_trapinfo): ...this.
143 (the_low_target): Remove the op field.
144 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
145 <low_get_syscall_trapinfo>: Declare.
146 (arm_target::low_supports_catch_syscall): Define.
147 (arm_get_syscall_trapinfo): Turn into...
148 (arm_target::low_get_syscall_trapinfo): ...this.
149 (the_low_target): Remove the op field.
150 * linux-ppc-low.cc (the_low_target): Remove the op field.
151 * linux-s390-low.cc (the_low_target): Remove the op field.
152
b31cdfa6
TBA
1532020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
154
155 Remove the 'supports_hardware_single_step' linux target op and
156 override the process_stratum_target's op definition in
157 linux_process_target to return true.
158
159 * linux-low.h (struct linux_target_ops): Remove the op.
160 (class linux_process_target) <finish_step_over>
161 <maybe_hw_step>: Declare.
162 * linux-low.cc (can_hardware_single_step): Remove.
163 (maybe_hw_step): Turn into...
164 (linux_process_target::maybe_hw_step): ...this.
165 (finish_step_over): Turn into...
166 (linux_process_target::finish_step_over): ...this.
167 (linux_process_target::supports_hardware_single_step): Update
168 to return true.
169
170 Update the callers below.
171
172 (linux_process_target::single_step)
173 (linux_process_target::resume_one_lwp_throw)
174
175 * linux-arm-low.cc (class arm_target)
176 <supports_hardware_single_step>: Declare.
177 (arm_supports_hardware_single_step): Turn into...
178 (arm_target::supports_hardware_single_step): ...this.
179 (the_low_target): Remove the op field.
180 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
181 (the_low_target): Remove the op field.
182 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
183 Remove.
184 (the_low_target): Remove the op field.
185 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
186 (the_low_target): Remove the op field.
187 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
188 (the_low_target): Remove the op field.
189 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
190 (the_low_target): Remove the op field.
191 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
192 (the_low_target): Remove the op field.
193 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
194 (the_low_target): Remove the op field.
195 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
196 (the_low_target): Remove the op field.
197 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
198 (the_low_target): Remove the op field.
199 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
200 (the_low_target): Remove the op field.
201 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
202 (the_low_target): Remove the op field.
203 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
204 Remove.
205 (the_low_target): Remove the op field.
206
9cfd8715
TBA
2072020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
208
209 Turn the 'supports_range_stepping' linux target op into a method
210 of linux_process_target.
211
212 * linux-low.h (struct linux_target_ops): Remove the op.
213 (class linux_process_target) <low_supports_range_stepping>: Declare.
214 * linux-low.cc (linux_process_target::low_supports_range_stepping):
215 Define.
216 (linux_process_target::supports_range_stepping): Update the call
217 site.
218 * linux-x86-low.cc (class x86_target)
219 <low_supports_range_stepping>: Declare.
220 (x86_supports_range_stepping): Turn into...
221 (x86_target::low_supports_range_stepping): ...this.
222 (the_low_target): Remove the op field.
223 * linux-aarch64-low.cc (class aarch64_target)
224 <low_supports_range_stepping>: Declare.
225 (aarch64_supports_range_stepping): Turn into...
226 (aarch64_target::low_supports_range_stepping): ...this.
227 (the_low_target): Remove the op field.
228 * linux-arm-low.cc (the_low_target): Remove the op field.
229 * linux-bfin-low.cc (the_low_target): Ditto.
230 * linux-crisv32-low.cc (the_low_target): Ditto.
231 * linux-m32r-low.cc (the_low_target): Ditto.
232 * linux-m68k-low.cc (the_low_target): Ditto.
233 * linux-ppc-low.cc (the_low_target): Ditto.
234 * linux-s390-low.cc (the_low_target): Ditto.
235 * linux-sh-low.cc (the_low_target): Ditto.
236 * linux-tic6x-low.cc (the_low_target): Ditto.
237 * linux-tile-low.cc (the_low_target): Ditto.
238 * linux-xtensa-low.cc (the_low_target): Ditto.
239
ab64c999
TBA
2402020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
241
242 Remove the 'emit_ops' linux target ops and let the concrete
243 linux target define the op by overriding the declaration of
244 process_stratum_target.
245
246 * linux-low.h (struct linux_target_ops): Remove the op.
247 (class linux_process_target) <emit_ops>: Remove.
248 * linux-low.cc (linux_process_target::emit_ops): Remove.
249 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
250 (x86_emit_ops): Turn into...
251 (x86_target::emit_ops): ...this.
252 (the_low_target): Remove the op field.
253 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
254 (aarch64_emit_ops): Turn into...
255 (aarch64_target::emit_ops): ...this.
256 (the_low_target): Remove the op field.
257 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
258 (ppc_emit_ops): Turn into...
259 (ppc_target::emit_ops): ...this.
260 (the_low_target): Remove the op field.
261 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
262 (s390_emit_ops): Turn into...
263 (s390_target::emit_ops): ...this.
264 (the_low_target): Remove the op field.
265 * linux-arm-low.cc (the_low_target): Remove the op field.
266 * linux-bfin-low.cc (the_low_target): Ditto.
267 * linux-crisv32-low.cc (the_low_target): Ditto.
268 * linux-m32r-low.cc (the_low_target): Ditto.
269 * linux-m68k-low.cc (the_low_target): Ditto.
270 * linux-sh-low.cc (the_low_target): Ditto.
271 * linux-tic6x-low.cc (the_low_target): Ditto.
272 * linux-tile-low.cc (the_low_target): Ditto.
273 * linux-xtensa-low.cc (the_low_target): Ditto.
274
809a0c35
TBA
2752020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
276
277 Remove the 'install_fast_tracepoint_jump_pad' and
278 'get_min_fast_tracepoint_insn_len' linux target ops to let the
279 concrete linux target define the ops by overriding the declarations
280 of process_stratum_target.
281
282 * linux-low.h (struct linux_target_ops): Remove the ops.
283 (class linux_process_target) <supports_fast_tracepoints>
284 <install_fast_tracepoint_jump_pad>
285 <get_min_fast_tracepoint_insn_len>: Remove.
286 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
287 (linux_process_target::install_fast_tracepoint_jump_pad)
288 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
289 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
290 <install_fast_tracepoint_jump_pad>
291 <get_min_fast_tracepoint_insn_len>: Declare.
292 (x86_target::supports_fast_tracepoints): Define.
293 (x86_install_fast_tracepoint_jump_pad): Turn into...
294 (x86_target::install_fast_tracepoint_jump_pad): ...this.
295 (x86_get_min_fast_tracepoint_insn_len): Turn into...
296 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
297 (the_low_target): Remove the op fields.
298 * linux-aarch64-low.cc (class aarch64_target)
299 <supports_fast_tracepoints>
300 <install_fast_tracepoint_jump_pad>
301 <get_min_fast_tracepoint_insn_len>: Declare.
302 (aarch64_target::supports_fast_tracepoints): Define.
303 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
304 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
305 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
306 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
307 (the_low_target): Remove the op fields.
308 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
309 <install_fast_tracepoint_jump_pad>
310 <get_min_fast_tracepoint_insn_len>: Declare.
311 (ppc_target::supports_fast_tracepoints): Define.
312 (ppc_install_fast_tracepoint_jump_pad): Turn into...
313 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
314 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
315 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
316 (the_low_target): Remove the op fields.
317 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
318 <install_fast_tracepoint_jump_pad>
319 <get_min_fast_tracepoint_insn_len>: Declare.
320 (s390_target::supports_fast_tracepoints): Define.
321 (s390_install_fast_tracepoint_jump_pad): Turn into...
322 (s390_target::install_fast_tracepoint_jump_pad): ...this.
323 (s390_get_min_fast_tracepoint_insn_len): Turn into...
324 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
325 (the_low_target): Remove the op fields.
326 * linux-arm-low.cc (the_low_target): Remove the op fields.
327 * linux-bfin-low.cc (the_low_target): Ditto.
328 * linux-crisv32-low.cc (the_low_target): Ditto.
329 * linux-m32r-low.cc (the_low_target): Ditto.
330 * linux-m68k-low.cc (the_low_target): Ditto.
331 * linux-sh-low.cc (the_low_target): Ditto.
332 * linux-tic6x-low.cc (the_low_target): Ditto.
333 * linux-tile-low.cc (the_low_target): Ditto.
334 * linux-xtensa-low.cc (the_low_target): Ditto.
335
13e567af
TBA
3362020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
337
338 Turn the 'get_thread_area' linux target op into a method of
339 process_stratum_target.
340
341 * linux-low.h (struct linux_target_ops): Remove the op.
342 (class linux_process_target) <stuck_in_jump_pad>
343 <linux_fast_tracepoint_collecting>
344 <low_get_thread_area>: Declare.
345 * linux-low.cc (supports_fast_tracepoints): Remove.
346 (linux_fast_tracepoint_collecting): Turn into...
347 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
348 (linux_process_target::low_get_thread_area): Define.
349 (stuck_in_jump_pad_callback): Turn into...
350 (linux_process_target::stuck_in_jump_pad): ...this.
351
352 Update the caller below.
353
354 (linux_process_target::stabilize_threads)
355
356 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
357 Declare.
358 (x86_get_thread_area): Turn into...
359 (x86_target::low_get_thread_area): ...this.
360 (the_low_target): Remove the op field.
361 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
362 Declare.
363 (aarch64_get_thread_area): Turn into...
364 (aarch64_target::low_get_thread_area): ...this.
365 (the_low_target): Remove the op field.
366 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
367 Declare.
368 (ppc_get_thread_area): Turn into...
369 (ppc_target::low_get_thread_area): ...this.
370 (the_low_target): Remove the op field.
371 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
372 Declare.
373 (s390_get_thread_area): Turn into...
374 (s390_target::low_get_thread_area): ...this.
375 (the_low_target): Remove the op field.
376 * linux-arm-low.cc (the_low_target): Remove the op field.
377 * linux-bfin-low.cc (the_low_target): Ditto.
378 * linux-crisv32-low.cc (the_low_target): Ditto.
379 * linux-m32r-low.cc (the_low_target): Ditto.
380 * linux-m68k-low.cc (the_low_target): Ditto.
381 * linux-sh-low.cc (the_low_target): Ditto.
382 * linux-tic6x-low.cc (the_low_target): Ditto.
383 * linux-tile-low.cc (the_low_target): Ditto.
384 * linux-xtensa-low.cc (the_low_target): Ditto.
385
47f70aa7
TBA
3862020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
387
388 Remote the 'supports_tracepoints' linux target op and let the
389 concrete linux target define it by overriding the op declared in
390 process_stratum_target.
391
392 * linux-low.h (struct linux_target_ops): Remove the op.
393 (class linux_process_target) <supports_tracepoints>: Remove.
394 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
395 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
396 Declare.
397 (x86_supports_tracepoints): Turn into...
398 (x86_target::supports_tracepoints): ...this.
399 (the_low_target): Remove the op field.
400 * linux-aarch64-low.cc (class aarch64_target)
401 <supports_tracepoints>: Declare.
402 (aarch64_supports_tracepoints): Turn into...
403 (aarch64_target::supports_tracepoints): ...this.
404 (the_low_target): Remove the op field.
405 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
406 Declare.
407 (ppc_supports_tracepoints): Turn into...
408 (ppc_target::supports_tracepoints): ...this.
409 (the_low_target): Remove the op field.
410 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
411 Declare.
412 (s390_supports_tracepoints): Turn into...
413 (s390_target::supports_tracepoints): ...this.
414 (the_low_target): Remove the op field.
415 * linux-arm-low.cc (the_low_target): Remove the op field.
416 * linux-bfin-low.cc (the_low_target): Ditto.
417 * linux-crisv32-low.cc (the_low_target): Ditto.
418 * linux-m32r-low.cc (the_low_target): Ditto.
419 * linux-m68k-low.cc (the_low_target): Ditto.
420 * linux-sh-low.cc (the_low_target): Ditto.
421 * linux-tic6x-low.cc (the_low_target): Ditto.
422 * linux-tile-low.cc (the_low_target): Ditto.
423 * linux-xtensa-low.cc (the_low_target): Ditto.
424
a5b5da92
TBA
4252020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
426
427 Remove the 'process_qsupported' linux target op and let a concrete
428 linux target define the op by overriding the op declaration in
429 process_stratum_target.
430
431 * linux-low.h (struct linux_target_ops): Remove the op.
432 (class linux_process_target) <process_qsupported>: Remove.
433 * linux-low.cc (linux_process_target::process_qsupported): Remove.
434 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
435 (x86_linux_process_qsupported): Turn into...
436 (x86_target::process_qsupported): ...this.
437 (the_low_target): Remove the op field.
438 * linux-aarch64-low.cc (the_low_target): Remove the op
439 field.
440 * linux-arm-low.cc (the_low_target): Ditto.
441 * linux-bfin-low.cc (the_low_target): Ditto.
442 * linux-crisv32-low.cc (the_low_target): Ditto.
443 * linux-m32r-low.cc (the_low_target): Ditto.
444 * linux-m68k-low.cc (the_low_target): Ditto.
445 * linux-ppc-low.cc (the_low_target): Ditto.
446 * linux-s390-low.cc (the_low_target): Ditto.
447 * linux-sh-low.cc (the_low_target): Ditto.
448 * linux-tic6x-low.cc (the_low_target): Ditto.
449 * linux-tile-low.cc (the_low_target): Ditto.
450 * linux-xtensa-low.cc (the_low_target): Ditto.
451
d7599cc0
TBA
4522020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
453
454 Turn the 'prepare_to_resume' linux target op into a method of
455 linux_process_target.
456
457 * linux-low.h (struct linux_target_ops): Remove the op.
458 (class linux_process_target) <low_prepare_to_resume>: Declare.
459 * linux-low.cc (linux_process_target::low_prepare_to_resume):
460 Define.
461
462 Update the callers below:
463
464 (linux_process_target::resume_one_lwp_throw)
465 (linux_process_target::low_prepare_to_resume)
466
467 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
468 Declare.
469 (x86_target::low_prepare_to_resume): Define.
470 (the_low_target): Remove the op field.
471 * linux-aarch64-low.cc (class aarch64_target)
472 <low_prepare_to_resume>: Declare.
473 (aarch64_target::low_prepare_to_resume): Define.
474 (the_low_target): Remove the op field.
475 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
476 Declare.
477 (arm_prepare_to_resume): Turn into...
478 (arm_target::low_prepare_to_resume): ...this.
479 (the_low_target): Remove the op field.
480 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
481 Declare.
482 (mips_linux_prepare_to_resume): Turn into...
483 (mips_target::low_prepare_to_resume): ...this.
484 (the_low_target): Remove the op field.
485 * linux-bfin-low.cc (the_low_target): Remove the op field.
486 * linux-crisv32-low.cc (the_low_target): Ditto.
487 * linux-m32r-low.cc (the_low_target): Ditto.
488 * linux-m68k-low.cc (the_low_target): Ditto.
489 * linux-ppc-low.cc (the_low_target): Ditto.
490 * linux-s390-low.cc (the_low_target): Ditto.
491 * linux-sh-low.cc (the_low_target): Ditto.
492 * linux-tic6x-low.cc (the_low_target): Ditto.
493 * linux-tile-low.cc (the_low_target): Ditto.
494 * linux-xtensa-low.cc (the_low_target): Ditto.
495
fd000fb3
TBA
4962020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
497
498 Turn the 'new_process', 'delete_process', 'new_thread',
499 'delete_thread', and 'new_fork' linux target ops into methods
500 of linux_process_target.
501
502 * linux-low.h (struct linux_target_ops): Remove the ops.
503 (class linux_process_target) <add_linux_process>
504 <add_lwp>
505 <delete_lwp>
506 <attach_lwp>
507 <detach_one_lwp>
508 <check_zombie_leaders>
509 <filter_exit_event>
510 <low_new_process>
511 <low_delete_process>
512 <low_new_thread>
513 <low_delete_thread>
514 <low_new_fork>: Declare.
515 * linux-low.cc (delete_lwp): Turn into...
516 (linux_process_target::delete_lwp): ...this.
517 (linux_process_target::low_delete_thread): Define.
518 (linux_add_process): Turn into...
519 (linux_process_target::add_linux_process): ...this.
520 (linux_process_target::low_new_process): Define.
521 (linux_process_target::low_delete_process): Define.
522 (linux_process_target::low_new_fork): Define.
523 (add_lwp): Turn into...
524 (linux_process_target::add_lwp): ...this.
525 (linux_process_target::low_new_thread): Define.
526 (linux_attach_lwp): Turn into...
527 (linux_process_target::attach_lwp): ...this.
528 (linux_detach_one_lwp): Turn into...
529 (linux_process_target::detach_one_lwp): ...this.
530 (linux_detach_lwp_callback): Remove and inline...
531 (linux_process_target::detach): ...here.
532 (check_zombie_leaders): Turn into...
533 (linux_process_target::check_zombie_leaders): ...this.
534 (filter_exit_event): Turn into...
535 (linux_process_target::filter_exit_event): ...this.
536
537 Update the callers below.
538
539 (linux_process_target::handle_extended_wait)
540 (linux_process_target::create_inferior)
541 (attach_proc_task_lwp_callback)
542 (linux_process_target::attach)
543 (linux_process_target::detach)
544 (linux_process_target::mourn)
545 * thread-db.cc (attach_thread)
546
547 * linux-x86-low.cc (class x86_target) <low_new_process>
548 <low_delete_process>
549 <low_new_thread>
550 <low_delete_thread>
551 <low_new_fork>: Declare.
552 (x86_linux_new_process): Turn into...
553 (x86_target::low_new_process): ...this.
554 (x86_linux_delete_process): Turn into...
555 (x86_target::low_delete_process): ...this.
556 (x86_target::low_new_thread): Define.
557 (x86_target::low_delete_thread): Define.
558 (x86_linux_new_fork): Turn into...
559 (x86_target::low_new_fork): ...this.
560 (the_low_target): Remove the op fields.
561 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
562 <low_delete_process>
563 <low_new_thread>
564 <low_delete_thread>
565 <low_new_fork>: Declare.
566 (aarch64_linux_new_process): Turn into...
567 (aarch64_target::low_new_process): ...this.
568 (aarch64_linux_delete_process): Turn into...
569 (aarch64_target::low_delete_process): ...this.
570 (aarch64_target::low_new_thread): Define.
571 (aarch64_target::low_delete_thread): Define.
572 (aarch64_linux_new_fork): Turn into...
573 (aarch64_target::low_new_fork): ...this.
574 (the_low_target): Remove the op fields.
575 * linux-arm-low.cc (class arm_target) <low_new_process>
576 <low_delete_process>
577 <low_new_thread>
578 <low_delete_thread>
579 <low_new_fork>: Declare.
580 (arm_new_process): Turn into...
581 (arm_target::low_new_process): ...this.
582 (arm_delete_process): Turn into...
583 (arm_target::low_delete_process): ...this.
584 (arm_new_thread): Turn into...
585 (arm_target::low_new_thread): ...this.
586 (arm_delete_thread): Turn into...
587 (arm_target::low_delete_thread): ...this.
588 (arm_new_fork): Turn into...
589 (arm_target::low_new_fork): ...this.
590 (the_low_target): Remove the op fields.
591 * linux-mips-low.cc (class mips_target) <low_new_process>
592 <low_delete_process>
593 <low_new_thread>
594 <low_delete_thread>
595 <low_new_fork>: Declare.
596 (mips_linux_new_process): Turn into...
597 (mips_target::low_new_process): ...this.
598 (mips_linux_delete_process): Turn into...
599 (mips_target::low_delete_process): ...this.
600 (mips_linux_new_thread): Turn into...
601 (mips_target::low_new_thread): ...this.
602 (mips_linux_delete_thread): Turn into...
603 (mips_target::low_delete_thread): ...this.
604 (mips_linux_new_fork): Turn into...
605 (mips_target::low_new_fork): ...this.
606 (the_low_target): Remove the op fields.
607 * linux-bfin-low.cc (the_low_target): Remove the op fields.
608 * linux-crisv32-low.cc (the_low_target): Ditto.
609 * linux-m32r-low.cc (the_low_target): Ditto.
610 * linux-m68k-low.cc (the_low_target): Ditto.
611 * linux-ppc-low.cc (the_low_target): Ditto.
612 * linux-s390-low.cc (the_low_target): Ditto.
613 * linux-sh-low.cc (the_low_target): Ditto.
614 * linux-tic6x-low.cc (the_low_target): Ditto.
615 * linux-tile-low.cc (the_low_target): Ditto.
616 * linux-xtensa-low.cc (the_low_target): Ditto.
617
cb63de7c
TBA
6182020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
619
620 Turn the 'siginfo_fixup' linux target op into a method of
621 linux_process_target.
622
623 * linux-low.h (struct linux_target_ops): Remove the op.
624 (class linux_process_target) <siginfo_fixup>
625 <low_siginfo_fixup>: Declare.
626 * linux-low.cc (siginfo_fixup): Turn into...
627 (linux_process_target::siginfo_fixup): ...this.
628 (linux_process_target::low_siginfo_fixup): Define.
629 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
630 (x86_siginfo_fixup): Turn into...
631 (x86_target::low_siginfo_fixup): ...this.
632 (the_low_target): Remove the op field.
633 * linux-aarch64-low.cc (class aarch64_target):
634 <low_siginfo_fixup>: Declare.
635 (aarch64_linux_siginfo_fixup): Turn into...
636 (aarch64_target::low_siginfo_fixup): ...this.
637 (the_low_target): Remove the op field.
638 * linux-arm-low.cc (the_low_target): Remove the op field.
639 * linux-bfin-low.cc (the_low_target): Ditto.
640 * linux-crisv32-low.cc (the_low_target): Ditto.
641 * linux-m32r-low.cc (the_low_target): Ditto.
642 * linux-m68k-low.cc (the_low_target): Ditto.
643 * linux-mips-low.cc (the_low_target): Ditto.
644 * linux-ppc-low.cc (the_low_target): Ditto.
645 * linux-s390-low.cc (the_low_target): Ditto.
646 * linux-sh-low.cc (the_low_target): Ditto.
647 * linux-tic6x-low.cc (the_low_target): Ditto.
648 * linux-tile-low.cc (the_low_target): Ditto.
649 * linux-xtensa-low.cc (the_low_target): Ditto.
650
b35db733
TBA
6512020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
652
653 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
654 linux target ops into methods of linux_process_target.
655
656 * linux-low.h (struct linux_target_ops): Remove the ops.
657 (class linux_process_target) <low_collect_ptrace_register>
658 <low_store_ptrace_register>: Declare.
659 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
660 (linux_process_target::low_supply_ptrace_register): Define.
661
662 Update the callers below.
663
664 (linux_process_target::fetch_register)
665 (linux_process_target::store_register)
666
667 * linux-x86-low.cc (the_low_target): Remove the op fields.
668 * linux-aarch64-low.cc (the_low_target): Ditto.
669 * linux-arm-low.cc (the_low_target): Ditto.
670 * linux-bfin-low.cc (the_low_target): Ditto.
671 * linux-crisv32-low.cc (the_low_target): Ditto.
672 * linux-m32r-low.cc (the_low_target): Ditto.
673 * linux-m68k-low.cc (the_low_target): Ditto.
674 * linux-sh-low.cc (the_low_target): Ditto.
675 * linux-sparc-low.cc (the_low_target): Ditto.
676 * linux-tic6x-low.cc (the_low_target): Ditto.
677 * linux-tile-low.cc (the_low_target): Ditto.
678 * linux-xtensa-low.cc (the_low_target): Ditto.
679 * linux-mips-low.cc (class mips_target)
680 <low_collect_ptrace_register>
681 <low_supply_ptrace_register>: Declare.
682 (mips_collect_ptrace_register): Turn into ...
683 (mips_target::low_collect_ptrace_register): ...this.
684 (mips_supply_ptrace_register): Turn into...
685 (mips_target::low_supply_ptrace_register): ...this.
686 (the_low_target): Remove the op fields.
687 * linux-ppc-low.cc (class ppc_target)
688 <low_collect_ptrace_register>
689 <low_supply_ptrace_register>: Declare.
690 (ppc_collect_ptrace_register): Turn into ...
691 (ppc_target::low_collect_ptrace_register): ...this.
692 (ppc_supply_ptrace_register): Turn into ...
693 (ppc_target::low_supply_ptrace_register): ...this.
694 (ppc_fill_gregset): Update for the calls to
695 low_collect_ptrace_register.
696 (the_low_target): Remove the op fields.
697 * linux-s390-low.cc (class s390_target)
698 <low_collect_ptrace_register>
699 <low_supply_ptrace_register>: Declare.
700 (s390_collect_ptrace_register): Turn into ...
701 (s390_target::low_collect_ptrace_register): ...this.
702 (s390_supply_ptrace_register): Turn into ...
703 (s390_target::low_supply_ptrace_register): ...this.
704 (s390_fill_gregset): Update for the calls to
705 low_collect_ptrace_register.
706 (the_low_target): Remove the op fields.
707
ac1bbaca
TBA
7082020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
709
710 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
711 target ops into methods of linux_process_target.
712
713 * linux-low.h (struct linux_target_ops): Remove the ops.
714 (class linux_process_target) <check_stopped_by_watchpoint>
715 <low_stopped_by_watchpoint>
716 <low_stopped_data_address>: Declare.
717 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
718 (linux_process_target::check_stopped_by_watchpoint): ...this.
719 (linux_process_target::low_stopped_by_watchpoint): Define.
720 (linux_process_target::low_stopped_data_address): Define.
721 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
722 <low_stopped_data_address>: Declare.
723 (x86_stopped_by_watchpoint): Turn into...
724 (x86_target::low_stopped_by_watchpoint): ...this.
725 (x86_stopped_data_address): Turn into...
726 (x86_target::low_stopped_data_address): ...this.
727 (the_low_target): Remove the op fields.
728 * linux-aarch64-low.cc (class aarch64_target)
729 <low_stopped_by_watchpoint>
730 <low_stopped_data_address>: Declare.
731 (aarch64_stopped_by_watchpoint): Turn into...
732 (aarch64_target::low_stopped_by_watchpoint): ...this.
733 (aarch64_stopped_data_address): Turn into...
734 (aarch64_target::low_stopped_data_address): ...this.
735 (the_low_target): Remove the op fields.
736 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
737 <low_stopped_data_address>: Declare.
738 (arm_stopped_by_watchpoint): Turn into...
739 (arm_target::low_stopped_by_watchpoint): ...this.
740 (arm_stopped_data_address): Turn into...
741 (arm_target::low_stopped_data_address): ...this.
742 (the_low_target): Remove the op fields.
743 * linux-crisv32-low.cc (class crisv32_target)
744 <low_stopped_by_watchpoint>
745 <low_stopped_data_address>: Declare.
746 (cris_stopped_by_watchpoint): Turn into...
747 (crisv32_target::low_stopped_by_watchpoint): ...this.
748 (cris_stopped_data_address): Turn into...
749 (crisv32_target::low_stopped_data_address): ...this.
750 (the_low_target): Remove the op fields.
751 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
752 <low_stopped_data_address>: Declare.
753 (mips_stopped_by_watchpoint): Turn into...
754 (mips_target::low_stopped_by_watchpoint): ...this.
755 (mips_stopped_data_address): Turn into...
756 (mips_target::low_stopped_data_address): ...this.
757 (the_low_target): Remove the op fields.
758 * linux-bfin-low.cc (the_low_target): Remove the op fields.
759 * linux-m32r-low.cc (the_low_target): Ditto.
760 * linux-m68k-low.cc (the_low_target): Ditto.
761 * linux-ppc-low.cc (the_low_target): Ditto.
762 * linux-s390-low.cc (the_low_target): Ditto.
763 * linux-sh-low.cc (the_low_target): Ditto.
764 * linux-sparc-low.cc (the_low_target): Ditto.
765 * linux-tic6x-low.cc (the_low_target): Ditto.
766 * linux-tile-low.cc (the_low_target): Ditto.
767 * linux-xtensa-low.cc (the_low_target): Ditto.
768
9db9aa23
TBA
7692020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
770
771 Turn the 'insert_point' and 'remove_point' linux target ops into
772 methods of linux_process_target.
773
774 * linux-low.h (struct linux_target_ops): Remove the ops.
775 (class linux_process_target) <low_insert_point>
776 <low_remove_point>: Declare.
777 * linux-low.cc (linux_process_target::low_insert_point)
778 (linux_process_target::low_remove_point): Define.
779 (linux_process_target::insert_point)
780 (linux_process_target::remove_point): Update for calls to
781 low_insert_point and low_remove_point.
782 * linux-x86-low.cc (class x86_target) <low_insert_point>
783 <low_remove_point>: Declare.
784 (x86_insert_point): Turn into...
785 (x86_target::low_insert_point): ...this.
786 (x86_remove_point): Turn into...
787 (x86_target::low_remove_point): ...this.
788 (the_low_target): Remove the op fields.
789 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
790 <low_remove_point>: Declare.
791 (aarch64_insert_point): Turn into...
792 (aarch64_target::low_insert_point): ...this.
793 (aarch64_remove_point): Turn into...
794 (aarch64_target::low_remove_point): ...this.
795 (the_low_target): Remove the op fields.
796 * linux-arm-low.cc (class arm_target) <low_insert_point>
797 <low_remove_point>: Declare.
798 (arm_insert_point): Turn into...
799 (arm_target::low_insert_point): ...this.
800 (arm_remove_point): Turn into...
801 (arm_target::low_remove_point): ...this.
802 (the_low_target): Remove the op fields.
803 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
804 <low_remove_point>: Declare.
805 (crisv32_insert_point): Turn into...
806 (crisv32_target::low_insert_point): ...this.
807 (crisv32_remove_point): Turn into...
808 (crisv32_target::low_remove_point): ...this.
809 (the_low_target): Remove the op fields.
810 * linux-mips-low.cc (class mips_target) <low_insert_point>
811 <low_remove_point>: Declare.
812 (mips_insert_point): Turn into...
813 (mips_target::low_insert_point): ...this.
814 (mips_remove_point): Turn into...
815 (mips_target::low_remove_point): ...this.
816 (the_low_target): Remove the op fields.
817 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
818 <low_remove_point>: Declare.
819 (ppc_insert_point): Turn into...
820 (ppc_target::low_insert_point): ...this.
821 (ppc_remove_point): Turn into...
822 (ppc_target::low_remove_point): ...this.
823 (the_low_target): Remove the op fields.
824 * linux-bfin-low.cc (the_low_target): Remove the op fields.
825 * linux-m32r-low.cc (the_low_target): Ditto.
826 * linux-m68k-low.cc (the_low_target): Ditto.
827 * linux-s390-low.cc (the_low_target): Ditto.
828 * linux-sh-low.cc (the_low_target): Ditto.
829 * linux-sparc-low.cc (the_low_target): Ditto.
830 * linux-tic6x-low.cc (the_low_target): Ditto.
831 * linux-tile-low.cc (the_low_target): Ditto.
832 * linux-xtensa-low.cc (the_low_target): Ditto.
833
007c9b97
TBA
8342020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
835
836 Remove the 'supports_z_point_type' linux target op and let the
837 concrete linux target define it by overriding the op declared in
838 process_stratum_target.
839
840 * linux-low.cc (linux_process_target::supports_z_point_type):
841 Remove.
842 * linux-low.h (struct linux_target_ops): Remove the op.
843 (class linux_process_target) <supports_z_point_type>: Remove.
844 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
845 Declare.
846 (x86_supports_z_point_type): Turn into...
847 (x86_target::supports_z_point_type): ...this.
848 (the_low_target): Remove the op field.
849 * linux-aarch64-low.cc (class aarch64_target)
850 <supports_z_point_type>: Declare.
851 (aarch64_supports_z_point_type): Turn into...
852 (aarch64_target::supports_z_point_type): ...this.
853 (the_low_target): Remove the op field.
854 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
855 Declare.
856 (arm_supports_z_point_type): Turn into...
857 (arm_target::supports_z_point_type): ...this.
858 (the_low_target): Remove the op field.
859 * linux-crisv32-low.cc (class crisv32_target)
860 <supports_z_point_type>: Declare.
861 (cris_supports_z_point_type): Turn into...
862 (crisv32_target::supports_z_point_type): ...this.
863 (the_low_target): Remove the op field.
864 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
865 Declare.
866 (mips_supports_z_point_type): Turn into...
867 (mips_target::supports_z_point_type): ...this.
868 (the_low_target): Remove the op field.
869 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
870 Declare.
871 (ppc_supports_z_point_type): Turn into...
872 (ppc_target::supports_z_point_type): ...this.
873 (the_low_target): Remove the op field.
874 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
875 Declare.
876 (s390_supports_z_point_type): Turn into...
877 (s390_target::supports_z_point_type): ...this.
878 (the_low_target): Remove the op field.
879 * linux-bfin-low.cc (the_low_target): Remove the op field.
880 * linux-m32r-low.cc (the_low_target): Ditto.
881 * linux-m68k-low.cc (the_low_target): Ditto.
882 * linux-sh-low.cc (the_low_target): Ditto.
883 * linux-sparc-low.cc (the_low_target): Ditto.
884 * linux-tic6x-low.cc (the_low_target): Ditto.
885 * linux-tile-low.cc (the_low_target): Ditto.
886 * linux-xtensa-low.cc (the_low_target): Ditto.
887
d7146cda
TBA
8882020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
889
890 Turn the 'breakpoint_at' linux target op into a method of
891 linux_process_target.
892
893 * linux-low.h (struct linux_target_ops): Remove the op.
894 (class linux_process_target) <low_breakpoint_at>: Declare.
895
896 Update the callers below:
897
898 * linux-low.cc (linux_process_target::save_stop_reason)
899 (linux_process_target::thread_still_has_status_pending)
900 (linux_process_target::wait_1)
901
902 * linux-x86-low.cc (class x86_target)
903 <low_breakpoint_at>: Declare.
904 (x86_breakpoint_at): Turn into...
905 (x86_target::low_breakpoint_at): ...this.
906 (the_low_target): Remove the op field.
907 * linux-aarch64-low.cc (class aarch64_target)
908 <low_breakpoint_at>: Declare.
909 (aarch64_breakpoint_at): Turn into...
910 (aarch64_target::low_breakpoint_at): ...this.
911 (the_low_target): Remove the op field.
912 * linux-arm-low.cc (class arm_target)
913 <low_breakpoint_at>: Declare.
914 (arm_target::low_breakpoint_at): Define.
915 (the_low_target): Remove the op field.
916 * linux-bfin-low.cc (class bfin_target)
917 <low_breakpoint_at>: Declare.
918 (bfin_breakpoint_at): Turn into...
919 (bfin_target::low_breakpoint_at): ...this.
920 (the_low_target): Remove the op field.
921 * linux-cris-low.cc (class cris_target)
922 <low_breakpoint_at>: Declare.
923 (cris_breakpoint_at): Turn into...
924 (cris_target::low_breakpoint_at): ...this.
925 (the_low_target): Remove the op field.
926 * linux-crisv32-low.cc (class crisv32_target)
927 <low_breakpoint_at>: Declare.
928 (crisv32_breakpoint_at): Turn into...
929 (crisv32_target::low_breakpoint_at): ...this.
930 (the_low_target): Remove the op field.
931 * linux-ia64-low.cc (class ia64_target)
932 <low_breakpoint_at>: Declare.
933 (ia64_target::low_breakpoint_at): Define.
934 * linux-m32r-low.cc (class m32r_target)
935 <low_breakpoint_at>: Declare.
936 (m32r_breakpoint_at): Turn into...
937 (m32r_target::low_breakpoint_at): ...this.
938 (the_low_target): Remove the op field.
939 * linux-m68k-low.cc (class m68k_target)
940 <low_breakpoint_at>: Declare.
941 (m68k_breakpoint_at): Turn into...
942 (m68k_target::low_breakpoint_at): ...this.
943 (the_low_target): Remove the op field.
944 * linux-mips-low.cc (class mips_target)
945 <low_breakpoint_at>: Declare.
946 (mips_breakpoint_at): Turn into...
947 (mips_target::low_breakpoint_at): ...this.
948 (the_low_target): Remove the op field.
949 * linux-nios2-low.cc (class nios2_target)
950 <low_breakpoint_at>: Declare.
951 (nios2_breakpoint_at): Turn into...
952 (nios2_target::low_breakpoint_at): ...this.
953 (the_low_target): Remove the op field.
954 * linux-ppc-low.cc (class ppc_target)
955 <low_breakpoint_at>: Declare.
956 (ppc_breakpoint_at): Turn into...
957 (ppc_target::low_breakpoint_at): ...this.
958 (the_low_target): Remove the op field.
959 * linux-riscv-low.cc (class riscv_target)
960 <low_breakpoint_at>: Declare.
961 (riscv_breakpoint_at): Turn into...
962 (riscv_target::low_breakpoint_at): ...this.
963 (the_low_target): Remove the op field.
964 * linux-s390-low.cc (class s390_target)
965 <low_breakpoint_at>: Declare.
966 (s390_breakpoint_at): Turn into...
967 (s390_target::low_breakpoint_at): ...this.
968 (the_low_target): Remove the op field.
969 * linux-sh-low.cc (class sh_target)
970 <low_breakpoint_at>: Declare.
971 (sh_breakpoint_at): Turn into...
972 (sh_target::low_breakpoint_at): ...this.
973 (the_low_target): Remove the op field.
974 * linux-sparc-low.cc (class sparc_target)
975 <low_breakpoint_at>: Declare.
976 (sparc_breakpoint_at): Turn into...
977 (sparc_target::low_breakpoint_at): ...this.
978 (the_low_target): Remove the op field.
979 * linux-tic6x-low.cc (class tic6x_target)
980 <low_breakpoint_at>: Declare.
981 (tic6x_breakpoint_at): Turn into...
982 (tic6x_target::low_breakpoint_at): ...this.
983 (the_low_target): Remove the op field.
984 * linux-tile-low.cc (class tile_target)
985 <low_breakpoint_at>: Declare.
986 (tile_breakpoint_at): Turn into...
987 (tile_target::low_breakpoint_at): ...this.
988 (the_low_target): Remove the op field.
989 * linux-xtensa-low.cc (class xtensa_target)
990 <low_breakpoint_at>: Declare.
991 (xtensa_breakpoint_at): Turn into...
992 (xtensa_target::low_breakpoint_at): ...this.
993 (the_low_target): Remove the op field.
994
d4807ea2
TBA
9952020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
996
997 Turn the 'decr_pc_after_break' linux_target_ops field into
998 a method of linux_process_target.
999
1000 * linux-low.h (struct linux_target_ops)
1001 <decr_pc_after_break>: Remove.
1002 (class linux_process_target) <low_decr_pc_after_break>: New method
1003 declaration.
1004 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1005 New method implementation.
1006
1007 Update the users below.
1008
1009 (linux_process_target::save_stop_reason)
1010 (linux_process_target::wait_1)
1011 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1012 New declaration.
1013 (x86_target::low_decr_pc_after_break): New method implementation.
1014 (the_low_target): Remove the field.
1015 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1016 New declaration.
1017 (bfin_target::low_decr_pc_after_break): New method implementation.
1018 (the_low_target): Remove the field.
1019 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1020 New declaration.
1021 (m68k_target::low_decr_pc_after_break): New method implementation.
1022 (the_low_target): Remove the field.
1023 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1024 New declaration.
1025 (s390_target::low_decr_pc_after_break): New method implementation.
1026 (the_low_target): Remove the field.
1027 * linux-aarch64-low.cc (the_low_target): Remove the field.
1028 * linux-arm-low.cc (the_low_target): Remove the field.
1029 * linux-cris-low.cc (the_low_target): Remove the field.
1030 * linux-crisv32-low.cc (the_low_target): Remove the field.
1031 * linux-m32r-low.cc (the_low_target): Remove the field.
1032 * linux-mips-low.cc (the_low_target): Remove the field.
1033 * linux-nios2-low.cc (the_low_target): Remove the field.
1034 * linux-ppc-low.cc (the_low_target): Remove the field.
1035 * linux-riscv-low.cc (the_low_target): Remove the field.
1036 * linux-sh-low.cc (the_low_target): Remove the field.
1037 * linux-sparc-low.cc (the_low_target): Remove the field.
1038 * linux-tic6x-low.cc (the_low_target): Remove the field.
1039 * linux-tile-low.cc (the_low_target): Remove the field.
1040 * linux-xtensa-low.cc (the_low_target): Remove the field.
1041
7582c77c
TBA
10422020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1043
1044 Remove the 'supports_software_single_step' linux target op and let
1045 the concrete linux target define it by overriding the op in
1046 process_stratum_target.
1047 Turn the 'get_next_pcs' linux target op into a method of
1048 linux_process_target.
1049
1050 * linux-low.h (struct linux_target_ops): Remove the ops.
1051 (class linux_process_target) <supports_software_single_step>:
1052 Remove.
1053 <low_get_next_pcs>: Declare.
1054 * linux-low.cc (can_software_single_step): Remove.
1055 (linux_process_target::low_get_next_pcs): Define.
1056 (linux_process_target::supports_software_single_step): Remove.
1057
1058 Update the callers below.
1059
1060 (linux_process_target::handle_extended_wait)
1061 (linux_process_target::wait_1)
1062 (linux_process_target::install_software_single_step_breakpoints)
1063 (linux_process_target::single_step)
1064 (linux_process_target::thread_needs_step_over)
1065 (linux_process_target::proceed_one_lwp)
1066 (linux_process_target::supports_range_stepping)
1067
1068 * linux-x86-low.cc (the_low_target): Remove the op field.
1069 * linux-aarch64-low.cc (the_low_target): Ditto.
1070 * linux-bfin-low.cc (the_low_target): Ditto.
1071 * linux-cris-low.cc (the_low_target): Ditto.
1072 * linux-crisv32-low.cc (the_low_target): Ditto.
1073 * linux-m32r-low.cc (the_low_target): Ditto.
1074 * linux-m68k-low.cc (the_low_target): Ditto.
1075 * linux-mips-low.cc (the_low_target): Ditto.
1076 * linux-nios2-low.cc (the_low_target): Ditto.
1077 * linux-ppc-low.cc (the_low_target): Ditto.
1078 * linux-riscv-low.cc (the_low_target): Ditto.
1079 * linux-s390-low.cc (the_low_target): Ditto.
1080 * linux-sh-low.cc (the_low_target): Ditto.
1081 * linux-sparc-low.cc (the_low_target): Ditto.
1082 * linux-tic6x-low.cc (the_low_target): Ditto.
1083 * linux-tile-low.cc (the_low_target): Ditto.
1084 * linux-xtensa-low.cc (the_low_target): Ditto.
1085 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1086 <supports_software_single_step>: Declare.
1087 (arm_target::supports_software_single_step): Define.
1088 (arm_gdbserver_get_next_pcs): Turn into...
1089 (arm_target::low_get_next_pcs): ...this.
1090 (the_low_target): Remove the op field.
1091
3ca4edb6
TBA
10922020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1093
1094 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1095 the concrete linux target define it by overriding the op
1096 in process_stratum_target.
1097
1098 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1099 Remove.
1100 * linux-low.h (struct linux_target_ops): Remove the op.
1101 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1102 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1103 Declare.
1104 (x86_sw_breakpoint_from_kind): Turn into...
1105 (x86_target::sw_breakpoint_from_kind): ...this.
1106 (the_low_target): Remove the op field.
1107 * linux-aarch64-low.cc (class aarch64_target)
1108 <sw_breakpoint_from_kind>: Declare.
1109 (aarch64_sw_breakpoint_from_kind): Turn into...
1110 (aarch64_target::sw_breakpoint_from_kind): ...this.
1111 (the_low_target): Remove the op field.
1112 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1113 Declare.
1114 (arm_target::sw_breakpoint_from_kind): Define.
1115 (the_low_target): Remove the op field.
1116 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1117 Declare.
1118 (bfin_sw_breakpoint_from_kind): Turn into...
1119 (bfin_target::sw_breakpoint_from_kind): ...this.
1120 (the_low_target): Remove the op field.
1121 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1122 Declare.
1123 (cris_sw_breakpoint_from_kind): Turn into...
1124 (cris_target::sw_breakpoint_from_kind): ...this.
1125 (the_low_target): Remove the op field.
1126 * linux-crisv32-low.cc (class crisv32_target)
1127 <sw_breakpoint_from_kind>: Declare.
1128 (cris_sw_breakpoint_from_kind): Turn into...
1129 (crisv32_target::sw_breakpoint_from_kind): ...this.
1130 (the_low_target): Remove the op field.
1131 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1132 Declare.
1133 (ia64_target::sw_breakpoint_from_kind): Define.
1134 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1135 Declare.
1136 (m32r_sw_breakpoint_from_kind): Turn into...
1137 (m32r_target::sw_breakpoint_from_kind): ...this.
1138 (the_low_target): Remove the op field.
1139 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1140 Declare.
1141 (m68k_sw_breakpoint_from_kind): Turn into...
1142 (m68k_target::sw_breakpoint_from_kind): ...this.
1143 (the_low_target): Remove the op field.
1144 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1145 Declare.
1146 (mips_sw_breakpoint_from_kind): Turn into...
1147 (mips_target::sw_breakpoint_from_kind): ...this.
1148 (the_low_target): Remove the op field.
1149 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1150 Declare.
1151 (nios2_sw_breakpoint_from_kind): Turn into...
1152 (nios2_target::sw_breakpoint_from_kind): ...this.
1153 (the_low_target): Remove the op field.
1154 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1155 Declare.
1156 (ppc_sw_breakpoint_from_kind): Turn into...
1157 (ppc_target::sw_breakpoint_from_kind): ...this.
1158 (the_low_target): Remove the op field.
1159 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1160 Declare.
1161 (riscv_sw_breakpoint_from_kind): Turn into...
1162 (riscv_target::sw_breakpoint_from_kind): ...this.
1163 (the_low_target): Remove the op field.
1164 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1165 Declare.
1166 (s390_sw_breakpoint_from_kind): Turn into...
1167 (s390_target::sw_breakpoint_from_kind): ...this.
1168 (the_low_target): Remove the op field.
1169 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1170 Declare.
1171 (sh_sw_breakpoint_from_kind): Turn into...
1172 (sh_target::sw_breakpoint_from_kind): ...this.
1173 (the_low_target): Remove the op field.
1174 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1175 Declare.
1176 (sparc_sw_breakpoint_from_kind): Turn into...
1177 (sparc_target::sw_breakpoint_from_kind): ...this.
1178 (the_low_target): Remove the op field.
1179 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1180 Declare.
1181 (tic6x_sw_breakpoint_from_kind): Turn into...
1182 (tic6x_target::sw_breakpoint_from_kind): ...this.
1183 (the_low_target): Remove the op field.
1184 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1185 Declare.
1186 (tile_sw_breakpoint_from_kind): Turn into...
1187 (tile_target::sw_breakpoint_from_kind): ...this.
1188 (the_low_target): Remove the op field.
1189 * linux-xtensa-low.cc (class xtensa_target)
1190 <sw_breakpoint_from_kind>: Declare.
1191 (xtensa_sw_breakpoint_from_kind): Turn into...
1192 (xtensa_target::sw_breakpoint_from_kind): ...this.
1193 (the_low_target): Remove the op field.
1194
06250e4e
TBA
11952020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1196
1197 Remove the 'breakpoint_kind_from_pc' and
1198 'breakpoint_kind_from_current_state' linux target ops, and let the
1199 concrete linux target define them by overriding the ops of
1200 process_stratum_target.
1201
1202 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1203 Remove.
1204 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1205 * linux-low.h (struct linux_target_ops): Remove ops.
1206 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1207 <breakpoint_kind_from_current_state>: Remove.
1208 * linux-x86-low.cc (the_low_target): Remove the op fields.
1209 * linux-bfin-low.cc (the_low_target): Ditto.
1210 * linux-cris-low.cc (the_low_target): Ditto.
1211 * linux-crisv32-low.cc (the_low_target): Ditto.
1212 * linux-m32r-low.cc (the_low_target): Ditto.
1213 * linux-m68k-low.cc (the_low_target): Ditto.
1214 * linux-mips-low.cc (the_low_target): Ditto.
1215 * linux-nios2-low.cc (the_low_target): Ditto.
1216 * linux-ppc-low.cc (the_low_target): Ditto.
1217 * linux-s390-low.cc (the_low_target): Ditto.
1218 * linux-sh-low.cc (the_low_target): Ditto.
1219 * linux-sparc-low.cc (the_low_target): Ditto.
1220 * linux-tic6x-low.cc (the_low_target): Ditto.
1221 * linux-tile-low.cc (the_low_target): Ditto.
1222 * linux-xtensa-low.cc (the_low_target): Ditto.
1223 * linux-aarch64-low.cc (class aarch64_target)
1224 <breakpoint_kind_from_pc>
1225 <breakpoint_kind_from_current_state>: Declare.
1226 (aarch64_breakpoint_kind_from_pc): Turn into...
1227 (aarch64_target::breakpoint_kind_from_pc): ...this.
1228 (aarch64_breakpoint_kind_from_current_state): Turn into...
1229 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1230 (the_low_target): Remove the op fields.
1231 * linux-arm-low.cc (class arm_target):
1232 <breakpoint_kind_from_pc>
1233 <breakpoint_kind_from_current_state>: Declare.
1234 (arm_target::breakpoint_kind_from_pc): Define.
1235 (arm_target::breakpoint_kind_from_current_state): Define.
1236 (the_low_target): Remove the op fields.
1237 * linux-riscv-low.cc (class riscv_target):
1238 <breakpoint_kind_from_pc>: Declare.
1239 (riscv_breakpoint_kind_from_pc): Turn into...
1240 (riscv_target::breakpoint_kind_from_pc): ...this.
1241 (the_low_target): Remove the op fields.
1242
bf9ae9d8
TBA
12432020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1244
1245 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1246 of linux_process_target.
1247
1248 * linux-low.h (struct linux_target_ops): Remove the ops.
1249 (class linux_process_target) <low_supports_breakpoints>
1250 <low_get_pc>
1251 <low_set_pc>: Declare.
1252 * linux-low.cc (supports_breakpoints): Turn into...
1253 (linux_process_target::low_supports_breakpoints): ...this.
1254 (linux_process_target::low_get_pc): Define.
1255 (linux_process_target::low_set_pc): Define.
1256
1257 Update the callers below.
1258
1259 (linux_process_target::get_pc)
1260 (linux_process_target::save_stop_reason)
1261 (linux_process_target::maybe_move_out_of_jump_pad)
1262 (linux_process_target::wait_1)
1263 (linux_process_target::resume_one_lwp_throw)
1264 (linux_process_target::resume)
1265 (linux_process_target::proceed_all_lwps)
1266 (linux_process_target::read_pc)
1267 (linux_process_target::write_pc)
1268
1269 * linux-x86-low.cc (class linux_process_target)
1270 <low_supports_breakpoints>
1271 <low_get_pc>
1272 <low_set_pc>: Declare.
1273 (x86_target::low_supports_breakpoints): Define.
1274 (x86_get_pc): Turn into...
1275 (x86_target::low_get_pc): ...this.
1276 (x86_set_pc): Turn into...
1277 (x86_target::low_set_pc): ...this.
1278 (the_low_target): Remove the op fields.
1279 * linux-arm-low.cc (class arm_target)
1280 <low_supports_breakpoints>
1281 <low_get_pc>
1282 <low_set_pc>: Declare.
1283 (arm_target::low_supports_breakpoints)
1284 (arm_target::low_get_pc)
1285 (arm_target::low_set_pc): Define.
1286 (the_low_target): Remove the op fields.
1287 * linux-bfin-low.cc (class bfin_target)
1288 <low_supports_breakpoints>
1289 <low_get_pc>
1290 <low_set_pc>: Declare.
1291 (bfin_target::low_supports_breakpoints)
1292 (bfin_target::low_get_pc)
1293 (bfin_target::low_set_pc): Define.
1294 (the_low_target): Remove the op fields.
1295 * linux-cris-low.cc (class cris_target)
1296 <low_supports_breakpoints>
1297 <low_get_pc>
1298 <low_set_pc>: Declare.
1299 (cris_target::low_supports_breakpoints)
1300 (cris_target::low_get_pc)
1301 (cris_target::low_set_pc): Define.
1302 (the_low_target): Remove the op fields.
1303 * linux-crisv32-low.cc (class crisv32_target)
1304 <low_supports_breakpoints>
1305 <low_get_pc>
1306 <low_set_pc>: Declare.
1307 (crisv32_target::low_supports_breakpoints)
1308 (crisv32_target::low_get_pc)
1309 (crisv32_target::low_set_pc): Define.
1310 (the_low_target): Remove the op fields.
1311 * linux-m32r-low.cc (class m32r_target)
1312 <low_supports_breakpoints>
1313 <low_get_pc>
1314 <low_set_pc>: Declare.
1315 (m32r_target::low_supports_breakpoints)
1316 (m32r_target::low_get_pc)
1317 (m32r_target::low_set_pc): Define.
1318 (the_low_target): Remove the op fields.
1319 * linux-m68k-low.cc (class m68k_target)
1320 <low_supports_breakpoints>
1321 <low_get_pc>
1322 <low_set_pc>: Declare.
1323 (m68k_target::low_supports_breakpoints)
1324 (m68k_target::low_get_pc)
1325 (m68k_target::low_set_pc): Define.
1326 (the_low_target): Remove the op fields.
1327 * linux-nios2-low.cc (class nios2_target)
1328 <low_supports_breakpoints>
1329 <low_get_pc>
1330 <low_set_pc>: Declare.
1331 (nios2_target::low_supports_breakpoints)
1332 (nios2_target::low_get_pc)
1333 (nios2_target::low_set_pc): Define.
1334 (the_low_target): Remove the op fields.
1335 * linux-sh-low.cc (class sh_target)
1336 <low_supports_breakpoints>
1337 <low_get_pc>
1338 <low_set_pc>: Declare.
1339 (sh_target::low_supports_breakpoints)
1340 (sh_target::low_get_pc)
1341 (sh_target::low_set_pc): Define.
1342 (the_low_target): Remove the op fields.
1343 * linux-xtensa-low.cc (class xtensa_target)
1344 <low_supports_breakpoints>
1345 <low_get_pc>
1346 <low_set_pc>: Declare.
1347 (xtensa_target::low_supports_breakpoints)
1348 (xtensa_target::low_get_pc)
1349 (xtensa_target::low_set_pc): Define.
1350 (the_low_target): Remove the op fields.
1351 * linux-sparc-low.cc (class sparc_target)
1352 <low_supports_breakpoints>
1353 <low_get_pc>: Declare.
1354 (sparc_target::low_supports_breakpoints)
1355 (sparc_target::low_get_pc): Define.
1356 (the_low_target): Remove the op fields.
1357 * linux-tile-low.cc (class tile_target)
1358 <low_supports_breakpoints>
1359 <low_get_pc>
1360 <low_set_pc>: Declare.
1361 (tile_target::low_supports_breakpoints)
1362 (tile_target::low_get_pc)
1363 (tile_target::low_set_pc): Define.
1364 (the_low_target): Remove the op fields.
1365 * linux-aarch64-low.cc (class aarch64_target)
1366 <low_supports_breakpoints>
1367 <low_get_pc>
1368 <low_set_pc>: Declare.
1369 (aarch64_target::low_supports_breakpoints): Define.
1370 (aarch64_get_pc): Turn into...
1371 (aarch64_target::low_get_pc): ...this.
1372 (aarch64_set_pc): Turn into...
1373 (aarch64_target::low_set_pc): ...this.
1374 (the_low_target): Remove the op fields.
1375 * linux-mips-low.cc (class mips_target)
1376 <low_supports_breakpoints>
1377 <low_get_pc>
1378 <low_set_pc>: Declare.
1379 (mips_target::low_supports_breakpoints): Define.
1380 (mips_get_pc): Turn into...
1381 (mips_target::low_get_pc): ...this.
1382 (mips_set_pc): Turn into...
1383 (mips_target::low_set_pc): ...this.
1384 (the_low_target): Remove the op fields.
1385 * linux-ppc-low.cc (class ppc_target)
1386 <low_supports_breakpoints>
1387 <low_get_pc>
1388 <low_set_pc>: Declare.
1389 (ppc_target::low_supports_breakpoints): Define.
1390 (ppc_get_pc): Turn into...
1391 (ppc_target::low_get_pc): ...this.
1392 (ppc_set_pc): Turn into...
1393 (ppc_target::low_set_pc): ...this.
1394 (the_low_target): Remove the op fields.
1395 * linux-riscv-low.cc (class riscv_target)
1396 <low_supports_breakpoints>
1397 <low_get_pc>
1398 <low_set_pc>: Declare.
1399 (riscv_target::low_supports_breakpoints): Define.
1400 (riscv_get_pc): Turn into...
1401 (riscv_target::low_get_pc): ...this.
1402 (riscv_set_pc): Turn into...
1403 (riscv_target::low_set_pc): ...this.
1404 (the_low_target): Remove the op fields.
1405 * linux-s390-low.cc (class s390_target)
1406 <low_supports_breakpoints>
1407 <low_get_pc>
1408 <low_set_pc>: Declare.
1409 (s390_target::low_supports_breakpoints): Define.
1410 (s390_get_pc): Turn into...
1411 (s390_target::low_get_pc): ...this.
1412 (s390_set_pc): Turn into...
1413 (s390_target::low_set_pc): ...this.
1414 (the_low_target): Remove the op fields.
1415 * linux-tic6x-low.cc (class tic6x_target)
1416 <low_supports_breakpoints>
1417 <low_get_pc>
1418 <low_set_pc>: Declare.
1419 (tic6x_target::low_supports_breakpoints): Define.
1420 (tic6x_get_pc): Turn into...
1421 (tic6x_target::low_get_pc): ...this.
1422 (tic6x_set_pc): Turn into...
1423 (tic6x_target::low_set_pc): ...this.
1424 (the_low_target): Remove the op fields.
1425
df95181f
TBA
14262020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1427
1428 Turn some more static methods in linux-low into private methods
1429 of linux_process_target.
1430
1431 * linux-low.cc (get_pc): Turn into...
1432 (linux_process_target::get_pc): ...this.
1433 (save_stop_reason): Turn into...
1434 (linux_process_target::save_stop_reason): ...this.
1435 (thread_still_has_status_pending_p): Turn into...
1436 (linux_process_target::thread_still_has_status_pending): ...this.
1437 (status_pending_p_callback): Turn into...
1438 (linux_process_target::status_pending_p_callback): ...this.
1439 (resume_stopped_resumed_lwps): Turn into...
1440 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1441 (install_software_single_step_breakpoints): Turn into...
1442 (linux_process_target::install_software_single_step_breakpoints):
1443 ...this.
1444 (single_step): Turn into...
1445 (linux_process_target::single_step): ...this.
1446 (linux_resume_one_lwp_throw): Turn into...
1447 (linux_process_target::resume_one_lwp_throw): ...this.
1448 (linux_resume_one_lwp): Turn into...
1449 (linux_process_target::resume_one_lwp): ...this.
1450 (resume_status_pending_p): Turn into...
1451 (linux_process_target::resume_status_pending): ...this.
1452 (need_step_over_p): Turn into...
1453 (linux_process_target::thread_needs_step_over): ...this.
1454 (linux_resume_one_thread): Turn into...
1455 (linux_process_target::resume_one_thread): ...this.
1456 (proceed_one_lwp): Turn into...
1457 (linux_process_target::proceed_one_lwp): ...this.
1458 (unsuspend_and_proceed_one_lwp): Turn into...
1459 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1460
1461 Update the calls/references to the above functions below.
1462
1463 (linux_process_target::handle_extended_wait)
1464 (linux_process_target::filter_event)
1465 (linux_process_target::wait_for_event_filtered)
1466 (linux_process_target::wait_1)
1467 (linux_process_target::move_out_of_jump_pad)
1468 (linux_process_target::start_step_over)
1469 (linux_process_target::resume)
1470 (linux_process_target::proceed_all_lwps)
1471 (regsets_store_inferior_registers)
1472 (linux_process_target::store_register)
1473
1474 * linux-low.h (class linux_process_target)
1475 <get_pc>
1476 <save_stop_reason>
1477 <thread_still_has_status_pending>
1478 <status_pending_p_callback>
1479 <resume_stopped_resumed_lwps>
1480 <install_software_single_step_breakpoints>
1481 <single_step>
1482 <resume_one_lwp_throw>
1483 <resume_one_lwp>
1484 <resume_status_pending>
1485 <thread_needs_step_over>
1486 <resume_one_thread>
1487 <proceed_one_lwp>
1488 <unsuspend_and_proceed_one_lwp>: Declare.
1489
bd70b1f2
TBA
14902020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1491
1492 Turn the 'fetch_register' linux target op into a method of
1493 linux_process_target.
1494
1495 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1496 (class linux_process_target) <low_fetch_register>: Declare.
1497 * linux-x86-low.cc (the_low_target)
1498 * linux-aarch64-low.cc (the_low_target)
1499 * linux-arm-low.cc (the_low_target)
1500 * linux-bfin-low.cc (the_low_target)
1501 * linux-cris-low.cc (the_low_target)
1502 * linux-crisv32-low.cc (the_low_target)
1503 * linux-m32r-low.cc (the_low_target)
1504 * linux-m68k-low.cc (the_low_target)
1505 * linux-nios2-low.cc (the_low_target)
1506 * linux-ppc-low.cc (the_low_target)
1507 * linux-s390-low.cc (the_low_target)
1508 * linux-sh-low.cc (the_low_target)
1509 * linux-sparc-low.cc (the_low_target)
1510 * linux-tic6x-low.cc (the_low_target)
1511 * linux-tile-low.cc (the_low_target)
1512 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1513 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1514 Declare.
1515 (ia64_fetch_register): Turn into...
1516 (ia64_target::low_fetch_register): ...this.
1517 (the_low_target): Remove the op field.
1518 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1519 Declare.
1520 (mips_fetch_register): Turn into...
1521 (mips_target::low_fetch_register): ...this.
1522 (the_low_target): Remove the op field.
1523 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1524 Declare.
1525 (riscv_fetch_register): Turn into...
1526 (riscv_target::low_fetch_register): ...this.
1527 (the_low_target): Remove the op field.
1528
1529 Update the callers below.
1530
1531 * linux-low.cc (linux_process_target::fetch_registers)
1532 (linux_process_target::low_fetch_register)
1533
daca57a7
TBA
15342020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1535
1536 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1537 linux target ops into methods of linux_process_target.
1538
1539 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1540 (class linux_process_target) <fetch_register>
1541 <store_register>
1542 <usr_fetch_inferior_registers>
1543 <usr_store_inferior_registers>
1544 <low_cannot_fetch_register>
1545 <low_cannot_fetch_register> Declare.
1546 * linux-low.cc (fetch_register): Turn into...
1547 (linux_process_target::fetch_register): ...this.
1548 (store_register): Turn into ...
1549 (linux_process_target::store_register): ...this.
1550 (usr_fetch_inferior_registers): Turn into...
1551 (linux_process_target::usr_fetch_inferior_registers): ...this.
1552 (usr_store_inferior_registers): Turn into...
1553 (linux_process_target::usr_store_inferior_registers): ...this.
1554 * linux-x86-low.cc (class x86_target)
1555 <low_cannot_fetch_register>
1556 <low_cannot_store_register>: Declare.
1557 (x86_cannot_store_register): Turn into...
1558 (x86_target::low_cannot_store_register): ...this.
1559 (x86_cannot_fetch_register): Turn into...
1560 (x86_target::low_cannot_fetch_register): ...this.
1561 (the_low_target): Remove the target op fields.
1562 * linux-aarch64-low.cc (class aarch64_target)
1563 <low_cannot_fetch_register>
1564 <low_cannot_store_register>: Declare.
1565 (aarch64_target::low_cannot_fetch_register)
1566 (aarch64_target::low_cannot_store_register): Define.
1567 (the_low_target): Remove the op fields.
1568 * linux-arm-low.cc (class arm_target)
1569 <low_cannot_fetch_register>
1570 <low_cannot_store_register>: Declare.
1571 (arm_cannot_fetch_register): Turn into...
1572 (arm_target::low_cannot_fetch_register): ...this.
1573 (arm_cannot_store_register): Turn into...
1574 (arm_target::low_cannot_store_register): ...this.
1575 (the_low_target): Remove the op fields.
1576 * linux-bfin-low.cc (class bfin_target)
1577 <low_cannot_fetch_register>
1578 <low_cannot_store_register>: Declare.
1579 (bfin_cannot_fetch_register): Turn into...
1580 (bfin_target::low_cannot_fetch_register): ...this.
1581 (bfin_cannot_store_register): Turn into...
1582 (bfin_target::low_cannot_store_register): ...this.
1583 (the_low_target): Remove the op fields.
1584 * linux-cris-low.cc (class cris_target)
1585 <low_cannot_fetch_register>
1586 <low_cannot_store_register>: Declare.
1587 (cris_cannot_fetch_register): Turn into...
1588 (cris_target::low_cannot_fetch_register): ...this.
1589 (cris_cannot_store_register): Turn into...
1590 (cris_target::low_cannot_store_register): ...this.
1591 (the_low_target): Remove the op fields.
1592 * linux-crisv32-low.cc (class crisv32_target)
1593 <low_cannot_fetch_register>
1594 <low_cannot_store_register>: Declare.
1595 (crisv32_target::low_cannot_fetch_register)
1596 (crisv32_target::low_cannot_store_register): Define.
1597 (the_low_target): Remove the op fields.
1598 * linux-ia64-low.cc (class ia64_target)
1599 <low_cannot_fetch_register>
1600 <low_cannot_store_register>: Declare.
1601 (ia64_cannot_fetch_register): Turn into...
1602 (ia64_target::low_cannot_fetch_register): ...this.
1603 (ia64_cannot_store_register): Turn into...
1604 (ia64_target::low_cannot_store_register): ...this.
1605 (the_low_target): Remove the op fields.
1606 * linux-m32r-low.cc (class m32r_target)
1607 <low_cannot_fetch_register>
1608 <low_cannot_store_register>: Declare.
1609 (m32r_cannot_fetch_register): Turn into...
1610 (m32r_target::low_cannot_fetch_register): ...this.
1611 (m32r_cannot_store_register): Turn into...
1612 (m32r_target::low_cannot_store_register): ...this.
1613 (the_low_target): Remove the op fields.
1614 * linux-m68k-low.cc (class m68k_target)
1615 <low_cannot_fetch_register>
1616 <low_cannot_store_register>: Declare.
1617 (m68k_cannot_fetch_register): Turn into...
1618 (m68k_target::low_cannot_fetch_register): ...this.
1619 (m68k_cannot_store_register): Turn into...
1620 (m68k_target::low_cannot_store_register): ...this.
1621 (the_low_target): Remove the op fields.
1622 * linux-mips-low.cc (class mips_target)
1623 <low_cannot_fetch_register>
1624 <low_cannot_store_register>: Declare.
1625 (mips_cannot_fetch_register): Turn into...
1626 (mips_target::low_cannot_fetch_register): ...this.
1627 (mips_cannot_store_register): Turn into...
1628 (mips_target::low_cannot_store_register): ...this.
1629 (get_usrregs_info): Inline at the call sites in
1630 low_cannot_fetch_register and low_cannot_store_register,
1631 and remove.
1632 (the_low_target): Remove the op fields.
1633 * linux-nios2-low.cc (class nios2_target)
1634 <low_cannot_fetch_register>
1635 <low_cannot_store_register>: Declare.
1636 (nios2_cannot_fetch_register): Turn into...
1637 (nios2_target::low_cannot_fetch_register): ...this.
1638 (nios2_cannot_store_register): Turn into...
1639 (nios2_target::low_cannot_store_register): ...this.
1640 (the_low_target): Remove the op fields.
1641 * linux-ppc-low.cc (class ppc_target)
1642 <low_cannot_fetch_register>
1643 <low_cannot_store_register>: Declare.
1644 (ppc_cannot_fetch_register): Turn into...
1645 (ppc_target::low_cannot_fetch_register): ...this.
1646 (ppc_cannot_store_register): Turn into...
1647 (ppc_target::low_cannot_store_register): ...this.
1648 (the_low_target): Remove the op fields.
1649 * linux-riscv-low.cc (class riscv_target)
1650 <low_cannot_fetch_register>
1651 <low_cannot_store_register>: Declare.
1652 (riscv_target::low_cannot_fetch_register)
1653 (riscv_target::low_cannot_store_register): Define.
1654 (the_low_target): Remove the op fields.
1655 * linux-s390-low.cc (class s390_target)
1656 <low_cannot_fetch_register>
1657 <low_cannot_store_register>: Declare.
1658 (s390_cannot_fetch_register): Turn into...
1659 (s390_target::low_cannot_fetch_register): ...this.
1660 (s390_cannot_store_register): Turn into...
1661 (s390_target::low_cannot_store_register): ...this.
1662 (the_low_target): Remove the op fields.
1663 * linux-sh-low.cc (class sh_target)
1664 <low_cannot_fetch_register>
1665 <low_cannot_store_register>: Declare.
1666 (sh_cannot_fetch_register): Turn into...
1667 (sh_target::low_cannot_fetch_register): ...this.
1668 (sh_cannot_store_register): Turn into...
1669 (sh_target::low_cannot_store_register): ...this.
1670 (the_low_target): Remove the op fields.
1671 * linux-sparc-low.cc (class sparc_target)
1672 <low_cannot_fetch_register>
1673 <low_cannot_store_register>: Declare.
1674 (sparc_cannot_fetch_register): Turn into...
1675 (sparc_target::low_cannot_fetch_register): ...this.
1676 (sparc_cannot_store_register): Turn into...
1677 (sparc_target::low_cannot_store_register): ...this.
1678 (the_low_target): Remove the op fields.
1679 * linux-tic6x-low.cc (class tic6x_target)
1680 <low_cannot_fetch_register>
1681 <low_cannot_store_register>: Declare.
1682 (tic6x_cannot_fetch_register): Turn into...
1683 (tic6x_target::low_cannot_fetch_register): ...this.
1684 (tic6x_cannot_store_register): Turn into...
1685 (tic6x_target::low_cannot_store_register): ...this.
1686 (the_low_target): Remove the op fields.
1687 * linux-tile-low.cc (class tile_target)
1688 <low_cannot_fetch_register>
1689 <low_cannot_store_register>: Declare.
1690 (tile_cannot_fetch_register): Turn into...
1691 (tile_target::low_cannot_fetch_register): ...this.
1692 (tile_cannot_store_register): Turn into...
1693 (tile_target::low_cannot_store_register): ...this.
1694 (the_low_target): Remove the op fields.
1695 * linux-xtensa-low.cc (class xtensa_target)
1696 <low_cannot_fetch_register>
1697 <low_cannot_store_register>: Declare.
1698 (xtensa_target::low_cannot_fetch_register)
1699 (xtensa_target::low_cannot_store_register): Define.
1700 (the_low_target): Remove the op fields.
1701
aa8d21c9
TBA
17022020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1703
1704 Turn the 'regs_info' linux target op into a method of
1705 linux_process_target.
1706
1707 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1708 (class linux_process_target) <get_regs_info>: Define.
1709
1710 Update the callers below.
1711
1712 * linux-low.cc (linux_process_target::fetch_registers)
1713 (linux_process_target::store_registers)
1714 * proc-service.cc (gregset_info)
1715
1716 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1717 (x86_linux_regs_info): Turn into ...
1718 (x86_target::get_regs_info): ...this.
1719 (the_low_target): Remove the op field.
1720 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1721 Declare.
1722 (aarch64_regs_info): Turn into ...
1723 (aarch64_target::get_regs_info): ...this.
1724 (the_low_target): Remove the op field.
1725 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1726 (arm_regs_info): Turn into ...
1727 (arm_target::get_regs_info): ...this.
1728 (the_low_target): Remove the op field.
1729 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1730 (bfin_regs_info): Turn into ...
1731 (bfin_target::get_regs_info): ...this.
1732 (the_low_target): Remove the op field.
1733 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1734 (cris_regs_info): Turn into ...
1735 (cris_target::get_regs_info): ...this.
1736 (the_low_target): Remove the op field.
1737 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1738 Declare.
1739 (crisv32_regs_info): Turn into ...
1740 (crisv32_target::get_regs_info): ...this.
1741 (the_low_target): Remove the op field.
1742 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1743 (ia64_regs_info): Turn into ...
1744 (ia64_target::get_regs_info): ...this.
1745 (the_low_target): Remove the op field.
1746 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1747 (m32r_regs_info): Turn into ...
1748 (m32r_target::get_regs_info): ...this.
1749 (the_low_target): Remove the op field.
1750 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1751 (m68k_regs_info): Turn into ...
1752 (m68k_target::get_regs_info): ...this.
1753 (the_low_target): Remove the op field.
1754 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1755 (mips_regs_info): Turn into ...
1756 (mips_target::get_regs_info): ...this.
1757 (the_low_target): Remove the op field.
1758 (get_usrregs_info): Update the call to the op.
1759 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1760 (nios2_regs_info): Turn into ...
1761 (nios2_target::get_regs_info): ...this.
1762 (the_low_target): Remove the op field.
1763 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1764 (ppc_regs_info): Turn into ...
1765 (ppc_target::get_regs_info): ...this.
1766 (the_low_target): Remove the op field.
1767 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1768 (riscv_regs_info): Turn into ...
1769 (riscv_target::get_regs_info): ...this.
1770 (the_low_target): Remove the op field.
1771 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1772 (s390_regs_info): Turn into ...
1773 (s390_target::get_regs_info): ...this.
1774 (the_low_target): Remove the op field.
1775 (s390_collect_ptrace_register)
1776 (s390_supply_ptrace_register)
1777 (s390_fill_gregset): Update the call to the op.
1778 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1779 (sh_regs_info): Turn into ...
1780 (sh_target::get_regs_info): ...this.
1781 (the_low_target): Remove the op field.
1782 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1783 (sparc_regs_info): Turn into ...
1784 (sparc_target::get_regs_info): ...this.
1785 (the_low_target): Remove the op field.
1786 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1787 (tic6x_regs_info): Turn into ...
1788 (tic6x_target::get_regs_info): ...this.
1789 (the_low_target): Remove the op field.
1790 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1791 (tile_regs_info): Turn into ...
1792 (tile_target::get_regs_info): ...this.
1793 (the_low_target): Remove the op field.
1794 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1795 Declare.
1796 (xtensa_regs_info): Turn into ...
1797 (xtensa_target::get_regs_info): ...this.
1798 (the_low_target): Remove the op field.
1799
797bcff5
TBA
18002020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1801
1802 Turn the 'arch_setup' linux target op into a method of
1803 linux_process_target.
1804
1805 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1806 (class linux_process_target) <arch_setup_thread>
1807 <low_arch_setup>: New declarations.
1808 * linux-low.cc (linux_arch_setup): Delete.
1809 (linux_arch_setup_thread): Turn into...
1810 (linux_process_target::arch_setup_thread): ... this.
1811
1812 Update the callers below.
1813
1814 (linux_process_target::handle_extended_wait)
1815 (linux_process_target::post_create_inferior)
1816 (linux_process_target::filter_event)
1817
1818 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1819 declaration.
1820 (x86_linux_update_xmltarget): Turn into...
1821 (x86_target::update_xmltarget): ...this.
1822 (x86_linux_process_qsupported): Update the call to
1823 x86_linux_update_xmltarget.
1824 (x86_arch_setup): Turn into ...
1825 (x86_target::low_arch_setup): ...this.
1826 (the_low_target): Remove the op field.
1827 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1828 declaration.
1829 (aarch64_arch_setup): Turn into ...
1830 (aarch64_target::low_arch_setup): ...this.
1831 (the_low_target): Remove the op field.
1832 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1833 declaration.
1834 (arm_arch_setup): Turn into ...
1835 (arm_target::low_arch_setup): ...this.
1836 (the_low_target): Remove the op field.
1837 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1838 declaration.
1839 (bfin_arch_setup): Turn into ...
1840 (bfin_target::low_arch_setup): ...this.
1841 (the_low_target): Remove the op field.
1842 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1843 declaration.
1844 (cris_arch_setup): Turn into ...
1845 (cris_target::low_arch_setup): ...this.
1846 (the_low_target): Remove the op field.
1847 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1848 declaration.
1849 (crisv32_arch_setup): Turn into ...
1850 (crisv32_target::low_arch_setup): ...this.
1851 (the_low_target): Remove the op field.
1852 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1853 declaration.
1854 (ia64_arch_setup): Turn into ...
1855 (ia64_target::low_arch_setup): ...this.
1856 (the_low_target): Remove the op field.
1857 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1858 declaration.
1859 (m32r_arch_setup): Turn into ...
1860 (m32r_target::low_arch_setup): ...this.
1861 (the_low_target): Remove the op field.
1862 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1863 declaration.
1864 (m68k_arch_setup): Turn into ...
1865 (m68k_target::low_arch_setup): ...this.
1866 (the_low_target): Remove the op field.
1867 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1868 declaration.
1869 (mips_arch_setup): Turn into ...
1870 (mips_target::low_arch_setup): ...this.
1871 (the_low_target): Remove the op field.
1872 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1873 declaration.
1874 (nios2_arch_setup): Turn into ...
1875 (nios2_target::low_arch_setup): ...this.
1876 (the_low_target): Remove the op field.
1877 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1878 declaration.
1879 (ppc_arch_setup): Turn into ...
1880 (ppc_target::low_arch_setup): ...this.
1881 (the_low_target): Remove the op field.
1882 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1883 declaration.
1884 (riscv_arch_setup): Turn into ...
1885 (riscv_target::low_arch_setup): ...this.
1886 (the_low_target): Remove the op field.
1887 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1888 declaration.
1889 (s390_arch_setup): Turn into ...
1890 (s390_target::low_arch_setup): ...this.
1891 (the_low_target): Remove the op field.
1892 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1893 declaration.
1894 (sh_arch_setup): Turn into ...
1895 (sh_target::low_arch_setup): ...this.
1896 (the_low_target): Remove the op field.
1897 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1898 declaration.
1899 (sparc_arch_setup): Turn into ...
1900 (sparc_target::low_arch_setup): ...this.
1901 (the_low_target): Remove the op field.
1902 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1903 declaration.
1904 (tic6x_arch_setup): Turn into ...
1905 (tic6x_target::low_arch_setup): ...this.
1906 (the_low_target): Remove the op field.
1907 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1908 declaration.
1909 (tile_arch_setup): Turn into ...
1910 (tile_target::low_arch_setup): ...this.
1911 (the_low_target): Remove the op field.
1912 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1913 declaration.
1914 (xtensa_arch_setup): Turn into ...
1915 (xtensa_target::low_arch_setup): ...this.
1916 (the_low_target): Remove the op field.
1917
ef0478f6
TBA
19182020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1919
1920 * linux-low.h (the_linux_target): New extern declaration.
1921 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
1922 'the_target'.
1923 (the_linux_target): Remove.
1924 * linux-x86-low.cc (class x86_target): New class.
1925 (the_x86_target): New static object.
1926 (the_linux_target): Define as pointer to the_x86_target.
1927 * linux-aarch64-low.cc (class aarch64_target): New class.
1928 (the_aarch64_target): New static object.
1929 (the_linux_target): Define as pointer to the_aarch64_target.
1930 * linux-arm-low.cc (class arm_target): New class.
1931 (the_arm_target): New static object.
1932 (the_linux_target): Define as pointer to the_arm_target.
1933 * linux-bfin-low.cc (class bfin_target): New class.
1934 (the_bfin_target): New static object.
1935 (the_linux_target): Define as pointer to the_bfin_target.
1936 * linux-cris-low.cc (class cris_target): New class.
1937 (the_cris_target): New static object.
1938 (the_linux_target): Define as pointer to the_cris_target.
1939 * linux-crisv32-low.cc (class crisv32_target): New class.
1940 (the_crisv32_target): New static object.
1941 (the_linux_target): Define as pointer to the_crisv32_target.
1942 * linux-ia64-low.cc (class ia64_target): New class.
1943 (the_ia64_target): New static object.
1944 (the_linux_target): Define as pointer to the_ia64_target.
1945 * linux-m32r-low.cc (class m32r_target): New class.
1946 (the_m32r_target): New static object.
1947 (the_linux_target): Define as pointer to the_m32r_target.
1948 * linux-m68k-low.cc (class m68k_target): New class.
1949 (the_m68k_target): New static object.
1950 (the_linux_target): Define as pointer to the_m68k_target.
1951 * linux-mips-low.cc (class mips_target): New class.
1952 (the_mips_target): New static object.
1953 (the_linux_target): Define as pointer to the_mips_target.
1954 * linux-nios2-low.cc (class nios2_target): New class.
1955 (the_nios2_target): New static object.
1956 (the_linux_target): Define as pointer to the_nios2_target.
1957 * linux-ppc-low.cc (class ppc_target): New class.
1958 (the_ppc_target): New static object.
1959 (the_linux_target): Define as pointer to the_ppc_target.
1960 * linux-riscv-low.cc (class riscv_target): New class.
1961 (the_riscv_target): New static object.
1962 (the_linux_target): Define as pointer to the_riscv_target.
1963 * linux-s390-low.cc (class s390_target): New class.
1964 (the_s390_target): New static object.
1965 (the_linux_target): Define as pointer to the_s390_target.
1966 * linux-sh-low.cc (class sh_target): New class.
1967 (the_sh_target): New static object.
1968 (the_linux_target): Define as pointer to the_sh_target.
1969 * linux-sparc-low.cc (class sparc_target): New class.
1970 (the_sparc_target): New static object.
1971 (the_linux_target): Define as pointer to the_sparc_target.
1972 * linux-tic6x-low.cc (class tic6x_target): New class.
1973 (the_tic6x_target): New static object.
1974 (the_linux_target): Define as pointer to the_tic6x_target.
1975 * linux-tile-low.cc (class tile_target): New class.
1976 (the_tile_target): New static object.
1977 (the_linux_target): Define as pointer to the_tile_target.
1978 * linux-xtensa-low.cc (class xtensa_target): New class.
1979 (the_xtensa_target): New static object.
1980 (the_linux_target): Define as pointer to the_xtensa_target.
1981
d16f3f6c
TBA
19822020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1983
1984 Turn some static functions in linux-low.cc into private methods of
1985 linux_process_target.
1986
1987 * linux-low.cc (handle_extended_wait): Turn into ...
1988 (linux_process_target::handle_extended_wait): ...this. Call
1989 'mourn' on 'this' object instead of 'the_target'.
1990 (maybe_move_out_of_jump_pad): Turn into...
1991 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
1992 (linux_low_filter_event): Turn into...
1993 (linux_process_target::filter_event): ...this.
1994 (linux_wait_for_event_filtered): Turn into...
1995 (linux_process_target::wait_for_event_filtered): ...this.
1996 (linux_wait_for_event): Turn into...
1997 (linux_process_target::wait_for_event): ...this.
1998 (linux_wait_1): Turn into...
1999 (linux_process_target::wait_1): ...this.
2000 (wait_for_sigstop): Turn into...
2001 (linux_process_target::wait_for_sigstop): ...this.
2002 (move_out_of_jump_pad_callback): Turn into...
2003 (linux_process_target::move_out_of_jump_pad): ...this.
2004 (stop_all_lwps): Turn into...
2005 (linux_process_target::stop_all_lwps): ...this.
2006 (start_step_over): Turn into...
2007 (linux_process_target::start_step_over): ...this.
2008 (complete_ongoing_step_over): Turn into...
2009 (linux_process_target::complete_ongoing_step_over): ...this.
2010 (proceed_all_lwps): Turn into...
2011 (linux_process_target::proceed_all_lwps): ...this.
2012 (unstop_all_lwps): Turn into...
2013 (linux_process_target::unstop_all_lwps): ...this.
2014
2015 * linux-low.h (class linux_process_target)
2016 <handle_extended_wait>
2017 <maybe_move_out_of_jump_pad>
2018 filter_event>
2019 <wait_for_event_filtered>
2020 <wait_for_event>
2021 <wait_1>
2022 <wait_for_sigstop>
2023 <move_out_of_jump_pad>
2024 <stop_all_lwps>
2025 <start_step_over>
2026 <complete_ongoing_step_over>
2027 <proceed_all_lwps>
2028 <unstop_all_lwps>: Declare.
2029
2030 Update the callers below.
2031
2032 * linux-low.cc (linux_process_target::attach): Update.
2033 (linux_process_target::stabilize_threads): Ditto.
2034 (linux_process_target::wait): Ditto.
2035
a5863204
TBA
20362020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2037
2038 * linux-low.h (struct linux_target_ops): Update the comment for
2039 'cannot_store_register' to return 0 or 1.
2040 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2041 of 2.
2042
c884cc46
SM
20432020-03-20 Simon Marchi <simon.marchi@efficios.com>
2044
2045 * config.in: Re-generate.
2046 * configure: Re-generate.
2047
5a82b8a1
KR
20482020-03-17 Kamil Rytarowski <n54@gmx.com>
2049
2050 * regcache.cc (find_register_by_number): Update.
2051 * tdesc.cc (init_target_desc): Likewise.
2052 * tdesc.h (target_desc::reg_defs): Likewise.
2053
4635ff97
TT
20542020-03-12 Tom Tromey <tom@tromey.com>
2055
2056 * configure: Rebuild.
2057 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2058 (WIN32APILIBS): New subst.
2059 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2060 gdbsupport files.
2061 (gdbsupport/%.o): Remove target.
2062 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2063 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2064 (WIN32APILIBS): New variable.
2065 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2066 (gdbreplay$(EXEEXT)): Likewise.
2067
9a665d62
TT
20682020-03-12 Tom Tromey <tom@tromey.com>
2069
2070 * config.in, configure: Rebuild.
2071 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2072 * acinclude.m4: Include gettext-sister.m4.
2073 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2074 variables.
2075 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2076 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2077
272cd5a3
SM
20782020-03-12 Simon Marchi <simon.marchi@efficios.com>
2079
2080 * acinclude.m4: Update path to selftest.m4.
2081
db6878ac
SM
20822020-03-12 Simon Marchi <simon.marchi@efficios.com>
2083
2084 * configure.ac: Don't source bfd/development.sh, move
2085 GDB_AC_COMMON higher.
2086 * configure: Re-generate.
2087
4d696a5c
SM
20882020-03-12 Simon Marchi <simon.marchi@efficios.com>
2089
2090 * configure: Re-generate.
2091
a0761e34
SM
20922020-03-11 Simon Marchi <simon.marchi@efficios.com>
2093
2094 * configure: Re-generate.
2095
20ea4a60
AB
20962020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2097
2098 * .dir-locals.el: New file.
2099
842806cb
TBA
21002020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2101
2102 * .gitattributes: New file.
2103
442131c1
AB
21042020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2105
2106 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2107 reply into an S reply.
2108 * server.cc (disable_packet_T): New global.
2109 (captured_main): Set new global when appropriate.
2110 * server.h (disable_packet_T): Declare.
2111
dda42c0b
TT
21122020-02-21 Tom Tromey <tom@tromey.com>
2113
2114 * Makefile.in (mostlyclean): New target.
2115
52405d85
TBA
21162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2117
2118 * target.h (struct process_stratum_target): Remove.
2119 (class process_target): Rename to ...
2120 (class process_stratum_target): ... this.
2121 * linux-low.h (class linux_process_target): Derive from
2122 'process_stratum_target'.
2123 * linux-low.cc (linux_target_ops): Remove.
2124 (initialize_low): Set the_target to the singleton instance of
2125 linux_process_target.
2126 * lynx-low.h (class lynx_process_target): Derive from
2127 'process_stratum_target'.
2128 * lynx-low.cc (lynx_target_ops): Remove.
2129 (initialize_low): Set the_target to the singleton instance of
2130 lynx_process_target.
2131 * nto-low.h (class nto_process_target): Derive from
2132 'process_stratum_target'.
2133 * nto-low.cc (nto_target_ops): Remove.
2134 (initialize_low): Set the_target to the singleton instance of
2135 nto_process_target.
2136 * win32-low.h (class win32_process_target): Derive from
2137 'process_stratum_target'.
2138 * win32-low.cc (win32_target_ops): Remove.
2139 (initialize_low): Set the_target to the singleton instance of
2140 win32_process_target.
2141
2142 Replace 'the_target->pt' with 'the_target' in the uses below.
2143
2144 * hostio.cc (hostio_error)
2145 (handle_setfs)
2146 (handle_open)
2147 (handle_unlink)
2148 (handle_readlink)
2149 * linux-aarch32-low.cc (arm_breakpoint_at)
2150 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2151 * linux-arm-low.cc (arm_sigreturn_next_pc)
2152 (arm_get_hwcap)
2153 (arm_get_syscall_trapinfo)
2154 * linux-cris-low.cc (cris_breakpoint_at)
2155 * linux-crisv32-low.cc (cris_breakpoint_at)
2156 * linux-low.cc (handle_extended_wait)
2157 (linux_wait_1)
2158 (linux_read_memory)
2159 (linux_process_target::breakpoint_kind_from_pc)
2160 (linux_get_auxv)
2161 * linux-m32r-low.cc (m32r_breakpoint_at)
2162 * linux-mips-low.cc (mips_breakpoint_at)
2163 * linux-nios2-low.cc (nios2_breakpoint_at)
2164 * linux-ppc-low.cc (ppc_breakpoint_at)
2165 * linux-s390-low.cc (s390_get_hwcap)
2166 * linux-sh-low.cc (sh_breakpoint_at)
2167 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2168 (sparc_store_gregset_from_stack)
2169 (sparc_breakpoint_at)
2170 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2171 * linux-tile-low.cc (tile_breakpoint_at)
2172 * linux-x86-low.cc (x86_breakpoint_at)
2173 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2174 * mem-break.cc (bp_size)
2175 (bp_opcode)
2176 (insert_memory_breakpoint)
2177 (set_raw_breakpoint_at)
2178 (delete_raw_breakpoint)
2179 (z_type_supported)
2180 (uninsert_raw_breakpoint)
2181 (reinsert_raw_breakpoint)
2182 (validate_inserted_breakpoint)
2183 * regcache.cc (regcache_read_pc)
2184 (regcache_write_pc)
2185 * remote-utils.cc (putpkt_binary_1)
2186 (input_interrupt)
2187 (getpkt)
2188 (prepare_resume_reply)
2189 * server.cc (handle_general_set)
2190 (handle_detach)
2191 (handle_qxfer_auxv)
2192 (handle_qxfer_exec_file)
2193 (handle_qxfer_libraries_svr4)
2194 (handle_qxfer_osdata)
2195 (handle_qxfer_siginfo)
2196 (handle_qxfer_fdpic)
2197 (handle_query)
2198 (resume)
2199 (handle_v_requests)
2200 (queue_stop_reply_callback)
2201 (captured_main)
2202 * target.cc (prepare_to_access_memory)
2203 (done_accessing_memory)
2204 (read_inferior_memory)
2205 (target_write_memory)
2206 (target_stop_and_wait)
2207 (target_wait)
2208 (target_mourn_inferior)
2209 (target_continue_no_signal)
2210 (target_continue)
2211 (target_supports_multi_process)
2212 (kill_inferior)
2213 * target.h
2214 (target_create_inferior)
2215 (target_post_create_inferior)
2216 (myattach)
2217 (target_supports_fork_events)
2218 (target_supports_vfork_events)
2219 (target_supports_exec_events)
2220 (target_handle_new_gdb_connection)
2221 (detach_inferior)
2222 (mythread_alive)
2223 (fetch_inferior_registers)
2224 (store_inferior_registers)
2225 (join_inferior)
2226 (target_supports_non_stop)
2227 (target_async)
2228 (target_process_qsupported)
2229 (target_supports_catch_syscall)
2230 (target_get_ipa_tdesc_idx)
2231 (target_supports_tracepoints)
2232 (target_supports_fast_tracepoints)
2233 (target_get_min_fast_tracepoint_insn_len)
2234 (target_thread_stopped)
2235 (target_pause_all)
2236 (target_unpause_all)
2237 (target_stabilize_threads)
2238 (target_install_fast_tracepoint_jump_pad)
2239 (target_emit_ops)
2240 (target_supports_disable_randomization)
2241 (target_supports_agent)
2242 (target_enable_btrace)
2243 (target_disable_btrace)
2244 (target_read_btrace)
2245 (target_read_btrace_conf)
2246 (target_supports_range_stepping)
2247 (target_supports_stopped_by_sw_breakpoint)
2248 (target_stopped_by_sw_breakpoint)
2249 (target_supports_stopped_by_hw_breakpoint)
2250 (target_supports_hardware_single_step)
2251 (target_stopped_by_hw_breakpoint)
2252 (target_breakpoint_kind_from_pc)
2253 (target_breakpoint_kind_from_current_state)
2254 (target_supports_software_single_step)
2255 (target_core_of_thread)
2256 (target_thread_name)
2257 (target_thread_handle)
2258 * win32-low.cc (do_initial_child_stuff)
2259
2260 Rename target op default definitions listed below.
2261
2262 * target.cc (process_target::post_create_inferior): Rename as ...
2263 (process_stratum_target::post_create_inferior): ... this.
2264 (process_target::prepare_to_access_memory): Rename as ...
2265 (process_stratum_target::prepare_to_access_memory): ... this.
2266 (process_target::done_accessing_memory): Rename as ...
2267 (process_stratum_target::done_accessing_memory): ... this.
2268 (process_target::look_up_symbols): Rename as ...
2269 (process_stratum_target::look_up_symbols): ... this.
2270 (process_target::supports_read_auxv): Rename as ...
2271 (process_stratum_target::supports_read_auxv): ... this.
2272 (process_target::read_auxv): Rename as ...
2273 (process_stratum_target::read_auxv): ... this.
2274 (process_target::supports_z_point_type): Rename as ...
2275 (process_stratum_target::supports_z_point_type): ... this.
2276 (process_target::insert_point): Rename as ...
2277 (process_stratum_target::insert_point): ... this.
2278 (process_target::remove_point): Rename as ...
2279 (process_stratum_target::remove_point): ... this.
2280 (process_target::stopped_by_sw_breakpoint): Rename as ...
2281 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2282 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2283 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2284 (process_target::stopped_by_hw_breakpoint): Rename as ...
2285 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2286 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2287 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2288 (process_target::supports_hardware_single_step): Rename as ...
2289 (process_stratum_target::supports_hardware_single_step): ... this.
2290 (process_target::stopped_by_watchpoint): Rename as ...
2291 (process_stratum_target::stopped_by_watchpoint): ... this.
2292 (process_target::stopped_data_address): Rename as ...
2293 (process_stratum_target::stopped_data_address): ... this.
2294 (process_target::supports_read_offsets): Rename as ...
2295 (process_stratum_target::supports_read_offsets): ... this.
2296 (process_target::read_offsets): Rename as ...
2297 (process_stratum_target::read_offsets): ... this.
2298 (process_target::supports_get_tls_address): Rename as ...
2299 (process_stratum_target::supports_get_tls_address): ... this.
2300 (process_target::get_tls_address): Rename as ...
2301 (process_stratum_target::get_tls_address): ... this.
2302 (process_target::hostio_last_error): Rename as ...
2303 (process_stratum_target::hostio_last_error): ... this.
2304 (process_target::supports_qxfer_osdata): Rename as ...
2305 (process_stratum_target::supports_qxfer_osdata): ... this.
2306 (process_target::qxfer_osdata): Rename as ...
2307 (process_stratum_target::qxfer_osdata): ... this.
2308 (process_target::supports_qxfer_siginfo): Rename as ...
2309 (process_stratum_target::supports_qxfer_siginfo): ... this.
2310 (process_target::qxfer_siginfo): Rename as ...
2311 (process_stratum_target::qxfer_siginfo): ... this.
2312 (process_target::supports_non_stop): Rename as ...
2313 (process_stratum_target::supports_non_stop): ... this.
2314 (process_target::async): Rename as ...
2315 (process_stratum_target::async): ... this.
2316 (process_target::start_non_stop): Rename as ...
2317 (process_stratum_target::start_non_stop): ... this.
2318 (process_target::supports_multi_process): Rename as ...
2319 (process_stratum_target::supports_multi_process): ... this.
2320 (process_target::supports_fork_events): Rename as ...
2321 (process_stratum_target::supports_fork_events): ... this.
2322 (process_target::supports_vfork_events): Rename as ...
2323 (process_stratum_target::supports_vfork_events): ... this.
2324 (process_target::supports_exec_events): Rename as ...
2325 (process_stratum_target::supports_exec_events): ... this.
2326 (process_target::handle_new_gdb_connection): Rename as ...
2327 (process_stratum_target::handle_new_gdb_connection): ... this.
2328 (process_target::handle_monitor_command): Rename as ...
2329 (process_stratum_target::handle_monitor_command): ... this.
2330 (process_target::core_of_thread): Rename as ...
2331 (process_stratum_target::core_of_thread): ... this.
2332 (process_target::supports_read_loadmap): Rename as ...
2333 (process_stratum_target::supports_read_loadmap): ... this.
2334 (process_target::read_loadmap): Rename as ...
2335 (process_stratum_target::read_loadmap): ... this.
2336 (process_target::process_qsupported): Rename as ...
2337 (process_stratum_target::process_qsupported): ... this.
2338 (process_target::supports_tracepoints): Rename as ...
2339 (process_stratum_target::supports_tracepoints): ... this.
2340 (process_target::read_pc): Rename as ...
2341 (process_stratum_target::read_pc): ... this.
2342 (process_target::write_pc): Rename as ...
2343 (process_stratum_target::write_pc): ... this.
2344 (process_target::supports_thread_stopped): Rename as ...
2345 (process_stratum_target::supports_thread_stopped): ... this.
2346 (process_target::thread_stopped): Rename as ...
2347 (process_stratum_target::thread_stopped): ... this.
2348 (process_target::supports_get_tib_address): Rename as ...
2349 (process_stratum_target::supports_get_tib_address): ... this.
2350 (process_target::get_tib_address): Rename as ...
2351 (process_stratum_target::get_tib_address): ... this.
2352 (process_target::pause_all): Rename as ...
2353 (process_stratum_target::pause_all): ... this.
2354 (process_target::unpause_all): Rename as ...
2355 (process_stratum_target::unpause_all): ... this.
2356 (process_target::stabilize_threads): Rename as ...
2357 (process_stratum_target::stabilize_threads): ... this.
2358 (process_target::supports_fast_tracepoints): Rename as ...
2359 (process_stratum_target::supports_fast_tracepoints): ... this.
2360 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2361 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2362 (process_target::emit_ops): Rename as ...
2363 (process_stratum_target::emit_ops): ... this.
2364 (process_target::supports_disable_randomization): Rename as ...
2365 (process_stratum_target::supports_disable_randomization): ... this.
2366 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2367 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2368 (process_target::qxfer_libraries_svr4): Rename as ...
2369 (process_stratum_target::qxfer_libraries_svr4): ... this.
2370 (process_target::supports_agent): Rename as ...
2371 (process_stratum_target::supports_agent): ... this.
2372 (process_target::enable_btrace): Rename as ...
2373 (process_stratum_target::enable_btrace): ... this.
2374 (process_target::disable_btrace): Rename as ...
2375 (process_stratum_target::disable_btrace): ... this.
2376 (process_target::read_btrace): Rename as ...
2377 (process_stratum_target::read_btrace): ... this.
2378 (process_target::read_btrace_conf): Rename as ...
2379 (process_stratum_target::read_btrace_conf): ... this.
2380 (process_target::supports_range_stepping): Rename as ...
2381 (process_stratum_target::supports_range_stepping): ... this.
2382 (process_target::supports_pid_to_exec_file): Rename as ...
2383 (process_stratum_target::supports_pid_to_exec_file): ... this.
2384 (process_target::pid_to_exec_file): Rename as ...
2385 (process_stratum_target::pid_to_exec_file): ... this.
2386 (process_target::supports_multifs): Rename as ...
2387 (process_stratum_target::supports_multifs): ... this.
2388 (process_target::multifs_open): Rename as ...
2389 (process_stratum_target::multifs_open): ... this.
2390 (process_target::multifs_unlink): Rename as ...
2391 (process_stratum_target::multifs_unlink): ... this.
2392 (process_target::multifs_readlink): Rename as ...
2393 (process_stratum_target::multifs_readlink): ... this.
2394 (process_target::breakpoint_kind_from_pc): Rename as ...
2395 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2396 (process_target::breakpoint_kind_from_current_state): Rename as ...
2397 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2398 (process_target::thread_name): Rename as ...
2399 (process_stratum_target::thread_name): ... this.
2400 (process_target::thread_handle): Rename as ...
2401 (process_stratum_target::thread_handle): ... this.
2402 (process_target::supports_software_single_step): Rename as ...
2403 (process_stratum_target::supports_software_single_step): ... this.
2404 (process_target::supports_catch_syscall): Rename as ...
2405 (process_stratum_target::supports_catch_syscall): ... this.
2406 (process_target::get_ipa_tdesc_idx): Rename as ...
2407 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2408
478f9adf
PA
24092020-02-20 Pedro Alves <palves@redhat.com>
2410
2411 * target.cc (set_target_ops): Simply copy the given target pointer
2412 instead of creating a copy of the pointed object.
2413
d633e831
TBA
24142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2415
2416 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2417 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_get_ipa_tdesc_idx): Update the macro.
2422 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2423
2424 Update the derived classes and callers below.
2425
2426 * linux-low.cc (linux_target_ops): Update.
2427 (linux_get_ipa_tdesc_idx): Turn into ...
2428 (linux_process_target::get_ipa_tdesc_idx): ... 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
bc8d3ae4
TBA
24342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2435
2436 Turn process_stratum_target's supports_catch_syscall op into a
2437 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_catch_syscall): Update the macro.
2442 * target.cc (process_target::supports_catch_syscall): Define.
2443
2444 Update the derived classes and callers below.
2445
2446 * linux-low.cc (linux_target_ops): Update.
2447 (linux_supports_catch_syscall): Turn into ...
2448 (linux_process_target::supports_catch_syscall): ... 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
5303a34f
TBA
24542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2455
2456 Turn process_stratum_target's supports_software_single_step op
2457 into a method of process_target.
2458
2459 * target.h (struct process_stratum_target): Remove the target op.
2460 (class process_target): Add the target op.
2461 (target_supports_software_single_step): Update the macro.
2462 * target.cc (process_target::supports_software_single_step): Define.
2463
2464 Update the derived classes and callers below.
2465
2466 * linux-low.cc (linux_target_ops): Update.
2467 (linux_supports_software_single_step): Turn into ...
2468 (linux_process_target::supports_software_single_step): ... this.
2469 * linux-low.h (class linux_process_target): Update.
2470 * lynx-low.cc (lynx_target_ops): Update.
2471 * nto-low.cc (nto_target_ops): Update.
2472 * win32-low.cc (win32_target_ops): Update.
2473
7f63b89b
TBA
24742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2475
2476 Turn process_stratum_target's thread_name and thread_handle ops
2477 into methods of process_target.
2478
2479 * target.h (struct process_stratum_target): Remove the target ops.
2480 (class process_target): Add the target ops.
2481 (target_thread_name): Update the macro.
2482 (target_thread_handle): Update the macro.
2483 * target.cc (process_target::thread_name): Define.
2484 (process_target::thread_handle): Define.
2485
2486 Update the derived classes and callers below.
2487
2488 * linux-low.cc (linux_target_ops): Update.
2489 (linux_process_target::thread_name): Define.
2490 (linux_process_target::thread_handle): Define.
2491 * linux-low.h (class linux_process_target): Update.
2492 * lynx-low.cc (lynx_target_ops): Update.
2493 * nto-low.cc (nto_target_ops): Update.
2494 * win32-low.cc (win32_target_ops): Update.
2495
d367006f
TBA
24962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2497
2498 Turn process_stratum_target's breakpoint_kind_from_pc,
2499 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2500 ops into methods of process_target.
2501
2502 * target.h (struct process_stratum_target): Remove the target op.
2503 (class process_target): Add the target op.
2504 (target_breakpoint_kind_from_pc): Update the macro.
2505 (target_breakpoint_kind_from_current_state): Update the macro.
2506 (default_breakpoint_kind_from_pc): Remove declaration.
2507 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2508 (process_target::breakpoint_kind_from_pc): ... this.
2509 (process_target::breakpoint_kind_from_current_state): Define.
2510
2511 Update the derived classes and callers below.
2512
2513 * mem-break.cc (bp_size): Update.
2514 (bp_opcode): Update.
2515 * linux-low.cc (linux_target_ops): Update.
2516 (linux_wait_1): Update.
2517 (linux_breakpoint_kind_from_pc): Turn into ...
2518 (linux_process_target::breakpoint_kind_from_pc): ... this.
2519 (linux_sw_breakpoint_from_kind): Turn into ...
2520 (linux_process_target::sw_breakpoint_from_kind): ... this.
2521 (linux_breakpoint_kind_from_current_state): Turn into ...
2522 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2523 * linux-low.h (class linux_process_target): Update.
2524 * lynx-low.cc (lynx_target_ops): Update.
2525 (lynx_process_target::sw_breakpoint_from_kind): Define.
2526 * lynx-low.h (class lynx_process_target): Update.
2527 * nto-low.cc (nto_target_ops): Update.
2528 (nto_sw_breakpoint_from_kind): Turn into ...
2529 (nto_process_target::sw_breakpoint_from_kind): ... this.
2530 * nto-low.h (class nto_process_target): Update.
2531 * win32-low.cc (win32_target_ops): Update.
2532 (win32_sw_breakpoint_from_kind): Turn into ...
2533 (win32_process_target::sw_breakpoint_from_kind): ... this.
2534 * win32-low.h (class win32_process_target): Update.
2535
c9b7b804
TBA
25362020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2537
2538 Turn process_stratum_target's multifs_open, multifs_readlink,
2539 multifs_unlink ops into methods of process_target.
2540
2541 * target.h (struct process_stratum_target): Remove the target ops.
2542 (class process_target): Add the target ops. Also add
2543 'supports_multifs'.
2544 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2545 "sys/stat.h".
2546 (process_target::supports_multifs): Define.
2547 (process_target::multifs_open): Define.
2548 (process_target::multifs_readlink): Define.
2549 (process_target::multifs_unlink): Define.
2550
2551 Update the derived classes and callers below.
2552
2553 * hostio.cc (handle_setfs): Update.
2554 (handle_open): Update.
2555 (handle_unlink): Update.
2556 (handle_readlink): Update.
2557 * linux-low.cc (linux_target_ops): Update.
2558 (linux_process_target::supports_multifs): Define.
2559 (linux_process_target::multifs_open): Define.
2560 (linux_process_target::multifs_readlink): Define.
2561 (linux_process_target::multifs_unlink): Define.
2562 * linux-low.h (class linux_process_target): Update.
2563 * lynx-low.cc (lynx_target_ops): Update.
2564 * nto-low.cc (nto_target_ops): Update.
2565 * win32-low.cc (win32_target_ops): Update.
2566
8247b823
TBA
25672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2568
2569 Turn process_stratum_target's pid_to_exec_file op into a method
2570 of process_target.
2571
2572 * target.h (struct process_stratum_target): Remove the target op.
2573 (class process_target): Add the target op. Also add
2574 'supports_pid_to_exec_file'.
2575 * target.cc (process_target::pid_to_exec_file): Define.
2576 (process_target::supports_pid_to_exec_file): Define.
2577
2578 Update the derived classes and callers below.
2579
2580 * server.cc (handle_qxfer_exec_file): Update.
2581 (handle_query): Update.
2582 * linux-low.cc (linux_target_ops): Update.
2583 (linux_process_target::supports_pid_to_exec_file): Define.
2584 (linux_process_target::pid_to_exec_file): Define.
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
2526e0cd
TBA
25902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2591
2592 Turn process_stratum_target's supports_range_stepping op into a
2593 method of process_target.
2594
2595 * target.h (struct process_stratum_target): Remove the target op.
2596 (class process_target): Add the target op.
2597 (target_supports_range_stepping): Update the macro.
2598 * target.cc (process_target::supports_range_stepping): Define.
2599
2600 Update the derived classes and callers below.
2601
2602 * linux-low.cc (linux_target_ops): Update.
2603 (linux_supports_range_stepping): Turn into ...
2604 (linux_process_target::supports_range_stepping): ... this.
2605 * linux-low.h (class linux_process_target): Update.
2606 * lynx-low.cc (lynx_target_ops): Update.
2607 * nto-low.cc (nto_target_ops): Update.
2608 * win32-low.cc (win32_target_ops): Update.
2609
79597bdd
TBA
26102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2611
2612 Turn process_stratum_target's btrace-related ops (enable_btrace,
2613 disable_btrace, read_btrace, read_btrace_conf) into methods of
2614 process_target.
2615
2616 * target.h (struct process_stratum_target): Remove the target ops.
2617 (class process_target): Add the target ops.
2618 (target_enable_btrace): Update.
2619 (target_disable_btrace): Update.
2620 (target_read_btrace): Update.
2621 (target_read_btrace_conf): Update.
2622 * target.cc (process_target::enable_btrace): Define.
2623 (process_target::disable_btrace): Define.
2624 (process_target::read_btrace): Define.
2625 (process_target::read_btrace_conf): Define.
2626
2627 Update the derived classes and callers below.
2628
2629 * linux-low.cc (linux_target_ops): Update.
2630 (linux_process_target:enable_btrace): Define as a wrapper around
2631 linux_enable_btrace.
2632 (linux_low_disable_btrace): Turn into ...
2633 (linux_process_target::disable_btrace): ... this.
2634 (linux_low_read_btrace): Turn into ...
2635 (linux_process_target::read_btrace): ... this.
2636 (linux_low_btrace_conf): Turn into ...
2637 (linux_process_target::read_btrace_conf): ... 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
c0245cb9
TBA
26432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2644
2645 Turn process_stratum_target's supports_agent op into a method of
2646 process_target.
2647
2648 * target.h (struct process_stratum_target): Remove the target op.
2649 (class process_target): Add the target op.
2650 (target_supports_agent): Update the macro.
2651 * target.cc (process_target::supports_agent): Define.
2652
2653 Update the derived classes and callers below.
2654
2655 * linux-low.cc (linux_target_ops): Update.
2656 (linux_supports_agent): Turn into ...
2657 (linux_process_target::supports_agent): ... this.
2658 * linux-low.h (class linux_process_target): Update.
2659 * lynx-low.cc (lynx_target_ops): Update.
2660 * nto-low.cc (nto_target_ops): Update.
2661 * win32-low.cc (win32_target_ops): Update.
2662
974387bb
TBA
26632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2664
2665 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2666 method of process_target.
2667
2668 * target.h (struct process_stratum_target): Remove the target op.
2669 (class process_target): Add the target op. Also add
2670 'supports_qxfer_libraries_svr4'.
2671 * target.cc (process_target::qxfer_libraries_svr4): Define.
2672 (process_target::supports_qxfer_libraries_svr4): Define.
2673
2674 Update the derived classes and callers below.
2675
2676 * server.cc (handle_qxfer_libraries_svr4): Update.
2677 (handle_query): Update.
2678 * linux-low.cc (linux_target_ops): Update.
2679 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2680 (linux_qxfer_libraries_svr4): Turn into ...
2681 (linux_process_target::qxfer_libraries_svr4): ... 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
c756403b
TBA
26872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2688
2689 Turn process_stratum_target's supports_disable_randomization op
2690 into a method of process_target.
2691
2692 * target.h (struct process_stratum_target): Remove the target op.
2693 (class process_target): Add the target op.
2694 (target_supports_disable_randomization): Update the macro.
2695 * target.cc (process_target::supports_disable_randomization): Define.
2696
2697 Update the derived classes and callers below.
2698
2699 * linux-low.cc (linux_target_ops): Update.
2700 (linux_supports_disable_randomization): Turn into ...
2701 (linux_process_target::supports_disable_randomization): ... 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
345dafad
TBA
27072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2708
2709 Turn process_stratum_target's emit_ops op into a method of
2710 process_target.
2711
2712 * target.h (struct process_stratum_target): Remove the target op.
2713 (class process_target): Add the target op.
2714 (target_emit_ops): Update the macro.
2715 * target.cc (process_target::emit_ops): Define.
2716
2717 Update the derived classes and callers below.
2718
2719 * linux-low.cc (linux_target_ops): Update.
2720 (linux_emit_ops): Turn into ...
2721 (linux_process_target::emit_ops): ... this.
2722 * linux-low.h (class linux_process_target): Update.
2723 * lynx-low.cc (lynx_target_ops): Update.
2724 * nto-low.cc (nto_target_ops): Update.
2725 * win32-low.cc (win32_target_ops): Update.
2726
c23c9391
TBA
27272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2728
2729 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2730 and get_min_fast_tracepoint_insn_len ops into methods of
2731 process_target.
2732
2733 * target.h (struct process_stratum_target): Remove the target ops.
2734 (class process_target): Add the target ops. Also add
2735 'supports_fast_tracepoints'.
2736 (target_supports_fast_tracepoints): Update the macro.
2737 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2738 (install_fast_tracepoint_jump_pad): Update and rename the macro
2739 to ...
2740 (target_install_fast_tracepoint_jump_pad): ... this.
2741 * target.cc (process_target::supports_fast_tracepoints): Define.
2742 (process_target::install_fast_tracepoint_jump_pad): Define.
2743 (process_target::get_min_fast_tracepoint_insn_len): Define.
2744
2745 Update the derived classes and callers below.
2746
2747 * tracepoint.cc (install_fast_tracepoint): Update.
2748 * linux-low.cc (linux_target_ops): Update.
2749 (linux_process_target::supports_fast_tracepoints): Define.
2750 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2751 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2752 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2753 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2754 * linux-low.h (class linux_process_target): Update.
2755 * lynx-low.cc (lynx_target_ops): Update.
2756 * nto-low.cc (nto_target_ops): Update.
2757 * win32-low.cc (win32_target_ops): Update.
2758
5c9eb2f2
TBA
27592020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2760
2761 Turn process_stratum_target's stabilize_threads op into a
2762 method of process_target.
2763
2764 * target.h (struct process_stratum_target): Remove the target op.
2765 (class process_target): Add the target op.
2766 (target_stabilize_threads): Update the macro.
2767 * target.cc (process_target::stabilize_threads): Define.
2768
2769 Update the derived classes and callers below.
2770
2771 * server.cc (handle_status): Update.
2772 * tracepoint.cc (cmd_qtdp): Update.
2773 (cmd_qtstart): Update.
2774 * linux-low.cc (linux_target_ops): Update.
2775 (linux_stabilize_threads): Turn into ...
2776 (linux_process_target::stabilize_threads): ... this.
2777 (linux_wait_1): Update.
2778 * linux-low.h (class linux_process_target): Update.
2779 * lynx-low.cc (lynx_target_ops): Update.
2780 * nto-low.cc (nto_target_ops): Update.
2781 * win32-low.cc (win32_target_ops): Update.
2782
29e8dc09
TBA
27832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2784
2785 Turn process_stratum_target's pause_all and unpause_all ops
2786 into methods of process_target.
2787
2788 * target.h (struct process_stratum_target): Remove the target ops.
2789 (class process_target): Add the target ops.
2790 (pause_all): Update the macro and rename to...
2791 (target_pause_all): ... this.
2792 (unpause_all): Update the macro and rename to...
2793 (target_unpause_all): ... this.
2794 * target.cc (process_target::pause_all): Define.
2795 (process_target::unpause_all): Define.
2796
2797 Update the derived classes and callers below.
2798
2799 * server.cc (handle_status): Update.
2800 * tracepoint.cc (clear_installed_tracepoints): Update.
2801 (cmd_qtdp): Update.
2802 (cmd_qtstart): Update.
2803 (stop_tracing): Update.
2804 (cmd_qtstatus): Update.
2805 (upload_fast_traceframes): Update.
2806 (run_inferior_command): Update.
2807 * linux-low.cc (linux_target_ops): Update.
2808 (linux_pause_all): Turn into ...
2809 (linux_process_target::pause_all): ... this.
2810 (linux_unpause_all): Turn into ...
2811 (linux_process_target::unpause_all): ... this.
2812 (linux_process_target::prepare_to_access_memory): Update.
2813 (linux_process_target::done_accessing_memory): Update.
2814 * linux-low.h (class linux_process_target): Update.
2815 * lynx-low.cc (lynx_target_ops): Update.
2816 * nto-low.cc (nto_target_ops): Update.
2817 * win32-low.cc (win32_target_ops): Update.
2818
4e2e869c
TBA
28192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2820
2821 Turn process_stratum_target's get_tib_address op into a method of
2822 process_target.
2823
2824 * target.h (struct process_stratum_target): Remove the target op.
2825 (class process_target): Add the target op. Also add
2826 'supports_get_tib_address'.
2827 * target.cc (process_target::get_tib_address): Define.
2828 (process_target::supports_get_tib_address): Define.
2829
2830 Update the derived classes and callers below.
2831
2832 * server.cc (handle_query): Update.
2833 * linux-low.cc (win32_target_ops): Update.
2834 * lynx-low.cc (lynx_target_ops): Update.
2835 * nto-low.cc (nto_target_ops): Update.
2836 * win32-low.cc (win32_target_ops): Update.
2837 (win32_process_target::supports_get_tib_address): Define.
2838 (win32_get_tib_address): Turn into ...
2839 (win32_process_target::get_tib_address): ... this.
2840 * win32-low.h (class win32_process_target): Update.
2841
68119632
TBA
28422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2843
2844 Turn process_stratum_target's thread_stopped op into a method of
2845 process_target.
2846
2847 * target.h (struct process_stratum_target): Remove the target op.
2848 (class process_target): Add the target op. Also add
2849 'supports_thread_stopped'.
2850 (target_thread_stopped): Update the macro.
2851 * target.cc (process_target::thread_stopped): Define.
2852 (process_target::supports_thread_stopped): Define.
2853 (prepare_to_access_memory): Update.
2854
2855 Update the derived classes and callers below.
2856
2857 * server.cc (queue_stop_reply_callback): Update.
2858 * linux-low.cc (linux_target_ops): Update.
2859 (linux_process_target::supports_thread_stopped): Define.
2860 (linux_thread_stopped): Turn into ...
2861 (linux_process_target::thread_stopped): ... this.
2862 * linux-low.h (class linux_process_target): Update.
2863 * lynx-low.cc (lynx_target_ops): Update.
2864 * nto-low.cc (nto_target_ops): Update.
2865 * win32-low.cc (win32_target_ops): Update.
2866
770d8f6a
TBA
28672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2868
2869 Turn process_stratum_target's read_pc and write_pc ops into
2870 methods of process_target.
2871
2872 * target.h (struct process_stratum_target): Remove the target ops.
2873 (class process_target): Add the target ops.
2874 * target.cc (process_target::read_pc): Define.
2875 (process_target::write_pc): Define.
2876
2877 Update the derived classes and callers below.
2878
2879 * regcache.cc (regcache_read_pc): Update.
2880 (regcache_write_pc): Update.
2881 * linux-low.cc (linux_target_ops): Update.
2882 (linux_read_pc): Turn into ...
2883 (linux_process_target::read_pc): ... this.
2884 (linux_write_pc): Turn into ...
2885 (linux_process_target::write_pc): ... 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
290732bf
TBA
28912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2892
2893 Turn process_stratum_target's supports_tracepoints op into a
2894 method 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_supports_tracepoints): Update the macro.
2899 * target.cc (process_target::supports_tracepoints): Define.
2900
2901 Update the derived classes and callers below.
2902
2903 * linux-low.cc (linux_target_ops): Update.
2904 (linux_supports_tracepoints): Turn into ...
2905 (linux_process_target::supports_tracepoints): ... 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
0df28b1b
TBA
29112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2912
2913 Turn process_stratum_target's process_qsupported op into a method
2914 of process_target.
2915
2916 * target.h (struct process_stratum_target): Remove the target op.
2917 (class process_target): Add the target op.
2918 (target_process_qsupported): Update the macro.
2919 * target.cc (process_target::process_qsupported): Define.
2920
2921 Update the derived classes and callers below.
2922
2923 * linux-low.cc (linux_target_ops): Update.
2924 (linux_process_qsupported): Turn into ...
2925 (linux_process_target::process_qsupported): ... this.
2926 * linux-low.h (class linux_process_target): Update.
2927 * lynx-low.cc (lynx_target_ops): Update.
2928 * nto-low.cc (nto_target_ops): Update.
2929 * win32-low.cc (win32_target_ops): Update.
2930
9da41fda
TBA
29312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2932
2933 Turn process_stratum_target's read_loadmap op into a method of
2934 process_target.
2935
2936 * target.h (struct process_stratum_target): Remove the target op.
2937 (class process_target): Add the target op. Also add
2938 'supports_read_loadmap'.
2939 * target.cc (process_target::read_loadmap): Define.
2940 (process_target::supports_read_loadmap): Define.
2941
2942 Update the derived classes and callers below.
2943
2944 * server.cc (handle_qxfer_fdpic): Update.
2945 (handle_query): Update.
2946 * linux-low.cc (linux_target_ops): Update.
2947 (linux_process_target::supports_read_loadmap): Define.
2948 (linux_read_loadmap): Turn into ...
2949 (linux_process_target::read_loadmap): ... this.
2950 * linux-low.h (class linux_process_target): Update.
2951 * lynx-low.cc (lynx_target_ops): Update.
2952 * nto-low.cc (nto_target_ops): Update.
2953 * win32-low.cc (win32_target_ops): Update.
2954
95a45fc1
TBA
29552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2956
2957 Turn process_stratum_target's core_of_thread op into a method of
2958 process_target.
2959
2960 * target.h (struct process_stratum_target): Remove the target op.
2961 (class process_target): Add the target op.
2962 (target_core_of_thread): Update the macro.
2963 * target.cc (process_target::core_of_thread): Define.
2964
2965 Update the derived classes and callers below.
2966
2967 * linux-low.cc (linux_target_ops): Update.
2968 (linux_process_target::core_of_thread): 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
55cf3021
TBA
29742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2975
2976 Turn process_stratum_target's handle_monitor_command 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_monitor_command): Update the macro.
2982 * target.cc (process_target::handle_monitor_command): Define.
2983
2984 Update the derived classes and callers below.
2985
2986 * server.cc (handle_query): Update.
2987 * linux-low.cc (linux_target_ops): Update.
2988 (linux_process_target::handle_monitor_command): Define.
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
fb00dfce
TBA
29942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2995
2996 Turn process_stratum_target's handle_new_gdb_connection op into a
2997 method of process_target.
2998
2999 * target.h (struct process_stratum_target): Remove the target op.
3000 (class process_target): Add the target op.
3001 (target_handle_new_gdb_connection): Update the macro.
3002 * target.cc (process_target::handle_new_gdb_connection): Define.
3003
3004 Update the derived classes and callers below.
3005
3006 * linux-low.cc (linux_target_ops): Update.
3007 (linux_handle_new_gdb_connection): Turn into ...
3008 (linux_process_target::handle_new_gdb_connection): ... this.
3009 * linux-low.h (class linux_process_target): Update.
3010 * lynx-low.cc (lynx_target_ops): Update.
3011 * nto-low.cc (nto_target_ops): Update.
3012 * win32-low.cc (win32_target_ops): Update.
3013
9690a72a
TBA
30142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3015
3016 Turn process_stratum_target's supports_fork_events,
3017 supports_vfork_events, and supports_exec_events ops into methods
3018 of process_target.
3019
3020 * target.h (struct process_stratum_target): Remove the target ops.
3021 (class process_target): Add the target ops.
3022 (target_supports_fork_events): Update the macro.
3023 (target_supports_vfork_events): Update the macro.
3024 (target_supports_exec_events): Update the macro.
3025 * target.cc (process_target::supports_fork_events): Define.
3026 (process_target::supports_vfork_events): Define.
3027 (process_target::supports_exec_events): Define.
3028
3029 Update the derived classes and callers below.
3030
3031 * linux-low.cc (linux_target_ops): Update.
3032 (linux_supports_fork_events): Turn into ...
3033 (linux_process_target::supports_fork_events): ... this.
3034 (linux_supports_vfork_events): Turn into ...
3035 (linux_process_target::supports_vfork_events): ... this.
3036 (linux_supports_exec_events): Turn into ...
3037 (linux_process_target::supports_exec_events): ... 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
652aef77
TBA
30432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3044
3045 Turn process_stratum_target's supports_multi_process op into a
3046 method of process_target.
3047
3048 * target.h (struct process_stratum_target): Remove the target op.
3049 (class process_target): Add the target op.
3050 * target.cc (process_target::supports_multi_process): Define.
3051 (target_supports_multi_process): Update.
3052
3053 Update the derived classes and callers below.
3054
3055 * linux-low.cc (linux_target_ops): Update.
3056 (linux_supports_multi_process): Turn into ...
3057 (linux_process_target::supports_multi_process): ... this.
3058 * linux-low.h (class linux_process_target): Update.
3059 * lynx-low.cc (lynx_target_ops): Update.
3060 * nto-low.cc (nto_target_ops): Update.
3061 * win32-low.cc (win32_target_ops): Update.
3062
0dc587d4
TBA
30632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3064
3065 Turn process_stratum_target's supports_non_stop, async, and
3066 start_non_stop ops into methods of process_target.
3067
3068 * target.h (struct process_stratum_target): Remove the target ops.
3069 (class process_target): Add the target ops.
3070 (target_supports_non_stop): Update the macro.
3071 (target_async): Update the macro.
3072 (start_non_stop): Remove declaration.
3073 * target.cc (process_target::supports_non_stop): Define.
3074 (process_target::async): Define.
3075 (process_target::start_non_stop): Define.
3076 (start_non_stop): Remove.
3077
3078 Update the derived classes and callers below.
3079
3080 * server.cc (handle_qxfer_siginfo): Update.
3081 (handle_query): Update.
3082 * linux-low.cc (linux_target_ops): Update.
3083 (linux_supports_non_stop): Turn into ...
3084 (linux_process_target::supports_non_stop): ... this.
3085 (linux_async): Turn into ...
3086 (linux_process_target::async): ... this.
3087 (linux_start_non_stop): Turn into ...
3088 (linux_process_target::start_non_stop): ... this.
3089 * linux-low.h (class linux_process_target): Update.
3090 * lynx-low.cc (lynx_target_ops): Update.
3091 * nto-low.cc (nto_target_ops): Update.
3092 (nto_supports_non_stop): Remove; rely on the default behavior
3093 instead.
3094 * win32-low.cc (win32_target_ops): Update.
3095
d7abedf7
TBA
30962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3097
3098 Turn process_stratum_target's qxfer_siginfo op into a method of
3099 process_target.
3100
3101 * target.h (struct process_stratum_target): Remove the target op.
3102 (class process_target): Add the target op. Also add
3103 'supports_qxfer_siginfo'.
3104 * target.cc (process_target::qxfer_siginfo): Define.
3105 (process_target::supports_qxfer_siginfo): Define.
3106
3107 Update the derived classes and callers below.
3108
3109 * server.cc (handle_qxfer_siginfo): Update.
3110 (handle_query): Update.
3111 * linux-low.cc (linux_target_ops): Update.
3112 (linux_process_target::supports_qxfer_siginfo): Define.
3113 (linux_xfer_siginfo): Turn into ...
3114 (linux_process_target::qxfer_siginfo): ... this.
3115 * linux-low.h (class linux_process_target): Update.
3116 * lynx-low.cc (lynx_target_ops): Update.
3117 * nto-low.cc (nto_target_ops): Update.
3118 * win32-low.cc (win32_target_ops): Update.
3119
2d0795ee
TBA
31202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3121
3122 Turn process_stratum_target's qxfer_osdata op into a method of
3123 process_target.
3124
3125 * target.h (struct process_stratum_target): Remove the target op.
3126 (class process_target): Add the target op. Also add
3127 'supports_qxfer_osdata'.
3128 * target.cc (process_target::qxfer_osdata): Define.
3129 (process_target::supports_qxfer_osdata): Define.
3130
3131 Update the derived classes and callers below.
3132
3133 * server.cc (handle_qxfer_osdata): Update.
3134 (handle_query): Update.
3135 * linux-low.cc (linux_target_ops): Update.
3136 (linux_process_target::supports_qxfer_osdata): Define.
3137 (linux_qxfer_osdata): Turn into ...
3138 (linux_process_target::qxfer_osdata): ... this.
3139 * linux-low.h (class linux_process_target): Update.
3140 * lynx-low.cc (lynx_target_ops): Update.
3141 * nto-low.cc (nto_target_ops): Update.
3142 * win32-low.cc (win32_target_ops): Update.
3143
ea06bbaa
TBA
31442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3145
3146 Turn process_stratum_target's hostio_last_error op into a
3147 method of process_target.
3148
3149 * target.h (struct process_stratum_target): Remove the target op.
3150 (class process_target): Add the target op.
3151 * target.cc: Add "hostio.h" to includes.
3152 (process_target::hostio_last_error): Define.
3153
3154 Update the derived classes and callers below.
3155
3156 * hostio.cc (hostio_error): Update.
3157 * linux-low.cc: Remove "hostio.h" from includes.
3158 (linux_target_ops): Update.
3159 * lynx-low.cc (lynx_target_ops): Update.
3160 * nto-low.cc (nto_target_ops): Update.
3161 * win32-low.h (class win32_process_target): Update.
3162 * win32-low.cc (win32_target_ops): Update.
3163 (wince_hostio_last_error): Turn into ...
3164 (win32_process_target::hostio_last_error): ... this.
3165
6e3fd7e9
TBA
31662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3167
3168 Turn process_stratum_target's get_tls_address op into a method of
3169 process_target.
3170
3171 * target.h (struct process_stratum_target): Remove the target op.
3172 (class process_target): Add the target op. Also add
3173 'supports_get_tls_address'.
3174 * target.cc (process_target::get_tls_address): Define.
3175 (process_target::supports_get_tls_address): Define.
3176
3177 Update the derived classes and callers below.
3178
3179 * server.cc (handle_query): Update.
3180 * linux-low.cc (linux_target_ops): Update.
3181 (linux_process_target::supports_get_tls_address): Define.
3182 (linux_process_target::get_tls_address): Define.
3183 * linux-low.h (class linux_process_target): Update.
3184 * lynx-low.cc (lynx_target_ops): Update.
3185 * nto-low.cc (nto_target_ops): Update.
3186 * win32-low.cc (win32_target_ops): Update.
3187
5203ae1e
TBA
31882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3189
3190 Turn process_stratum_target's read_offsets op into a method of
3191 process_target.
3192
3193 * target.h (struct process_stratum_target): Remove the target op.
3194 (class process_target): Add the target op. Also add
3195 'supports_read_offsets'.
3196 * target.cc (process_target::read_offsets): Define.
3197 (process_target::supports_read_offsets): Define.
3198
3199 Update the derived classes and callers below.
3200
3201 * server.cc (handle_query): Update.
3202 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3203 (linux_target_ops): Update.
3204 (linux_process_target::supports_read_offsets): Define.
3205 (linux_read_offsets): Turn into ...
3206 (linux_process_target::read_offsets): ... this.
3207 * linux-low.h (class linux_process_target): Update.
3208 * lynx-low.cc (lynx_target_ops): Update.
3209 * nto-low.cc (nto_target_ops): Update.
3210 * win32-low.cc (win32_target_ops): Update.
3211
6eeb5c55
TBA
32122020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3213
3214 Turn process_stratum_target's stopped_by_watchpoint and
3215 stopped_data_address ops into methods of process_target.
3216
3217 * target.h (struct process_stratum_target): Remove the target ops.
3218 (class process_target): Add the target ops.
3219 * target.cc (process_target::stopped_by_watchpoint): Define.
3220 (process_target::stopped_data_address): Define.
3221
3222 Update the derived classes and callers below.
3223
3224 * remote-utils.cc (prepare_resume_reply): Update.
3225 * linux-low.cc (linux_target_ops): Update.
3226 (linux_stopped_by_watchpoint): Turn into ...
3227 (linux_process_target::stopped_by_watchpoint): ... this.
3228 (linux_stopped_data_address): Turn into ...
3229 (linux_process_target::stopped_data_address): ... this.
3230 * linux-low.h (class linux_process_target): Update.
3231 * lynx-low.cc (lynx_target_ops): Update.
3232 * nto-low.cc (nto_target_ops): Update.
3233 (nto_stopped_by_watchpoint): Turn into ...
3234 (nto_process_target::stopped_by_watchpoint): ... this.
3235 (nto_stopped_data_address): Turn into ...
3236 (nto_process_target::stopped_data_address): ... this.
3237 * nto-low.h (class nto_process_target): Update.
3238 * win32-low.cc (win32_target_ops): Update.
3239 (win32_stopped_by_watchpoint): Turn into ...
3240 (win32_process_target::stopped_by_watchpoint): ... this.
3241 (win32_stopped_data_address): Turn into ...
3242 (win32_process_target::stopped_data_address): ... this.
3243 * win32-low.h (class win32_process_target): Update.
3244
22aa6223
TBA
32452020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3246
3247 Turn process_stratum_target's supports_hardware_single_step op into
3248 a method of process_target.
3249
3250 * target.h (struct process_stratum_target): Remove the target op.
3251 (class process_target): Add the target op.
3252 (target_supports_hardware_single_step): Update the macro.
3253 (target_can_do_hardware_single_step): Remove declaration.
3254 * target.cc (process_target::supports_hardware_single_step): Define.
3255 (target_can_do_hardware_single_step): Remove.
3256
3257 Update the derived classes and callers below.
3258
3259 * linux-low.h (class linux_process_target): Update.
3260 * linux-low.cc (linux_target_ops): Update.
3261 (linux_supports_hardware_single_step): Turn into ...
3262 (linux_process_target::supports_hardware_single_step): ... this.
3263 * lynx-low.h (class lynx_process_target): Update.
3264 * lynx-low.cc (lynx_target_ops): Update.
3265 (lynx_process_target::supports_hardware_single_step): Define.
3266 * nto-low.h (class nto_process_target): Update.
3267 * nto-low.cc (nto_target_ops): Update.
3268 (nto_process_target::supports_hardware_single_step): Define.
3269 * win32-low.h (class win32_process_target): Update.
3270 * win32-low.cc (win32_target_ops): Update.
3271 (win32_process_target::supports_hardware_single_step): Define.
3272
93fe88b2
TBA
32732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3274
3275 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3276 ops into methods of process_target.
3277
3278 * target.h (struct process_stratum_target): Remove the target ops.
3279 (class process_target): Add the target ops.
3280 (target_stopped_by_hw_breakpoint): Update the macro.
3281 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3282 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3283 (process_target::supports_stopped_by_hw_breakpoint): Define.
3284
3285 Update the derived classes and callers below.
3286
3287 * linux-low.cc (linux_target_ops): Update.
3288 (linux_stopped_by_hw_breakpoint): Turn into ...
3289 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3290 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3291 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3292 * linux-low.h (class linux_process_target): Update.
3293 * lynx-low.cc (lynx_target_ops): Update.
3294 * nto-low.cc (nto_target_ops): Update.
3295 * win32-low.cc (win32_target_ops): Update.
3296
84320c4e
TBA
32972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3298
3299 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3300 ops into methods of process_target.
3301
3302 * target.h (struct process_stratum_target): Remove the target ops.
3303 (class process_target): Add the target ops.
3304 (target_stopped_by_sw_breakpoint): Update the macro.
3305 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3306 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3307 (process_target::supports_stopped_by_sw_breakpoint): Define.
3308
3309 Update the derived classes and callers below.
3310
3311 * linux-low.cc (linux_target_ops): Update.
3312 (linux_stopped_by_sw_breakpoint): Turn into ...
3313 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3314 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3315 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3316 * linux-low.h (class linux_process_target): Update.
3317 * lynx-low.cc (lynx_target_ops): Update.
3318 * nto-low.cc (nto_target_ops): Update.
3319 * win32-low.cc (win32_target_ops): Update.
3320
7e0bde70
TBA
33212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3322
3323 Turn process_stratum_target's insert_point and remove_point ops
3324 into methods of process_target.
3325
3326 * target.h (struct process_stratum_target): Remove the target ops.
3327 (class process_target): Add the target ops.
3328 * target.cc (process_target::insert_point): Define.
3329 (process_target::remove_point): Define.
3330
3331 Update the derived classes and callers below.
3332
3333 * mem-break.cc (set_raw_breakpoint_at): Update.
3334 (delete_raw_breakpoint): Update.
3335 (uninsert_raw_breakpoint): Update.
3336 (reinsert_raw_breakpoint): Update.
3337 * linux-low.cc (linux_target_ops): Update.
3338 (linux_insert_point): Turn into ...
3339 (linux_process_target::insert_point): ... this.
3340 (linux_remove_point): Turn into ...
3341 (linux_process_target::remove_point): ... this.
3342 * linux-low.h (class linux_process_target): Update.
3343 * lynx-low.cc (lynx_target_ops): Update.
3344 * nto-low.cc (nto_target_ops): Update.
3345 (nto_insert_point): Turn into ...
3346 (nto_process_target::insert_point): ... this.
3347 (nto_remove_point): Turn into ...
3348 (nto_process_target::remove_point): ... this.
3349 * nto-low.h (class nto_process_target): Update.
3350 * win32-low.cc (win32_target_ops): Update.
3351 (win32_insert_point): Turn into ...
3352 (win32_process_target::insert_point): ... this.
3353 (win32_remove_point): Turn into ...
3354 (win32_process_target::remove_point): ... this.
3355 * win32-low.h (class win32_process_target): Update.
3356
a2b2297a
TBA
33572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3358
3359 Turn process_stratum_target's supports_z_point_type op into a
3360 method of process_target.
3361
3362 * target.h (struct process_stratum_target): Remove the target op.
3363 (class process_target): Add the target op.
3364 * target.cc (process_target::supports_z_point_type): Define.
3365
3366 Update the derived classes and callers below.
3367
3368 * mem-break.cc (z_type_supported): Update.
3369 * linux-low.cc (linux_target_ops): Update.
3370 (linux_supports_z_point_type): Turn into ...
3371 (linux_process_target::supports_z_point_type): ... this.
3372 * linux-low.h (class linux_process_target): Update.
3373 * lynx-low.cc (lynx_target_ops): Update.
3374 * nto-low.cc (nto_target_ops): Update.
3375 (nto_supports_z_point_type): Turn into ...
3376 (nto_process_target::supports_z_point_type): ... this.
3377 * nto-low.h (class nto_process_target): Update.
3378 * win32-low.cc (win32_target_ops): Update.
3379 (win32_supports_z_point_type): Turn into ...
3380 (win32_process_target::supports_z_point_type): ... this.
3381 * win32-low.h (class win32_process_target): Update.
3382
eac215cc
TBA
33832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3384
3385 Turn process_stratum_target's read_auxv op into a method of
3386 process_target.
3387
3388 * target.h (class process_stratum_target): Remove the target op.
3389 (struct process_target): Add the target op. Also add
3390 'supports_read_auxv'.
3391 * target.cc (process_target::read_auxv): Define.
3392 (process_target::supports_read_auxv): Define.
3393
3394 Update the derived classes and callers below.
3395
3396 * server.cc (handle_qxfer_auxv): Update.
3397 (handle_query): Update.
3398 * linux-low.cc (linux_target_ops): Update.
3399 (linux_process_target::supports_read_auxv): Define.
3400 (linux_read_auxv): Turn into ...
3401 (linux_process_target::read_auxv): ... this.
3402 * linux-low.h (class linux_process_target): Update.
3403 * lynx-low.cc (lynx_target_ops): Update.
3404 * nto-low.cc (nto_target_ops): Update.
3405 (nto_process_target::supports_read_auxv): Define.
3406 (nto_read_auxv): Turn into ...
3407 (nto_process_target::read_auxv): ... this.
3408 * nto-low.h (class nto_process_target): Update.
3409 * win32-low.cc (win32_target_ops): Update.
3410
eb497a2a
TBA
34112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3412
3413 Turn process_stratum_target's request_interrupt op into a method of
3414 process_target.
3415
3416 * target.h (struct process_stratum_target): Remove the target op.
3417 (class process_target): Add the target op.
3418
3419 Update the derived classes and callers below.
3420
3421 * remote-utils.cc (putpkt_binary_1): Update.
3422 (input_interrupt): Update.
3423 (getpkt): Update.
3424 * server.cc (handle_v_requests): Update.
3425 * linux-low.cc (linux_target_ops): Update.
3426 (linux_request_interrupt): Turn into ...
3427 (linux_process_target::request_interrupt): ... this.
3428 * linux-low.h (class linux_process_target): Update.
3429 * lynx-low.cc (lynx_target_ops): Update.
3430 (lynx_request_interrupt): Turn into ...
3431 (lynx_process_target::request_interrupt): ... this.
3432 * lynx-low.h (class lynx_process_target): Update.
3433 * nto-low.cc (nto_target_ops): Update.
3434 (nto_request_interrupt): Turn into ...
3435 (nto_process_target::request_interrupt): ... this.
3436 * nto-low.h (class nto_process_target): Update.
3437 * win32-low.cc (win32_target_ops): Update.
3438 (win32_request_interrupt): Turn into ...
3439 (win32_process_target::request_interrupt): ... this.
3440 * win32-low.h (class win32_process_target): Update.
3441
2a31c7aa
TBA
34422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3443
3444 Turn process_stratum_target's look_up_symbols op into a method of
3445 process_target.
3446
3447 * target.h (struct process_stratum_target): Remove the target op.
3448 (class process_target): Add the target op.
3449 * target.cc (process_target::look_up_symbols): Define.
3450
3451 Update the derived classes and callers below.
3452
3453 * server.cc (handle_query): Update.
3454 * linux-low.cc (linux_target_ops): Update.
3455 (linux_look_up_symbols): Turn into ...
3456 (linux_process_target::look_up_symbols): ... this.
3457 * linux-low.h (class linux_process_target): Update.
3458 * lynx-low.cc (lynx_target_ops): Update.
3459 * nto-low.cc (nto_target_ops): Update.
3460 * win32-low.cc (win32_target_ops): Update.
3461
e2558df3
TBA
34622020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3463
3464 Turn process_stratum_target's read_memory and write_memory
3465 ops into methods of process_target.
3466
3467 * target.h (struct process_stratum_target): Remove the target ops.
3468 (class process_target): Add the target ops.
3469
3470 Update the derived classes and callers below.
3471
3472 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3473 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3474 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3475 (arm_get_syscall_trapinfo): Update.
3476 * linux-cris-low.cc (cris_breakpoint_at): Update.
3477 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3478 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3479 * linux-mips-low.cc (mips_breakpoint_at): Update.
3480 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3481 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3482 * linux-sh-low.cc (sh_breakpoint_at): Update.
3483 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3484 (sparc_store_gregset_from_stack): Update.
3485 (sparc_breakpoint_at): Update.
3486 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3487 * linux-tile-low.cc (tile_breakpoint_at): Update.
3488 * linux-x86-low.cc (x86_breakpoint_at): Update.
3489 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3490 * mem-brea.cc (insert_memory_breakpoint): Update.
3491 (validate_inserted_breakpoint): Update.
3492 * target.cc (read_inferior_memory): Update.
3493 (target_write_memory): Update.
3494 * linux-low.cc (linux_target_ops): Update.
3495 (linux_read_memory): Make a wrapper around the read_memory target
3496 op call.
3497 (linux_process_target::read_memory): Rename from linux_read_memory.
3498 (linux_write_memory): Turn into ...
3499 (linux_process_target::write_memory): ... this.
3500 * linux-low.h (class linux_process_target): Update.
3501 * lynx-low.cc (lynx_target_ops): Update.
3502 (lynx_read_memory): Turn into ...
3503 (lynx_process_target::read_memory): ... this.
3504 (lynx_write_memory): Turn into ...
3505 (lynx_process_target::write_memory): ... this.
3506 * lynx-low.h (class lynx_process_target): Update.
3507 * nto-low.cc (nto_target_ops): Update.
3508 (nto_read_memory): Turn into ...
3509 (nto_process_target::read_memory): ... this.
3510 (nto_write_memory): Turn into ...
3511 (nto_process_target::write_memory): ... this.
3512 * nto-low.h (class nto_process_target): Update.
3513 * win32-low.cc (win32_target_ops): Update.
3514 (win32_read_inferior_memory): Turn into ...
3515 (win32_process_target::read_memory): ... this.
3516 (win32_write_inferior_memory): Turn into ...
3517 (win32_process_target::write_memory): ... this.
3518 * win32-low.h (class win32_process_target): Update.
3519
79b44087
TBA
35202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3521
3522 Turn process_stratum_target's prepare_to_access_memory and
3523 done_accessing_memory ops into methods of process_target.
3524
3525 * target.h (struct process_stratum_target): Remove the target ops.
3526 (class process_target): Add the target ops.
3527 * target.cc (process_target::prepare_to_access_memory): Define.
3528 (process_target::done_accessing_memory): Define.
3529 (prepare_to_access_memory): Update.
3530 (done_accessing_memory): Update.
3531
3532 Update the derived classes and callers below.
3533
3534 * linux-low.cc (linux_target_ops): Update.
3535 (linux_prepare_to_access_memory): Turn into ...
3536 (linux_process_target::prepare_to_access_memory): ... this.
3537 (linux_done_accessing_memory): Turn into ...
3538 (linux_process_target::done_accessing_memory): ... this.
3539 * linux-low.h (class linux_process_target): Update.
3540 * lynx-low.cc (lynx_target_ops): Update.
3541 * nto-low.cc (nto_target_ops): Update.
3542 * win32-low.cc (win32_target_ops): Update.
3543
a5a4d4cd
TBA
35442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3545
3546 Turn process_stratum_target's fetch_registers and store_registers
3547 ops into methods of process_target.
3548
3549 * target.h (struct process_stratum_target): Remove the target ops.
3550 (class process_target): Add the target ops.
3551 (fetch_inferior_registers): Update the macro.
3552 (store_inferior_registers): Update the macro.
3553
3554 Update the derived classes and callers below.
3555
3556 * linux-low.cc (linux_target_ops): Update.
3557 (linux_fetch_registers): Turn into ...
3558 (linux_process_target::fetch_registers): ... this.
3559 (linux_store_registers): Turn into ...
3560 (linux_process_target::store_registers): ... this.
3561 * linux-low.h (class linux_process_target): Update.
3562 * lynx-low.cc (lynx_target_ops): Update.
3563 (lynx_fetch_registers): Turn into ...
3564 (lynx_process_target::fetch_registers): ... this.
3565 (lynx_store_registers): Turn into ...
3566 (lynx_process_target::store_registers): ... this.
3567 * lynx-low.h (class lynx_process_target): Update.
3568 * nto-low.cc (nto_target_ops): Update.
3569 (nto_fetch_registers): Turn into ...
3570 (nto_process_target::fetch_registers): ... this.
3571 (nto_store_registers): Turn into ...
3572 (nto_process_target::store_registers): ... this.
3573 * nto-low.h (class nto_process_target): Update.
3574 * win32-low.cc (win32_target_ops): Update.
3575 (win32_fetch_inferior_registers): Turn into ...
3576 (win32_process_target::fetch_registers): ... this.
3577 (win32_store_inferior_registers): Turn into ...
3578 (win32_process_target::store_registers): ... this.
3579 * win32-low.h (class win32_process_target): Update.
3580
6532e7e3
TBA
35812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3582
3583 Turn process_stratum_target's wait op into a method of
3584 process_target.
3585
3586 * target.h (struct process_stratum_target): Remove the target op.
3587 (class process_target): Add the target op.
3588
3589 Update the derived classes and callers below.
3590
3591 * target.cc (target_wait): Update.
3592 * linux-low.cc (linux_target_ops): Update.
3593 (linux_wait): Turn into ...
3594 (linux_process_target::wait): ... this.
3595 * linux-low.h (class linux_process_target): Update.
3596 * lynx-low.cc (lynx_target_ops): Update.
3597 (lynx_wait): Turn into ...
3598 (lynx_process_target::wait): ... this.
3599 * lynx-low.h (class lynx_process_target): Update.
3600 * nto-low.cc (nto_target_ops): Update.
3601 (nto_wait): Turn into ...
3602 (nto_process_target::wait): ... this.
3603 * nto-low.h (class nto_process_target): Update.
3604 * win32-low.cc (win32_target_ops): Update.
3605 (win32_wait): Turn into ...
3606 (win32_process_target::wait): ... this.
3607 (do_initial_child_stuff): Update.
3608 * win32-low.h (class win32_process_target): Update.
3609
0e4d7e35
TBA
36102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3611
3612 Turn process_stratum_target's resume op into a method of
3613 process_target.
3614
3615 * target.h (struct process_stratum_target): Remove the target op.
3616 (class process_target): Add the target op.
3617
3618 Update the derived classes and callers below.
3619
3620 * server.cc (resume): Update.
3621 * target.cc (target_stop_and_wait): Update.
3622 (target_continue_no_signal): Update.
3623 (target_continue): Update.
3624 * linux-low.cc (linux_target_ops): Update.
3625 (linux_resume): Turn into ...
3626 (linux_process_target::resume): ... this.
3627 * linux-low.h (class linux_process_target): Update.
3628 * lynx-low.cc (lynx_target_ops): Update.
3629 (lynx_resume): Turn into ...
3630 (lynx_process_target::resume): ... this.
3631 * lynx-low.h (class lynx_process_target): Update.
3632 * nto-low.cc (nto_target_ops): Update.
3633 (nto_resume): Turn into ...
3634 (nto_process_target::resume): ... this.
3635 * nto-low.h (class nto_process_target): Update.
3636 * win32-low.cc (win32_target_ops): Update.
3637 (win32_resume): Turn into ...
3638 (win32_process_target::resume): ... this.
3639 (win32_process_target::detach): Update.
3640 (do_initial_child_stuff): Update.
3641 * win32-low.h (class win32_process_target): Update.
3642
13d3d99b
TBA
36432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3644
3645 Turn process_stratum_target's thread_alive op into a method of
3646 process_target.
3647
3648 * target.h (struct process_stratum_target): Remove the target op.
3649 (class process_target): Add the target op.
3650 (mythread_alive): Update the macro.
3651
3652 Update the derived classes and callers below.
3653
3654 * linux-low.cc (linux_target_ops): Update.
3655 (linux_thread_alive): Turn into ...
3656 (linux_process_target::thread_alive): ... this.
3657 (wait_for_sigstop): Update.
3658 * linux-low.h (class linux_process_target): Update.
3659 * lynx-low.cc (lynx_target_ops): Update.
3660 (lynx_thread_alive): Turn into ...
3661 (lynx_process_target::thread_alive): ... this.
3662 * lynx-low.h (class lynx_process_target): Update.
3663 * nto-low.cc (nto_target_ops): Update.
3664 (nto_thread_alive): Turn into ...
3665 (nto_process_target::thread_alive): ... this.
3666 * nto-low.h (class nto_process_target): Update.
3667 * win32-low.cc (win32_target_ops): Update.
3668 (win32_thread_alive): Turn into ...
3669 (win32_process_target::thread_alive): ... this.
3670 * win32-low.h (class win32_process_target): Update.
3671
95a49a39
TBA
36722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3673
3674 Turn process_stratum_target's join op into a method of
3675 process_target.
3676
3677 * target.h (struct process_stratum_target): Remove the target op.
3678 (class process_target): Add the target op.
3679 (join_inferior): Update the macro.
3680
3681 Update the derived classes and callers below.
3682
3683 * linux-low.cc (linux_target_ops): Update.
3684 (linux_join): Turn into ...
3685 (linux_process_target::join): ... this.
3686 * linux-low.h (class linux_process_target): Update.
3687 * lynx-low.cc (lynx_target_ops): Update.
3688 (lynx_join): Turn into ...
3689 (lynx_process_target::join): ... this.
3690 * lynx-low.h (class lynx_process_target): Update.
3691 * nto-low.cc (nto_target_ops): Update.
3692 (nto_process_target::join): Define.
3693 * nto-low.h (class nto_process_target): Update.
3694 * win32-low.cc (win32_target_ops): Update.
3695 (win32_join): Turn into ...
3696 (win32_process_target::join): ... this.
3697 * win32-low.h (class win32_process_target): Update.
3698
8adb37b9
TBA
36992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3700
3701 Turn process_stratum_target's mourn op into a method of
3702 process_target.
3703
3704 * target.h (struct process_stratum_target): Remove the target op.
3705 (class process_target): Add the target op.
3706
3707 Update the derived classes and callers below.
3708
3709 * target.cc (target_mourn_inferior): Update.
3710 * linux-low.cc (linux_target_ops): Update.
3711 (linux_mourn): Turn into ...
3712 (linux_process_target::mourn): ... this.
3713 (handle_extended_wait): Update.
3714 (linux_process_target::kill): Update.
3715 (linux_process_target::detach): Update.
3716 * linux-low.h (class linux_process_target): Update.
3717 * lynx-low.cc (lynx_target_ops): Update.
3718 (lynx_mourn): Turn into ...
3719 (lynx_process_target::mourn): ... this.
3720 * lynx-low.h (class lynx_process_target): Update.
3721 * nto-low.cc (nto_target_ops): Update.
3722 (nto_mourn): Turn into ...
3723 (nto_process_target::mourn): ... this.
3724 * nto-low.h (class nto_process_target): Update.
3725 * win32-low.cc (win32_target_ops): Update.
3726 (win32_mourn): Turn into ...
3727 (win32_process_target::mourn): ... this.
3728 * win32-low.h (class win32_process_target): Update.
3729
9061c9cf
TBA
37302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3731
3732 Turn process_stratum_target's detach op into a method of
3733 process_target.
3734
3735 * target.h (struct process_stratum_target): Remove the target op.
3736 (class process_target): Add the target op.
3737 (detach_inferior): Update the macro.
3738
3739 Update the derived classes and callers below.
3740
3741 * linux-low.cc (linux_target_ops): Update.
3742 (linux_detach): Turn into ...
3743 (linux_process_target::detach): ... this.
3744 * linux-low.h (class linux_process_target): Update.
3745 * lynx-low.cc (lynx_target_ops): Update.
3746 (lynx_detach): Turn into ...
3747 (lynx_process_target::detach): ... this.
3748 * lynx-low.h (class lynx_process_target): Update.
3749 * nto-low.cc (nto_target_ops): Update.
3750 (nto_detach): Turn into ...
3751 (nto_process_target::detach): ... this.
3752 * nto-low.h (class nto_process_target): Update.
3753 * win32-low.cc (win32_target_ops): Update.
3754 (win32_detach): Turn into ...
3755 (win32_process_target::detach): ... this.
3756 * win32-low.h (class win32_process_target): Update.
3757
c6885a57
TBA
37582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3759
3760 Turn process_stratum_target's kill op into a method of
3761 process_target.
3762
3763 * target.h (struct process_stratum_target): Remove the target op.
3764 (class process_target): Add the target op.
3765
3766 Update the derived classes and callers below.
3767
3768 * target.cc (kill_inferior): Update.
3769 * linux-low.cc (linux_target_ops): Update.
3770 (linux_kill): Turn into ...
3771 (linux_process_target::kill): ... this.
3772 * linux-low.h (class linux_process_target): Update.
3773 * lynx-low.cc (lynx_target_ops): Update.
3774 (lynx_kill): Turn into ...
3775 (lynx_process_target::kill): ... this.
3776 * lynx-low.h (class lynx_process_target): Update.
3777 * nto-low.cc (nto_target_ops): Update.
3778 (nto_kill): Turn into ...
3779 (nto_process_target::kill): ... this.
3780 * nto-low.h (class nto_process_target): Update.
3781 * win32-low.cc (win32_target_ops): Update.
3782 (win32_kill): Turn into ...
3783 (win32_process_target::kill): ... this.
3784 * win32-low.h (class win32_process_target): Update.
3785
ef03dad8
TBA
37862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3787
3788 Turn process_stratum_target's attach op into a method of
3789 process_target.
3790
3791 * target.h (struct process_stratum_target): Remove the target op.
3792 (class process_target): Add the target op.
3793 (myattach): Update the macro.
3794
3795 Update the derived classes and callers below.
3796
3797 * linux-low.cc (linux_target_ops): Update.
3798 (linux_attach): Turn into ...
3799 (linux_process_target::attach): ... this.
3800 * linux-low.h (class linux_process_target): Update.
3801 * lynx-low.cc (lynx_target_ops): Update.
3802 (lynx_attach): Turn into ...
3803 (lynx_process_target::attach): ... this.
3804 * lynx-low.h (class lynx_process_target): Update.
3805 * nto-low.cc (nto_target_ops): Update.
3806 (nto_attach): Turn into ...
3807 (nto_process_target::attach): ... this.
3808 * nto-low.h (class nto_process_target): Update.
3809 * win32-low.cc (win32_target_ops): Update.
3810 (win32_attach): Turn into ...
3811 (win32_process_target::attach): ... this.
3812 * win32-low.h (class win32_process_target): Update.
3813
6dee9afb
TBA
38142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3815
3816 Turn process_stratum_target's post_create_inferior op into a method
3817 of process_target.
3818
3819 * target.h (struct process_stratum_target): Remove the target op.
3820 (class process_target): Add the target op.
3821 (target_post_create_inferior): Update the macro.
3822 * target.cc (process_target::post_create_inferior): Define.
3823
3824 Update the derived classes and callers below.
3825
3826 * linux-low.cc (linux_target_ops): Update.
3827 (linux_post_create_inferior): Turn into ...
3828 (linux_process_target::post_create_inferior): ... this.
3829 * linux-low.h (class linux_process_target): Update.
3830 * lynx-low.cc (lynx_target_ops): Update.
3831 * nto-low.cc (nto_target_ops): Update.
3832 * win32-low.cc (win32_target_ops): Update.
3833
15295543
TBA
38342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3835
3836 Turn process_stratum_target's create_inferior op into a method of
3837 process_target.
3838
3839 * target.h (struct process_stratum_target): Remove the target op.
3840 (class process_target): Add the target op.
3841 (create_inferior): Rename the macro to ...
3842 (target_create_inferior): ... this.
3843
3844 Update the derived classes and callers below.
3845
3846 * server.cc (handle_v_run): Update.
3847 (captured_main): Update.
3848 (process_serial_event): Update.
3849 * linux-low.cc (linux_target_ops): Update.
3850 (linux_create_inferior): Turn into ...
3851 (linux_process_target::create_inferior): ... this.
3852 * linux-low.h (class linux_process_target): Update.
3853 * lynx-low.cc (lynx_target_ops): Update.
3854 (lynx_create_inferior): Turn into ...
3855 (lynx_process_target::create_inferior): ... this.
3856 * lynx-low.h (class lynx_process_target): Update.
3857 * nto-low.cc (nto_target_ops): Update.
3858 (nto_create_inferior): Turn into ...
3859 (nto_process_target::create_inferior): ... this.
3860 * nto-low.h (class nto_process_target): Update.
3861 * win32-low.cc (win32_target_ops): Update.
3862 (win32_create_inferior): Turn into ...
3863 (win32_process_target::create_inferior): ... this.
3864 * win32-low.h (class win32_process_target): Update.
3865
5ef9273d
TBA
38662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3867
3868 * target.h (class process_target): New class definition.
3869 (struct process_stratum_target) <pt>: New field with type
3870 'process_target*'.
3871 * linux-low.h (class linux_process_target): Define as a derived
3872 class of 'process_target'.
3873 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3874 as the 'pt' field.
3875 * lynx-low.h (class lynx_process_target): Define as a derived
3876 class of 'process_target'.
3877 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3878 as the 'pt' field.
3879 * nto-low.h (class nto_process_target): Define as a derived
3880 class of 'process_target'.
3881 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3882 as the 'pt' field.
3883 * win32-low.h (class win32_process_target): Define as a derived
3884 class of 'process_target'.
3885 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3886 as the 'pt' field.
3887
9f1528a1
AB
38882020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3889
3890 * configure: Regenerate.
3891
bf84f706
MR
38922020-02-19 Maciej W. Rozycki <macro@wdc.com>
3893 Andrew Burgess <andrew.burgess@embecosm.com>
3894
3895 * linux-riscv-low.cc: New file.
3896 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3897 and nat/riscv-linux-tdesc.c.
3898 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3899 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3900 Define.
3901
1a627e7e
TT
39022020-02-14 Tom Tromey <tom@tromey.com>
3903
3904 * acinclude.m4: Don't include acx_configure_dir.m4.
3905 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3906 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3907 (all, install-only, uninstall, clean-info, clean)
3908 (maintainer-clean): Don't recurse.
3909 (subdir_do, all-lib): Remove.
3910 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3911 (GNULIB_H): Remove.
3912 (generated_files): Update.
3913 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3914 * configure: Rebuild.
3915 * configure.ac: Don't configure gnulib or libiberty.
3916 (GNULIB): Update.
3917
a9b34532
EZ
39182020-02-14 Eli Zaretskii <eliz@gnu.org>
3919
3920 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
3921 preparing the command line for CreateProcess.
3922 (win32_create_inferior): Reflect the program name in debugging
3923 output that shows the process and its command line.
3924
feacfcac
SM
39252020-02-13 Simon Marchi <simon.marchi@efficios.com>
3926
3927 * Makefile.in: Rename source files from .c to .cc.
3928 * %.c: Rename to %.cc.
3929 * configure.ac: Rename server.c to server.cc.
3930 * configure: Re-generate.
3931
06b3c5bd
SM
39322020-02-13 Simon Marchi <simon.marchi@efficios.com>
3933
3934 * Makefile.in: Rename gdbsupport source files from .c to .cc.
3935
052793ad
HD
39362020-02-12 Hannes Domani <ssbssa@yahoo.de>
3937
3938 * win32-low.c (win32_create_inferior): Set signal_pid.
3939
f20e3e82
MR
39402020-02-12 Maciej W. Rozycki <macro@wdc.com>
3941 Pedro Alves <palves@redhat.com>
3942
3943 Skip building gdbserver in a cross-configuration.
3944 * configure.srv: Set $gdbserver_host depending on whether $target
3945 is $host. Use $gdbserver_host instead of $host.
3946
8ddd8e0e
SM
39472020-02-11 Simon Marchi <simon.marchi@efficios.com>
3948
3949 * configure: Re-generate.
3950
898e7f60
SM
39512020-02-11 Simon Marchi <simon.marchi@efficios.com>
3952
3953 * configure: Re-generate.
3954
58df732b
SM
39552020-02-11 Simon Marchi <simon.marchi@efficios.com>
3956
3957 * acinclude.m4: Update warning.m4 path.
3958
7928d571
HD
39592020-02-09 Hannes Domani <ssbssa@yahoo.de>
3960
3961 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
3962 (handle_exception): Set siginfo_er.
3963 (win32_xfer_siginfo): New function.
3964
919adfe8
TT
39652020-02-07 Tom Tromey <tom@tromey.com>
3966 Pedro Alves <palves@redhat.com>
3967
3968 * README: Update build documentation.
3969 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
3970 host, not target.
3971 * configure.ac: Update paths.
3972 * configure: Rebuild.
3973 * acinclude.m4: Update paths.
3974 * Makefile.in: Update include paths.
3975 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
3976 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
3977 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
3978 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
3979 (%-generated.c): Update paths.
3980 * Move entire directory from ../gdb/gdbserver.
3981
287c844a
MR
39822020-01-29 Maciej W. Rozycki <macro@wdc.com>
3983
3984 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
3985
548a204f
PFC
39862020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3987
3988 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
3989 assignment instead of srv_linux_obj.
3990
a2236a08
HD
39912020-01-28 Hannes Domani <ssbssa@yahoo.de>
3992
3993 * server.c (handle_qxfer_libraries): Write segment-address with
3994 paddress.
3995
bdaed379
HD
39962020-01-24 Hannes Domani <ssbssa@yahoo.de>
3997
3998 * Makefile.in (install-strip): New target.
3999 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4000 * aclocal.m4: Regenerate.
4001 * configure: Regenerate.
4002 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4003
42cd72aa
MR
40042020-01-24 Maciej W. Rozycki <macro@wdc.com>
4005
4006 * Makefile.in (SFILES): Adjust paths to point to real files.
4007 (OBS): Move waitstatus.o to target/waitstatus.o.
4008 (TAGS): Transform paths appropriately.
4009 (%.o): Rename to...
4010 (nat/%.o): ... this pattern rule.
4011 (%.o): Rename to...
4012 (target/%.o): ... this pattern rule.
4013 * configure.srv: Adjust paths throughout to include nat/ prefix
4014 with the revant files.
4015 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4016 * configure: Regenerate.
4017
42ba50ec
MR
40182020-01-24 Maciej W. Rozycki <macro@wdc.com>
4019
4020 * Makefile.in (TAGS): Remove config files from the recipe.
4021
05ea2a05
TT
40222020-01-14 Tom Tromey <tom@tromey.com>
4023
4024 * configure: Rebuild.
4025 * configure.ac: Remove any checks that were added to common.m4.
4026 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4027 lib-link.m4.
4028
01027315
TT
40292020-01-14 Tom Tromey <tom@tromey.com>
4030
4031 * server.h: Include config.h.
4032 * gdbreplay.c: Include config.h.
4033 * configure: Rebuild.
4034 * configure.ac: Don't source common.host.
4035 * acinclude.m4: Update path.
4036 * Makefile.in (INCSUPPORT): New variable.
4037 (INCLUDE_CFLAGS): Add INCSUPPORT.
4038 (SFILES): Update paths.
4039 (version-generated.c): Update path to create-version.sh.
4040 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4041
b2ceabe8
TT
40422020-01-14 Tom Tromey <tom@tromey.com>
4043
4044 * configure.ac (LIBS): Use WIN32APILIBS.
4045 (USE_WIN32API): Don't define.
4046 * configure: Rebuild.
4047
25c51f71
TT
40482020-01-14 Tom Tromey <tom@tromey.com>
4049
4050 * configure: Rebuild.
4051
c0bd321d
SM
40522020-01-13 Simon Marchi <simon.marchi@efficios.com>
4053
4054 * Makefile.in (%-generated.c): Remove rule for files from
4055 regformats/i386.
4056
bb564c58
SM
40572020-01-13 Simon Marchi <simon.marchi@efficios.com>
4058
4059 * configure: Re-generate.
4060
6e37c371
SM
40612020-01-13 Simon Marchi <simon.marchi@efficios.com>
4062
4063 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4064 Define to static.
4065 * tracepoint.c (stop_tracing, flush_trace_buffer,
4066 about_to_request_buffer_space, get_trace_state_variable_value,
4067 set_trace_state_variable_value, gdb_collect): Add declaration.
4068
df4a0200
SM
40692020-01-13 Simon Marchi <simon.marchi@efficios.com>
4070
4071 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4072 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4073 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4074 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4075 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4076 static.
4077
89e94ec9
SM
40782020-01-13 Simon Marchi <simon.marchi@efficios.com>
4079
4080 * inferiors.c: Include gdbsupport/common-inferior.h.
4081
2552728a
SM
40822020-01-13 Simon Marchi <simon.marchi@efficios.com>
4083
4084 * hostio-errno.c: Include hostio.h.
4085
4025fa09
SM
40862020-01-13 Simon Marchi <simon.marchi@efficios.com>
4087
4088 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4089 prerequisite.
4090
c0b0a142
SM
40912020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4092
4093 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4094 * linux-arm-tdesc.h: Include arch/arm.h.
4095
bb1183e2
SM
40962020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4097
4098 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4099
f5df0b5f
SM
41002020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4101
4102 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4103 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4104
5b6d1e4f
PA
41052020-01-10 Pedro Alves <palves@redhat.com>
4106
4107 * fork-child.c (post_fork_inferior): Pass target down to
4108 startup_inferior.
4109 * inferiors.c (switch_to_thread): Add process_stratum_target
4110 parameter.
4111 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4112 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4113 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4114 * remote-utils.c (prepare_resume_reply): Pass the target to
4115 switch_to_thread.
4116 * target.c (the_target): Now a process_stratum_target.
4117 (done_accessing_memory): Pass the target to switch_to_thread.
4118 (set_target_ops): Ajust to use process_stratum_target.
4119 * target.h (struct target_ops): Rename to ...
4120 (struct process_stratum_target): ... this.
4121 (the_target, set_target_ops): Adjust.
4122 (prepare_to_access_memory): Adjust comment.
4123 * win32-low.c (child_xfer_memory): Adjust to use
4124 process_stratum_target.
4125 (win32_target_ops): Now a process_stratum_target.
4126
559e7e50
EZ
41272020-01-06 Eli Zaretskii <eliz@gnu.org>
4128 Pedro Alves <palves@redhat.com>
4129
4130 * win32-low.c (get_child_debug_event): Extract the fatal exception
4131 from the exit status and convert to the equivalent Posix signal
4132 number.
4133 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4134 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4135
48189bec
HD
41362020-01-01 Hannes Domani <ssbssa@yahoo.de>
4137
4138 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4139
5dd8bf88
JB
41402020-01-01 Joel Brobecker <brobecker@adacore.com>
4141
4142 * server.c (gdbserver_version): Change copyright year to 2020.
4143 * gdbreplay.c (gdbreplay_version): Likewise.
4144
0ad6b8ee
CB
41452019-12-19 Christian Biesinger <cbiesinger@google.com>
4146
4147 * configure: Regenerate.
4148 * configure.ac: Quote variable arguments of test.
4149
1ee7b812
BE
41502019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4151
4152 * Makefile.in: Fix build with GNU Make 3.81
4153
d9fa87f4
TT
41542019-12-16 Tom Tromey <tromey@adacore.com>
4155
4156 * server.c (get_exec_file): Constify result.
4157
ab7d13f0
CB
41582019-12-10 Christian Biesinger <cbiesinger@google.com>
4159
4160 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4161 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4162 * config.in: Regenerate.
4163 * configure: Regenerate.
4164 * configure.ac: Don't check for strerror.
4165 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4166 Call safe_strerror instead of strerror.
4167 * server.h (strerror): Remove this now-unnecessary declaration.
4168 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4169 strerror.
4170 (gdb_agent_helper_thread): Likewise.
4171 * utils.c (perror_with_name): Likewise.
4172
4da8c3a8
TT
41732019-11-26 Tom Tromey <tom@tromey.com>
4174
4175 * configure, config.in: Rebuild.
4176
21987b9c
TT
41772019-11-26 Tom Tromey <tom@tromey.com>
4178
4179 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4180 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4181 gdb_sigmask.
4182 * configure, config.in: Rebuild.
4183
5e030278
TT
41842019-11-26 Tom Tromey <tom@tromey.com>
4185
4186 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4187 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4188 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4189 * acinclude.m4: Include ax_pthread.m4.
4190 * config.in, configure: Rebuild.
4191
6d91ce9a
CB
41922019-11-26 Christian Biesinger <cbiesinger@google.com>
4193
4194 * debug.c (debug_set_output): Call safe_strerror instead of
4195 strerror.
4196 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4197 (linux_kill_one_lwp): Likewise.
4198 (linux_detach_one_lwp): Likewise.
4199 (linux_wait_for_event_filtered): Likewise.
4200 (store_register): Likewise.
4201 * lynx-low.c (lynx_attach): Likewise.
4202 * mem-break.c (insert_memory_breakpoint): Likewise.
4203 (remove_memory_breakpoint): Likewise.
4204 (delete_fast_tracepoint_jump): Likewise.
4205 (set_fast_tracepoint_jump): Likewise.
4206 (uninsert_fast_tracepoint_jumps_at): Likewise.
4207 (reinsert_fast_tracepoint_jumps_at): Likewise.
4208 * nto-low.c (nto_xfer_memory): Likewise.
4209 (nto_resume): Likewise.
4210
6cdd651f
LM
42112019-11-20 Luis Machado <luis.machado@linaro.org>
4212
4213 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4214 instead of register count.
4215 * tdesc.c (tdesc_contains_feature): New function.
4216 * tdesc.h (tdesc_contains_feature): New prototype.
4217
cd850b40
CB
42182019-11-15 Christian Biesinger <cbiesinger@google.com>
4219
4220 * Makefile.in: Add safe-strerror.c.
4221 * configure: Regenerate.
4222 * configure.ac: Don't source common.host.
4223
5abebf3c
CB
42242019-11-15 Christian Biesinger <cbiesinger@google.com>
4225
4226 * config.in: Regenerate.
4227 * configure: Regenerate.
4228
e06f3d6e
AB
42292019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4230
4231 * ax.c (ax_printf): Handle size_t_arg.
4232
ca3a04f6
CB
42332019-11-06 Christian Biesinger <cbiesinger@google.com>
4234
4235 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4236 * mi/mi-main.c (output_cores): Likewise.
4237 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4238 (linux_xfer_osdata_modules): Likewise.
4239 * remote.c (register_remote_support_xml): Likewise.
4240 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4241 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4242
e48f6033
CB
42432019-11-01 Christian Biesinger <cbiesinger@google.com>
4244
4245 * configure: Regenerate.
4246 * configure.ac: Remove check for strerror_r.
4247
e7e97a2e
CB
42482019-10-31 Christian Biesinger <cbiesinger@google.com>
4249
4250 * config.in: Regenerate.
4251 * configure: Regenerate.
4252 * configure.ac: Also check for strerror_r.
4253
75cafaa6
CB
42542019-10-31 Christian Biesinger <cbiesinger@google.com>
4255
4256 * ax.h (debug_agent): Remove duplicate declaration.
4257
30baf67b
TV
42582019-10-26 Tom de Vries <tdevries@suse.de>
4259
4260 * linux-aarch64-low.c: Fix typos in comments.
4261 * linux-arm-low.c: Same.
4262 * linux-low.c: Same.
4263 * linux-ppc-low.c: Same.
4264 * proc-service.c: Same.
4265 * regcache.h: Same.
4266 * server.c: Same.
4267 * tracepoint.c: Same.
4268 * win32-low.c: Same.
4269
52c64cf7
TT
42702019-10-25 Tom Tromey <tromey@adacore.com>
4271
4272 * utils.c (xstrdup): Remove.
4273
c12d372d
TT
42742019-10-23 Tom Tromey <tom@tromey.com>
4275
4276 * configure, config.in: Rebuild.
4277
4d0b984b
TT
42782019-10-23 Tom Tromey <tom@tromey.com>
4279
4280 * configure: Rebuild.
4281 * acinclude.m4: Use m4_include, not sinclude.
4282
c5adaa19
TT
42832019-10-17 Tom Tromey <tromey@adacore.com>
4284
4285 * configure: Rebuild.
4286 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4287 in AC_CONFIG_FILES invocation.
4288 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4289 invocation.
4290
fec4e896
CB
42912019-10-16 Christian Biesinger <cbiesinger@google.com>
4292
4293 * server.c: Include xml-builtin.h.
4294 (get_xml_features): Don't declare xml_builtins here.
4295
00975ff6
AB
42962019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4297
4298 * Makefile.in: Remove references to vec-ipa.o.
4299
0dc32745
AB
43002019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4301
4302 * Makefile.in: Remove references to vec.c.
4303
3e6ec53a
CB
43042019-10-02 Christian Biesinger <cbiesinger@google.com>
4305
4306 * server.c (server_waiting): Change to bool.
4307 (extended_protocol): Likewise.
4308 (response_needed): Likewise.
4309 (exit_requested): Likewise.
4310 (run_once): Likewise.
4311 (report_no_resumed): Likewise.
4312 (non_stop): Likewise.
4313 (disable_packet_vCont): Likewise.
4314 (disable_packet_Tthread): Likewise.
4315 (disable_packet_qC): Likewise.
4316 (disable_packet_qfThreadInfo): Likewise.
4317 (handle_general_set): Update.
4318 (handle_detach): Update.
4319 (handle_monitor_command): Update.
4320 (handle_query): Update.
4321 (captured_main): Update.
4322 (process_serial_event): Update.
4323 * server.h (server_waiting): Change to bool.
4324 (disable_packet_vCont): Likewise.
4325 (disable_packet_Tthread): Likewise.
4326 (disable_packet_qC): Likewise.
4327 (disable_packet_qfThreadInfo): Likewise.
4328 (run_once): Likewise.
4329 (non_stop): Likewise.
4330 * target.c (target_stop_and_wait): Update.
4331
80fd2826
TT
43322019-10-02 Tom Tromey <tromey@adacore.com>
4333
4334 * Makefile.in (SFILES): Add common-inferior.c.
4335 (OBS): Add common-inferior.o.
4336 * server.c (startup_with_shell): Don't define.
4337
46f29a9a
AB
43382019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4339
4340 * linux-low.c (linux_low_read_btrace): Update for change to
4341 std::vector.
4342
f9d949fb
CB
43432019-09-20 Christian Biesinger <cbiesinger@google.com>
4344
4345 * debug.c (debug_threads): Remove comment in favor of the header.
4346 * debug.h (using_threads): Add declaration.
4347 (debug_threads): Add comment.
4348 * linux-aarch64-low.c: Include debug.h and remove declaration of
4349 debug_threads.
4350 * nto-low.c: Likewise.
4351 * remote-utils.c: Likewise.
4352 * thread-db.c: Likewise.
4353
abf516c6
UW
43542019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4355
4356 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4357 and powerpc-cell64l-ipa.o.
4358 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4359 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4360 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4361 (spu*-*-*): Remove.
4362
4363 * spu-low.c: Remove file.
4364
4365 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4366 (parse_spufs_run): Remove.
4367 (ppc_get_pc): Remove Cell/B.E. support.
4368 (ppc_set_pc): Likewise.
4369 (ppc_breakpoint_at): Likewise.
4370 (ppc_arch_setup): Likewise.
4371 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4372 tdesc_powerpc_cell32l.
4373 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4374 or init_registers_powerpc_cell32l.
4375 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4376 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4377 or init_registers_powerpc_cell32l.
4378 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4379 (init_registers_powerpc_cell32l): Remove prototype.
4380 (init_registers_powerpc_cell64l): Likewise.
4381
4382 * target.h (struct target_ops): Remove qxfer_spu member.
4383 * server.c (handle_qxfer_spu): Remove.
4384 (qxfer_packets): Remove entry for "spu".
4385 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4386 * linux-low.c (SPUFS_MAGIC): Remove.
4387 (spu_enumerate_spu_ids): Remove.
4388 (linux_qxfer_spu): Remove.
4389 (linux_target_ops): Remove qxfer_spu member.
4390 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4391 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4392 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4393
2d41fa11
SDJ
43942019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4395
4396 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4397 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4398 * config.in: Regenerate.
4399 * configure: Regenerate.
4400
d59b55f0
TT
44012019-08-15 Tom Tromey <tromey@adacore.com>
4402
4403 * target.c (target_write_memory): Use gdb::byte_vector.
4404
4196ab2a
TT
44052019-08-15 Tom Tromey <tromey@adacore.com>
4406
4407 * tracepoint.c (write_inferior_data_pointer)
4408 (write_inferior_integer, write_inferior_int8)
4409 (write_inferior_uinteger, m_tracepoint_action_download)
4410 (r_tracepoint_action_download, x_tracepoint_action_download)
4411 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4412 (download_agent_expr, download_tracepoint_1)
4413 (download_trace_state_variables, upload_fast_traceframes): Update.
4414 * server.c (gdb_write_memory): Update.
4415 * remote-utils.c (relocate_instruction): Update.
4416 * proc-service.c (ps_pdwrite): Update.
4417 * mem-break.c (remove_memory_breakpoint)
4418 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4419 (uninsert_fast_tracepoint_jumps_at)
4420 (reinsert_fast_tracepoint_jumps_at): Update.
4421 * linux-x86-low.c (append_insns)
4422 (i386_install_fast_tracepoint_jump_pad)
4423 (amd64_write_goto_address, i386_write_goto_address): Update.
4424 * linux-s390-low.c (append_insns, s390_write_goto_address):
4425 Update.
4426 * linux-ppc-low.c (ppc_relocate_instruction)
4427 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4428 (ppc_write_goto_address): Update.
4429 * linux-aarch64-low.c (append_insns): Update.
4430 * target.h (struct target_ops): Update.
4431 (write_inferior_memory): Don't declare.
4432 * target.c (target_write_memory): Rename from
4433 write_inferior_memory. Remove old target_write_memory.
4434
c6778d00
TT
44352019-08-15 Tom Tromey <tromey@adacore.com>
4436
4437 * target.c (write_inferior_memory): Use std::vector.
4438
404f2902
FCE
44392019-08-06 Frank Ch. Eigler <fche@redhat.com>
4440
4441 PR build/24886
4442 * configure.ac: Drop enable-libmcheck support.
4443 * configure, config.in: Rebuild.
4444 * acinclude.m4: Don't include it.
4445
4c5aa8e0
AH
44462019-07-19 Alan Hayward <alan.hayward@arm.com>
4447
4448 * configure.srv: Remove Arm xml files.
4449
7cc17433
AH
44502019-07-19 Alan Hayward <alan.hayward@arm.com>
4451
4452 * configure.srv: Add new files. Remove xml generated files.
4453 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4454 registers.
4455 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4456 * linux-aarch32-tdesc.c: New file.
4457 * linux-aarch32-tdesc.h: New file.
4458 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4459 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4460 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4461 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4462 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4463 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4464 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4465 (arm_read_description): Call arm_linux_read_description.
4466 (initialize_low_arch): Don't init registers.
4467 * linux-arm-tdesc.c: New file.
4468 * linux-arm-tdesc.h: New file.
4469
166a82be
AH
44702019-07-10 Alan Hayward <alan.hayward@arm.com>
4471
4472 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4473 Move counter inside for.
4474 (arm_read_description): Check ptrace earlier.
4475 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4476
268a13a5
TT
44772019-07-09 Tom Tromey <tom@tromey.com>
4478
4479 * configure: Rebuild.
4480 * configure.ac: Change common to gdbsupport.
4481 * acinclude.m4: Change common to gdbsupport.
4482 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4483 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4484 common to gdbsupport.
4485 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4486 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4487 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4488 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4489 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4490 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4491 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4492 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4493 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4494 common to gdbsupport.
4495
350fab54
AH
44962019-07-04 Alan Hayward <alan.hayward@arm.com>
4497
4498 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4499 defines.
4500 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4501
2b40fda7
AH
45022019-07-04 Alan Hayward <alan.hayward@arm.com>
4503
4504 * configure.srv: Remove legacy xml.
4505 * linux-aarch64-low.c (initialize_low_arch): Remove
4506 initialize_low_tdesc call.
4507 * linux-aarch64-tdesc-selftest.c: Remove file.
4508 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4509 * linux-x86-low.c (initialize_low_arch): Remove
4510 initialize_low_tdesc call.
4511 * linux-x86-tdesc-selftest.c: Remove file.
4512 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4513
7d10623d
TV
45142019-06-20 Tom de Vries <tdevries@suse.de>
4515
4516 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4517 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4518
8d6a48df
TV
45192019-06-19 Tom de Vries <tdevries@suse.de>
4520
4521 * debug.h (debug_write): Change return type to ssize_t.
4522 * debug.c (debug_write): Same.
4523
73cc7272
TT
45242019-06-14 Tom Tromey <tom@tromey.com>
4525
4526 * configure.ac: Use new path to gnulib.
4527 * configure: Rebuild.
4528 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4529 to gnulib.
4530
08f10e02
TT
45312019-06-11 Tom Tromey <tom@tromey.com>
4532
4533 * Makefile.in (SFILES): Add alloc.c.
4534 (OBS): Add alloc.o.
4535 (IPA_OBJS): Add alloc-ipa.o.
4536 (alloc-ipa.o): New target.
4537 (%.o: ../%.c): New pattern rule.
4538
422186a9
TT
45392019-06-10 Tom Tromey <tromey@adacore.com>
4540
4541 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4542 end warning with a newline.
4543 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4544 newline.
4545 * thread-db.c (attach_thread): Don't end warning with a newline.
4546 (thread_db_notice_clone): Likewise.
4547 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4548 newline.
4549 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4550 end warning with a newline.
4551
b02f78f9
PA
45522019-06-04 Pedro Alves <palves@redhat.com>
4553
4554 * server.c (captured_main): Use make_unique_xstrdup.
4555
88ed7edb
TT
45562019-06-02 Tom Tromey <tom@tromey.com>
4557
4558 * gdbreplay.c (fromhex): Remove.
4559 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4560
33a6bc35
TT
45612019-05-29 Tom Tromey <tromey@adacore.com>
4562
4563 * configure: Rebuild.
4564
e90a813d
KB
45652019-05-06 Kevin Buettner <kevinb@redhat.com>
4566
4567 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4568 sign extension code on 32-bit builds.
4569
353ea2d1
EZ
45702019-05-03 Eli Zaretskii <eliz@gnu.org>
4571
4572 * remote-utils.c:
4573 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4574
b494cdff
TT
45752019-04-19 Tom Tromey <tom@tromey.com>
4576
4577 * server.c (struct vstop_notif): Derive from notif_event.
4578 <base>: Remove.
4579 (queue_stop_reply): Update.
4580 (remove_all_on_match_ptid): Change type. Rewrite.
4581 (discard_queued_stop_replies): Rewrite.
4582 (in_queued_stop_replies_ptid): Change type.
4583 (in_queued_stop_replies): Rewrite.
4584 (notif_stop): Update.
4585 (queue_stop_reply_callback): Update.
4586 (captured_main): Don't call initialize_notif.
4587 (push_stop_notification): Update.
4588 * notif.c (notif_write_event, handle_notif_ack)
4589 (notif_event_enque, notif_push): Update.
4590 (notif_event_xfree, initialize_notif): Remove.
4591 * notif.h (struct notif_event): Include <list>, not
4592 "common/queue.h".
4593 (struct notif_server) <queue>: Now a std::list.
4594 (notif_event_p): Remove typedef.
4595 (initialize_notif): Don't declare.
4596 (struct notif_event): Add virtual destructor.
4597
a7e559cc
AH
45982019-04-17 Alan Hayward <alan.hayward@arm.com>
4599
4600 * ax.c (ax_vdebug): Call debug_printf.
4601 * debug.c (debug_write): New function.
4602 * debug.h (debug_write): New declaration.
4603 * linux-low.c (sigchld_handler): Call debug_write.
4604
aeb2e706
AH
46052019-04-17 Alan Hayward <alan.hayward@arm.com>
4606
4607 * debug.c (debug_set_output): New function.
4608 (debug_vprintf): Send output to debug_file.
4609 (debug_flush): Likewise.
4610 * debug.h (debug_set_output): New declaration.
4611 * server.c (handle_monitor_command): Add debug-file option.
4612 (captured_main): Likewise.
4613
c1bc0935
AH
46142019-04-17 Alan Hayward <alan.hayward@arm.com>
4615
4616 * debug.c (remote_debug): Add definition.
4617 * debug.h (remote_debug): Add declaration.
4618 * hostio.c (remote_debug): Remove declaration.
4619 * remote-utils.c (struct ui_file): Likewise.
4620 (remote_debug): Likewise.
4621 * remote-utils.h (remote_debug): Likewise,
4622 * server.c (remote_debug): Remove definition.
4623
3f52fdbc
KB
46242019-04-10 Kevin Buettner <kevinb@redhat.com>
4625
4626 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4627 when using a 64-bit gdbserver.
4628
b0319eaa
TT
46292019-04-09 Tom Tromey <tromey@adacore.com>
4630
4631 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4632
eedc3f4f
TT
46332019-04-08 Tom Tromey <tom@tromey.com>
4634
4635 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4636 throw.
4637 (linux_resume_one_lwp): Likewise.
4638
230d2906
TT
46392019-04-08 Tom Tromey <tom@tromey.com>
4640
4641 * gdbreplay.c: Update.
4642 * linux-low.c: Update.
4643 * server.c: Update.
4644
a70b8144
TT
46452019-04-08 Tom Tromey <tom@tromey.com>
4646
4647 * server.c: Use C++ exception handling.
4648 * linux-low.c: Use C++ exception handling.
4649 * gdbreplay.c: Use C++ exception handling.
4650
3d6e9d23
TT
46512019-04-08 Tom Tromey <tom@tromey.com>
4652
4653 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4654 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4655 (captured_main, main): Update.
4656 * gdbreplay.c (main): Update.
4657
0570503d
PFC
46582019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4659
4660 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4661 value in argument pointer, return 1 if the entry is found and 0
4662 otherwise. Move comment.
4663 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4664 * linux-low.h (linux_get_auxv): Declare.
4665 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4666
227a9e65
TT
46672019-04-05 Tom Tromey <tromey@adacore.com>
4668
4669 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4670 variables.
4671
69f4c9cc
AH
46722019-03-28 Alan Hayward <alan.hayward@arm.com>
4673
4674 * linux-low.c (AT_HWCAP2): Add define if not already included.
4675
974c89e0
AH
46762019-03-26 Alan Hayward <alan.hayward@arm.com>
4677
4678 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4679 (aarch64_arch_setup): Call linux_get_hwcap.
4680 * linux-arm-low.c (arm_get_hwcap): Remove function.
4681 (arm_read_description): Call linux_get_hwcap.
4682 * linux-low.c (linux_get_auxv): New function.
4683 (linux_get_hwcap): Likewise.
4684 (linux_get_hwcap2): Likewise.
4685 * linux-low.h (linux_get_hwcap): New declaration.
4686 (linux_get_hwcap2): Likewise.
4687 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4688 (ppc_arch_setup): Call linux_get_hwcap.
4689 * linux-s390-low.c (s390_get_hwcap): Remove function.
4690 (s390_arch_setup): Call linux_get_hwcap.
4691
1ef53e6b
AH
46922019-03-22 Alan Hayward <alan.hayward@arm.com>
4693 Jiong Wang <jiong.wang@arm.com>
4694
4695 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4696 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4697 to fail.
4698 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4699
ee4fbcfa
AH
47002019-03-22 Alan Hayward <alan.hayward@arm.com>
4701 Jiong Wang <jiong.wang@arm.com>
4702
4703 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4704 (aarch64_get_hwcap): New function.
4705 (aarch64_arch_setup): Read APIA hwcap.
4706
6dc0ebde
AH
47072019-03-22 Alan Hayward <alan.hayward@arm.com>
4708 Jiong Wang <jiong.wang@arm.com>
4709
4710 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4711 (initialize_low_tracepoint): Likewise.
4712 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4713 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4714 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4715 (aarch64_linux_read_description): Likewise.
4716 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4717
1163a4b7
JB
47182019-03-12 John Baldwin <jhb@FreeBSD.org>
4719
4720 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4721 i386_create_target_description for 'segments' parameter.
4722 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4723 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4724 * win32-i386-low.c (i386_arch_setup): Likewise.
4725
d3a70e03
TT
47262019-03-12 Tom Tromey <tromey@adacore.com>
4727
4728 * linux-low.c (iterate_over_lwps): Update.
4729
37991b4f
TT
47302019-03-06 Tom Tromey <tom@tromey.com>
4731
4732 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4733 (captured_main): Use SCOPE_EXIT.
4734
45950eb6
SDJ
47352019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4736
4737 * configure.srv: Use '$enable_unittest' instead of '$development'
4738 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4739 case.
4740
43ac54fc
TT
47412019-02-27 Tom Tromey <tromey@adacore.com>
4742
4743 * gdbreplay.c (logchar): Handle \r\n.
4744
df0da8a2
AH
47452019-02-07 Alan Hayward <alan.hayward@arm.com>
4746
4747 * linux-low.c (linux_attach): Add process before lwp.
4748 * server.c (attach_inferior): Check if already attached.
4749
1a5c2598
TT
47502019-02-07 Tom Tromey <tom@tromey.com>
4751
4752 * x86-tdesc.h: Rename include guard.
4753 * x86-low.h: Add include guard.
4754 * wincecompat.h: Rename include guard.
4755 * win32-low.h: Add include guard.
4756 * utils.h: Rename include guard.
4757 * tracepoint.h: Rename include guard.
4758 * tdesc.h: Rename include guard.
4759 * target.h: Rename include guard.
4760 * server.h: Rename include guard.
4761 * remote-utils.h: Rename include guard.
4762 * regcache.h: Rename include guard.
4763 * nto-low.h: Rename include guard.
4764 * notif.h: Add include guard.
4765 * mem-break.h: Rename include guard.
4766 * lynx-low.h: Add include guard.
4767 * linux-x86-tdesc.h: Add include guard.
4768 * linux-s390-tdesc.h: Add include guard.
4769 * linux-ppc-tdesc-init.h: Add include guard.
4770 * linux-low.h: Add include guard.
4771 * linux-aarch64-tdesc.h: Add include guard.
4772 * linux-aarch32-low.h: Add include guard.
4773 * inferiors.h: Rename include guard.
4774 * i387-fp.h: Rename include guard.
4775 * hostio.h: Rename include guard.
4776 * gdbthread.h: Rename include guard.
4777 * gdb_proc_service.h: Rename include guard.
4778 * event-loop.h: Rename include guard.
4779 * dll.h: Rename include guard.
4780 * debug.h: Rename include guard.
4781 * ax.h: Rename include guard.
4782
956cc47c
SN
47832018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4784
4785 PR gdb/23985
4786 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4787 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4788
a0707f3c
TT
47892019-01-25 Tom Tromey <tom@tromey.com>
4790
4791 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4792
0747795c
TT
47932019-01-25 Tom Tromey <tom@tromey.com>
4794
4795 * win32-low.c: Fix common/ includes.
4796 * win32-i386-low.c: Fix common/ includes.
4797 * tracepoint.c: Fix common/ includes.
4798 * thread-db.c: Fix common/ includes.
4799 * target.h: Fix common/ includes.
4800 * symbol.c: Fix common/ includes.
4801 * spu-low.c: Fix common/ includes.
4802 * server.h: Fix common/ includes.
4803 * server.c: Fix common/ includes.
4804 * remote-utils.c: Fix common/ includes.
4805 * regcache.h: Fix common/ includes.
4806 * regcache.c: Fix common/ includes.
4807 * nto-x86-low.c: Fix common/ includes.
4808 * notif.h: Fix common/ includes.
4809 * mem-break.h: Fix common/ includes.
4810 * lynx-low.c: Fix common/ includes.
4811 * lynx-i386-low.c: Fix common/ includes.
4812 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4813 * linux-x86-low.c: Fix common/ includes.
4814 * linux-low.c: Fix common/ includes.
4815 * inferiors.h: Fix common/ includes.
4816 * i387-fp.c: Fix common/ includes.
4817 * hostio.c: Fix common/ includes.
4818 * hostio-errno.c: Fix common/ includes.
4819 * gdbthread.h: Fix common/ includes.
4820 * gdbreplay.c: Fix common/ includes.
4821 * fork-child.c: Fix common/ includes.
4822 * event-loop.c: Fix common/ includes.
4823 * ax.c:
4824 (enum gdb_agent_op): Fix common/ includes.
4825
be6d4f74
TT
48262019-01-21 Tom Tromey <tom@tromey.com>
4827
4828 * tracepoint.c: Fix includes.
4829 * remote-utils.c: Fix includes.
4830 * linux-x86-low.c: Fix includes.
4831
66d91b39
JB
48322019-01-01 Joel Brobecker <brobecker@adacore.com>
4833
4834 * gdbreplay.c (gdbreplay_version): Update copyright year in
4835 version message.
4836 * server.c (gdbserver_version): Likewise.
4837
754e3168
AH
48382018-12-05 Alan Hayward <alan.hayward@arm.com>
4839
4840 * linux-low.c (add_lwp): Switch ordering.
4841
d105de22
TT
48422018-11-29 Tom Tromey <tom@tromey.com>
4843
4844 * win32-low.c (win32_join): Take pid, not process.
4845 * target.h (struct target_ops) <join>: Change argument type.
4846 (join_inferior): Change argument name.
4847 * spu-low.c (spu_join): Take pid, not process.
4848 * server.c (handle_detach): Preserve pid before destroying
4849 process.
4850 * lynx-low.c (lynx_join): Take pid, not process.
4851 * linux-low.c (linux_join): Take pid, not process.
4852
50138245
AH
48532018-11-23 Alan Hayward <alan.hayward@arm.com>
4854
4855 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4856 (aarch64_cannot_fetch_register): Likewise.
4857 (struct linux_target_ops): Update references.
4858
64f57f3d
PFC
48592018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4860
4861 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4862
8d619c01
EBM
48632018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4864
4865 * configure.srv (ipa_ppc_linux_regobj): Add
4866 powerpc-isa207-htm-vsx32l-ipa.o and
4867 powerpc-isa207-htm-vsx64l-ipa.o.
4868 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4869 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4870 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4871 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4872 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4873 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4874 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4875 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4876 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4877 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4878 (init_registers_powerpc_isa207_htm_vsx32l)
4879 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4880 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4881 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4882 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4883 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4884 (ppc_store_tm_ctarregset): New functions.
4885 (ppc_regsets): Add entries for HTM regsets.
4886 (ppc_arch_setup): Set htm in features struct when needed. Set
4887 sizes for the HTM regsets.
4888 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4889 (initialize_low_arch): Call
4890 init_registers_powerpc_isa207_htm_vsx32l and
4891 init_registers_powerpc_isa207_htm_vsx64l.
4892 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4893 PPC_TDESC_ISA207_HTM_VSX.
4894 (initialize_low_tracepoint): Call
4895 init_registers_powerpc_isa207_htm_vsx32l and
4896 init_registers_powerpc_isa207_htm_vsx64l.
4897
232bfb86
EBM
48982018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4899
4900 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4901 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4902 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4903 (ppc_store_pmuregset): New functions.
4904 (ppc_regsets): Add entries for ebb and pmu regsets.
4905 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4906 pmu regsets are available. Set sizes for these regsets.
4907
f2cf6173
EBM
49082018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4909
4910 * configure.srv (ipa_ppc_linux_regobj): Add
4911 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4912 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4913 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4914 rs6000/powerpc-isa207-vsx32l.xml, and
4915 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
4916 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4917 <PPC_TDESC_ISA207_VSX>: New enum value.
4918 (init_registers_powerpc_isa207_vsx32l): Declare.
4919 (init_registers_powerpc_isa207_vsx64l): Declare.
4920 * linux-ppc-low.c (ppc_fill_tarregset): New function.
4921 (ppc_store_tarregset): New function.
4922 (ppc_regsets): Add entry for the TAR regset.
4923 (ppc_arch_setup): Set isa207 in features struct when needed. Set
4924 size for the TAR regsets.
4925 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
4926 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
4927 and init_registers_powerpc_isa207_vsx64l.
4928 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
4929 (initialize_low_tracepoint): Call
4930 init_registers_powerpc_isa207_vsx32l and
4931 init_registers_powerpc_isa207_vsx64l.
4932
7ca18ed6
EBM
49332018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4934 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4935
4936 * configure.srv (ipa_ppc_linux_regobj): Add
4937 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
4938 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
4939 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
4940 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
4941 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
4942 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
4943 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
4944 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4945 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
4946 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
4947 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
4948 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
4949 (ppc_hwcap): Add comment.
4950 (ppc_hwcap2): New global.
4951 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
4952 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
4953 (ppc_regsets): Add entries for the DSCR and PPR regsets.
4954 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
4955 when needed. Set sizes for the the DSCR and PPR regsets.
4956 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
4957 (initialize_low_arch): Call
4958 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4959 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4960 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4961 PPC_TDESC_ISA205_PPR_DSCR_VSX.
4962 (initialize_low_tracepoint): Call
4963 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4964 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4965
5c849b22
PFC
49662018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4967
4968 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
4969
8ecfd7bd
SDJ
49702018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
4971 Simon Marchi <simark@simark.ca>
4972
4973 * acinclude.m4: Include "../selftest.m4".
4974 * configure: Regenerate.
4975 * configure.ac: Use "GDB_AC_SELFTEST".
4976 * configure.srv: Use "$enable_unittests" instead of
4977 "$development" when checking whether unit tests have been
4978 enabled.
4979 * server.c (captured_main): Update message informing that
4980 selftests have been disabled.
4981
96643e35
TT
49822018-10-04 Tom Tromey <tom@tromey.com>
4983
4984 * configure: Rebuild.
4985
da4ae14a
TT
49862018-10-04 Tom Tromey <tom@tromey.com>
4987
4988 * server.c (handle_status): Rename inner "thread".
4989 (process_serial_event): Declare "res" in 'm' case.
4990 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
4991 (iterate_over_lwps): Rename inner "thread".
4992 (linux_qxfer_libraries_svr4): Rename inner "len".
4993 * gdbthread.h (find_thread_in_random): Rename inner "thread".
4994
7c619dbd
GB
49952018-10-01 Gary Benson <gbenson@redhat.com>
4996
4997 * gdb_proc_service.h: Moved common code to
4998 common/gdb_proc_service.h.
4999
3795e814
GB
50002018-10-01 Gary Benson <gbenson@redhat.com>
5001
5002 * gdb_proc_service.h: Synchronize comments and whitespace with
5003 GDB's version of this file.
5004
49b036f1
TT
50052018-09-25 Tom Tromey <tom@tromey.com>
5006
5007 * configure: Rebuild.
5008 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5009
8ff03f0b
SM
50102018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5011
5012 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5013 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5014 ($(IPA_LIB)): Sort IPA_OBJS.
5015
a1cd91dc
SM
50162018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5017
5018 * Makefile.in: Remove references to $(ADD_DEPS).
5019
752312ba
TT
50202018-09-16 Tom Tromey <tom@tromey.com>
5021
5022 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5023 variables.
5024 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5025 variables.
5026
f1628857
TT
50272018-09-05 Tom Tromey <tom@tromey.com>
5028
5029 * configure: Rebuild.
5030
ad202fcc
SM
50312018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5032
5033 PR build/23399
5034 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5035
d3d8724a
TT
50362018-08-27 Tom Tromey <tom@tromey.com>
5037
5038 PR build/23087:
5039 * configure: Rebuild.
5040
b4f183d2
TT
50412018-08-27 Tom Tromey <tom@tromey.com>
5042
5043 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5044 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5045 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5046 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5047 (s390x_emit_stack_adjust): Add casts to unsigned char.
5048
4e2aa472
SM
50492018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5050
5051 PR gdb/23374
5052 PR gdb/23375
5053 * server.h (struct client_state) <disable_randomization>:
5054 Initialize to 1.
5055
cf4088a9
SM
50562018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5057
5058 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5059 variable.
5060 (mips_supply_ptrace_register): Likewise.
5061
a0de763e
TT
50622018-07-22 Tom Tromey <tom@tromey.com>
5063
5064 * configure: Rebuild.
5065
b0a7723d
TT
50662018-07-22 Tom Tromey <tom@tromey.com>
5067
5068 * win32-low.c (win32_create_inferior): Remove unused variables.
5069 * gdbreplay.c (remote_open): Remove unused variable.
5070 * remote-utils.c (remote_prepare): Remove unused variable.
5071 * x86-tdesc.h (X86_TDESC_H): Define.
5072 (amd64_expedite_regs): Define conditionally.
5073 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5074 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5075 * remote-utils.c (readchar): Remove unused variable.
5076
a780ef4f
PA
50772018-07-13 Pedro Alves <palves@redhat.com>
5078
5079 * linux-low.c (linux_kill): Change parameter to process_info
5080 pointer instead of pid. Adjust.
5081 * lynx-low.c (lynx_kill): Likewise.
5082 * nto-low.c (nto_kill): Likewise.
5083 * spu-low.c (spu_kill): Likewise.
5084 * win32-low.c (win32_kill): Likewise.
5085 * server.c (handle_v_kill, kill_inferior_callback)
5086 (detach_or_kill_for_exit): Adjust.
5087 * target.c (kill_inferior): Change parameter to process_info
5088 pointer instead of pid. Adjust.
5089 * target.h (struct target_ops) <kill>: Change parameter to
5090 process_info pointer instead of pid. Adjust all implementations
5091 and callers.
5092 (kill_inferior): Likewise.
5093
ef2ddb33
PA
50942018-07-13 Pedro Alves <palves@redhat.com>
5095
5096 * linux-low.c (linux_detach, linux_join): Change parameter to
5097 process_info pointer instead of pid. Adjust.
5098 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5099 * nto-low.c (nto_detach): Likewise.
5100 * spu-low.c (spu_detach, spu_join): Likewise.
5101 * win32-low.c (win32_detach, win32_join): Likewise.
5102 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5103 * target.h (struct target_ops) <detach, join>: Change parameter to
5104 process_info pointer instead of pid. Adjust all implementations
5105 and callers.
5106 (detach_inferior, join_inferior): Rename 'pid' parameter to
5107 'proc'.
5108
c7ab0aef
SDJ
51092018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5110 Jan Kratochvil <jan.kratochvil@redhat.com>
5111 Paul Fertser <fercerpav@gmail.com>
5112 Tsutomu Seki <sekiriki@gmail.com>
5113
5114 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5115 (OBS): Add 'common/netstuff.o'.
5116 (GDBREPLAY_OBS): Likewise.
5117 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5118 (remote_open): Implement support for IPv6
5119 connections.
5120 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5121 and 'wspiapi.h'.
5122 (handle_accept_event): Accept connections from IPv6 sources.
5123 (remote_prepare): Handle IPv6-style hostnames; implement
5124 support for IPv6 connections.
5125 (remote_open): Implement support for printing connections from
5126 IPv6 sources.
5127
31445d10
PA
51282018-07-11 Pedro Alves <palves@redhat.com>
5129
5130 PR gdb/23377
5131 * mem-break.c (any_persistent_commands): Add process_info
5132 parameter and use it instead of relying on the current process.
5133 Change return type to bool.
5134 * mem-break.h (any_persistent_commands): Add process_info
5135 parameter and change return type to bool.
5136 * server.c (handle_detach): Remove require_running_or_return call.
5137 Look up the process_info for the process we're about to detach.
5138 If not found, return back error to GDB. Adjust
5139 any_persistent_commands call to pass down a process pointer.
5140
cb197132
PA
51412018-07-11 Pedro Alves <palves@redhat.com>
5142
5143 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5144 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5145 instead of collect_register_by_name.
5146 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5147 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5148
1b919490
VB
51492018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5150 Pedro Alves <palves@redhat.com>
5151
5152 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5153
d7e15655
TT
51542018-07-03 Tom Tromey <tom@tromey.com>
5155
5156 * linux-low.c: Update.
5157 * lynx-low.c: Update.
5158 * mem-break.c: Update.
5159 * nto-low.c: Update.
5160 * remote-utils.c: Update.
5161 * server.c: Update.
5162 * spu-low.c: Update.
5163 * target.c: Update.
5164 * win32-low.c: Update.
5165
26a57c92
TT
51662018-07-03 Tom Tromey <tom@tromey.com>
5167
5168 * server.c: Update.
5169
0e998d96
TT
51702018-07-03 Tom Tromey <tom@tromey.com>
5171
5172 * linux-low.c: Update.
5173
cc6bcb54
TT
51742018-07-03 Tom Tromey <tom@tromey.com>
5175
5176 * target.c: Update.
5177
e38504b3
TT
51782018-07-03 Tom Tromey <tom@tromey.com>
5179
5180 * linux-low.c: Update.
5181 * linux-mips-low.c: Update.
5182 * lynx-low.c: Update.
5183 * nto-low.c: Update.
5184 * remote-utils.c: Update.
5185 * server.c: Update.
5186 * spu-low.c: Update.
5187 * target.c: Update.
5188 * thread-db.c: Update.
5189
e99b03dc
TT
51902018-07-03 Tom Tromey <tom@tromey.com>
5191
5192 * linux-low.c: Update.
5193 * linux-mips-low.c: Update.
5194 * lynx-low.c: Update.
5195 * mem-break.c: Update.
5196 * nto-low.c: Update.
5197 * remote-utils.c: Update.
5198 * server.c: Update.
5199 * spu-low.c: Update.
5200 * target.c: Update.
5201 * tracepoint.c: Update.
5202
f2907e49
TT
52032018-07-03 Tom Tromey <tom@tromey.com>
5204
5205 * linux-low.c: Update.
5206 * linux-ppc-low.c: Update.
5207 * linux-x86-low.c: Update.
5208 * proc-service.c: Update.
5209 * server.c: Update.
5210 * spu-low.c: Update.
5211 * thread-db.c: Update.
5212 * win32-low.c: Update.
5213
fd79271b
TT
52142018-07-03 Tom Tromey <tom@tromey.com>
5215
5216 * linux-low.c: Update.
5217 * lynx-low.c: Update.
5218 * nto-low.c: Update.
5219 * remote-utils.c: Update.
5220 * spu-low.c: Update.
5221 * thread-db.c: Update.
5222 * win32-low.c: Update.
5223
c0867626
SDJ
52242018-06-29 Joel Brobecker <brobecker@adacore.com>
5225
5226 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5227 parameter in call to 'amd64_create_target_description'.
5228
2512d7ef
JK
52292018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5230
5231 * x86-tdesc.h: Remove executable permission flag.
5232
d0ac1c44
SM
52332018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5234
5235 * configure.ac: Remove AC_PREREQ, add missing quoting.
5236 * configure: Re-generate.
5237 * config.in: Re-generate.
5238 * aclocal.m4: Re-generate.
5239
c4eb05ff
SM
52402018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5241
5242 * tracepoint.h (current_traceframe): Remove declaration.
5243
02895270
AH
52442018-06-18 Alan Hayward <alan.hayward@arm.com>
5245
5246 * linux-aarch64-low.c (is_sve_tdesc): New function.
5247 (aarch64_sve_regs_copy_to_regcache): Likewise.
5248 (aarch64_sve_regs_copy_from_regcache): Likewise.
5249 (aarch64_regs_info): Add SVE checks.
5250 (initialize_low_arch): Initialize SVE.
5251
e9902bfc
AH
52522018-06-18 Alan Hayward <alan.hayward@arm.com>
5253
5254 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5255
fefa175e
AH
52562018-06-11 Alan Hayward <alan.hayward@arm.com>
5257
5258 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5259 (initialize_low_tracepoint): Likewise
5260 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5261 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5262 param.
5263 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5264 checks.
5265 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5266
b91ad3ff
AH
52672018-06-11 Alan Hayward <alan.hayward@arm.com>
5268
5269 * server.h (PBUFSIZ): Increase size
5270
f868386e
AH
52712018-06-11 Alan Hayward <alan.hayward@arm.com>
5272
5273 * regcache.c (regcache::raw_compare): New function.
5274 * regcache.h (regcache::raw_compare): New declaration.
5275
9c861883
AH
52762018-06-11 Alan Hayward <alan.hayward@arm.com>
5277
5278 * regcache.c (new_register_cache): Use new.
5279 (free_register_cache): Use delete.
5280 (register_data): Use const.
5281 (supply_register): Move body inside regcache.
5282 (regcache::raw_supply): New override function.
5283 (collect_register): Move body inside regcache.
5284 (regcache::raw_collect): New override function.
5285 (regcache::get_register_status): New override function.
5286 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5287
40591844
TT
52882018-06-09 Tom Tromey <tom@tromey.com>
5289
5290 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5291 declare queue.
5292 (event_queue): Use std::queue.
5293 (gdb_event_xfree): Remove.
5294 (initialize_event_loop, process_event, wait_for_event): Update.
5295
6341380d
SC
52962018-06-08 Stan Cox <scox@redhat.com>
5297
5298 * win32-low.c (win32_create_inferior): last_ptid and last_status
5299 moved to client_state.
5300
03349c93
PA
53012018-06-08 Pedro Alves <palves@redhat.com>
5302
5303 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5304 common/common-exceptions.o, common/common-utils.o,
5305 common/errors.o, common/print-utils.o and utils.o.
5306 * gdbreplay.c: Include "common-defs.h" instead of the two
5307 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5308 string.h or alloca.h.
5309 (perror_with_name): Delete.
5310 (remote_open): Use xstrdup instead of strdup.
5311 (main): Rename to ...
5312 (captured_main): ... this.
5313 (main): New.
5314
8dcc53b3
TT
53152018-06-08 Tom Tromey <tom@tromey.com>
5316
5317 * linux-low.c (linux_low_read_btrace): Update.
5318
c12a5089
SC
53192018-06-04 Stan Cox <scox@redhat.com>
5320
5321 * server.h (struct client_state): New.
5322 * server.c (cont_thread, general_thread, multi_process)
5323 (report_fork_events, report_vfork_events, report_exec_events)
5324 (report_thread_events, swbreak_feature, hwbreak_feature)
5325 (vCont_supported, disable_randomization, pass_signals)
5326 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5327 Moved to client_state.
5328 * remote-utils.c (remote_debug, noack_mode)
5329 (transport_is_reliable): Moved to client_state.
5330 * tracepoint.c (current_traceframe): Moved to client_state.
5331
5332 Update all callers.
5333 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5334 linux-low.c, remote-utils.h, target.c: Use client_state.
5335
122394f1
AH
53362018-05-31 Alan Hayward <alan.hayward@arm.com>
5337
5338 * configure.srv: Add new c/h file.
5339
95228a0d
AH
53402018-05-31 Alan Hayward <alan.hayward@arm.com>
5341
5342 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5343 null VQ.
5344
d8dab6c3
MR
53452018-05-25 Maciej W. Rozycki <macro@mips.com>
5346
5347 * gdb.arch/mips-fpregset-core.exp: New test.
5348 * gdb.arch/mips-fpregset-core.c: New test source.
5349
81e25b7c
EK
53502018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5351
5352 PR server/23198
5353 * hostio.c (require_int): Do not report overflow for integers
5354 between 0xfffffff and 0x7fffffff.
5355
7e947ad3
MR
53562018-05-22 Maciej W. Rozycki <macro@mips.com>
5357
5358 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5359 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5360 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5361 functions.
5362 (the_low_target): Wire them.
5363
1d75a658
PFC
53642018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5365
5366 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5367 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5368 mode. Call collect_register_by_name with vscr using
5369 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5370 (ppc_store_vrregset): Add and set vscr_offset variable as in
5371 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5372 vscr_offset.
5373
d078308a
PFC
53742018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5375
5376 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5377 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5378 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5379
7273b5fc
PFC
53802018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5381
5382 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5383 (ppc_store_vsxregset): Likewise.
5384 (ppc_fill_vrregset): Likewise.
5385 (ppc_store_vrregset): Likewise.
5386 (ppc_fill_evrregset): Likewise.
5387 (ppc_store_evrregset): Likewise.
5388 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5389 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5390 needed.
5391
2e077f5e
PFC
53922018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5393
5394 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5395 wordsize of the inferior. Call ppc_linux_target_wordsize.
5396
bd64614e
PFC
53972018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5398
5399 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5400 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5401 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5402 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5403 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5404 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5405 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5406 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5407 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5408 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5409 (tdesc_powerpc_e500l): Remove.
5410 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5411 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5412 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5413 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5414 linux-ppc-tdesc.h.
5415 (ppc_arch_setup): Remove target description matching code. Fill a
5416 ppc_linux_features struct and call ppc_linux_match_description
5417 with it.
5418
75d74cca
MR
54192018-05-22 Maciej W. Rozycki <macro@mips.com>
5420
5421 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5422 width of the requested register exceeds the width of the
5423 `ptrace' data type.
5424 (mips_cannot_store_register): Likewise.
5425
e4439e43
MR
54262018-05-21 Maciej W. Rozycki <macro@mips.com>
5427
5428 * linux-mips-low.c (mips_fetch_register): New function. Update
5429 preceding comment.
5430 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5431 (the_low_target): Wire `mips_fetch_register'.
5432
55271bf9
JB
54332018-05-10 Joel Brobecker <brobecker@adacore.com>
5434
5435 * lynx-i386-low.c (LYNXOS_178): New macro.
5436 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5437 the layout on LynxOS-178.
5438 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5439 handle floating point registers that are not supported by
5440 LynxOS-178.
5441
1a34f210
TT
54422018-05-10 Tom Tromey <tom@tromey.com>
5443
5444 * configure: Rebuild.
5445
190852c8
JB
54462018-05-10 Joel Brobecker <brobecker@adacore.com>
5447
5448 PR server/23158:
5449 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5450 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5451 Use it to set the expedite_regs field in the given tdesc.
5452 * x86-tdesc.h: New file.
5453 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5454 Adjust following the addition of the new expedite_regs parameter
5455 to init_target_desc.
5456 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5457 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5458 (i386_linux_read_description, amd64_linux_read_description):
5459 Adjust following the addition of the new expedite_regs parameter
5460 to init_target_desc.
5461 * lynx-i386-low.c: #include "x86-tdesc.h".
5462 (lynx_i386_arch_setup): Adjust following the addition of the new
5463 expedite_regs parameter to init_target_desc.
5464 * nto-x86-low.c: #include "x86-tdesc.h".
5465 (nto_x86_arch_setup): Adjust following the addition of the new
5466 expedite_regs parameter to init_target_desc.
5467 * win32-i386-low.c: #include "x86-tdesc.h".
5468 (i386_arch_setup): Adjust following the addition of the new
5469 expedite_regs parameter to init_target_desc.
5470
7dbac825
JB
54712018-05-10 Joel Brobecker <brobecker@adacore.com>
5472
5473 PR server/23158:
5474 * win32-low.c (win32_create_inferior): Add call to my_wait
5475 setting last_status global.
5476
906994d9
JB
54772018-05-10 Joel Brobecker <brobecker@adacore.com>
5478
5479 PR server/23158:
5480 * win32-low.c (create_process): Only call gdb_tilde_expand if
5481 inferior_cwd is not NULL.
5482
8ee22052
AB
54832018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5484
5485 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5486 registers to the cache if their values have changed.
5487 (i387_xsave_to_cache): Provide default values for x87 control
5488 registers when these features are available, but disabled.
5489 * regcache.c (supply_register_by_name_zeroed): New function.
5490 * regcache.h (supply_register_by_name_zeroed): Declare new
5491 function.
5492
aff689d3
TT
54932018-05-07 Tom Tromey <tom@tromey.com>
5494
5495 * configure: Rebuild.
5496
85e26832
TT
54972018-05-04 Tom Tromey <tom@tromey.com>
5498
5499 * configure: Rebuild.
5500
a3b60e45
JK
55012018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5502 Pedro Alves <palves@redhat.com>
5503
5504 * linux-aarch64-low.c (aarch64_stopped_data_address):
5505 Likewise.
5506
632e107b
TT
55072018-04-27 Tom Tromey <tom@tromey.com>
5508
5509 * configure: Rebuild.
5510
458412c3
TT
55112018-04-23 Tom Tromey <tom@tromey.com>
5512
5513 * configure: Rebuild.
5514
f31c089e
SM
55152018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5516
5517 * Makefile.in (depcomp): Add "..".
5518 (all_deps_files): New and use it.
5519
b319b098
AH
55202018-04-18 Alan Hayward <alan.hayward@arm.com>
5521
5522 * configure.srv (aarch64*-*-linux*): Don't include xml.
5523 (i[34567]86-*-cygwin*): Likewise.
5524 (i[34567]86-*-linux*): Likewise.
5525 (i[34567]86-*-lynxos*): Likewise.
5526 (i[34567]86-*-mingw32ce*): Likewise.
5527 (i[34567]86-*-mingw*): Likewise.
5528 (i[34567]86-*-nto*): Likewise.
5529 (tic6x-*-uclinux): Likewise.
5530 (x86_64-*-linux*): Likewise.
5531 (x86_64-*-mingw*): Likewise.
5532 (x86_64-*-cygwin*): Likewise.
5533
3b74854b
AH
55342018-04-18 Alan Hayward <alan.hayward@arm.com>
5535
5536 * tdesc.c: Remove xml parameter.
5537
e98577a9
AH
55382018-04-18 Alan Hayward <alan.hayward@arm.com>
5539
5540 * server.c (get_features_xml): Remove cast.
5541 * tdesc.c (void target_desc::accept): Fill in function.
5542 (tdesc_get_features_xml): Remove old xml creation.
5543 (print_xml_feature::visit_pre): Add xml vistor.
5544 * tdesc.h (struct target_desc): Make xmltarget mutable.
5545 (tdesc_get_features_xml): Remove declaration.
5546
d278f585
AH
55472018-04-18 Alan Hayward <alan.hayward@arm.com>
5548
5549 * tdesc.c (tdesc_architecture_name): Add new function.
5550 (tdesc_osabi_name): Likewise.
5551 (tdesc_get_features_xml): Use new functions.
5552
eee8a18d
AH
55532018-04-18 Alan Hayward <alan.hayward@arm.com>
5554
5555 * tdesc.c (tdesc_create_flags): Remove.
5556 (tdesc_add_flag): Likewise.
5557 (tdesc_named_type): Likewise.
5558 (tdesc_create_union): Likewise.
5559 (tdesc_create_struct): Likewise.
5560 (tdesc_create_vector): Likewise.
5561 (tdesc_add_bitfield): Likewise.
5562 (tdesc_add_field): Likewise.
5563 (tdesc_set_struct_size): Likewise.
5564
82ec9bc7
AH
55652018-04-18 Alan Hayward <alan.hayward@arm.com>
5566
5567 * tdesc.c (~target_desc): Remove implictly deleted items.
5568 (init_target_desc): Iterate all features.
5569 (tdesc_get_features_xml): Use vector.
5570 (tdesc_create_feature): Create feature.
5571 * tdesc.h (tdesc_feature) Remove
5572 (target_desc): Add features.
5573
ea3e7d71
AH
55742018-04-18 Alan Hayward <alan.hayward@arm.com>
5575
5576 * Makefile.in: Add common/tdesc.c
5577 * tdesc.c (init_target_desc): init all reg_defs from register
5578 vector.
5579 (tdesc_create_reg): Create tdesc_reg.
5580 * tdesc.h (tdesc_feature): Add register vector.
5581
17d08cd4
SM
55822018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5583
5584 * tdesc.h (struct target_desc) <features>: Change type to
5585 std::vector<std::string>.
5586 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5587 changes.
5588 (tdesc_get_features_xml): Likewise.
5589 (tdesc_create_feature): Likewise.
5590
5cd3e386
AH
55912018-03-26 Alan Hayward <alan.hayward@arm.com>
5592
5593 * regcache.c (find_register_by_number): Return a ref.
5594 (find_regno): Use references.
5595 (register_size): Likewise.
5596 (register_data): Likewise.
5597 * tdesc.c (target_desc::~target_desc): Remove free calls.
5598 (target_desc::operator==): Use std::vector compare.
5599 (init_target_desc): Use reference.
5600 (tdesc_create_reg): Use reg constructors.
5601 * tdesc.h (struct target_desc): Replace pointer with object.
5602
dff7492c
AH
56032018-03-23 Alan Hayward <alan.hayward@arm.com>
5604
5605 * regcache.c (find_register_by_number): Make static.
5606 (find_regno): Use find_register_by_number
5607 * regcache.h (struct reg): Remove declaration.
5608
d80e5242
AH
56092018-03-23 Alan Hayward <alan.hayward@arm.com>
5610
5611 * tdesc.c (target_desc::~target_desc): Move to here.
5612 (target_desc::operator==): Likewise.
5613 * tdesc.h (target_desc::~target_desc): Move from here.
5614 (target_desc::operator==): Likewise.
5615
f69c5afb
AA
56162018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5617
5618 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5619
ce29f843
AA
56202018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5621
5622 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5623 S390_TDESC_GS.
5624 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5625 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5626 and init_registers_s390_gs_linux64.
5627
c49bd90b
AA
56282018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5629
5630 * linux-s390-low.c (s390_fill_gs): Remove function.
5631 (s390_fill_gsbc): Remove function.
5632 (s390_regsets): Set fill functions for the guarded storage regsets
5633 to NULL.
5634
7edb9bd3
AA
56352018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5636
5637 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5638 the word size. Add comment.
5639 (s390_get_wordsize): New function.
5640 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5641 pswm with it. Instead, use s390_get_wordsize to determine the
5642 word size first and derive the correct tdesc from that directly.
5643
39be3c7e
SM
56442018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5645
5646 * Makefile.in: Include silent-rules.mk.
5647 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5648 (COMPILE): Add ECHO_CXX.
5649 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5650 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5651 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5652 (version-generated.c): Add ECHO_GEN.
5653 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5654 (IPAGENT_COMPILE): Add ECHO_CXX.
5655 (%-generated.c): Add ECHO_REGDAT.
5656
3ae9ce5d
TT
56572018-03-14 Tom Tromey <tom@tromey.com>
5658
5659 PR cli/14977:
5660 * ax.c (ax_printf): Special case for NULL.
5661
e6a58aa8
SM
56622018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5663
5664 * linux-low.c (linux_qxfer_libraries_svr4): Use
5665 xml_escape_text_append.
5666
f6e8a41e
SM
56672018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5668
5669 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5670
b9671caf
SM
56712018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5672
5673 * server.c (handle_general_set): Remove unnecessary xstrdup.
5674
e80aaf61
SM
56752018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5676
5677 * server.c (parse_debug_format_options): Adjust to
5678 delim_string_to_char_ptr_vec changes.
5679 * thread-db.c (thread_db_load_search): Adjust to
5680 dirnames_to_char_ptr_vec changes.
5681
b1223e78
MM
56822018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5683
5684 * target.h (target_enable_btrace, target_disable_btrace)
5685 (target_read_btrace, target_read_btrace_conf): Turn macro into
5686 inline function. Throw error if target method is not defined.
5687 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5688 check for btrace target method. Be prepared to handle exceptions
5689 from btrace target methods.
5690
81561546
SDJ
56912018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5692
5693 * server.c (captured_main): Change order of error message printed
5694 when the current working directory cannot be found.
5695
25e3c82c
SDJ
56962018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5697
5698 * server.c: Include "filenames.h" and "pathstuff.h".
5699 (program_name): Delete variable.
5700 (program_path): New anonymous class.
5701 (get_exec_wrapper): Use "program_path" instead of
5702 "program_name".
5703 (handle_v_run): Likewise.
5704 (captured_main): Likewise.
5705 (process_serial_event): Likewise.
5706
b4987c95
SDJ
57072018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5708
5709 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5710 (OBJS): Add "pathstuff.o".
5711 * server.c (current_directory): New global variable.
5712 (captured_main): Initialize "current_directory".
5713
f46cd62a
AH
57142018-02-26 Alan Hayward <alan.hayward@arm.com>
5715
5716 * tdesc.c: Use common/tdesc.h.
5717 * tdesc.h: Likewise.
5718
a543c5ca
AH
57192018-02-20 Alan Hayward <alan.hayward@arm.com>
5720 Simon Marchi <simon.marchi@ericsson.com>
5721
5722 * Makefile.in: Switch order of make rules.
5723
b5884fa7
AH
57242018-02-19 Alan Hayward <alan.hayward@arm.com>
5725
5726 * Makefile.in: Add common directory in build.
5727 * configure.ac: Add common reference.
5728 * configure: Regenerate.
5729
de6242d3
MM
57302018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5731
5732 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5733 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5734 * spu-low.c (spu_target_ops): Likewise.
5735 * win32-low.c (win32_target_ops): Likewise.
5736 * server.c (supported_btrace_packets): Report packets unconditionally.
5737 * target.h (target_ops) <supports_btrace>: Remove.
5738 (target_supports_btrace): Remove.
5739
9ee23a85
MM
57402018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5741
5742 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5743 (handle_btrace_disable): Change return type to void. Use exceptions
5744 to report errors.
5745 (handle_btrace_general_set): Catch exception and copy message to
5746 return message.
5747
8ce47547
TT
57482018-02-08 Tom Tromey <tom@tromey.com>
5749
5750 * linux-low.c (install_software_single_step_breakpoints): Use
5751 make_scoped_restore.
5752 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5753 (do_restore_current_thread_cleanup): Remove.
5754 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5755 declare.
5756
45dd3607
TT
57572018-02-08 Tom Tromey <tom@tromey.com>
5758
5759 * mem-break.c (set_raw_breakpoint_at): Use
5760 gdb::unique_xmalloc_ptr.
5761
e671cd59
PA
57622018-01-30 Pedro Alves <palves@redhat.com>
5763
5764 PR gdb/13211
5765 * target.c (target_terminal::terminal_state): Rename to ...
5766 (target_terminal::m_terminal_state): ... this.
5767
a0aad537
JC
57682018-01-19 James Clarke <jrtc27@jrtc27.com>
5769
5770 * linux-low.c (handle_extended_wait): Surround call to
5771 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5772
4d9b86e1
SM
57732018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5774
5775 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5776 linux_ptrace_attach_fail_reason_string now returning an
5777 std::string.
5778 (linux_attach): Likewise.
5779 * thread-db.c (attach_thread): Likewise.
5780
f517c180
EA
57812018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5782
5783 PR gdb/21559
5784 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5785 checking for fs_base/gs_base fields in struct user_regs_struct.
5786 * configure: Regenerate.
5787
9a70f35c
YQ
57882018-01-16 Yao Qi <yao.qi@linaro.org>
5789
5790 PR gdb/18749
5791 * linux-low.c (fetch_register): Call supply_register instead of
5792 error.
5793
605fd3c6
YQ
57942018-01-08 Yao Qi <yao.qi@linaro.org>
5795 Simon Marchi <simon.marchi@ericsson.com>
5796
5797 * Makefile.in (OBS): Remove selftest.o.
5798 * configure.ac: Set srv_selftest_objs if $development is true.
5799 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5800 * configure: Re-generated.
5801 * server.c (captured_main): Wrap variable selftest_filter with
5802 GDB_SELF_TEST.
5803
2cc05030
SM
58042018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5805
5806 * server.c (parse_debug_format_options): Return std::string.
5807 (handle_monitor_command, captured_main): Adjust.
5808
e379cee6
PA
58092018-01-05 Pedro Alves <palves@redhat.com>
5810
5811 PR gdb/18653
5812 * server.c (captured_main): Pass quiet=false to
5813 save_original_signals_state.
5814
82e1e79a
JB
58152018-01-01 Joel Brobecker <brobecker@adacore.com>
5816
5817 * gdbreplay.c (gdbreplay_version): Update copyright year in
5818 version message.
5819 * server.c (gdbserver_version): Likewise.
5820
8e481c3b
TT
58212017-12-08 Tom Tromey <tom@tromey.com>
5822
5823 * ax.c (ax_printf): Update.
5824
a8806230
YQ
58252017-12-07 Yao Qi <yao.qi@linaro.org>
5826
5827 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5828 aarch64_linux_read_description.
5829 * linux-amd64-ipa.c (idx2mask): New array.
5830 (get_ipa_tdesc): Move idx2mask out.
5831 (initialize_low_tracepoint): Initialize target descriptions.
5832 * linux-i386-ipa.c (idx2mask): New array.
5833 (get_ipa_tdesc): Move idx2mask out.
5834 (initialize_low_tracepoint): Initialize target descriptions.
5835
d4a0e8b5
SM
58362017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5837
5838 * tdesc.c (struct tdesc_type): Change return type.
5839 (tdesc_add_flag): Change parameter type.
5840 (tdesc_add_bitfield): Likewise.
5841 (tdesc_add_field): Likewise.
5842 (tdesc_set_struct_size): Likewise.
5843
798a7429
SM
58442017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5845
5846 * regcache.c (registers_to_string): Remove unused variable.
5847
c0e15c9b
SM
58482017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5849
5850 * inferiors.c (for_each_inferior_with_data): Remove.
5851 * inferiors.h (for_each_inferior_with_data): Remove.
5852 * server.c (handle_qxfer_threads_worker): Change parameter type.
5853 (handle_qxfer_threads_proper): Use for_each_thread.
5854
f0045347
SM
58552017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5856
5857 * inferiors.c (for_each_inferior): Remove.
5858 (clear_inferiors): Use for_each_thread.
5859 * inferiors.h (for_each_inferior): Remove.
5860 * linux-low.c (linux_wait_for_event_filtered): Use
5861 for_each_thread.
5862 (linux_stabilize_threads): Likewise.
5863 * regcache.c (regcache_release): Likewise.
5864 * server.c (gdb_wants_all_threads_stopped): Likewise.
5865 (clear_pending_status_callback): Remove.
5866 (handle_status): Use for_each_thread.
5867 (captured_main): Likewise.
5868 * win32-low.c (child_init_thread_list): Likewise.
5869 (win32_clear_inferiors): Likewise.
5870 (fake_breakpoint_event): Likewise.
5871
9521758b
SM
58722017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5873
5874 * inferiors.h (find_inferior): Remove.
5875 * inferiors.c (find_inferior): Remove.
5876
8f86d7aa
SM
58772017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5878
5879 * linux-low.c (resume_status_pending_p): Update comment.
5880 (need_step_over_p): Update comment.
5881
e2b44075
SM
58822017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5883
5884 * linux-low.c (proceed_one_lwp): Return void, change parameter
5885 type.
5886 (unsuspend_and_proceed_one_lwp): Likewise.
5887 (proceed_all_lwps): Use for_each_thread.
5888 (unstop_all_lwps): Likewise.
5889
c80825ff
SM
58902017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5891
5892 * linux-low.c (linux_resume_one_thread): Return void, take
5893 parameter directly.
5894 (linux_resume): Use for_each_thread.
5895
df3e4dbe
SM
58962017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5897
5898 * linux-low.c (send_sigstop_callback): Return void, change
5899 parameter type. Rename to...
5900 (send_sigstop): ... this.
5901 (suspend_and_send_sigstop_callback): Return void, change parameter
5902 type. Rename to...
5903 (suspend_and_send_sigstop): ... this.
5904 (stop_all_lwps): Use for_each_thread.
5905
5a6b0a41
SM
59062017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5907
5908 * linux-low.c (lwp_running): Return bool, remove unused
5909 argument.
5910 (linux_stabilize_threads): Use find_thread.
5911
39a64da5
SM
59122017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5913
5914 * linux-low.c (select_singlestep_lwp_callback): Remove.
5915 (count_events_callback): Remove.
5916 (select_event_lwp_callback): Remove.
5917 (select_event_lwp): Use find_thread/for_each_thread.
5918
a1385b7b
SM
59192017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5920
5921 * linux-low.c (not_stopped_callback): Return bool, take filter
5922 argument directly.
5923 (linux_wait_for_event_filtered): Use find_thread.
5924 (linux_wait_1): Likewise.
5925
454296a2
SM
59262017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5927
5928 * linux-low.c (same_lwp): Remove.
5929 (find_lwp_pid): Use find_thread.
5930
6b2a85da
SM
59312017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5932
5933 * linux-low.c (delete_lwp_callback): Remove.
5934 (linux_mourn): Use for_each_thread.
5935
798a38e8
SM
59362017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5937
5938 * linux-low.c (linux_detach_lwp_callback): Return void, remove
5939 args parameter, don't check for pid.
5940 (linux_detach): Use for_each_thread.
5941
e4eb0dec
SM
59422017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5943
5944 * linux-low.c (struct counter): Remove.
5945 (second_thread_of_pid_p): Remove.
5946 (last_thread_of_process_p): Use find_thread.
5947
83e1b6c1
SM
59482017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5949
5950 * inferiors.c (find_inferior_in_random): Remove.
5951 * inferiors.h (find_inferior_in_random): Remove.
5952 * linux-low.c (status_pending_p_callback): Return bool, accept
5953 parameter ptid directly.
5954 (linux_wait_for_event_filtered): Use find_thread_in_random.
5955 (linux_wait_1): Likewise.
5956
8dc7b443
SM
59572017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5958
5959 * inferiors.c (find_inferior_id): Remove.
5960 (find_thread_ptid): Move implemention from find_inferior_id to
5961 here.
5962 * inferiors.h (find_inferior_id): Remove.
5963 * server.c (handle_status): Use find_thread_ptid.
5964 (process_serial_event): Likewise.
5965 * thread-db.c (find_one_thread): Likewise.
5966 (thread_db_thread_handle): Likewise.
5967 * win32-low.c (thread_rec): Likewise.
5968 (child_delete_thread): Likewise.
5969 (win32_thread_alive): Likewise.
5970 (get_child_debug_event): Likewise.
5971
da25033c
SM
59722017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5973
5974 * linux-mips-low.c (update_watch_registers_callback): Return
5975 void, remove pid_p parameter, don't check for pid.
5976 (mips_insert_point, mips_remove_point): Use for_each_thread.
5977
c91bb56b
SM
59782017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5979
5980 * lynx.low (lynx_delete_thread_callback): Remove.
5981 (lynx_mourn): Use for_each_thread.
5982
634a3254
SM
59832017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5984
5985 * regcache.c (regcache_invalidate_one): Remove.
5986 (regcache_invalidate_pid): use for_each_thread.
5987
41272101
TT
59882017-11-26 Tom Tromey <tom@tromey.com>
5989
5990 * linux-low.c (linux_create_inferior): Update.
5991
f5291a6f
UW
59922017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
5993
5994 * spu-low.c (spu_create_inferior): Fix typo in argument name.
5995
6654d750
AH
59962017-11-24 Alan Hayward <alan.hayward@arm.com>
5997
5998 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
5999 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6000 * linux-aarch64-tdesc-selftest.c: New file.
6001 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6002
60032017-11-24 Alan Hayward <alan.hayward@arm.com>
6004
6005 * configure.srv: Add new file.
6006 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6007 * linux-aarch64-tdesc-selftest.c: New file.
6008 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6009
49bdb7ee
AH
60102017-11-24 Alan Hayward <alan.hayward@arm.com>
6011
6012 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6013 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6014 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6015
d6d7ce56
AH
60162017-11-24 Alan Hayward <alan.hayward@arm.com>
6017
6018 * configure.srv: Add new files.
6019 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6020 aarch64_linux_read_description.
6021 * linux-aarch64-low.c (aarch64_linux_read_description):
6022 Merge with aarch64_arch_setup.
6023 (aarch64_arch_setup): Call aarch64_linux_read_description.
6024 * linux-aarch64-tdesc.c: New file.
6025 * linux-aarch64-tdesc.h: New file.
6026
506fe5f4
YQ
60272017-11-24 Yao Qi <yao.qi@linaro.org>
6028
6029 * configure.srv: Set $srv_regobj for tic6x-linux.
6030 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6031 (tic6x_read_description): Move some code to tic6x_arch_setup.
6032 (tic6x_tdesc_test): New function.
6033 (initialize_low_arch): Call selftests::register_test.
6034
29f9a567
YQ
60352017-11-22 Yao Qi <yao.qi@linaro.org>
6036
6037 * remote-utils.c (prepare_resume_reply): Use memcpy.
6038
578290ec
SM
60392017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6040
6041 * linux-low.c (kill_one_lwp_callback): Return void, take
6042 argument directly, don't filter on pid.
6043 (linux_kill): Use for_each_thread.
6044
eca55aec
SM
60452017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6046
6047 * linux-low.c (need_step_over_p): Return bool, remove dummy
6048 argument.
6049 (linux_resume, proceed_all_lwps): Use find_thread.
6050
25c28b4d
SM
60512017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6052
6053 * linux-low.c (resume_status_pending_p): Return bool, remove
6054 flag_p argument.
6055 (linux_resume): Use find_thread.
6056
5fdda392
SM
60572017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6058
6059 * linux-low.c (struct thread_resume_array): Remove.
6060 (linux_set_resume_request): Return void, take arguments
6061 directly.
6062 (linux_resume): Use for_each_thread.
6063
fcb056a5
SM
60642017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6065
6066 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6067 return bool, remove data argument.
6068 (linux_stabilize_threads): Use find_thread.
6069
139720c5
SM
60702017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6071
6072 * linux-low.c (unsuspend_one_lwp): Remove.
6073 (unsuspend_all_lwps): Use for_each_thread, inline code from
6074 unsuspend_one_lwp.
6075
6d1e5673
SM
60762017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6077
6078 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6079 * linux-low.c (struct iterate_over_lwps_args): Remove.
6080 (iterate_over_lwps_filter): Remove.
6081 (iterate_over_lwps): Use find_thread.
6082
bbf550d5
SM
60832017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6084
6085 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6086 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6087 code from reset_lwp_ptrace_options_callback.
6088
00192f77
SM
60892017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6090
6091 * linux-arm-low.c (struct update_registers_data): Remove.
6092 (update_registers_callback): Return void, take arguments
6093 directly, don't check thread's pid.
6094 (arm_insert_point, arm_remove_point): Use for_each_thread.
6095
2bee2b6c
SM
60962017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6097
6098 * win32-low.c (continue_one_thread): Return void, take argument
6099 directly.
6100 (child_continue): Use for_each_thread.
6101
0b360f19
SM
61022017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6103
6104 * win32-i386-low.c (update_debug_registers_callback): Rename
6105 to ...
6106 (update_debug_registers): ... this, return void, remove pid_p arg.
6107 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6108
f27866ba
SM
61092017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6110
6111 * inferiors.h (struct process_info): Add constructor, initialize
6112 fields..
6113 <syscalls_to_catch>: Change type to std::vector<int>.
6114 * inferiors.c (add_process): Allocate process_info with new.
6115 (remove_process): Free process_info with delete.
6116 * linux-low.c (handle_extended_wait): Adjust.
6117 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6118 * server.c (handle_general_set): Adjust.
6119
e849ea89
PA
61202017-11-16 Pedro Alves <palves@redhat.com>
6121
6122 * remote-utils.c (remote_close): Block SIGIO signals instead of
6123 uninstalling the SIGIO handler.
6124
1d0aa65c
AH
61252017-11-16 Alan Hayward <alan.hayward@arm.com>
6126
6127 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6128
3491a34c
YQ
61292017-11-16 Yao Qi <yao.qi@linaro.org>
6130
6131 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6132 (tic6x_store_gregset): Likewise.
6133 (tic6x_usrregs_info): Move it up.
6134
a602f924
AH
61352017-11-15 Alan Hayward <alan.hayward@arm.com>
6136
6137 * Makefile.in: Update arch rules.
6138 * configure.srv: Explicitly mark arch/ files.
6139
5616b6c3
AS
61402017-11-13 Andreas Schwab <schwab@suse.de>
6141
6142 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6143 function.
6144 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6145
d1928160
PA
61462017-11-06 Pedro Alves <palves@redhat.com>
6147
6148 * config.in, configure: Regenerate.
6149
bac608e7
SM
61502017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6151
6152 * target.c (struct thread_search): Remove.
6153 (thread_search_callback): Remove.
6154 (prepare_to_access_memory): Use for_each_thread instead of
6155 find_inferior. Inline code from thread_search_callback.
6156
eaddb425
SM
61572017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6158
6159 * server.c (struct visit_actioned_threads_data): Remove.
6160 (visit_actioned_threads): Change prototype to take arguments
6161 directly.
6162 (resume): Use find_thread instead of find_inferior.
6163
99078d34
SM
61642017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6165
6166 * server.c (queue_stop_reply_callback): Change prototype, return
6167 void.
6168 (find_status_pending_thread_callback): Remove.
6169 (handle_status): Replace find_inferior with find_thread and
6170 for_each_thread.
6171
cc628f3d
AH
61722017-10-25 Alan Hayward <alan.hayward@arm.com>
6173
6174 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6175 with REGNO.
6176 (aarch64_store_gregset): Likewise.
6177 (aarch64_fill_fpregset): Likewise.
6178 (aarch64_store_fpregset): Likewise.
6179
4d3bb80e
SM
61802017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6181
6182 * gdbthread.h (find_thread, for_each_thread): New functions.
6183 * inferiors.c (thread_of_pid): Remove.
6184 (find_any_thread_of_pid): Use find_thread.
6185 * linux-low.c (num_lwps): Use for_each_thread.
6186
7a7cdfa0
YQ
61872017-10-17 Yao Qi <yao.qi@linaro.org>
6188
6189 * Makefile.in: Remove one rule.
6190 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6191
e675d170
YQ
61922017-10-17 Yao Qi <yao.qi@linaro.org>
6193
6194 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6195 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6196
7eb4e0f9
YQ
61972017-10-17 Yao Qi <yao.qi@linaro.org>
6198
6199 * configure.srv: Rename arm.o with arch/arm.o.
6200
60d6cfc9
YQ
62012017-10-17 Yao Qi <yao.qi@linaro.org>
6202
6203 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6204 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6205 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6206 (arch-i386.o, arch-amd64.o): Remove rules.
6207 (arch/%.o): New rule.
6208 Update POSTCOMPILE and COMPILE.pre.
6209 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6210 * configure: Re-generated.
6211 * configure.srv: Replace arch-i386.o with arch/i386.o.
6212 Replace arch-amd64.o with arch/amd64.o.
6213
5bfda255
YQ
62142017-10-16 Yao Qi <yao.qi@linaro.org>
6215
6216 * configure: Regenerated.
6217
9c80ecd6
SM
62182017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6219
6220 * inferiors.h: (struct inferior_list): Remove.
6221 (struct inferior_list_entry); Remove.
6222 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6223 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6224 get_first_inferior): Remove.
6225 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6226 find_inferior_id, find_inferior_in_random): Change signature.
6227 * inferiors.c (all_threads): Change type to
6228 std::list<thread_info *>.
6229 (get_thread): Remove macro.
6230 (find_inferior, find_inferior_id): Change signature, implement
6231 using find_thread.
6232 (find_inferior_in_random): Change signature, implement using
6233 find_thread_in_random.
6234 (for_each_inferior, for_each_inferior_with_data): Change
6235 signature, implement using for_each_thread.
6236 (add_inferior_to_list, remove_inferior): Remove.
6237 (add_thread, get_first_thread, thread_of_pid,
6238 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6239 (get_first_inferior, one_inferior_p, clear_inferior_list):
6240 Remove.
6241 (clear_inferiors, get_thread_process): Update.
6242 * gdbthread.h: Include <list>.
6243 (struct thread_info) <entry>: Remove field.
6244 <id>: New field.
6245 (all_threads): Change type to std::list<thread_info *>.
6246 (get_first_inferior): Add doc.
6247 (find_thread, for_each_thread, find_thread_in_random): New
6248 functions.
6249 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6250 * linux-arm-low.c (update_registers_callback): Update.
6251 * linux-low.c (second_thread_of_pid_p): Update.
6252 (kill_one_lwp_callback, linux_detach_lwp_callback,
6253 delete_lwp_callback, status_pending_p_callback, same_lwp,
6254 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6255 iterate_over_lwps, not_stopped_callback,
6256 resume_stopped_resumed_lwps, count_events_callback,
6257 select_singlestep_lwp_callback, select_event_lwp_callback,
6258 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6259 suspend_and_send_sigstop_callback, wait_for_sigstop,
6260 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6261 lwp_running, linux_set_resume_request, resume_status_pending_p,
6262 need_step_over_p, start_step_over, linux_resume_one_thread,
6263 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6264 reset_lwp_ptrace_options_callback): Update.
6265 * linux-mips-low.c (update_watch_registers_callback): Update.
6266 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6267 Update.
6268 (free_register_cache_thread_one): Remove.
6269 (regcache_release): Update.
6270 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6271 handle_qxfer_threads_worker): Update.
6272 (handle_query): Update, use list iterator.
6273 (visit_actioned_threads, handle_pending_status,
6274 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6275 clear_pending_status_callback, set_pending_status_callback,
6276 find_status_pending_thread_callback, handle_status,
6277 process_serial_event): Update.
6278 * target.c (thread_search_callback): Update.
6279 * thread-db.c (thread_db_get_tls_address): Update.
6280 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6281 Update.
6282 * win32-i386-low.c (update_debug_registers_callback): Update.
6283 * win32-low.c (delete_thread_info, child_delete_thread,
6284 continue_one_thread, suspend_one_thread,
6285 get_child_debug_event): Adjust.
6286
9179355e
SM
62872017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6288
6289 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6290 * inferiors.h: Include <list>.
6291 (struct process_info) <entry>: Remove field.
6292 <pid>: New field.
6293 (pid_of): Change macro to function.
6294 (ptid_of, lwpid_of): Remove macro.
6295 (all_processes): Change type to std::list<process_info *>.
6296 (ALL_PROCESSES): Remove macro.
6297 (for_each_process, find_process): New function.
6298 * inferiors.c (all_processes): Change type to
6299 std::list<process_info *>.
6300 (find_thread_process): Adjust.
6301 (add_process): Likewise.
6302 (remove_process): Likewise.
6303 (find_process_pid): Likewise.
6304 (get_first_process): Likewise.
6305 (started_inferior_callback): Remove.
6306 (have_started_inferiors_p): Adjust.
6307 (attached_inferior_callback): Remove.
6308 (have_attached_inferiors_p): Adjust.
6309 * linux-low.c (check_zombie_leaders): Likewise.
6310 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6311 (x86_linux_update_xmltarget): Adjust.
6312 * server.c (handle_query): Likewise.
6313 (gdb_reattached_process): Remove.
6314 (handle_status): Adjust.
6315 (kill_inferior_callback): Likewise.
6316 (detach_or_kill_inferior): Remove.
6317 (print_started_pid): Likewise.
6318 (print_attached_pid): Likewise.
6319 (detach_or_kill_for_exit): Update.
6320 (process_serial_event): Likewise.
6321 * linux-arm-low.c (arm_new_fork): Likewise.
6322
c9cb8905
SM
63232017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6324
6325 * dll.h: Include <list>.
6326 (struct dll_info): Add constructor.
6327 <entry>: Remove field.
6328 (all_dlls): Change type to std::list<dll_info>.
6329 * dll.c: Include <algorithm>.
6330 (get_dll): Remove macro.
6331 (all_dlls): Change type to std::list<dll_info *>.
6332 (free_one_dll): Remove.
6333 (match_dll): Likewise.
6334 (loaded_dll): Adjust.
6335 (unloaded_dll): Adjust to all_dlls type change, use
6336 std::find_if. Inline code from match_dll.
6337 (clear_dlls): Adjust to all_dlls type change.
6338 * server.c (emit_dll_description): Remove.
6339 (handle_qxfer_libraries): Adjust to all_dlls type change,
6340 integrate emit_dll_description's functionality.
6341
04ec7890
SM
63422017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6343
6344 * linux-low.h (struct linux_target_ops) <delete_process>: New
6345 field.
6346 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6347 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6348 (struct linux_target_ops): Add delete_process callback.
6349 * linux-arm-low.c (arm_delete_process): New.
6350 (struct linux_target_ops): Add delete_process callback.
6351 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6352 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6353 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6354 * linux-mips-low.c (mips_linux_delete_process): New.
6355 (struct linux_target_ops): Add delete_process callback.
6356 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6357 * linux-s390-low.c (struct linux_target_ops): Likewise.
6358 * linux-sh-low.c (struct linux_target_ops): Likewise.
6359 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6360 * linux-tile-low.c (struct linux_target_ops): Likewise.
6361 * linux-x86-low.c (x86_linux_delete_process): New.
6362 (struct linux_target_ops): Add delete_process callback.
6363 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6364
466eecee
SM
63652017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6366
6367 * linux-aarch64-low.c (the_low_target): Add thread delete
6368 callback.
6369 * linux-arm-low.c (arm_delete_thread): New function.
6370 (the_low_target): Add thread delete callback.
6371 * linux-bfin-low.c (the_low_target): Likewise.
6372 * linux-crisv32-low.c (the_low_target): Likewise.
6373 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6374 set.
6375 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6376 field.
6377 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6378 * linux-mips-low.c (mips_linux_delete_thread): New function.
6379 (the_low_target): Add thread delete callback.
6380 * linux-ppc-low.c (the_low_target): Likewise.
6381 * linux-s390-low.c (the_low_target): Likewise.
6382 * linux-sh-low.c (the_low_target): Likewise.
6383 * linux-tic6x-low.c (the_low_target): Likewise.
6384 * linux-tile-low.c (the_low_target): Likewise.
6385 * linux-x86-low.c (the_low_target): Likewise.
6386 * linux-xtensa-low.c (the_low_target): Likewise.
6387
b79f7801
YZ
63882017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6389
6390 * win32-low.c: Include "common-inferior.h".
6391
bc3b087d
SDJ
63922017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6393
6394 * inferiors.c (set_inferior_cwd): New function.
6395 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6396 (handle_query): Inform that QSetWorkingDir is supported.
6397 * win32-low.c (create_process): Pass the inferior's cwd to
6398 CreateProcess.
6399
d092c5a2
SDJ
64002017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6401
6402 * inferiors.c (current_inferior_cwd): New global variable.
6403 (get_inferior_cwd): New function.
6404 * inferiors.h (struct process_info) <cwd>: New field.
6405
7da0a886
SDJ
64062017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6407
6408 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6409 (OBS): Add gdb_tilde_expand.o.
6410
289a6840
SM
64112017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6412
6413 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6414 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6415
256642e8
PA
64162017-09-29 Pedro Alves <palves@redhat.com>
6417
6418 * ax.c (gdb_parse_agent_expr): Constify.
6419 * ax.h (gdb_parse_agent_expr): Constify.
6420 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6421 Constify.
6422 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6423 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6424 * remote-utils.h (read_ptid): Constify.
6425 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6426 (process_point_options, process_serial_event): Constify.
6427 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6428 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6429 (cmd_qtbuffer): Constify.
6430
5b9ca4d4
PA
64312017-09-29 Pedro Alves <palves@redhat.com>
6432
6433 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6434 fails.
6435
94c207e0
PA
64362017-09-29 Pedro Alves <palves@redhat.com>
6437
6438 * linux-low.c (handle_extended_wait): Pass parent thread instead
6439 of process to thread_db_notice_clone.
6440 * linux-low.h (thread_db_notice_clone): Replace parent process
6441 parameter with parent thread parameter.
6442 * thread-db.c (find_one_thread): Add comment.
6443 (thread_db_notice_clone): Replace parent process parameter with
6444 parent thread parameter. Temporarily switch to the parent thread.
6445
75352e28
SDJ
64462017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6447
6448 * gdbthread.h: Include "common-gdbthread.h".
6449 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6450 "if" when validating the ptid.
6451 * remote-utils.c: Include "gdbthread.h".
6452 (prepare_resume_reply): Use "switch_to_thread".
6453 * target.c (done_accessing_memory): Likewise.
6454
ad339634
AA
64552017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6456
6457 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6458 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6459 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6460 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6461 s390x-gs-linux64-ipa.o to ipa_obj.
6462 * linux-s390-low.c (HWCAP_S390_GS): New define.
6463 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6464 New functions.
6465 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6466 (s390_arch_setup): Check for guarded-storage support and choose
6467 appropriate tdesc.
6468 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6469 init_registers_s390x_gs_linux64.
6470 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6471 enum value.
6472 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6473 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6474
cc4d742f
SM
64752017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6476
6477 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6478
f6327dcb
KB
64792017-09-21 Kevin Buettner <kevinb@redhat.com>
6480
6481 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6482 (thread_db_thread_handle): Declare.
6483 * linux-low.c (linux_target_ops): Initialize thread_handle.
6484 * server.c (handle_qxfer_threads_worker): Add support for
6485 "handle" attribute.
6486 * target.h (struct target_ops): Add new function pointer,
6487 thread_handle.
6488 (target_thread_handle): Define.
6489 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6490 field in lwp.
6491 (thread_db_thread_handle): New function.
6492
86299109
KB
64932017-09-21 Kevin Buettner <kevinb@redhat.com>
6494
6495 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6496 * linux-low.h (thread_db_notice_clone): Declare.
6497 * thread-db.c (thread_db_notice_clone): New function.
6498
f557a88a
PA
64992017-09-21 Pedro Alves <palves@redhat.com>
6500
6501 * server.c (gdb_read_memory, handle_status, process_serial_event)
6502 (handle_serial_event, handle_target_event): Adjust to
6503 set_desired_thread prototype change.
6504 * target.c (set_desired_thread): Remove 'use_general' parameter
6505 and adjust.
6506 * target.h (set_desired_thread): Remove 'use_general' parameter.
6507
223ffa71
TT
65082017-09-20 Tom Tromey <tom@tromey.com>
6509
6510 * target.c (target_terminal::terminal_state): Define.
6511 (target_terminal::init): Rename from target_terminal_init.
6512 (target_terminal::inferior): Rename from
6513 target_terminal_inferior.
6514 (target_terminal::ours): Rename from target_terminal_ours.
6515 (target_terminal::ours_for_output, target_terminal::info): New.
6516
04fd3ba9
SM
65172017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6518
6519 * server.c (accumulate_file_name_length): Remove.
6520 (emit_dll_description): Adjust to std::string change.
6521 (handle_qxfer_libraries): Use std::string to hold document.
6522
5e187554
SM
65232017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6524
6525 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6526 return type of xml_escape_text.
6527 * server.c (emit_dll_description): Likewise.
6528
1526853e
SM
65292017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6530
6531 * server.c (captured_main): Accept argument for --selftest.
6532 Update run_tests call.
6533 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6534 when registering selftests.
6535
c4dfafab
SDJ
65362017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6537
6538 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6539 instead of "VEC" for "target_desc.reg_defs".
6540 (regcache_cpy): Likewise.
6541 (registers_to_string): Likewise.
6542 (registers_from_string): Likewise.
6543 (find_regno): Likewise.
6544 (supply_regblock): Likewise.
6545 (regcache_raw_read_unsigned): Likewise.
6546 * tdesc.c (init_target_desc): Likewise.
6547 (tdesc_create_reg): Likewise.
6548 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6549 (struct target_desc) <reg_defs>: Convert to "std::vector".
6550 (target_desc): Do not initialize "reg_defs".
6551 (~target_desc): Update code to use "std::vector" instead of "VEC"
6552 for "target_desc.reg_defs".
6553 (operator==): Likewise.
6554
124aceb4
SM
65552017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6556
6557 * inferiors.h (thread_to_gdb_id): Remove.
6558 * inferiors.c (thread_to_gdb_id): Remove.
6559 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6560 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6561 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6562 Likewise.
6563 * nto-low.c (nto_fetch_registers, nto_store_registers,
6564 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6565
96cde54f
SM
65662017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6567
6568 * inferiors.h (gdb_id_to_thread_id): Remove.
6569 * inferiors.c (gdb_id_to_thread_id): Remove.
6570 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6571 removal. Move pid declaration closer to where it's used.
6572
e8ca139e
SM
65732017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6574
6575 * server.c (handle_detach): New function.
6576 (process_serial_event): Move code out, call handle_detach.
6577
f8a4e119
SM
65782017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6579
6580 * server.c (require_running): Rename to ...
6581 (require_running_or_return): ... this ...
6582 (require_running_or_break): ... and this.
6583 (handle_query, process_serial_event): Adjust.
6584
0eb0a407
SM
65852017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6586
6587 * linux-low.c (linux_set_resume_request): Remove unused
6588 variables.
6589
785922a5
SM
65902017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6591
6592 * server.c (first_thread_of): Remove.
6593 (process_serial_event): Replace usage of first_thread_of with
6594 find_any_thread_of_pid.
6595 * tracepoint.c (same_process_p): Remove.
6596 (gdb_agent_about_to_close): Replace usage of same_process_p with
6597 find_any_thread_of_pid.
6598 * linux-x86-low.c (same_process_callback): Remove.
6599 (x86_arch_setup_process_callback): Replace usage of
6600 same_process_callback with find_any_thread_of_pid.
6601 * thread-db.c (any_thread_of): Remove.
6602 (switch_to_process): Replace usage of any_thread_of with
6603 find_any_thread_of_pid.
6604 * inferiors.c (thread_pid_matches_callback): Remove.
6605 (find_thread_process): Adjust to use find_any_thread_of_pid.
6606
a059f00c
SDJ
66072017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6608
6609 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6610 with "!VEC_empty".
a059f00c 6611
cc397f3a
SDJ
66122017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6613
6614 * linux-low.c (handle_extended_wait): Use
6615 "allocate_target_description" instead of "XNEW".
6616 * linux-x86-low.c (initialize_low_arch): Likewise.
6617
22916b07
YQ
66182017-09-05 Yao Qi <yao.qi@linaro.org>
6619
6620 * configure.srv (srv_i386_regobj): Remove.
6621 (srv_amd64_regobj): Remove.
6622 (srv_regobj): Set it to "" for x86 non-linux targets.
6623 * linux-x86-tdesc.c (i386_linux_read_description):
6624 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6625 (init_registers_i386): Remove the declaration.
6626 (tdesc_i386): Remove the declaration.
6627 (lynx_i386_arch_setup): Call i386_create_target_description.
6628 * nto-x86-low.c: Likewise.
6629 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6630 [!__x86_64__]: include arch/i386.h.
6631 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6632
38602d55
YQ
66332017-09-05 Yao Qi <yao.qi@linaro.org>
6634
6635 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6636 i386/amd64-XXX-linux from it.
6637
44b886ff
YQ
66382017-09-05 Yao Qi <yao.qi@linaro.org>
6639
6640 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6641 false.
6642 (ipa_amd64_linux_regobj): Remove.
6643 (ipa_x32_linux_regobj): Remove.
6644
b4570e4b
YQ
66452017-09-05 Yao Qi <yao.qi@linaro.org>
6646
6647 * Makefile.in (arch-amd64.o): New rule.
6648 * configure.srv: Append arch-amd64.o.
6649 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6650 (get_ipa_tdesc): Call amd64_linux_read_description.
6651 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6652 and init_registers_amd64_XXX.
6653 * linux-x86-low.c (x86_linux_read_description): Call
6654 amd64_linux_read_description.
6655 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6656 (initialize_low_arch): Don't call init_registers_x32_XXX and
6657 init_registers_amd64_XXX.
6658 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6659 and tdesc_amd64_XXX.
6660 [__x86_64__] (amd64_tdesc_test): New function.
6661 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6662 and init_registers_amd64_XXX.
6663 * linux-x86-tdesc.c: Include arch/amd64.h.
6664 (xcr0_to_tdesc_idx): New function.
6665 (i386_linux_read_description): New function.
6666 (amd64_get_ipa_tdesc_idx): New function.
6667 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6668 (amd64_get_ipa_tdesc): Declare.
6669
d1f28ea2
YQ
66702017-09-05 Yao Qi <yao.qi@linaro.org>
6671
6672 * configure.srv (srv_i386_linux_xmlfiles): Remove
6673 i386/i386-XXX-linux.xml from it.
6674
25a93583
YQ
66752017-09-05 Yao Qi <yao.qi@linaro.org>
6676
6677 * configure.srv: Set srv_i386_linux_regobj empty if $development
6678 is false.
6679 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6680 initialize_low_tdesc.
6681 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6682 with #if initialize_low_tdesc.
6683 * linux-x86-tdesc-selftest.c: New file.
6684 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6685
5f035c07
YQ
66862017-09-05 Yao Qi <yao.qi@linaro.org>
6687
6688 * Makefile.in (arch-i386.o): New rule.
6689 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6690 (x86_64-*-linux*): Likewise.
6691 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6692 include arch/i386.h.
6693 (i386_linux_read_description): Remove code and call
6694 i386_create_target_description.
6695 * tdesc.c (allocate_target_description): New function.
6696 * tdesc.h (set_tdesc_architecture): Remove declaration.
6697 (set_tdesc_osabi): Likewise.
6698
0abe8a89
YQ
66992017-09-05 Yao Qi <yao.qi@linaro.org>
6700
6701 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6702 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6703 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6704 .xmltarget.
6705 * server.c (get_features_xml): Call tdesc_get_features_xml.
6706 * tdesc.c (set_tdesc_architecture): New function.
6707 (set_tdesc_osabi): New function.
6708 (tdesc_get_features_xml): New function.
6709 (tdesc_create_feature): Add an argument.
6710 * tdesc.h (struct target_desc) <features>: New field.
6711 <arch, osabi>: New field.
6712 (~target_desc): xfree features, arch, and osabi.
6713 (target_desc::oerator==): Don't compare .xmltarget.
6714 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6715 (set_tdesc_osabi): Likewise.
6716 (tdesc_get_features_xml): Likewise.
6717
0a188386
YQ
67182017-09-05 Yao Qi <yao.qi@linaro.org>
6719
6720 * linux-x86-tdesc.c: Include selftest.h.
6721 (i386_tdesc_test): New function.
6722 (initialize_low_tdesc): Call selftests::register_test.
6723 * tdesc.h: Include regdef.h.
6724 (target_desc): Override operator == and !=.
6725
f49ff000
YQ
67262017-09-05 Yao Qi <yao.qi@linaro.org>
6727
6728 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6729 (ipa_obj): Likewise.
6730 * linux-i386-ipa.c: Include common/x86-xstate.h
6731 (get_ipa_tdesc): Call i386_linux_read_description.
6732 (initialize_low_tracepoint): Don't call init_registers_XXX
6733 functions, call initialize_low_tdesc instead.
6734 * linux-x86-low.c (x86_linux_read_description): Call
6735 i386_linux_read_description.
6736 (initialize_low_arch): Don't call init_registers_i386_XXX
6737 functions, call initialize_low_tdesc.
6738 * linux-x86-tdesc.c: New file.
6739 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6740 (i386_get_ipa_tdesc_idx): Declare.
6741 (i386_get_ipa_tdesc): Declare.
6742 (initialize_low_tdesc): Declare.
6743
2b68ef2f
YQ
67442017-09-05 Yao Qi <yao.qi@linaro.org>
6745
6746 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6747 instead of 0.
6748
f7000548
YQ
67492017-09-05 Yao Qi <yao.qi@linaro.org>
6750
6751 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6752 * regcache.c (get_thread_regcache): Use VEC_length.
6753 (init_register_cache): Likewise.
6754 (regcache_cpy): Likewise.
6755 (registers_to_string): Iterate reg_defs via VEC_iterate.
6756 (find_regno): Likewise.
6757 (find_register_by_number): Use VEC_index.
6758 (register_size): Call find_register_by_number.
6759 (register_data): Call find_register_by_number.
6760 (supply_regblock): Use VEC_length.
6761 (regcache_raw_read_unsigned): Likewise.
6762 * tdesc.c (init_target_desc): Iterate reg_defs via
6763 VEC_iterate.
6764 (default_description): Update initializer.
6765 (copy_target_description): Don't update field num_registers.
6766 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6767 <num_registers>: Remove.
6768
50a421ac
SM
67692017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6770
6771 * Makefile.in (.SECONDARY): Define target.
6772
23fdd69e
SM
67732017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6774
6775 * linux-low.c (linux_wait_1): Adjust.
6776 * server.c (queue_stop_reply_callback): Adjust.
6777
0a2dde4a
SDJ
67782017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6779
6780 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6781 QEnvironmentUnset and QEnvironmentReset packets.
6782 (handle_query): Inform remote that QEnvironmentHexEncoded,
6783 QEnvironmentUnset and QEnvironmentReset are supported.
6784
6afd337d
SM
67852017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6786
6787 * inferiors.h (inferior_target_data): Rename to ...
6788 (thread_target_data): ... this.
6789 (inferior_regcache_data): Rename to ...
6790 (thread_regcache_data): ... this.
6791 (set_inferior_regcache_data): Rename to ...
6792 (set_thread_regcache_data): ... this.
6793 * inferiors.c (inferior_target_data): Rename to ...
6794 (thread_target_data): ... this.
6795 (inferior_regcache_data): Rename to ...
6796 (thread_regcache_data): ... this.
6797 (set_inferior_regcache_data): Rename to ...
6798 (set_thread_regcache_data): ... this.
6799 (free_one_thread): Update.
6800 * linux-low.h (get_thread_lwp): Update.
6801 * regcache.c (get_thread_regcache): Update.
6802 (regcache_invalidate_thread): Update.
6803 (free_register_cache_thread): Update.
6804 * win32-i386-low.c (update_debug_registers_callback): Update.
6805 (win32_get_current_dr): Update.
6806 * win32-low.c (thread_rec): Update.
6807 (delete_thread_info): Update.
6808 (continue_one_thread): Update.
6809 (suspend_one_thread): Update.
6810
a160cc46
SM
68112017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6812
6813 * inferiors.c (set_inferior_target_data): Remove.
6814 * inferiors.h (set_inferior_target_data): Remove.
6815
6d580b63
YQ
68162017-08-18 Yao Qi <yao.qi@linaro.org>
6817
6818 * Makefile.in (OBS): Add selftest.o.
6819 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6820 * configure, config.in: Re-generated.
6821 * server.c: Include common/sefltest.h.
6822 (captured_main): Handle option --selftest.
6823
f5a29eb0
YQ
68242017-08-09 Yao Qi <yao.qi@linaro.org>
6825
6826 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6827 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6828 i386-avx-mpx.o and i386-mmx.o.
6829 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6830 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6831 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6832 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6833 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6834 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6835 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6836 i386/amd64-avx-mpx.xml.
6837
57757c2f
YQ
68382017-08-09 Yao Qi <yao.qi@linaro.org>
6839
6840 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6841 and x32-avx-avx512.o.
6842 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6843 i386/x32-avx-avx512.xml.
6844
229d26fc
SM
68452017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6846
6847 * tracepoint.h (enum class fast_tpoint_collect_result): New
6848 enumeration.
6849 (fast_tracepoint_collecting): Change return type to
6850 fast_tpoint_collect_result.
6851 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6852 * linux-low.h: Include tracepoint.h.
6853 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6854 fast_tpoint_collect_result.
6855 * linux-low.c (handle_tracepoints): Adjust.
6856 (linux_fast_tracepoint_collecting): Change return type to
6857 fast_tpoint_collect_result.
6858 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6859 linux_wait_1, stuck_in_jump_pad_callback,
6860 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6861 proceed_one_lwp): Adjust to type change.
6862
2e1e43e1
YQ
68632017-07-10 Yao Qi <yao.qi@linaro.org>
6864
6865 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6866
adc764e7
YQ
68672017-06-29 Yao Qi <yao.qi@linaro.org>
6868
6869 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6870 Remove.
6871 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6872
a206891a
SM
68732017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6874
6875 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6876
9a6c7d9c
SDJ
68772017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6878
6879 * linux-low.c (linux_create_inferior): Adjust code to access the
6880 environment information via 'gdb_environ' class.
6881 * lynx-low.c (lynx_create_inferior): Likewise.
6882 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6883 (get_environ): Return a pointer to 'our_environ'.
6884 (captured_main): Initialize 'our_environ'.
6885 * server.h (get_environ): Adjust prototype.
6886 * spu-low.c (spu_create_inferior): Adjust code to access the
6887 environment information via 'gdb_environ' class.
6888
ae3e2ccf
SM
68892017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6890
6891 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6892 usage of "register" keyword.
6893
3e019bdc
SM
68942017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6895
6896 * configure: Re-generate.
6897
8465943a
SM
68982017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6899
6900 * configure: Re-generate.
6901
cf0dd6f0
SM
69022017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6903
6904 * Makefile.in (COMPILE.pre): Add "-x c++".
6905
9845682b
SDJ
69062017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6907
6908 * fork-child.c: Conditionally include <signal.h>.
6909
aefd8b33
SDJ
69102017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6911
6912 * server.c (handle_general_set): Handle new packet
6913 "QStartupWithShell".
6914 (handle_query): Add "QStartupWithShell" to the list of supported
6915 packets.
6916 (gdbserver_usage): Add help text explaining the
6917 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6918 options.
6919 (captured_main): Recognize and act upon the presence of the new
6920 CLI options.
6921
2090129c
SDJ
69222017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6923 Pedro Alves <palves@redhat.com>
6924
6925 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
6926 * configure: Regenerate.
6927 * configure.srv (srv_linux_obj): Add "fork-child.o" and
6928 "fork-inferior.o".
6929 (i[34567]86-*-lynxos*): Likewise.
6930 (spu*-*-*): Likewise.
6931 * fork-child.c: New file.
6932 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
6933 and "environ.h".
6934 (linux_ptrace_fun): New function.
6935 (linux_create_inferior): Adjust function prototype to reflect
6936 change on "target.h". Adjust function code to use
6937 "fork_inferior".
6938 (linux_request_interrupt): Delete "signal_pid".
6939 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6940 (lynx_ptrace_fun): New function.
6941 (lynx_create_inferior): Adjust function prototype to reflect
6942 change on "target.h". Adjust function code to use
6943 "fork_inferior".
6944 * nto-low.c (nto_create_inferior): Adjust function prototype and
6945 code to reflect change on "target.h". Update comments.
6946 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
6947 "common-terminal.h" and "environ.h".
6948 (terminal_fd): Moved to fork-child.c.
6949 (old_foreground_pgrp): Likewise.
6950 (restore_old_foreground_pgrp): Likewise.
6951 (last_status): Make it global.
6952 (last_ptid): Likewise.
6953 (our_environ): New variable.
6954 (startup_with_shell): Likewise.
6955 (program_name): Likewise.
6956 (program_argv): Rename to...
6957 (program_args): ...this.
6958 (wrapper_argv): New variable.
6959 (start_inferior): Delete function.
6960 (get_exec_wrapper): New function.
6961 (get_exec_file): Likewise.
6962 (get_environ): Likewise.
6963 (prefork_hook): Likewise.
6964 (post_fork_inferior): Likewise.
6965 (postfork_hook): Likewise.
6966 (postfork_child_hook): Likewise.
6967 (handle_v_run): Update code to deal with arguments coming from the
6968 remote host. Update calls from "start_inferior" to
6969 "create_inferior".
6970 (captured_main): Likewise. Initialize environment variable. Call
6971 "have_job_control".
6972 * server.h (post_fork_inferior): New prototype.
6973 (get_environ): Likewise.
6974 (last_status): Declare.
6975 (last_ptid): Likewise.
6976 (signal_pid): Likewise.
6977 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6978 (spu_ptrace_fun): New function.
6979 (spu_create_inferior): Adjust function prototype to reflect change
6980 on "target.h". Adjust function code to use "fork_inferior".
6981 * target.c (target_terminal_init): New function.
6982 (target_terminal_inferior): Likewise.
6983 (target_terminal_ours): Likewise.
6984 * target.h: Include <vector>.
6985 (struct target_ops) <create_inferior>: Update prototype.
6986 (create_inferior): Update macro.
6987 * utils.c (gdb_flush_out_err): New function.
6988 * win32-low.c (win32_create_inferior): Adjust function prototype
6989 and code to reflect change on "target.h".
6990
043a4934
SDJ
69912017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6992
6993 * inferiors.c (switch_to_thread): New function.
6994
15652511
SDJ
69952017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6996
6997 * Makefile.in (SFILE): Add "common/job-control.c".
6998 (OBS): Add "job-control.o".
6999
21ea5acd
SDJ
70002017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7001
7002 * Makefile: Remove "@host_makefile_frag@".
7003
e13cb306
PA
70042017-05-05 Pedro Alves <palves@redhat.com>
7005
7006 * configure: Regenerate.
7007
c94fee56
SDJ
70082017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7009
7010 * configure: Regenerate.
7011
a0ff9e1a
SM
70122017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7013
7014 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7015 software_single_step change of return type to
7016 std::vector<CORE_ADDR>.
7017 * linux-low.c (install_software_single_step_breakpoints):
7018 Likewise.
7019 * linux-low.h (install_software_single_step_breakpoints):
7020 Likewise.
7021
be628ab8
SDJ
70222017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7023
7024 * remote-utils.c: Include "gdb_termios.h" instead of
7025 "terminal.h".
7026 * terminal.h: Delete file.
7027
7c5ded6a
SDJ
70282017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7029
7030 * server.c: Include <vector>.
7031 <program_argv, wrapper_argv>: Convert to std::vector.
7032 (start_inferior): Rewrite function to use C++.
7033 (handle_v_run): Likewise. Update code that calculates the argv
7034 based on the vRun packet; use C++.
7035 (captured_main): Likewise.
7036
436252de
SM
70372017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7038
7039 * server.c (handle_v_cont): Initialize thread_resume::thread
7040 with null_ptid.
7041
9bf2a700
PA
70422017-04-05 Pedro Alves <palves@redhat.com>
7043
7044 * configure: Regenerate.
7045
a121b7c1
PA
70462017-04-05 Pedro Alves <palves@redhat.com>
7047
7048 * gdbreplay.c (sync_error): Constify.
7049 * linux-x86-low.c (push_opcode): Constify.
7050
21c8a587
PA
70512017-04-05 Pedro Alves <palves@redhat.com>
7052
7053 * win32-low.c (get_child_debug_event)
7054 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7055 Report TARGET_WAITKIND_SPURIOUS instead.
7056
fb32b4f7
PA
70572017-04-05 Pedro Alves <palves@redhat.com>
7058
e79be6e5
SM
7059 * remote-utils.c (remote_prepare, remote_open): Constify.
7060 * remote-utils.h (remote_prepare, remote_open): Constify.
7061 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7062
65dd1e59
SM
70632017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7064
7065 * Makefile.in (clean): Clear .deps.
7066
8fa5b777
SM
70672017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7068
7069 * .gitignore: Remove generated files, replace with wildcard.
7070 * (clean): Replace removal of generated files with wildcard.
7071 (version.c): Replace with...
7072 (version-generated.c): ...this.
7073 (xml-builtin.c): Replace with...
7074 (xml-builtin-generated.c): ...this.
7075 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7076 (%.c: *regformats*): Replace with...
7077 (%-generated.c: *regformats*): ...this.
7078
a12e714b
MF
70792017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7080
7081 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7082 (xtensa_fill_gregset): Call collect_register_by_name for
7083 threadptr register.
7084 (xtensa_store_gregset): Call supply_register_by_name for
7085 threadptr register.
7086
1a09b50a
MF
70872017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7088
7089 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7090 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7091 (xtensa_store_gregset): Call supply_register for all registers in
7092 a0_regnum..a0_regnum + C0_NREGS range.
7093
1a01e7c6
SM
70942017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7095
7096 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7097 (ax-ipa.o: ax.c): Remove.
7098 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7099 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7100 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7101 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7102 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7103
36bc18a8
SM
71042017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7105
7106 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7107 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7108 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7109 (errors-ipa.o: ../common/errors.c): Remove.
7110 (format-ipa.o: ../common/format.c): Remove.
7111 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7112
a8ebe3d5
SM
71132017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7114
7115 * Makefile.in (%-ipa.o: %.c): New rule.
7116 (tracepoint-ipa.o: tracepoint.c): Remove.
7117 (utils-ipa.o: utils.c): Remove.
7118 (remote-utils-ipa.o: remote-utils.c): Remove.
7119 (regcache-ipa.o: regcache.c): Remove.
7120 (i386-linux-ipa.o: i386-linux.c): Remove.
7121 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7122 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7123 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7124 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7125 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7126 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7127 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7128 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7129 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7130 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7131 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7132 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7133 (aarch64-ipa.o: aarch64.c): Remove.
7134 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7135 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7136 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7137 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7138 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7139 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7140 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7141 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7142 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7143 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7144 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7145 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7146 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7147 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7148 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7149 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7150 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7151 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7152 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7153 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7154 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7155 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7156 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7157 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7158 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7159 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7160 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7161 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7162 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7163 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7164 (tdesc-ipa.o: tdesc.c): Remove.
7165 (x32-linux-ipa.o: x32-linux.c): Remove.
7166 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7167 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7168
50cfacb7
SM
71692017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7170
7171 * Makefile.in (%.o: ../arch/%.c): New rule.
7172 (arm.o: ../arch/arm.c): Remove.
7173 (arm-linux.o: ../arch/arm-linux.c): Remove.
7174 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7175 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7176
c5a22423
SM
71772017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7178
7179 * Makefile.in (%.o: ../nat/%.c): New rule.
7180 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7181 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7182 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7183 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7184 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7185 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7186 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7187 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7188 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7189 (linux-personality.o: ../nat/linux-personality.c): Remove.
7190 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7191 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7192 (x86-linux.o: ../nat/x86-linux.c): Remove.
7193 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7194 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7195
6bda016b
SM
71962017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7197
7198 * Makefile.in (%.o: ../common/%.c): New rule.
7199 (signals.o: ../common/signals.c): Remove.
7200 (print-utils.o: ../common/print-utils.c): Remove.
7201 (rsp-low.o: ../common/rsp-low.c): Remove.
7202 (common-utils.o: ../common/common-utils.c): Remove.
7203 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7204 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7205 (vec.o: ../common/vec.c): Remove.
7206 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7207 (xml-utils.o: ../common/xml-utils.c): Remove.
7208 (ptid.o: ../common/ptid.c): Remove.
7209 (buffer.o: ../common/buffer.c): Remove.
7210 (format.o: ../common/format.c): Remove.
7211 (filestuff.o: ../common/filestuff.c): Remove.
7212 (agent.o: ../common/agent.c): Remove.
7213 (errors.o: ../common/errors.c): Remove.
7214 (environ.o: ../common/environ.c): Remove.
7215 (common-debug.o: ../common/common-debug.c): Remove.
7216 (cleanups.o: ../common/cleanups.c): Remove.
7217 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7218 (fileio.o: ../common/fileio.c): Remove.
7219 (common-regcache.o: ../common/common-regcache.c): Remove.
7220 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7221 (new-op.o: ../common/new-op.c): Remove.
7222 (btrace-common.o: ../common/btrace-common.c): Remove.
7223
21122961
SM
72242017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7225
7226 * Makefile.in (%.o: ../target/%.c): New rule.
7227 (waitstatus.o: ../target/waitstatus.c): Remove.
7228
c362e621
SM
72292017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7230
7231 * Makefile.in
7232 (%.c: ../regformats/%.dat,
7233 (%.c: ../regformats/arm/%.dat,
7234 (%.c: ../regformats/i386/%.dat,
7235 (%.c: ../regformats/rs6000/%.dat): New rules.
7236 (aarch64.c): Remove.
7237 (reg-arm.c): Remove.
7238 (arm-with-iwmmxt.c): Remove.
7239 (arm-with-vfpv2.c): Remove.
7240 (arm-with-vfpv3.c): Remove.
7241 (arm-with-neon.c): Remove.
7242 (reg-bfin.c): Remove.
7243 (reg-cris.c): Remove.
7244 (reg-crisv32.c): Remove.
7245 (i386.c): Remove.
7246 (i386-linux.c): Remove.
7247 (i386-avx.c): Remove.
7248 (i386-avx-linux.c): Remove.
7249 (i386-avx-avx512.c): Remove.
7250 (i386-avx-avx512-linux.c): Remove.
7251 (i386-mpx.c): Remove.
7252 (i386-mpx-linux.c): Remove.
7253 (i386-avx-mpx-avx512-pku.c): Remove.
7254 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7255 (i386-avx-mpx.c): Remove.
7256 (i386-avx-mpx-linux.c): Remove.
7257 (i386-mmx.c): Remove.
7258 (i386-mmx-linux.c): Remove.
7259 (reg-ia64.c): Remove.
7260 (reg-m32r.c): Remove.
7261 (reg-m68k.c): Remove.
7262 (reg-cf.c): Remove.
7263 (mips-linux.c): Remove.
7264 (mips-dsp-linux.c): Remove.
7265 (mips64-linux.c): Remove.
7266 (mips64-dsp-linux.c): Remove.
7267 (nios2-linux.c): Remove.
7268 (powerpc-32.c): Remove.
7269 (powerpc-32l.c): Remove.
7270 (powerpc-altivec32l.c): Remove.
7271 (powerpc-cell32l.c): Remove.
7272 (powerpc-vsx32l.c): Remove.
7273 (powerpc-isa205-32l.c): Remove.
7274 (powerpc-isa205-altivec32l.c): Remove.
7275 (powerpc-isa205-vsx32l.c): Remove.
7276 (powerpc-e500l.c): Remove.
7277 (powerpc-64l.c): Remove.
7278 (powerpc-altivec64l.c): Remove.
7279 (powerpc-cell64l.c): Remove.
7280 (powerpc-vsx64l.c): Remove.
7281 (powerpc-isa205-64l.c): Remove.
7282 (powerpc-isa205-altivec64l.c): Remove.
7283 (powerpc-isa205-vsx64l.c): Remove.
7284 (s390-linux32.c): Remove.
7285 (s390-linux32v1.c): Remove.
7286 (s390-linux32v2.c): Remove.
7287 (s390-linux64.c): Remove.
7288 (s390-linux64v1.c): Remove.
7289 (s390-linux64v2.c): Remove.
7290 (s390-te-linux64.c): Remove.
7291 (s390-vx-linux64.c): Remove.
7292 (s390-tevx-linux64.c): Remove.
7293 (s390x-linux64.c): Remove.
7294 (s390x-linux64v1.c): Remove.
7295 (s390x-linux64v2.c): Remove.
7296 (s390x-te-linux64.c): Remove.
7297 (s390x-vx-linux64.c): Remove.
7298 (s390x-tevx-linux64.c): Remove.
7299 (tic6x-c64xp-linux.c): Remove.
7300 (tic6x-c64x-linux.c): Remove.
7301 (tic6x-c62x-linux.c): Remove.
7302 (reg-sh.c): Remove.
7303 (reg-sparc64.c): Remove.
7304 (reg-spu.c): Remove.
7305 (amd64.c): Remove.
7306 (amd64-linux.c): Remove.
7307 (amd64-avx.c): Remove.
7308 (amd64-avx-linux.c): Remove.
7309 (amd64-avx-avx512.c): Remove.
7310 (amd64-avx-avx512-linux.c): Remove.
7311 (amd64-mpx.c): Remove.
7312 (amd64-mpx-linux.c): Remove.
7313 (amd64-avx-mpx-avx512-pku.c): Remove.
7314 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7315 (amd64-avx-mpx.c): Remove.
7316 (amd64-avx-mpx-linux.c): Remove.
7317 (x32.c): Remove.
7318 (x32-linux.c): Remove.
7319 (x32-avx.c): Remove.
7320 (x32-avx-linux.c): Remove.
7321 (x32-avx-avx512.c): Remove.
7322 (x32-avx-avx512-linux.c): Remove.
7323 (reg-xtensa.c): Remove.
7324 (reg-tilegx.c): Remove.
7325 (reg-tilegx32.c): Remove.
7326
1672e0d9
SDJ
73272017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7328
7329 * Makefile.in (SFILES): Add "common/environ.c".
7330 (OBJS): Add "common/environ.h".
7331
239b6d10
WT
73322017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7333
7334 * configure.ac: Check if the fs_base and gs_base members of
7335 `struct user_regs_struct' exist.
7336 * config.in: Regenerated.
7337 * configure: Likewise.
7338
694b382c
AT
73392017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7340
7341 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7342 target_read_memory.
7343 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7344 (get_next_pcs_syscall_next_pc): Likewise.
7345
7dc53023
LM
73462016-12-23 Luis Machado <lgustavo@codesourcery.com>
7347
7348 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7349 * nto-x86-low.c: Likewise.
7350
ad02e4fe
SM
73512016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7352
7353 * Makefile.in: Include disable-implicit-rules.mk.
7354
dcb07cfa
PA
73552016-11-23 Pedro Alves <palves@redhat.com>
7356
7357 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7358 (debug_vprintf): Use std::chrono::steady_clock instead of
7359 gettimeofday. Use '.' instead of ':'.
7360 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7361 (get_timestamp): Use std::chrono::steady_clock instead of
7362 gettimeofday.
7363
8629c02c
SM
73642016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7365
7366 * Makefile.in: Fix whitespace formatting.
7367
b593ecca
SM
73682016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7369
7370 * Makefile.in (SFILES, OBS): Flatten list and order
7371 alphabetically.
7372
9986ba08
PA
73732016-11-23 Pedro Alves <palves@redhat.com>
7374
7375 * event-loop.c (handle_file_event): Use warning.
7376 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7377 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7378 Use warning.
7379
4eefa7bc
PA
73802016-11-23 Pedro Alves <palves@redhat.com>
7381
7382 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7383 output.
7384 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7385 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7386 debug_printf and debug_flush for debug output.
7387 * server.c (handle_general_set): Likewise.
7388 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7389 output.
7390
5443506e
SM
73912016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7392
7393 * Makefile.in (.c.o): Replace rule with ...
7394 (%.o: %.c): ... this one.
7395
3b165252
SM
73962016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7397
7398 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7399 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7400 make.
7401 * configure.ac: Remove checks for the make program.
7402 * configure: Re-generate.
7403
0bcda685
PA
74042016-10-28 Pedro Alves <palves@redhat.com>
7405
7406 * Makefile.in (CXX_DIALECT): Get from configure.
7407 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7408 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7409 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7410 * config.in: Regenerate.
7411 * configure: Regenerate.
7412
c3805894
YQ
74132016-10-27 Yao Qi <yao.qi@linaro.org>
7414
7415 * linux-low.c (linux_supports_range_stepping): Return true if
7416 can_software_single_step return true.
7417
89342618
YQ
74182016-10-27 Yao Qi <yao.qi@linaro.org>
7419
7420 * inferiors.c (find_inferior_in_random): New function.
7421 * inferiors.h (find_inferior_in_random): Declare.
7422 * linux-low.c (linux_wait_for_event_filtered): Call
7423 find_inferior_in_random instead of find_inferior.
7424
e3652c84
YQ
74252016-10-27 Yao Qi <yao.qi@linaro.org>
7426
7427 * linux-low.c (linux_wait_1): If single-step breakpoints are
7428 inserted, remove them.
7429
5a04c4cf
PA
74302016-10-26 Pedro Alves <palves@redhat.com>
7431
7432 * linux-low.c (handle_extended_wait): Link parent/child fork
7433 threads.
7434 (linux_wait_1): Unlink them.
7435 (linux_set_resume_request): Ignore resume requests for
7436 already-resumed and unhandled fork child threads.
7437 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7438 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7439 New functions.
7440 (handle_v_requests) <vCont>: Don't call require_running.
7441 * server.h (in_queued_stop_replies): New declaration.
7442
cb93dc7f
YQ
74432016-10-24 Yao Qi <yao.qi@linaro.org>
7444
7445 PR server/20733
7446 * linux-aarch64-low.c (append_insns): Cast the return value to
7447 'uint32_t *'.
7448
a1078bea
YQ
74492016-10-10 Yao Qi <yao.qi@linaro.org>
7450
7451 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7452
1fb77080
SDJ
74532016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7454
7455 * target.c (target_supports_multi_process): New function, moved
7456 from...
7457 * target.h (target_supports_multi_process): ... here. Remove
7458 macro.
7459
39b5a3b9
TT
74602016-10-05 Tom Tromey <tom@tromey.com>
7461
7462 PR remote/20655:
7463 * tracepoint.c (handle_tracepoint_bkpts): Check
7464 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7465
c1d0b70a
YQ
74662016-10-05 Yao Qi <yao.qi@linaro.org>
7467
7468 * configure.srv: Update the path of arm-*.xml files.
7469
0a69eedb
YQ
74702016-10-05 Terry Guo <terry.guo@arm.com>
7471 Yao Qi <yao.qi@linaro.org>
7472
7473 * Makefile.in: Adjust the path of rules.
7474 * configure.srv: Update the path of xml files.
7475 * regformats/arm-with-iwmmxt.dat: Regenerated.
7476 * regformats/arm-with-neon.dat: Likewise.
7477 * regformats/arm-with-vfpv2.dat: Likewise.
7478 * regformats/arm-with-vfpv3.dat Likewise.
7479
17e16485
YQ
74802016-09-30 Yao Qi <yao.qi@linaro.org>
7481
7482 PR gdbserver/20627
7483 * target.c (target_stop_and_wait): Don't call
7484 target_continue_no_signal, use resume_stop instead.
7485
edeeb602
YQ
74862016-09-26 Yao Qi <yao.qi@linaro.org>
7487
7488 * linux-low.c (linux_wait_1): Call debug_exit.
7489
503b1c39
PA
74902016-09-23 Pedro Alves <palves@redhat.com>
7491
7492 * Makefile.in (SFILES): Add common/new-op.c.
7493 (OBS): Add common/new-op.o.
7494 (new-op.o): New rule.
7495
74172ecf
SM
74962016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7497
7498 * .gitinore: Ignore more files.
7499
fc6cda2e
YQ
75002016-09-21 Yao Qi <yao.qi@linaro.org>
7501
7502 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7503 23.
7504
bc1e6c81
SDJ
75052016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7506
7507 * server.c (start_inferior): Call target_mourn_inferior instead of
7508 mourn_inferior; pass ptid_t argument to it.
7509 (resume): Likewise.
7510 (handle_target_event): Likewise.
7511 * target.c (target_mourn_inferior): New function.
7512 * target.h (mourn_inferior): Delete macro.
7513
0e00e962
AA
75142016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7515
7516 * linux-low.c (lwp_is_stepping): New function.
7517
1d8cb77d
CL
75182016-09-06 Carl Love <cel@us.ibm.com>
7519
7520 * server.c (start_inferior): Fixed comment, requested comment change
7521 didn't get updated correctly. Removed reference to ptrace () call as
7522 it is only true on Linux systems.
7523
7313bced
CL
75242016-09-06 Carl Love <cel@us.ibm.com>
7525
7526 * server.c (start_inferior): Do not call
7527 function target_post_create_inferior () if the
7528 inferior process has already exited.
7529
cf6de44d
PA
75302016-09-05 Pedro Alves <palves@redhat.com>
7531
7532 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7533 (COMPILE.pre, CC_LD): Use CXX directly.
7534 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7535 * acinclude.m4: Don't include build-with-cxx.m4.
7536 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7537 * configure: Regenerate.
7538
c1da6748
AT
75392016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7540
7541 PR gdb/19495
7542 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7543 call writing data to own_buf.
7544
f2b9e3df
SDJ
75452016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7546
7547 * target.c (mywait): Call target_wait instead of
7548 the_target->wait.
7549 (target_wait): New function.
7550
049a8570
SDJ
75512016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7552
7553 * server.c (start_inferior): New variable 'ptid'. Replace calls
7554 to the_target->resume by target_continue{,_no_signal}, depending
7555 on the case.
7556 * target.c (target_stop_and_wait): Call target_continue_no_signal
7557 instead of the_target->resume.
7558 (target_continue): New function.
7559
3aa5cfa0
AT
75602016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7561
7562 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7563
754653a7
AZ
75642016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7565
7566 PR server/20491
7567 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7568 ps_prochandle.
7569 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7570 * linux-arm-low.c (ps_get_thread_area): Likewise.
7571 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7572 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7573 * linux-mips-low.c (ps_get_thread_area): Likewise.
7574 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7575 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7576 * linux-x86-low.c (ps_get_thread_area): Likewise.
7577 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7578
ed036b40
PA
75792016-08-19 Pedro Alves <palves@redhat.com>
7580
7581 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7582
c8ef42ee
PA
75832016-08-19 Pedro Alves <palves@redhat.com>
7584
7585 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7586 comment. Use memcpy instead of casting through unsigned long.
7587
9c235a72
PA
75882016-08-19 Pedro Alves <palves@redhat.com>
7589
7590 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7591 allocating around 0x80000000.
7592
201506da
PA
75932016-08-19 Pedro Alves <palves@redhat.com>
7594
7595 PR gdb/20415
7596 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7597 (x32-avx512-linux-ipa.o): New rules.
7598 * configure.ac (x86_64-*-linux*): New x32 check.
7599 * configure.srv (ipa_x32_linux_regobj): New.
7600 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7601 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7602 descriptions.
7603 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7604 descriptions.
7605 * configure: Regenerate.
7606
f348d89a
PA
76072016-08-09 Pedro Alves <palves@redhat.com>
7608
7609 PR gdb/18653
7610 * Makefile.in (OBS): Add signals-state-save-restore.o.
7611 (signals-state-save-restore.o): New rule.
7612 * config.in: Regenerate.
7613 * configure: Regenerate.
7614 * linux-low.c: Include "signals-state-save-restore.h".
7615 (linux_create_inferior): Call
7616 restore_original_signals_state.
7617 * server.c: Include "dispositions-save-restore.h".
7618 (captured_main): Call save_original_signals_state.
7619
1baf5149
PA
76202016-08-05 Pedro Alves <palves@redhat.com>
7621
7622 * configure: Regenerate.
7623
fcd4a73d
YQ
76242016-08-04 Yao Qi <yao.qi@linaro.org>
7625
7626 * linux-low.c (regsets_fetch_inferior_registers): Check
7627 errno is ESRCH or not.
7628
979659d0
YQ
76292016-08-02 Yao Qi <yao.qi@linaro.org>
7630
7631 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7632 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7633 (thread_db_load_search): Update.
7634 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7635 td_ta_set_event and td_ta_event_getmsg.
7636
6598661d
PA
76372016-07-26 Pedro Alves <palves@redhat.com>
7638
7639 PR server/20414
7640 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7641 of unsigned long for 64-bit registers and use uint32_t instead of
7642 unsigned int for 32-bit registers.
7643
9cf12d57
PA
76442016-07-26 Pedro Alves <palves@redhat.com>
7645
7646 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7647 to 'ptrace'.
7648
305450ed
TT
76492016-07-21 Tom Tromey <tom@tromey.com>
7650
7651 * configure: Rebuild.
7652
2583da7c
YQ
76532016-07-21 Yao Qi <yao.qi@linaro.org>
7654
7655 * mem-break.c (find_gdb_breakpoint): Cast bp to
7656 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7657
21536b36
YQ
76582016-07-21 Yao Qi <yao.qi@linaro.org>
7659
7660 * server.c (handle_v_requests): Support s and S actions
7661 if target_supports_software_single_step return true.
7662
8901d193
YQ
76632016-07-21 Yao Qi <yao.qi@linaro.org>
7664
7665 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7666 is resume_step, call maybe_hw_step.
7667 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7668 and unstop them.
7669 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7670 breakpoints or not.
7671 (proceed_one_lwp): If resume request is resume_step, install
7672 reinsert breakpoints and call maybe_hw_step.
7673
0e9a339e
YQ
76742016-07-21 Yao Qi <yao.qi@linaro.org>
7675
7676 * linux-low.c (proceed_one_lwp): Declare.
7677 (linux_resume_one_thread): Remove local variable 'step'.
7678 Lift code enqueue signal. Call proceed_one_lwp instead of
7679 linux_resume_one_lwp.
7680
4281b351
YQ
76812016-07-21 Yao Qi <yao.qi@linaro.org>
7682
7683 * linux-low.c (linux_resume_one_thread): Call
7684 enqueue_pending_signal.
7685
984a2c04
YQ
76862016-07-21 Yao Qi <yao.qi@linaro.org>
7687
7688 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7689 * inferiors.c (do_restore_current_thread_cleanup): New function.
7690 (make_cleanup_restore_current_thread): Likewise.
7691 * linux-low.c (install_software_single_step_breakpoints): Call
7692 make_cleanup_restore_current_thread. Switch current_thread to
7693 thread.
7694
bec903c9
YQ
76952016-07-21 Yao Qi <yao.qi@linaro.org>
7696
7697 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7698 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7699 (clone_one_breakpoint): Likewise.
7700 (delete_reinsert_breakpoints): Change parameter to thread.
7701 Callers updated.
7702 (has_reinsert_breakpoints): Likewise.
7703 (uninsert_reinsert_breakpoints): Likewise.
7704 (reinsert_reinsert_breakpoints): Likewise.
7705 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7706 (delete_reinsert_breakpoints): Likewise.
7707 (reinsert_reinsert_breakpoints): Likewise.
7708 (uninsert_reinsert_breakpoints): Likewise.
7709 (has_reinsert_breakpoints): Likewise.
7710
63c40ec7
YQ
77112016-07-21 Yao Qi <yao.qi@linaro.org>
7712
7713 * inferiors.c (get_thread_process): Make parameter const.
7714 * inferiors.h (get_thread_process): Update declaration.
7715 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7716 Add new parameters child_thread and parent_thread. Callers
7717 updated.
7718 * mem-break.h (clone_all_breakpoints): Update declaration.
7719
9aa76cd0
YQ
77202016-07-21 Yao Qi <yao.qi@linaro.org>
7721
7722 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7723 <command_list, handler>: Remove.
7724 (struct gdb_breakpoint): New.
7725 (struct other_breakpoint): New.
7726 (struct reinsert_breakpoint): New.
7727 (is_gdb_breakpoint): New function.
7728 (any_persistent_commands): Update command_list if
7729 is_gdb_breakpoint returns true.
7730 (set_breakpoint): Create breakpoints according to their types.
7731 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7732 (set_gdb_breakpoint_1): Likewise.
7733 (set_gdb_breakpoint): Likewise.
7734 (clear_breakpoint_conditions): Change parameter type to
7735 'struct gdb_breakpoint *'.
7736 (clear_breakpoint_commands): Likewise.
7737 (clear_breakpoint_conditions_and_commands): Likewise.
7738 (add_condition_to_breakpoint): Likewise.
7739 (add_breakpoint_condition): Likewise.
7740 (add_commands_to_breakpoint): Likewise.
7741 (check_breakpoints): Check other_breakpoint.
7742 (clone_one_breakpoint): Clone breakpopint according to its type.
7743 * mem-break.h (struct gdb_breakpoint): Declare.
7744 (set_gdb_breakpoint): Update declaration.
7745 (clear_breakpoint_conditions_and_commands): Likewise.
7746 (add_breakpoint_condition): Likewise.
7747 (add_breakpoint_commands): Likewise.
7748 * server.c (process_point_options): Change parameter type to
7749 'struct gdb_breakpoint *'.
7750
811f8301
YQ
77512016-07-21 Yao Qi <yao.qi@linaro.org>
7752
7753 * mem-break.c (set_breakpoint_at): Rename it to ...
7754 (set_breakpoint_type_at): ... it.
7755 (set_breakpoint_at): Call set_breakpoint_type_at.
7756 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7757 * mem-break.h (set_breakpoint_at): Update comments.
7758
b1c51e36
CLT
77592016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7760
7761 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7762 to buf parameter.
7763 (nios2_store_gregset): Likewise.
7764
ced2dffb
PA
77652016-07-01 Pedro Alves <palves@redhat.com>
7766 Antoine Tremblay <antoine.tremblay@ericsson.com>
7767
7768 * linux-low.c: Change interface to take the target lwp_info
7769 pointer directly and return void. Handle detaching from a zombie
7770 thread.
7771 (linux_detach_lwp_callback): New function.
7772 (linux_detach): Detach from the leader thread after detaching from
7773 the clone threads.
7774
2ac09a5b
YQ
77752016-06-28 Yao Qi <yao.qi@linaro.org>
7776
7777 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7778 for variable new_offset.
7779 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7780 (aarch64_ftrace_insn_reloc_cb): Likewise.
7781 (aarch64_ftrace_insn_reloc_tb): Likewise.
7782 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7783 PRIx64 instead of PRIx32.
7784
79e7fd4f
YQ
77852016-06-28 Yao Qi <yao.qi@linaro.org>
7786
7787 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7788 (the_low_target): Install arm_get_syscall_trapinfo.
7789
061fc021
YQ
77902016-06-28 Yao Qi <yao.qi@linaro.org>
7791
7792 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7793 function.
7794 (the_low_target): Install aarch64_get_syscall_trapinfo.
7795
4cc32bec
YQ
77962016-06-28 Yao Qi <yao.qi@linaro.org>
7797
7798 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7799 Callers updated.
7800 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7801 Remove parameter sysno.
7802 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7803 sysret.
7804
782c1122
AA
78052016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7806
7807 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7808 (s390_emit_ne_goto): Likewise.
7809 (s390_emit_lt_goto): Likewise.
7810 (s390_emit_le_goto): Likewise.
7811 (s390_emit_gt_goto): Likewise.
7812 (s390_emit_ge_goto): Likewise.
7813 (s390x_emit_eq_goto): Likewise.
7814 (s390x_emit_ne_goto): Likewise.
7815 (s390x_emit_lt_goto): Likewise.
7816 (s390x_emit_le_goto): Likewise.
7817 (s390x_emit_gt_goto): Likewise.
7818 (s390x_emit_ge_goto): Likewise.
7819 (s390_emit_ops_impl): Mark variable static.
7820 (s390x_emit_ops): Likewise.
7821
2e7b624b
YQ
78222016-06-17 Yao Qi <yao.qi@linaro.org>
7823
7824 * linux-low.c (handle_extended_wait): Call
7825 uninsert_reinsert_breakpoints for the parent process. Remove
7826 reinsert breakpoints from the child process. Reinsert them to
7827 the parent process when vfork is done.
7828 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7829 (reinsert_reinsert_breakpoints): New function.
7830 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7831 (reinsert_reinsert_breakpoints): Declare.
7832
8a81c5d7
YQ
78332016-06-17 Yao Qi <yao.qi@linaro.org>
7834
7835 * linux-low.c (handle_extended_wait): If the parent is doing
7836 step-over, remove the reinsert breakpoints from the forked child.
7837
f50bf8e5
YQ
78382016-06-17 Yao Qi <yao.qi@linaro.org>
7839
7840 * linux-low.c (unsuspend_all_lwps): Declare.
7841 (linux_low_filter_event): If thread exited, call finish_step_over.
7842 If step-over is finished, unsuspend other threads.
7843
8376a3cb
YQ
78442016-06-17 Yao Qi <yao.qi@linaro.org>
7845
7846 * linux-low.c (linux_resume_one_lwp_throw): Assert
7847 has_reinsert_breakpoints returns false.
7848 * mem-break.c (delete_disabled_breakpoints): Assert
7849 bp type isn't reinsert_breakpoint.
7850
f79b145d
YQ
78512016-06-17 Yao Qi <yao.qi@linaro.org>
7852
7853 * linux-low.c (maybe_hw_step): New function.
7854 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7855 (finish_step_over): Switch current_thread to lwp temporarily,
7856 and assert has_reinsert_breakpoints returns true.
7857 (proceed_one_lwp): Call maybe_hw_step.
7858 * mem-break.c (has_reinsert_breakpoints): New function.
7859 * mem-break.h (has_reinsert_breakpoints): Declare.
7860
0ae534d2
JT
78612016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7862
7863 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7864
fcdad592
YQ
78652016-05-17 Yao Qi <yao.qi@linaro.org>
7866
7867 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7868 instead of find_inferior.
7869
9e784964
YQ
78702016-05-05 Yao Qi <yao.qi@linaro.org>
7871
7872 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7873 Initialize res to zero.
7874
cf2ebb6e
YQ
78752016-05-05 Yao Qi <yao.qi@linaro.org>
7876
7877 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7878 to uint32_t.
7879
c1aebf87
UW
78802016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7881
7882 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7883 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7884 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7885
35fd2deb 78862016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 7887 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
7888
7889 * tracepoint.c (write_inferior_int8): New function.
7890 (cmd_qtenable_disable): Write enable flag using
7891 write_inferior_int8.
7892
484b3c32
YQ
78932016-04-25 Yao Qi <yao.qi@linaro.org>
7894
7895 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7896 (need_step_over_p): Return zero if the LWP has pending signals
7897 can be delivered on software single step target.
7898
85ba7d86
YQ
78992016-04-25 Yao Qi <yao.qi@linaro.org>
7900
7901 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7902 return instead of error.
7903
3539aa13
YQ
79042016-04-22 Yao Qi <yao.qi@linaro.org>
7905
7906 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7907 to 23.
7908
5b061e98
YQ
79092016-04-22 Yao Qi <yao.qi@linaro.org>
7910
7911 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7912 signal when stepping over breakpoint with software single
7913 step.
7914
3451269c
PA
79152016-04-21 Pedro Alves <palves@redhat.com>
7916
7917 * linux-s390-low.c (s390_collect_ptrace_register)
7918 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7919 add casts.
7920 (s390_check_regset): Use void * instead of gdb_byte *.
7921
a2358508
PA
79222016-04-20 Pedro Alves <palves@redhat.com>
7923
7924 * configure: Renegerate.
7925
6885166d
YQ
79262016-04-20 Yao Qi <yao.qi@linaro.org>
7927
7928 * linux-aarch32-low.c: Include "arch/arm-linux.h".
7929 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
7930 number 16.
7931 (arm_store_gregset): Likewise.
7932
2b863f51
WT
79332016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
7934
7935 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
7936 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
7937 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
7938 (amd64-avx-mpx-linux.c): New rules.
7939 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
7940 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
7941 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
7942 (srv_amd64_regobj): Add amd64-avx-mpx.o.
7943 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
7944 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
7945 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
7946 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
7947 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
7948 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
7949 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
7950 * linux-x86-low.c (x86_linux_read_description): Add case for
7951 X86_XSTATE_AVX_MPX_MASK.
7952 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
7953 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
7954 init_registers_i386_avx_mpx_linux.
7955 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7956 (initialize_low_tracepoint): Call
7957 init_registers_i386_avx_mpx_linux.
7958 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7959 (initialize_low_tracepoint): Call
7960 init_registers_amd64_avx_mpx_linux.
7961 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
7962 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
7963 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
7964 declarations.
7965
9b30624b
PA
79662016-04-18 Pedro Alves <palves@redhat.com>
7967
7968 * configure: Regenerate.
7969
45e3745e
AT
79702016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
7971
7972 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
7973 (aarch64_emit_sub): Likewise.
7974
2afc13ff
PA
79752016-04-12 Pedro Alves <palves@redhat.com>
7976
7977 * utils.c (prepare_to_throw_exception): Delete.
7978
6e774b13
SM
79792016-04-05 Simon Marchi <simon.marchi@ericsson.com>
7980
7981 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
7982
4dca19f8
MK
79832016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
7984
7985 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
7986
d0a9981f
MK
79872016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
7988
7989 * linux-aarch64-ipa.c: Add <elf.h> include.
7990 * linux-ppc-ipa.c: Add <elf.h> include.
7991 * linux-s390-ipa.c: Add <elf.h> include.
7992
252db07e
MK
79932016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7994
7995 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
7996 (get_raw_reg_ptr): Likewise.
7997 (get_trace_state_variable_value_ptr): Likewise.
7998 (set_trace_state_variable_value_ptr): Likewise.
7999 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8000 char *.
8001
14e2b6d9
MK
80022016-03-31 Wei-cheng Wang <cole945@gmail.com>
8003 Marcin Kościelnicki <koriakin@0x04.net>
8004
8005 PR/17221
8006 * linux-ppc-low.c (emit_insns): New function.
8007 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8008 (ppc_emit_prologue): New function.
8009 (ppc_emit_epilogue): New function.
8010 (ppc_emit_add): New function.
8011 (ppc_emit_sub): New function.
8012 (ppc_emit_mul): New function.
8013 (ppc_emit_lsh): New function.
8014 (ppc_emit_rsh_signed): New function.
8015 (ppc_emit_rsh_unsigned): New function.
8016 (ppc_emit_ext): New function.
8017 (ppc_emit_zero_ext): New function.
8018 (ppc_emit_log_not): New function.
8019 (ppc_emit_bit_and): New function.
8020 (ppc_emit_bit_or): New function.
8021 (ppc_emit_bit_xor): New function.
8022 (ppc_emit_bit_not): New function.
8023 (ppc_emit_equal): New function.
8024 (ppc_emit_less_signed): New function.
8025 (ppc_emit_less_unsigned): New function.
8026 (ppc_emit_ref): New function.
8027 (ppc_emit_const): New function.
8028 (ppc_emit_reg): New function.
8029 (ppc_emit_pop): New function.
8030 (ppc_emit_stack_flush): New function.
8031 (ppc_emit_swap): New function.
8032 (ppc_emit_stack_adjust): New function.
8033 (ppc_emit_call): New function.
8034 (ppc_emit_int_call_1): New function.
8035 (ppc_emit_void_call_2): New function.
8036 (ppc_emit_if_goto): New function.
8037 (ppc_emit_goto): New function.
8038 (ppc_emit_eq_goto): New function.
8039 (ppc_emit_ne_goto): New function.
8040 (ppc_emit_lt_goto): New function.
8041 (ppc_emit_le_goto): New function.
8042 (ppc_emit_gt_goto): New function.
8043 (ppc_emit_ge_goto): New function.
8044 (ppc_write_goto_address): New function.
8045 (ppc_emit_ops_impl): New static variable.
8046 (ppc64v1_emit_prologue): New function.
8047 (ppc64v2_emit_prologue): New function.
8048 (ppc64_emit_epilogue): New function.
8049 (ppc64_emit_add): New function.
8050 (ppc64_emit_sub): New function.
8051 (ppc64_emit_mul): New function.
8052 (ppc64_emit_lsh): New function.
8053 (ppc64_emit_rsh_signed): New function.
8054 (ppc64_emit_rsh_unsigned): New function.
8055 (ppc64_emit_ext): New function.
8056 (ppc64_emit_zero_ext): New function.
8057 (ppc64_emit_log_not): New function.
8058 (ppc64_emit_bit_and): New function.
8059 (ppc64_emit_bit_or): New function.
8060 (ppc64_emit_bit_xor): New function.
8061 (ppc64_emit_bit_not): New function.
8062 (ppc64_emit_equal): New function.
8063 (ppc64_emit_less_signed): New function.
8064 (ppc64_emit_less_unsigned): New function.
8065 (ppc64_emit_ref): New function.
8066 (ppc64_emit_const): New function.
8067 (ppc64v1_emit_reg): New function.
8068 (ppc64v2_emit_reg): New function.
8069 (ppc64_emit_pop): New function.
8070 (ppc64_emit_stack_flush): New function.
8071 (ppc64_emit_swap): New function.
8072 (ppc64v1_emit_call): New function.
8073 (ppc64v2_emit_call): New function.
8074 (ppc64v1_emit_int_call_1): New function.
8075 (ppc64v2_emit_int_call_1): New function.
8076 (ppc64v1_emit_void_call_2): New function.
8077 (ppc64v2_emit_void_call_2): New function.
8078 (ppc64_emit_if_goto): New function.
8079 (ppc64_emit_eq_goto): New function.
8080 (ppc64_emit_ne_goto): New function.
8081 (ppc64_emit_lt_goto): New function.
8082 (ppc64_emit_le_goto): New function.
8083 (ppc64_emit_gt_goto): New function.
8084 (ppc64_emit_ge_goto): New function.
8085 (ppc64v1_emit_ops_impl): New static variable.
8086 (ppc64v2_emit_ops_impl): New static variable.
8087 (ppc_emit_ops): New function.
8088 (linux_low_target): Wire in ppc_emit_ops.
8089
a2174ba4
MK
80902016-03-31 Wei-cheng Wang <cole945@gmail.com>
8091 Marcin Kościelnicki <koriakin@0x04.net>
8092
8093 PR/17221
8094 * Makefile.in: Add powerpc-*-ipa.o
8095 * configure.srv: Add ipa_obj for powerpc*-linux.
8096 * linux-ppc-ipa.c: New file.
8097 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8098 includes.
8099 (PPC_FIELD): New macro.
8100 (PPC_SEXT): New macro.
8101 (PPC_OP6): New macro.
8102 (PPC_BO): New macro.
8103 (PPC_LI): New macro.
8104 (PPC_BD): New macro.
8105 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8106 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8107 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8108 (ppc_get_thread_area): New function.
8109 (is_elfv2_inferior): New function.
8110 (gen_ds_form): New function.
8111 (GEN_STD): New macro.
8112 (GEN_STDU): New macro.
8113 (GEN_LD): New macro.
8114 (GEN_LDU): New macro.
8115 (gen_d_form): New function.
8116 (GEN_ADDI): New macro.
8117 (GEN_ADDIS): New macro.
8118 (GEN_LI): New macro.
8119 (GEN_LIS): New macro.
8120 (GEN_ORI): New macro.
8121 (GEN_ORIS): New macro.
8122 (GEN_LWZ): New macro.
8123 (GEN_STW): New macro.
8124 (GEN_STWU): New macro.
8125 (gen_xfx_form): New function.
8126 (GEN_MFSPR): New macro.
8127 (GEN_MTSPR): New macro.
8128 (GEN_MFCR): New macro.
8129 (GEN_MTCR): New macro.
8130 (GEN_SYNC): New macro.
8131 (GEN_LWSYNC): New macro.
8132 (gen_x_form): New function.
8133 (GEN_OR): New macro.
8134 (GEN_MR): New macro.
8135 (GEN_LWARX): New macro.
8136 (GEN_STWCX): New macro.
8137 (GEN_CMPW): New macro.
8138 (gen_md_form): New function.
8139 (GEN_RLDICL): New macro.
8140 (GEN_RLDICR): New macro.
8141 (gen_i_form): New function.
8142 (GEN_B): New macro.
8143 (GEN_BL): New macro.
8144 (gen_b_form): New function.
8145 (GEN_BNE): New macro.
8146 (GEN_LOAD): New macro.
8147 (GEN_STORE): New macro.
8148 (gen_limm): New function.
8149 (gen_atomic_xchg): New function.
8150 (gen_call): New function.
8151 (ppc_relocate_instruction): New function.
8152 (ppc_install_fast_tracepoint_jump_pad): New function.
8153 (ppc_get_min_fast_tracepoint_insn_len): New function.
8154 (ppc_get_ipa_tdesc_idx): New function.
8155 (the_low_target): Wire in the new functions.
8156 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8157 tdescs.
8158 * linux-ppc-tdesc.h: New file.
8159
a13c4696
MK
81602016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8161
8162 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8163 (alloc_jump_pad_buffer): New function.
8164 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8165 (alloc_jump_pad_buffer): New function.
8166 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8167 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8168 (alloc_jump_pad_buffer): New function.
8169 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8170 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8171 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8172 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8173
1cda1512
MK
81742016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8175
8176 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8177 * linux-amd64-ipa.c: Likewise.
8178 * linux-i386-ipa.c: Likewise.
8179 * linux-s390-ipa.c: Likewise.
8180 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8181 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8182 set_trace_state_variable_value_ptr.
8183 (struct ipa_sym_addresses): Likewise.
8184 (symbol_list): Likewise.
8185 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8186 accessing gdb_collect directly.
8187 (gdb_collect_ptr_type): New typedef.
8188 (get_raw_reg_ptr_type): New typedef.
8189 (get_trace_state_variable_value_ptr_type): New typedef.
8190 (set_trace_state_variable_value_ptr_type): New typedef.
8191 (gdb_collect_ptr): New global.
8192 (get_raw_reg_ptr): New global.
8193 (get_trace_state_variable_value_ptr): New global.
8194 (set_trace_state_variable_value_ptr): New global.
8195 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8196 accessing get_raw_reg directly.
8197 (get_get_tsv_func_addr): Likewise for
8198 get_trace_state_variable_value_ptr.
8199 (get_set_tsv_func_addr): Likewise for
8200 set_trace_state_variable_value_ptr.
8201 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8202
72fb5488
SM
82032016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8204
8205 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8206
28170b88
MK
82072016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8208
8209 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8210 packets.
8211 (relocate_instruction): Remove own_buf.
8212 * server.c (own_buf): Make global.
8213 (handle_v_requests): Make global.
8214 * server.h (own_buf): New declaration.
8215 (handle_v_requests): New prototype.
8216
f39e8743
MK
82172016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8218
8219 PR 18377
8220 * linux-s390-low.c (add_insns): New function.
8221 (s390_emit_prologue): New function.
8222 (s390_emit_epilogue): New function.
8223 (s390_emit_add): New function.
8224 (s390_emit_sub): New function.
8225 (s390_emit_mul): New function.
8226 (s390_emit_lsh): New function.
8227 (s390_emit_rsh_signed): New function.
8228 (s390_emit_rsh_unsigned): New function.
8229 (s390_emit_ext): New function.
8230 (s390_emit_log_not): New function.
8231 (s390_emit_bit_and): New function.
8232 (s390_emit_bit_or): New function.
8233 (s390_emit_bit_xor): New function.
8234 (s390_emit_bit_not): New function.
8235 (s390_emit_equal): New function.
8236 (s390_emit_less_signed): New function.
8237 (s390_emit_less_unsigned): New function.
8238 (s390_emit_ref): New function.
8239 (s390_emit_if_goto): New function.
8240 (s390_emit_goto): New function.
8241 (s390_write_goto_address): New function.
8242 (s390_emit_litpool): New function.
8243 (s390_emit_const): New function.
8244 (s390_emit_call): New function.
8245 (s390_emit_reg): New function.
8246 (s390_emit_pop): New function.
8247 (s390_emit_stack_flush): New function.
8248 (s390_emit_zero_ext): New function.
8249 (s390_emit_swap): New function.
8250 (s390_emit_stack_adjust): New function.
8251 (s390_emit_set_r2): New function.
8252 (s390_emit_int_call_1): New function.
8253 (s390_emit_void_call_2): New function.
8254 (s390_emit_eq_goto): New function.
8255 (s390_emit_ne_goto): New function.
8256 (s390_emit_lt_goto): New function.
8257 (s390_emit_le_goto): New function.
8258 (s390_emit_gt_goto): New function.
8259 (s390_emit_ge_goto): New function.
8260 (s390x_emit_prologue): New function.
8261 (s390x_emit_epilogue): New function.
8262 (s390x_emit_add): New function.
8263 (s390x_emit_sub): New function.
8264 (s390x_emit_mul): New function.
8265 (s390x_emit_lsh): New function.
8266 (s390x_emit_rsh_signed): New function.
8267 (s390x_emit_rsh_unsigned): New function.
8268 (s390x_emit_ext): New function.
8269 (s390x_emit_log_not): New function.
8270 (s390x_emit_bit_and): New function.
8271 (s390x_emit_bit_or): New function.
8272 (s390x_emit_bit_xor): New function.
8273 (s390x_emit_bit_not): New function.
8274 (s390x_emit_equal): New function.
8275 (s390x_emit_less_signed): New function.
8276 (s390x_emit_less_unsigned): New function.
8277 (s390x_emit_ref): New function.
8278 (s390x_emit_if_goto): New function.
8279 (s390x_emit_const): New function.
8280 (s390x_emit_call): New function.
8281 (s390x_emit_reg): New function.
8282 (s390x_emit_pop): New function.
8283 (s390x_emit_stack_flush): New function.
8284 (s390x_emit_zero_ext): New function.
8285 (s390x_emit_swap): New function.
8286 (s390x_emit_stack_adjust): New function.
8287 (s390x_emit_int_call_1): New function.
8288 (s390x_emit_void_call_2): New function.
8289 (s390x_emit_eq_goto): New function.
8290 (s390x_emit_ne_goto): New function.
8291 (s390x_emit_lt_goto): New function.
8292 (s390x_emit_le_goto): New function.
8293 (s390x_emit_gt_goto): New function.
8294 (s390x_emit_ge_goto): New function.
8295 (s390_emit_ops): New function.
8296 (struct linux_target_ops): Fill in emit_ops hook.
8297
abd9baf9
MK
82982016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8299
8300 PR 18377
8301 * Makefile.in: Add s390 IPA files.
8302 * configure.srv: Build IPA for s390.
8303 * linux-s390-ipa.c: New file.
8304 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8305 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8306 (tdesc_s390_linux32): Likewise.
8307 (init_registers_s390_linux32v1): Likewise.
8308 (tdesc_s390_linux32v1): Likewise.
8309 (init_registers_s390_linux32v2): Likewise.
8310 (tdesc_s390_linux32v2): Likewise.
8311 (init_registers_s390_linux64): Likewise.
8312 (tdesc_s390_linux64): Likewise.
8313 (init_registers_s390_linux64v1): Likewise.
8314 (tdesc_s390_linux64v1): Likewise.
8315 (init_registers_s390_linux64v2): Likewise.
8316 (tdesc_s390_linux64v2): Likewise.
8317 (init_registers_s390_te_linux64): Likewise.
8318 (tdesc_s390_te_linux64): Likewise.
8319 (init_registers_s390_vx_linux64): Likewise.
8320 (tdesc_s390_vx_linux64): Likewise.
8321 (init_registers_s390_tevx_linux64): Likewise.
8322 (tdesc_s390_tevx_linux64): Likewise.
8323 (init_registers_s390x_linux64): Likewise.
8324 (tdesc_s390x_linux64): Likewise.
8325 (init_registers_s390x_linux64v1): Likewise.
8326 (tdesc_s390x_linux64v1): Likewise.
8327 (init_registers_s390x_linux64v2): Likewise.
8328 (tdesc_s390x_linux64v2): Likewise.
8329 (init_registers_s390x_te_linux64): Likewise.
8330 (tdesc_s390x_te_linux64): Likewise.
8331 (init_registers_s390x_vx_linux64): Likewise.
8332 (tdesc_s390x_vx_linux64): Likewise.
8333 (init_registers_s390x_tevx_linux64): Likewise.
8334 (tdesc_s390x_tevx_linux64): Likewise.
8335 (have_hwcap_s390_vx): New static variable.
8336 (s390_arch_setup): Fill have_hwcap_s390_vx.
8337 (s390_get_thread_area): New function.
8338 (s390_ft_entry_gpr_esa): New const.
8339 (s390_ft_entry_gpr_zarch): New const.
8340 (s390_ft_entry_misc): New const.
8341 (s390_ft_entry_fr): New const.
8342 (s390_ft_entry_vr): New const.
8343 (s390_ft_main_31): New const.
8344 (s390_ft_main_64): New const.
8345 (s390_ft_exit_fr): New const.
8346 (s390_ft_exit_vr): New const.
8347 (s390_ft_exit_misc): New const.
8348 (s390_ft_exit_gpr_esa): New const.
8349 (s390_ft_exit_gpr_zarch): New const.
8350 (append_insns): New function.
8351 (s390_relocate_instruction): New function.
8352 (s390_install_fast_tracepoint_jump_pad): New function.
8353 (s390_get_min_fast_tracepoint_insn_len): New function.
8354 (s390_get_ipa_tdesc_idx): New function.
8355 (struct linux_target_ops): Wire in the above functions.
8356 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8357 * linux-s390-tdesc.h: New file.
8358
a4105d04
MK
83592016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8360
8361 * linux-s390-low.c (s390_supports_tracepoints): New function.
8362 (struct linux_target_ops): Fill supports_tracepoints hook.
8363
35ac8b3e
YQ
83642016-03-18 Yao Qi <yao.qi@linaro.org>
8365
8366 * linux-low.c (lwp_signal_can_be_delivered): New function.
8367 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8368
94610ec4
YQ
83692016-03-18 Yao Qi <yao.qi@linaro.org>
8370
8371 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8372 0 if signal is enqueued. Remove 'signal' from one debugging
8373 message. Move one debugging message to some lines below.
8374 Remove code setting 'signal' to 0.
8375
80aea927
YQ
83762016-03-18 Yao Qi <yao.qi@linaro.org>
8377
8378 * linux-low.c (linux_low_filter_event): Remove redundant
8379 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8380
b04fd3be
MK
83812016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8382
8383 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8384 (struct linux_target_ops): Wire in the above.
8385
c40c8d4b
YQ
83862016-03-03 Yao Qi <yao.qi@linaro.org>
8387
8388 * linux-low.c: Update comments to start_step_over.
8389
0f8288ae
YQ
83902016-03-03 Yao Qi <yao.qi@linaro.org>
8391
8392 PR server/19736
8393 * linux-low.c (handle_extended_wait): Set child suspended
8394 if event_lwp->bp_reinsert isn't zero.
8395
fdbd04a8
YQ
83962016-03-02 Yao Qi <yao.qi@linaro.org>
8397
8398 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8399 enqueue_pending_signal.
8400
6896a8fa
MK
84012016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8402
8403 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8404 is actually loaded.
8405
ab503087
MK
84062016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8407
8408 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8409 (s390_regmap_3264) [!__s390x__]: New global.
8410 (s390_collect_ptrace_register): Skip map entries containing -1.
8411 (s390_supply_ptrace_register): Ditto.
8412 (s390_fill_gprs_high): New function.
8413 (s390_store_gprs_high): New function.
8414 (s390_regsets): Add NT_S390_HIGH_GPRS.
8415 (s390_get_hwcap): Enable on 31-bit.
8416 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8417 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8418 Detect NT_S390_HIGH_GPRS.
8419 (s390_usrregs_info_3264): Enable on 31-bit.
8420 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8421 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8422
ae91f625
MK
84232016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8424
8425 PR gdb/13808
8426 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8427 * configure.srv: Ditto.
8428 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8429 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8430 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8431 (init_registers_amd64_linux): Remove prototype.
8432 (tdesc_amd64_linux): Remove declaration.
8433 (get_ipa_tdesc): New function.
8434 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8435 initialize remaining tdescs.
8436 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8437 (init_registers_i386_linux): Remove prototype.
8438 (tdesc_i386_linux): Remove declaration.
8439 (get_ipa_tdesc): New function.
8440 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8441 initialize remaining tdescs.
8442 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8443 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8444 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8445 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8446 (x86_get_ipa_tdesc_idx): New function.
8447 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8448 * linux-x86-tdesc.h: New file.
8449 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8450 (target_get_ipa_tdesc_idx): New macro.
8451 * tracepoint.c (ipa_tdesc_idx): New macro.
8452 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8453 (symbol_list): Add ipa_tdesc_idx.
8454 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8455 (ipa_tdesc): Remove.
8456 (ipa_tdesc_idx): New variable.
8457 (get_context_regcache): Use get_ipa_tdesc.
8458 (gdb_collect): Ditto.
8459 (gdb_probe): Ditto.
8460 * tracepoint.h (get_ipa_tdesc): New prototype.
8461 (ipa_tdesc): Remove.
8462
e7ad2f14
PA
84632016-02-24 Pedro Alves <palves@redhat.com>
8464
8465 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8466 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8467 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8468 Factor out common code between the USE_SIGTRAP_SIGINFO and
8469 !USE_SIGTRAP_SIGINFO blocks.
8470 (linux_low_filter_event): Call save_stop_reason instead of
8471 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8472 Update comments.
8473 (linux_wait_1): Update comments.
8474
657f9cde
WW
84752016-02-24 Wei-cheng Wang <cole945@gmail.com>
8476
8477 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8478 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8479 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8480 ppc_insert_point, ppc_remove_point.
8481
b00b61e1
MK
84822016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8483
8484 * linux-s390-low.c (s390_supports_z_point_type): New function.
8485 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8486
553cb527
YQ
84872016-02-16 Yao Qi <yao.qi@linaro.org>
8488
8489 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8490 PC. Get pc from regcache_read_pc.
8491
a5652c21
YQ
84922016-02-12 Yao Qi <yao.qi@linaro.org>
8493
8494 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8495 or linux_get_pc_32bit.
8496 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8497
ed443b61
YQ
84982016-02-12 Yao Qi <yao.qi@linaro.org>
8499
8500 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8501 arm_linux_get_next_pcs_fixup.
8502
020ecd38
MK
85032016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8504
8505 * tracepoint.c (x_tracepoint_action_download): Change
8506 write_inferior_data_ptr to write_inferior_data_pointer.
8507 (cmd_qtstart): Likewise.
8508 (write_inferior_data_ptr): Remove.
8509 (download_agent_expr): Change write_inferior_data_ptr to
8510 write_inferior_data_pointer.
8511 (download_tracepoint_1): Likewise.
8512 (download_tracepoint): Likewise.
8513 (download_trace_state_variables): Likewise.
8514
7cae9051
WW
85152016-02-11 Wei-cheng Wang <cole945@gmail.com>
8516 Marcin Kościelnicki <koriakin@0x04.net>
8517
8518 * tracepoint.c (struct tracepoint_action_ops): Remove.
8519 (struct tracepoint_action): Remove ops.
8520 (m_tracepoint_action_download, r_tracepoint_action_download)
8521 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8522 size and offset accordingly.
8523 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8524 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8525 (tracepoint_action_send, tracepoint_action_download): New functions.
8526 Helpers for trace action handlers.
8527 (add_tracepoint_action): Remove setup actions ops.
8528 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8529
9f6a71b4
YQ
85302016-02-10 Yao Qi <yao.qi@linaro.org>
8531
8532 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8533
1e94266c
SM
85342016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8535
8536 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8537 to AC_OUTPUT.
8538 * configure: Regenerate.
8539
8adce034
SM
85402016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8541
8542 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8543 void * to gdb_byte *.
8544 * linux-low.c (siginfo_fixup): Likewise.
8545 (linux_xfer_siginfo): Likewise.
8546 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8547 Likewise.
8548 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8549
93813b37
WT
85502016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8551
8552 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8553 to srv_tgtobj.
8554 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8555 to srv_tgtobj.
8556 * linux-x86-low.c [__x86_64__]: Include
8557 "nat/amd64-linux-siginfo.h".
8558 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8559 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8560 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8561 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8562 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8563 (cpt_si_fd, si_timerid, si_overrun): Move from
8564 nat/amd64-linux-siginfo.c.
8565 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8566
8424cc97
SM
85672016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8568
8569 * server.c (skip_to_semicolon): Remove.
8570 (process_point_options): Use strchrnul instead of
8571 skip_to_semicolon.
8572
4d18591b
YQ
85732016-01-26 Yao Qi <yao.qi@linaro.org>
8574
8575 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8576 * linux-low.c (install_software_single_step_breakpoints): Don't
8577 call regcache_read_pc.
8578 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8579 argument pc.
8580
d8020970
YQ
85812016-01-26 Yao Qi <yao.qi@linaro.org>
8582
8583 * linux-low.c (install_software_single_step_breakpoints): Call
8584 regcache_read_pc instead of get_pc.
8585
8b207339
YQ
85862016-01-26 Yao Qi <yao.qi@linaro.org>
8587
8588 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8589 (unblock_async_io): Rename to ...
8590 (block_unblock_async_io): ... it. New function.
8591 (enable_async_io): Don't install SIGIO handler. Unblock it
8592 instead.
8593 (disable_async_io): Don't ignore SIGIO. Block it instead.
8594 (initialize_async_io): Install SIGIO handler. Don't call
8595 unblock_async_io.
8596
18879fef
YQ
85972016-01-26 Yao Qi <yao.qi@linaro.org>
8598
8599 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8600 first character is '\003', call *the_target->request_interrupt.
8601
a0f8e08a
YQ
86022016-01-25 Yao Qi <yao.qi@linaro.org>
8603
8604 * remote-utils.c (new_thread_notify): Remove.
8605 (dead_thread_notify): Likewise.
8606 * remote-utils.h (new_thread_notify): Remove declaration.
8607 (dead_thread_notify): Likewise.
8608
cc5fd9ab
MK
86092016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8610
8611 * gdb.trace/pending.exp: Fix expected message on continue.
8612
99e8eb11
MK
86132016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8614
8615 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8616 it works properly on big-endian machines where sizeof (CORE_ADDR)
8617 != sizeof (void *).
8618
a994041d
PA
86192016-01-21 Pedro Alves <palves@redhat.com>
8620
8621 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8622 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8623 * configure: Regenerate.
8624
f7a6a40d
YQ
86252016-01-21 Yao Qi <yao.qi@linaro.org>
8626
8627 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8628 is_thumb and set it according to CPSR saved on the stack.
8629 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8630 arm_sigreturn_next_pc.
8631
6f69e520
YQ
86322016-01-18 Yao Qi <yao.qi@linaro.org>
8633
8634 * linux-low.c (linux_set_pc_64bit): New function.
8635 (linux_get_pc_64bit): New function.
8636 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8637 Declare.
8638 * linux-sparc-low.c (debug_threads): Remove declaration.
8639 (sparc_get_pc): Remove.
8640 (the_low_target): Use linux_get_pc_64bit instead of
8641 sparc_get_pc.
8642 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8643 (the_low_target): Use linux_get_pc_64bit and
8644 linux_set_pc_64bit.
8645
276d4552
YQ
86462016-01-18 Yao Qi <yao.qi@linaro.org>
8647
8648 * linux-arm-low.c (debug_threads): Remove declaration.
8649 (arm_get_pc, arm_set_pc): Remove.
8650 (the_low_target): Use linux_get_pc_32bit and
8651 linux_set_pc_32bit.
8652 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8653 (the_low_target): Use linux_get_pc_32bit and
8654 linux_set_pc_32bit.
8655 * linux-cris-low.c (debug_threads): Remove declaration.
8656 (cris_get_pc, cris_set_pc,): Remove.
8657 (the_low_target): Use linux_get_pc_32bit and
8658 linux_set_pc_32bit.
8659 * linux-crisv32-low.c (debug_threads): Remove declaration.
8660 (cris_get_pc, cris_set_pc): Remove.
8661 (the_low_target): Use linux_get_pc_32bit and
8662 linux_set_pc_32bit.
8663 * linux-low.c: Include inttypes.h.
8664 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8665 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8666 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8667 (the_low_target): Use linux_get_pc_32bit and
8668 linux_set_pc_32bit.
8669 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8670 (the_low_target): Use linux_get_pc_32bit and
8671 linux_set_pc_32bit.
8672 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8673 (the_low_target): Use linux_get_pc_32bit and
8674 linux_set_pc_32bit.
8675 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8676 (the_low_target): Use linux_get_pc_32bit and
8677 linux_set_pc_32bit.
8678 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8679 (the_low_target): Use linux_get_pc_32bit and
8680 linux_set_pc_32bit.
8681
eb0edac8
GB
86822016-01-18 Gary Benson <gbenson@redhat.com>
8683
8684 * configure.ac (AC_FUNC_FORK): New check.
8685 * config.in: Regenerate.
8686 * configure: Likewise.
8687
1b451dda
YQ
86882016-01-14 Yao Qi <yao.qi@linaro.org>
8689
8690 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8691 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8692 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8693 arm_get_next_pcs_ctor.
8694
82075af2
JS
86952016-01-12 Josh Stone <jistone@redhat.com>
8696 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8697
8698 * inferiors.h: Include "gdb_vecs.h".
8699 (struct process_info): Add syscalls_to_catch.
8700 * inferiors.c (remove_process): Free syscalls_to_catch.
8701 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8702 syscall_return stops.
8703 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8704 * server.c (handle_general_set): Handle QCatchSyscalls.
8705 (handle_query): Report support for QCatchSyscalls.
8706 * target.h (struct target_ops): Add supports_catch_syscall.
8707 (target_supports_catch_syscall): New macro.
8708 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8709 (struct lwp_info): Add syscall_state.
8710 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8711 Maintain syscall_state and syscalls_to_catch across exec.
8712 (get_syscall_trapinfo): New function, proxy to the_low_target.
8713 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8714 (linux_low_filter_event): Toggle syscall_state entry/return for
8715 syscall traps, and set it ignored for all others.
8716 (gdb_catching_syscalls_p): New function.
8717 (gdb_catch_this_syscall_p): New function.
8718 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8719 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8720 (linux_supports_catch_syscall): New function.
8721 (linux_target_ops): Install it.
8722 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8723 (the_low_target): Install it.
8724
8f13a3ce
MF
87252016-01-12 Mike Frysinger <vapier@gentoo.org>
8726
8727 * acinclude.m4: Include new ../warning.m4 file.
8728 * configure: Regenerated.
8729 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8730
5b3da067
MF
87312016-01-12 Mike Frysinger <vapier@gentoo.org>
8732
8733 * ax.c (is_goto_target): Mark static.
8734 * linux-low.c (register_addr): Likewise.
8735 (linux_fetch_registers, linux_store_registers): Likewise.
8736 * mem-break.c (any_persistent_commands): Fix old prototype.
8737 (add_commands_to_breakpoint): Mark static.
8738 * regcache.c (find_register_by_name): Delete unused func.
8739 * remote-utils.c (hex_or_minus_one): Mark static.
8740 * server.c (monitor_show_help): Mark static.
8741 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8742 handle_v_requests): Likewise.
8743
bc504a31
PA
87442016-01-12 Pedro Alves <palves@redhat.com>
8745
8746 Remove use of the registered trademark symbol throughout.
8747
5a0dd67a
YQ
87482016-01-08 Yao Qi <yao.qi@linaro.org>
8749
8750 * remote-utils.c (getpkt): If c is '\003', call target hook
8751 request_interrupt.
8752
b2ca446f
YQ
87532016-01-06 Yao Qi <yao.qi@linaro.org>
8754
8755 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8756 linux-aarch32-low.c.
8757 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8758 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8759 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8760 (thumb2_breakpoint): Declare.
8761 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8762 linux-aarch32-low.h.
8763 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8764 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8765 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8766
edd88788
JB
87672016-01-01 Joel Brobecker <brobecker@adacore.com>
8768
8769 * gdbreplay.c (gdbreplay_version): Change copyright year in
8770 version message.
8771 * server.c (gdbserver_version): Likewise.
8772
65da7f14
PP
87732015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8774
8775 * server.c (crc32_table): Delete.
8776 (crc32): Use libiberty's xcrc32 function.
8777
4abd5ed2
JB
87782015-12-22 Joel Brobecker <brobecker@adacore.com>
8779
8780 * lynx-low.c (lynx_delete_thread_callback): New function.
8781 (lynx_mourn): Properly delete our process and all of its
8782 threads. Remove call to clear_inferiors.
8783
0e50fe5c
JB
87842015-12-22 Joel Brobecker <brobecker@adacore.com>
8785
8786 * target.c (thread_search_callback): Add check that
8787 the thread_stopped target callback is not NULL before
8788 calling it.
8789
35adc03f
YQ
87902015-12-21 Yao Qi <yao.qi@linaro.org>
8791
8792 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8793 arm breakpoint.
8794
bd2b2909
AT
87952015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8796
8797 * server.c (handle_query): Call target_supports_software_single_step.
8798
7fe5e27e
AT
87992015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8800
8801 * linux-low.c (single_step): New function.
8802 (linux_resume_one_lwp_throw): Call single_step.
8803 (start_step_over): Likewise.
8804
d9311bfa
AT
88052015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8806
8807 * Makefile.in (SFILES): Append arch/arm-linux.c,
8808 arch/arm-get-next-pcs.c.
8809 (arm-linux.o): New rule.
8810 (arm-get-next-pcs.o): New rule.
8811 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8812 arm-linux.o.
8813 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8814 to linux-aarch32-low.c.
8815 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8816 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8817 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8818 (thumb2_breakpoint_len): Likewise.
8819 (arm_is_thumb_mode): Make non-static.
8820 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8821 from linux-aarch32-low.c.
8822 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8823 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8824 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8825 (thumb2_breakpoint_len): Likewise.
8826 (arm_is_thumb_mode): New declaration.
8827 * linux-arm-low.c: Include arch/arm-linux.h
8828 aarch/arm-get-next-pcs.h, sys/syscall.h.
8829 (get_next_pcs_ops): New struct.
8830 (get_next_pcs_addr_bits_remove): New function.
8831 (get_next_pcs_is_thumb): New function.
8832 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8833 (arm_sigreturn_next_pc): Likewise.
8834 (get_next_pcs_syscall_next_pc): Likewise.
8835 (arm_gdbserver_get_next_pcs): Likewise.
8836 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8837 Initialize.
8838 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8839 * server.h: Include gdb_vecs.h.
8840
68ce2059
AT
88412015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8842
8843 * Makefile.in (SFILES): Append common/common-regcache.c.
8844 (OBS): Append common-regcache.o.
8845 (common-regcache.o): New rule.
8846 * regcache.c (init_register_cache): Initialize cache to
8847 REG_UNAVAILABLE.
8848 (regcache_raw_read_unsigned): New function.
8849 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8850 register_status enum.
8851
fa5308bd
AT
88522015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8853
8854 * linux-aarch64-low.c (the_low_targets): Rename
8855 breakpoint_reinsert_addr to get_next_pcs.
8856 * linux-arm-low.c (the_low_targets): Likewise.
8857 * linux-bfin-low.c (the_low_targets): Likewise.
8858 * linux-cris-low.c (the_low_targets): Likewise.
8859 * linux-crisv32-low.c (the_low_targets): Likewise.
8860 * linux-low.c (can_software_single_step): Likewise.
8861 (install_software_single_step_breakpoints): New function.
8862 (start_step_over): Use install_software_single_step_breakpoints.
8863 * linux-low.h: New CORE_ADDR vector.
8864 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8865 get_next_pcs.
8866 * linux-mips-low.c (the_low_targets): Likewise.
8867 * linux-nios2-low.c (the_low_targets): Likewise.
8868 * linux-sparc-low.c (the_low_targets): Likewise.
8869
4a6ed09b
PA
88702015-12-17 Pedro Alves <palves@redhat.com>
8871
8872 * linux-low.c (linux_kill_one_lwp): Remove references to
8873 LinuxThreads.
8874 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8875 to 'kill'.
8876 (linux_init_signals): Delete.
8877 (initialize_low): Adjust.
8878 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8879
7544db95
PA
88802015-12-16 Pedro Alves <palves@redhat.com>
8881
8882 * configure.ac (compiler warning flags): When testing a
8883 -Wno-foo option, check whether -Wfoo works instead.
8884 * configure: Regenerate.
8885
8020350c
DB
88862015-12-11 Don Breazeal <donb@codesourcery.com>
8887
8888 * server.c (process_serial_event): Don't exit from gdbserver
8889 in remote mode if there are still active inferiors.
8890
db91f502
YQ
88912015-12-11 Yao Qi <yao.qi@linaro.org>
8892
8893 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8894 arm_breakpoint_at if the process is 32-bit.
8895
b37a6290
YQ
88962015-12-11 Yao Qi <yao.qi@linaro.org>
8897
8898 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8899 arm breakpoint.
8900
17b1509a
YQ
89012015-12-07 Yao Qi <yao.qi@linaro.org>
8902
8903 * configure.srv: Append arm.o to srv_tgtobj for
8904 aarch64*-*-linux* target.
8905 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8906 from linux-arm-low.c.
8907 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8908 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8909 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8910 (thumb2_breakpoint_len): Likewise.
8911 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8912 (arm_breakpoint_kinds): Likewise.
8913 (arm_breakpoint_kind_from_pc): Likewise.
8914 (arm_sw_breakpoint_from_kind): Likewise.
8915 (arm_breakpoint_kind_from_current_state): Likewise.
8916 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
8917 (arm_sw_breakpoint_from_kind): Declare.
8918 (arm_breakpoint_kind_from_current_state): Declare.
8919 (arm_breakpoint_at): Declare.
8920 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
8921 arm_sw_breakpoint_from_kind if process is 32-bit.
8922 (aarch64_breakpoint_kind_from_pc): New function.
8923 (aarch64_breakpoint_kind_from_current_state): New function.
8924 (the_low_target): Initialize fields breakpoint_kind_from_pc
8925 and breakpoint_kind_from_current_state.
8926 * linux-arm-low.c (arm_breakpoint_kinds): Move to
8927 linux-aarch32-low.c.
8928 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
8929 (arm_breakpoint, arm_breakpoint_len): Likewise.
8930 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
8931 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8932 (arm_is_thumb_mode): Likewise.
8933 (arm_breakpoint_at): Likewise.
8934 (arm_breakpoint_kind_from_pc): Likewise.
8935 (arm_sw_breakpoint_from_kind): Likewise.
8936 (arm_breakpoint_kind_from_current_state): Likewise.
8937
8938 Revert:
8939 2015-08-04 Yao Qi <yao.qi@linaro.org>
8940
8941 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8942 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8943 * server.c (extended_protocol): Remove "static".
8944 * server.h (extended_protocol): Declare it.
8945
ece66d65
JS
89462015-12-04 Josh Stone <jistone@redhat.com>
8947
8948 * target.h (struct target_ops) <arch_setup>: Rename to ...
8949 (struct target_ops) <post_create_inferior>: ... this.
8950 (target_arch_setup): Rename to ...
8951 (target_post_create_inferior): ... this, calling post_create_inferior.
8952 * server.c (start_inferior): Update target_arch_setup calls to
8953 target_post_create_inferior.
8954 * linux-low.c (linux_low_ptrace_options): Forward declare.
8955 (linux_arch_setup): Update its comment for general use.
8956 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
8957 (struct linux_target_ops): Use linux_post_create_inferior.
8958 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
8959 to post_create_inferior.
8960 * nto-low.c (struct nto_target_ops): Likewise.
8961 * spu-low.c (struct spu_target_ops): Likewise.
8962 * win32-low.c (struct win32_target_ops): Likewise.
8963
e58c48b4
AT
89642015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
8965
8966 * linux-arm-low.c: Remove duplicate arch/arm.h include.
8967
fbec8956
AT
89682015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8969
8970 * linux-arm-low.c (arm_reinsert_addr): Remove function.
8971 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
8972 * linux-cris-low.c (cris_reinsert_addr> Remove function.
8973 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8974 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
8975 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8976 * linux-mips-low.c (mips_reinsert_addr): Remove function.
8977 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8978 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
8979 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8980 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
8981 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8982
9b4c5f87
AT
89832015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8984
8985 * linux-low.c (linux_look_up_symbols): Don't call
8986 linux_supports_traceclone.
8987 * linux-low.h (thread_db_init): Remove use_events argument.
8988 * thread-db.c (thread_db_use_event): Remove global variable.
8989 (struct thread_db) <td_thr_event_enable_p>: Remove field.
8990 (struct thread_db) <td_create_bp>: Remove field.
8991 (thread_db_create_event): Remove function.
8992 (thread_db_enable_reporting): Likewise.
8993 (find_one_thread): Don't check for thread_db_use_events.
8994 (attach_thread): Likewise.
8995 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
8996 (try_thread_db_load_1): Don't check for thread_db_use_events.
8997 (thread_db_init): Remove use_events argument and thread events
8998 handling.
8999 (remove_thread_event_breakpoints): Remove function.
9000 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9001
7d00775e
AT
90022015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9003
9004 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9005 New function.
9006 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9007 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9008 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9009 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9010 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9011 Initialize.
9012 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9013 New function.
9014 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9015 * linux-low.c (can_hardware_single_step): Use
9016 supports_hardware_single_step.
9017 (can_software_single_step): New function.
9018 (start_step_over): Call can_software_single_step.
9019 (linux_supports_hardware_single_step): New function.
9020 (struct target_ops) <supports_software_single_step>: Initialize.
9021 * linux-low.h (struct linux_target_ops)
9022 <supports_hardware_single_step>: Initialize.
9023 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9024 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9025 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9026 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9027 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9028 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9029 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9030 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9031 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9032 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9033 Initialize.
9034 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9035 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9036 Initialize.
9037 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9038 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9039 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9040 New function.
9041 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9042 * target.h (struct target_ops): <supports_software_single_step>:
9043 New field.
9044 (target_supports_software_single_step): New macro.
9045
2d97cd35
AT
90462015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9047
9048 * linux-low.c (linux_wait_1): Fix pc advance condition.
9049 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9050 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9051
769ef81f
AT
90522015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9053
9054 * linux-arm-low.c (arm_is_thumb_mode): New function.
9055 (arm_breakpoint_at): Use arm_is_thumb_mode.
9056 (arm_breakpoint_kind_from_current_state): New function.
9057 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9058 Initialize.
9059 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9060 (linux_breakpoint_kind_from_current_state): New function.
9061 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9062 * linux-low.h (struct linux_target_ops)
9063 <breakpoint_kind_from_current_state>: New field.
9064 * target.h (struct target_ops): Likewise.
9065 (target_breakpoint_kind_from_current_state): New macro.
9066
1bebeeca
PA
90672015-11-30 Pedro Alves <palves@redhat.com>
9068
9069 * linux-low.c (linux_resume): Wake up the event loop before
9070 returning.
9071
a67a9fae
PA
90722015-11-30 Pedro Alves <palves@redhat.com>
9073
9074 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9075 check.
9076 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9077 to -1.
9078 * target.c (struct thread_search): New structure.
9079 (thread_search_callback): New function.
9080 (prev_general_thread): New global.
9081 (prepare_to_access_memory, done_accessing_memory): New functions.
9082 * target.h (prepare_to_access_memory, done_accessing_memory):
9083 Replace macros with function declarations.
9084
f2faf941
PA
90852015-11-30 Pedro Alves <palves@redhat.com>
9086
9087 PR 14618
9088 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9089 report TARGET_WAITKIND_NO_RESUMED.
9090 * remote-utils.c (prepare_resume_reply): Handle
9091 TARGET_WAITKIND_NO_RESUMED.
9092 * server.c (report_no_resumed): New global.
9093 (handle_query) <qSupported>: Handle "no-resumed+". Report
9094 "no-resumed+" support.
9095 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9096 return error if the client doesn't support no-resumed events.
9097 (push_stop_notification): New function.
9098 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9099 events if the client supports them.
9100
a681f9c9
PA
91012015-11-30 Pedro Alves <palves@redhat.com>
9102
9103 * linux-low.c (thread_still_has_status_pending_p): Don't check
9104 vCont;t here.
9105 (lwp_resumed): New function.
9106 (status_pending_p_callback): Return early if the LWP is not
9107 supposed to be resumed.
9108
65706a29
PA
91092015-11-30 Pedro Alves <palves@redhat.com>
9110
9111 * linux-low.c (handle_extended_wait): Assert that the LWP's
9112 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9113 thread create events, leave the new child's status pending.
9114 (linux_low_filter_event): If GDB wants to hear about thread exit
9115 events, leave the LWP marked dead and don't delete it.
9116 (linux_wait_for_event_filtered): Don't check for thread exit.
9117 (filter_exit_event): New function.
9118 (linux_wait_1): Use it, when returning an exit event.
9119 (linux_resume_one_lwp_throw): Assert that the LWP's
9120 waitstatus is TARGET_WAITKIND_IGNORE.
9121 * remote-utils.c (prepare_resume_reply): Handle
9122 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9123 * server.c (report_thread_events): New global.
9124 (handle_general_set): Handle QThreadEvents.
9125 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9126 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9127 TARGET_WAITKIND_THREAD_EXITED.
9128 * server.h (report_thread_events): Declare.
9129
56cf4bed
PA
91302015-11-30 Pedro Alves <palves@redhat.com>
9131
9132 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9133 the thread's last_resume_kind was resume_stop.
9134
500c1d85
PA
91352015-11-30 Pedro Alves <palves@redhat.com>
9136
9137 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9138 before returning.
9139
de979965
PA
91402015-11-30 Pedro Alves <palves@redhat.com>
9141
9142 * server.c (handle_v_requests): Handle vCtrlC.
9143
34c65914
PA
91442015-11-30 Pedro Alves <palves@redhat.com>
9145
9146 * gdbthread.h (find_any_thread_of_pid): Declare.
9147 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9148 functions.
9149 * server.c (handle_query): If current_thread is NULL, look for
9150 another thread of the selected process.
9151
79efa585 91522015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9153 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9154
9155 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9156 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9157 name in reply.
9158 * target.h (struct target_ops) <thread_name>: New field.
9159 (target_thread_name): New macro.
9160
80d82c19
JB
91612015-11-23 Joel Brobecker <brobecker@adacore.com>
9162
9163 * regcache.h (regcache_invalidate_pid): Add declaration.
9164 * regcache.c (regcache_invalidate_pid): New function, extracted
9165 from regcache_invalidate.
9166 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9167 Add trivial documentation comment.
9168 * lynx-low.c: Use regcache_invalidate_pid instead of
9169 regcache_invalidate.
9170
64da5dd5
JB
91712015-11-23 Joel Brobecker <brobecker@adacore.com>
9172
9173 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9174 and Elf64_auxv_t if the target is Android.
9175
37ce4055
DE
91762015-11-22 Doug Evans <xdje42@gmail.com>
9177
9178 * target.h: #include <sys/types.h>.
9179
06e03fff
PA
91802015-11-19 Pedro Alves <palves@redhat.com>
9181
9182 * linux-low.c (linux_process_qsupported): Change prototype.
9183 Adjust.
9184 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9185 Change prototype.
9186 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9187 and adjust to loop over all features.
9188 * server.c (handle_query) <qSupported>: Adjust to call
9189 target_process_qsupported once, passing it a vector of unprocessed
9190 features.
9191 * target.h (struct target_ops) <process_qsupported>: Change
9192 prototype.
9193 (target_process_qsupported): Adjust.
9194
9a084706
PA
91952015-11-19 Pedro Alves <palves@redhat.com>
9196
9197 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9198 mode.
9199 * configure: Regenerate.
9200
dad44a1f
PA
92012015-11-19 Pedro Alves <palves@redhat.com>
9202
9203 * configure: Regenerate.
9204
231c0592
YQ
92052015-11-19 Yao Qi <yao.qi@linaro.org>
9206
9207 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9208 type to uint32_t.
9209
6c1c9a8b
YQ
92102015-11-19 Yao Qi <yao.qi@linaro.org>
9211
9212 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9213 (struct aarch64_operand): Move enum out.
9214
9caa3311
YQ
92152015-11-19 Yao Qi <yao.qi@linaro.org>
9216
9217 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9218 struct user_fpsimd_state *.
9219 (aarch64_store_fpregset): Likewise.
9220
6a69a054
YQ
92212015-11-19 Yao Qi <yao.qi@linaro.org>
9222
9223 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9224 struct user_pt_regs *.
9225 (aarch64_store_gregset): Likewise.
9226
1798301e
PA
92272015-11-18 Pedro Alves <palves@redhat.com>
9228
9229 * Makefile.in (all_object_files): Add $IPA_OBJS.
9230
ce7715e2
PA
92312015-11-17 Pedro Alves <palves@redhat.com>
9232
9233 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9234 GDB_SIGNAL_0 and gdb_signal_to_string.
9235
c0879059
PA
92362015-11-17 Pedro Alves <palves@redhat.com>
9237
9238 * win32-low.c (handle_output_debug_string): Remove parameter.
9239 (win32_kill): Remove our_status local and adjust call to
9240 handle_output_debug_string.
9241 (get_child_debug_event): Adjust call to
9242 handle_output_debug_string.
9243
1996e237
SM
92442015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9245
9246 * linux-mips-low.c (mips_fill_gregset): Add cast.
9247 (mips_store_gregset): Likewise.
9248 (mips_fill_fpregset): Likewise.
9249 (mips_store_fpregset): Likewise.
9250
cbec665b
SM
92512015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9252
9253 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9254 priv.
9255
eb3e3c67
SM
92562015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9257
9258 * linux-mips-low.c (mips_linux_new_thread): Change type of
9259 watch_type to enum target_hw_bp_type.
9260
171de4b8
SM
92612015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9262
9263 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9264 Change return type to arm_hwbp_type.
9265
04248ead
SM
92662015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9267
9268 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9269 (arm_store_gregset): Likewise.
9270 * linux-arm-low.c (arm_get_hwcap): Likewise.
9271 (arm_read_description): Likewise.
9272
04b3479c
SM
92732015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9274
9275 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9276
2bc84e8a
SM
92772015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9278
9279 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9280 (ppc_fill_vsxregset): Likewise.
9281 (ppc_store_vsxregset): Likewise.
9282 (ppc_fill_vrregset): Likewise.
9283 (ppc_store_vrregset): Likewise.
9284 (ppc_fill_evrregset): Likewise.
9285 (ppc_store_evrregset): Likewise.
9286
e6c5bb05
SM
92872015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9288
9289 * linux-ppc-low.c (ppc_usrregs_info): Remove
9290 forward-declaration.
9291 (ppc_arch_setup): Move lower in file.
9292
7ea45d72
SM
92932015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9294
9295 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9296 (ps_pdwrite): Likewise.
9297
69291610
HW
92982015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9299
9300 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9301 to after assert checks.
9302
b42945fd
SM
93032015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9304
9305 * proc-service.c (ps_pdread): Add/adjust casts.
9306 (ps_pdwrite): Add/adjust casts.
9307
d6f85c84
SM
93082015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9309
9310 * server.c (handle_search_memory_1): Cast return value of
9311 memmem.
9312
f98cd059
SM
93132015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9314
9315 * server.c (write_qxfer_response): Change type of data to
9316 gdb_byte *.
9317
d2412fa5
PA
93182015-10-29 Pedro Alves <palves@redhat.com>
9319
9320 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9321
c17414a2
PA
93222015-10-29 Pedro Alves <palves@redhat.com>
9323
9324 * tracepoint.c (clear_installed_tracepoints): Add casts.
9325
e053fbc4
PA
93262015-10-29 Pedro Alves <palves@redhat.com>
9327
9328 * server.c (handle_v_cont, process_serial_event): Add enum
9329 gdb_signal casts to signal parsing code.
9330
add67df8
PA
93312015-10-29 Pedro Alves <palves@redhat.com>
9332
9333 * linux-low.h (NULL_REGSET): Define.
9334 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9335 * linux-arm-low.c (arm_regsets): Likewise.
9336 * linux-crisv32-low.c (cris_regsets): Likewise.
9337 * linux-m68k-low.c (m68k_regsets): Likewise.
9338 * linux-mips-low.c (mips_regsets): Likewise.
9339 * linux-nios2-low.c (nios2_regsets): Likewise.
9340 * linux-ppc-low.c (ppc_regsets): Likewise.
9341 * linux-s390-low.c (s390_regsets): Likewise.
9342 * linux-sh-low.c (sh_regsets): Likewise.
9343 * linux-sparc-low.c (sparc_regsets): Likewise.
9344 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9345 * linux-tile-low.c (tile_regsets): Likewise.
9346 * linux-x86-low.c (x86_regsets): Likewise.
9347 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9348
50bc912a
PA
93492015-10-29 Pedro Alves <palves@redhat.com>
9350
9351 * linux-low.h (NULL_REGSET): Define.
9352 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9353 * linux-arm-low.c (arm_regsets): Likewise.
9354 * linux-crisv32-low.c (cris_regsets): Likewise.
9355 * linux-m68k-low.c (m68k_regsets): Likewise.
9356 * linux-mips-low.c (mips_regsets): Likewise.
9357 * linux-nios2-low.c (nios2_regsets): Likewise.
9358 * linux-ppc-low.c (ppc_regsets): Likewise.
9359 * linux-s390-low.c (s390_regsets): Likewise.
9360 * linux-sh-low.c (sh_regsets): Likewise.
9361 * linux-sparc-low.c (sparc_regsets): Likewise.
9362 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9363 * linux-tile-low.c (tile_regsets): Likewise.
9364 * linux-x86-low.c (x86_regsets): Likewise.
9365 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9366
682b2546
DE
93672015-10-26 Doug Evans <dje@google.com>
9368
9369 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9370
963843d4
DE
93712015-10-26 Doug Evans <dje@google.com>
9372
9373 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9374
d41401ac
DE
93752015-10-26 Doug Evans <dje@google.com>
9376
9377 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9378 for debug_printf.
9379 (attach_thread, find_new_threads_callback): Ditto.
9380
3db28855
AT
93812015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9382
9383 * mem-break.h (set_breakpoint_data): Remove.
9384
fb78e89c
AT
93852015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9386
9387 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9388 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9389 (initialize_low): Remove set_breakpoint_data call.
9390 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9391 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9392 (initialize_low): Remove set_breakpoint_data call.
9393 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9394 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9395 (initialize_low): Remove set_breakpoint_data call.
9396
2e6ee069
AT
93972015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9398
9399 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9400 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9401 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9402 * target.h (target_breakpoint_kind_from_pc): New macro.
9403
1652a986
AT
94042015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9405
9406 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9407 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9408 the default breakpoint kind.
9409
abeead09
AT
94102015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9411
9412 * linux-arm-low.c (arm_supports_z_point_type): Add software
9413 breakpoint support.
9414
b0b4b501
AT
94152015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9416
9417 * linux-arm-low.c: Refactor breakpoint definitions.
9418 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9419 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9420
8689682c
AT
94212015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9422
9423 * Makefile.in: Add arm.c/o.
9424 * configure.srv: Likewise.
9425 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9426 (arm_breakpoint_kind_from_pc): New function.
9427 (arm_sw_breakpoint_from_kind): Return proper kind.
9428 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9429
27165294
AT
94302015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9431
9432 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9433 removal.
9434 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9435 (struct raw_breakpoint) <size>: Remove.
9436 (struct raw_breakpoint) <kind>: Add.
9437 (bp_size): New function.
9438 (bp_opcode): Likewise.
9439 (find_raw_breakpoint_at): Adjust for kind.
9440 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9441 (remove_memory_breakpoint): Adjust for kind call bp_size.
9442 (set_raw_breakpoint_at): Adjust for kind.
9443 (set_breakpoint): Likewise.
9444 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9445 (delete_raw_breakpoint): Adjust for kind.
9446 (delete_breakpoint): Likewise.
9447 (find_gdb_breakpoint): Likewise.
9448 (set_gdb_breakpoint_1): Likewise.
9449 (set_gdb_breakpoint): Likewise.
9450 (delete_gdb_breakpoint_1): Likewise.
9451 (delete_gdb_breakpoint): Likewise.
9452 (uninsert_raw_breakpoint): Likewise.
9453 (reinsert_raw_breakpoint): Likewise.
9454 (set_breakpoint_data): Remove.
9455 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9456 (check_mem_read): Adjust for kind call bp_size.
9457 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9458 (clone_one_breakpoint): Adjust for kind.
9459 * mem-break.h (set_gdb_breakpoint): Likewise.
9460 (delete_gdb_breakpoint): Likewise.
9461 * server.c (process_serial_event): Likewise.
9462
dd373349
AT
94632015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9464
9465 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9466 (struct linux_target_ops) <breakpoint>: Remove.
9467 (struct linux_target_ops) <breakpoint_len>: Remove.
9468 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9469 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9470 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9471 (arm_sw_breakpoint_from_kind): New function.
9472 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9473 (struct linux_target_ops) <breakpoint>: Remove.
9474 (struct linux_target_ops) <breakpoint_len>: Remove.
9475 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9476 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9477 * linux-cris-low.c (cris_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-crisv32-low.c (cris_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-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9488 and sw_breakpoint_from_kind to increment the pc.
9489 (linux_breakpoint_kind_from_pc): New function.
9490 (linux_sw_breakpoint_from_kind): New function.
9491 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9492 (initialize_low): Call breakpoint_kind_from_pc and
9493 sw_breakpoint_from_kind to replace breakpoint_data/len.
9494 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9495 New field.
9496 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9497 * linux-m32r-low.c (m32r_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-m68k-low.c (m68k_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-mips-low.c (mips_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-nios2-low.c (nios2_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-ppc-low.c (ppc_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-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9523 (struct linux_target_ops) <breakpoint>: Remove.
9524 (struct linux_target_ops) <breakpoint_len>: Remove.
9525 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9526 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9527 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9528 (struct linux_target_ops) <breakpoint>: Remove.
9529 (struct linux_target_ops) <breakpoint_len>: Remove.
9530 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9531 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9532 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9533 (struct linux_target_ops) <breakpoint>: Remove.
9534 (struct linux_target_ops) <breakpoint_len>: Remove.
9535 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9536 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9537 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9538 (struct linux_target_ops) <breakpoint>: Remove.
9539 (struct linux_target_ops) <breakpoint_len>: Remove.
9540 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9541 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9542 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9543 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9544 (struct linux_target_ops) <breakpoint>: Remove.
9545 (struct linux_target_ops) <breakpoint_len>: Remove.
9546 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9547 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9548 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9549 (struct linux_target_ops) <breakpoint>: Remove.
9550 (struct linux_target_ops) <breakpoint_len>: Remove.
9551 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9552 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9553
4cd98a19
AT
95542015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9555
9556 * linux-cris-low.c (cris_get_pc): Remove void arg.
9557
774ee6d2
AR
95582015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9559
9560 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9561 variable name.
9562
833dcd29
AR
95632015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9564
9565 * inferiors.c (thread_pid_matches_callback): New function.
9566 (find_thread_process): New function.
9567 (remove_thread): Reset current_thread.
9568 (remove_process): Assert threads have been removed first.
9569
8d689ee5
YQ
95702015-10-15 Yao Qi <yao.qi@linaro.org>
9571
9572 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9573 if it is 3.
9574 (aarch64_remove_point): Likewise.
9575 * regcache.c (regcache_register_size): New function.
9576
1c2e1515
YQ
95772015-10-12 Yao Qi <yao.qi@linaro.org>
9578
9579 * linux-aarch64-low.c: Update all callers as emit_load_store
9580 is renamed to aarch64_emit_load_store.
9581
e1c587c3
YQ
95822015-10-12 Yao Qi <yao.qi@linaro.org>
9583
9584 * linux-aarch64-low.c: Update all callers of function renaming
9585 from emit_insn to aarch64_emit_insn.
9586
b6542f81
YQ
95872015-10-12 Yao Qi <yao.qi@linaro.org>
9588
9589 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9590 arch/aarch64-insn.h.
9591 (struct aarch64_memory_operand): Likewise.
9592 (ENCODE): Likewise.
9593 (emit_insn): Move to arch/aarch64-insn.c.
9594 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9595 (emit_load_store): Move to arch/aarch64-insn.c.
9596 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9597 (can_encode_int32): Remove.
9598
246994ce
YQ
95992015-10-12 Yao Qi <yao.qi@linaro.org>
9600
9601 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9602 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9603 (aarch64_relocate_instruction): Likewise.
9604 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9605 (struct aarch64_insn_visitor): Likewise.
9606
0badd99f
YQ
96072015-10-12 Yao Qi <yao.qi@linaro.org>
9608
9609 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9610 (struct aarch64_insn_visitor): New.
9611 (struct aarch64_insn_relocation_data): New.
9612 (aarch64_ftrace_insn_reloc_b): New function.
9613 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9614 (aarch64_ftrace_insn_reloc_cb): Likewise.
9615 (aarch64_ftrace_insn_reloc_tb): Likewise.
9616 (aarch64_ftrace_insn_reloc_adr): Likewise.
9617 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9618 (aarch64_ftrace_insn_reloc_others): Likewise.
9619 (visitor): New.
9620 (aarch64_relocate_instruction): Use visitor.
9621
dfaffe9d
YQ
96222015-10-12 Yao Qi <yao.qi@linaro.org>
9623
9624 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9625 int. Add argument buf.
9626 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9627 aarch64_relocate_instruction.
9628
70b439f0
YQ
96292015-10-12 Yao Qi <yao.qi@linaro.org>
9630
9631 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9632 argument insn. Remove local variable insn. Don't call
9633 target_read_uint32.
9634 (aarch64_install_fast_tracepoint_jump_pad): Call
9635 target_read_uint32.
9636
7781c06f
YQ
96372015-09-30 Yao Qi <yao.qi@linaro.org>
9638
9639 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9640 (emit_load_store_pair): Likewise.
9641
9a3c8263
SM
96422015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9643
9644 * dll.c (match_dll): Add cast(s).
9645 (unloaded_dll): Likewise.
9646 * linux-low.c (second_thread_of_pid_p): Likewise.
9647 (delete_lwp_callback): Likewise.
9648 (count_events_callback): Likewise.
9649 (select_event_lwp_callback): Likewise.
9650 (linux_set_resume_request): Likewise.
9651 * server.c (accumulate_file_name_length): Likewise.
9652 (emit_dll_description): Likewise.
9653 (handle_qxfer_threads_worker): Likewise.
9654 (visit_actioned_threads): Likewise.
9655 * thread-db.c (any_thread_of): Likewise.
9656 * tracepoint.c (same_process_p): Likewise.
9657 (match_blocktype): Likewise.
9658 (build_traceframe_info_xml): Likewise.
9659
224c3ddb
SM
96602015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9661
9662 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9663 assignment.
9664 (gdb_unparse_agent_expr): Likewise.
9665 * hostio.c (require_data): Likewise.
9666 (handle_pread): Likewise.
9667 * linux-low.c (disable_regset): Likewise.
9668 (fetch_register): Likewise.
9669 (store_register): Likewise.
9670 (get_dynamic): Likewise.
9671 (linux_qxfer_libraries_svr4): Likewise.
9672 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9673 (set_fast_tracepoint_jump): Likewise.
9674 (uninsert_fast_tracepoint_jumps_at): Likewise.
9675 (reinsert_fast_tracepoint_jumps_at): Likewise.
9676 (validate_inserted_breakpoint): Likewise.
9677 (clone_agent_expr): Likewise.
9678 * regcache.c (init_register_cache): Likewise.
9679 * remote-utils.c (putpkt_binary_1): Likewise.
9680 (decode_M_packet): Likewise.
9681 (decode_X_packet): Likewise.
9682 (look_up_one_symbol): Likewise.
9683 (relocate_instruction): Likewise.
9684 (monitor_output): Likewise.
9685 * server.c (handle_search_memory): Likewise.
9686 (handle_qxfer_exec_file): Likewise.
9687 (handle_qxfer_libraries): Likewise.
9688 (handle_qxfer): Likewise.
9689 (handle_query): Likewise.
9690 (handle_v_cont): Likewise.
9691 (handle_v_run): Likewise.
9692 (captured_main): Likewise.
9693 * target.c (write_inferior_memory): Likewise.
9694 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9695 * tracepoint.c (init_trace_buffer): Likewise.
9696 (add_tracepoint_action): Likewise.
9697 (add_traceframe): Likewise.
9698 (add_traceframe_block): Likewise.
9699 (cmd_qtdpsrc): Likewise.
9700 (cmd_qtdv): Likewise.
9701 (cmd_qtstatus): Likewise.
9702 (response_source): Likewise.
9703 (response_tsv): Likewise.
9704 (cmd_qtnotes): Likewise.
9705 (gdb_collect): Likewise.
9706 (initialize_tracepoint): Likewise.
9707
afbe19f8
PL
97082015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9709
9710 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9711 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9712 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9713 <NOP>: New.
9714 (enum aarch64_condition_codes): New enum.
9715 (w0): New static global.
9716 (fp): Likewise.
9717 (lr): Likewise.
9718 (struct aarch64_memory_operand) <type>: New
9719 MEMORY_OPERAND_POSTINDEX type.
9720 (postindex_memory_operand): New helper function.
9721 (emit_ret): New function.
9722 (emit_load_store_pair): New function, factored out of emit_stp
9723 with support for MEMORY_OPERAND_POSTINDEX.
9724 (emit_stp): Rewrite using emit_load_store_pair.
9725 (emit_ldp): New function.
9726 (emit_load_store): Likewise.
9727 (emit_ldr): Mention post-index instruction in comment.
9728 (emit_ldrh): New function.
9729 (emit_ldrb): New function.
9730 (emit_ldrsw): Mention post-index instruction in comment.
9731 (emit_str): Likewise.
9732 (emit_subs): New function.
9733 (emit_cmp): Likewise.
9734 (emit_and): Likewise.
9735 (emit_orr): Likewise.
9736 (emit_orn): Likewise.
9737 (emit_eor): Likewise.
9738 (emit_mvn): Likewise.
9739 (emit_lslv): Likewise.
9740 (emit_lsrv): Likewise.
9741 (emit_asrv): Likewise.
9742 (emit_mul): Likewise.
9743 (emit_sbfm): Likewise.
9744 (emit_sbfx): Likewise.
9745 (emit_ubfm): Likewise.
9746 (emit_ubfx): Likewise.
9747 (emit_csinc): Likewise.
9748 (emit_cset): Likewise.
9749 (emit_nop): Likewise.
9750 (emit_ops_insns): New helper function.
9751 (emit_pop): Likewise.
9752 (emit_push): Likewise.
9753 (aarch64_emit_prologue): New function.
9754 (aarch64_emit_epilogue): Likewise.
9755 (aarch64_emit_add): Likewise.
9756 (aarch64_emit_sub): Likewise.
9757 (aarch64_emit_mul): Likewise.
9758 (aarch64_emit_lsh): Likewise.
9759 (aarch64_emit_rsh_signed): Likewise.
9760 (aarch64_emit_rsh_unsigned): Likewise.
9761 (aarch64_emit_ext): Likewise.
9762 (aarch64_emit_log_not): Likewise.
9763 (aarch64_emit_bit_and): Likewise.
9764 (aarch64_emit_bit_or): Likewise.
9765 (aarch64_emit_bit_xor): Likewise.
9766 (aarch64_emit_bit_not): Likewise.
9767 (aarch64_emit_equal): Likewise.
9768 (aarch64_emit_less_signed): Likewise.
9769 (aarch64_emit_less_unsigned): Likewise.
9770 (aarch64_emit_ref): Likewise.
9771 (aarch64_emit_if_goto): Likewise.
9772 (aarch64_emit_goto): Likewise.
9773 (aarch64_write_goto_address): Likewise.
9774 (aarch64_emit_const): Likewise.
9775 (aarch64_emit_call): Likewise.
9776 (aarch64_emit_reg): Likewise.
9777 (aarch64_emit_pop): Likewise.
9778 (aarch64_emit_stack_flush): Likewise.
9779 (aarch64_emit_zero_ext): Likewise.
9780 (aarch64_emit_swap): Likewise.
9781 (aarch64_emit_stack_adjust): Likewise.
9782 (aarch64_emit_int_call_1): Likewise.
9783 (aarch64_emit_void_call_2): Likewise.
9784 (aarch64_emit_eq_goto): Likewise.
9785 (aarch64_emit_ne_goto): Likewise.
9786 (aarch64_emit_lt_goto): Likewise.
9787 (aarch64_emit_le_goto): Likewise.
9788 (aarch64_emit_gt_goto): Likewise.
9789 (aarch64_emit_ge_got): Likewise.
9790 (aarch64_emit_ops_impl): New static global variable.
9791 (aarch64_emit_ops): New target function, return
9792 &aarch64_emit_ops_impl.
9793 (struct linux_target_ops): Install it.
9794
bb903df0
PL
97952015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9796
9797 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9798 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9799 aarch64-ipa.o.
9800 * linux-aarch64-ipa.c: New file.
9801 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9802 and endian.h.
9803 (aarch64_get_thread_area): New target method.
9804 (extract_signed_bitfield): New helper function.
9805 (aarch64_decode_ldr_literal): New function.
9806 (enum aarch64_opcodes): New enum.
9807 (struct aarch64_register): New struct.
9808 (struct aarch64_operand): New struct.
9809 (x0): New static global.
9810 (x1): Likewise.
9811 (x2): Likewise.
9812 (x3): Likewise.
9813 (x4): Likewise.
9814 (w2): Likewise.
9815 (ip0): Likewise.
9816 (sp): Likewise.
9817 (xzr): Likewise.
9818 (aarch64_register): New helper function.
9819 (register_operand): Likewise.
9820 (immediate_operand): Likewise.
9821 (struct aarch64_memory_operand): New struct.
9822 (offset_memory_operand): New helper function.
9823 (preindex_memory_operand): Likewise.
9824 (enum aarch64_system_control_registers): New enum.
9825 (ENCODE): New macro.
9826 (emit_insn): New helper function.
9827 (emit_b): New function.
9828 (emit_bcond): Likewise.
9829 (emit_cb): Likewise.
9830 (emit_tb): Likewise.
9831 (emit_blr): Likewise.
9832 (emit_stp): Likewise.
9833 (emit_ldp_q_offset): Likewise.
9834 (emit_stp_q_offset): Likewise.
9835 (emit_load_store): Likewise.
9836 (emit_ldr): Likewise.
9837 (emit_ldrsw): Likewise.
9838 (emit_str): Likewise.
9839 (emit_ldaxr): Likewise.
9840 (emit_stxr): Likewise.
9841 (emit_stlr): Likewise.
9842 (emit_data_processing_reg): Likewise.
9843 (emit_data_processing): Likewise.
9844 (emit_add): Likewise.
9845 (emit_sub): Likewise.
9846 (emit_mov): Likewise.
9847 (emit_movk): Likewise.
9848 (emit_mov_addr): Likewise.
9849 (emit_mrs): Likewise.
9850 (emit_msr): Likewise.
9851 (emit_sevl): Likewise.
9852 (emit_wfe): Likewise.
9853 (append_insns): Likewise.
9854 (can_encode_int32_in): New helper function.
9855 (aarch64_relocate_instruction): New function.
9856 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9857 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9858 (struct linux_target_ops): Install aarch64_get_thread_area,
9859 aarch64_install_fast_tracepoint_jump_pad and
9860 aarch64_get_min_fast_tracepoint_insn_len.
9861
787749ea
PL
98622015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9863
9864 * Makefile.in (aarch64-insn.o): New rule.
9865 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9866
9812b2e6
YQ
98672015-09-21 Yao Qi <yao.qi@linaro.org>
9868
9869 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9870
18fe412b
YQ
98712015-09-21 Yao Qi <yao.qi@linaro.org>
9872
9873 * tracepoint.c (max_jump_pad_size): Remove.
9874
a0cc84cd
YQ
98752015-09-18 Yao Qi <yao.qi@linaro.org>
9876
9877 * linux-aarch64-low.c: Don't include sys/uio.h.
9878 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9879
d78908cf
WW
98802015-09-16 Wei-cheng Wang <cole945@gmail.com>
9881
9882 * tracepoint.c (eval_result_type): Change prototype.
9883 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9884
d57e0d50
PA
98852015-09-15 Pedro Alves <palves@redhat.com>
9886
9887 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9888 Check whether to report exec events instead of checking whether
9889 multiprocess is enabled.
9890
5a676acc
PA
98912015-09-15 Pedro Alves <palves@redhat.com>
9892
9893 PR remote/18965
9894 * remote-utils.c (prepare_resume_reply): Merge
9895 TARGET_WAITKIND_VFORK_DONE switch case with the
9896 TARGET_WAITKIND_FORKED case.
9897
7c5d0fad
YQ
98982015-09-15 Yao Qi <yao.qi@linaro.org>
9899
9900 * server.c (handle_query): Check string comparison using
9901 "else if" instead of "if".
9902
750ce8d1
YQ
99032015-09-15 Yao Qi <yao.qi@linaro.org>
9904
9905 * server.c (vCont_supported): New global variable.
9906 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9907 matches. Append ";vContSupported+" to own_buf.
9908 (handle_v_requests): Append ";s;S" to own_buf if target supports
9909 hardware single step or vCont_supported is false.
9910 (capture_main): Set vCont_supported to zero.
9911
70b90b91
YQ
99122015-09-15 Yao Qi <yao.qi@linaro.org>
9913
9914 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9915 it to ...
9916 (linux_supports_hardware_single_step): ... New function.
9917 (linux_target_ops): Update.
9918 * lynx-low.c (lynx_target_ops): Set field
9919 supports_hardware_single_step to target_can_do_hardware_single_step.
9920 * nto-low.c (nto_target_ops): Likewise.
9921 * spu-low.c (spu_target_ops): Likewise.
9922 * win32-low.c (win32_target_ops): Likewise.
9923 * target.c (target_can_do_hardware_single_step): New function.
9924 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9925 Remove. <supports_hardware_single_step>: New field.
9926 (target_supports_conditional_breakpoints): Remove.
9927 (target_supports_hardware_single_step): New macro.
9928 (target_can_do_hardware_single_step): Declare.
9929 * server.c (handle_query): Use target_supports_hardware_single_step
9930 instead of target_supports_conditional_breakpoints.
9931
ade90bde
YQ
99322015-09-15 Yao Qi <yao.qi@linaro.org>
9933
9934 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
9935 function.
9936 (struct linux_target_ops the_low_target): Install
9937 aarch64_linux_siginfo_fixup.
9938
94585166
DB
99392015-09-11 Don Breazeal <donb@codesourcery.com>
9940 Luis Machado <lgustavo@codesourcery.com>
9941
9942 * linux-low.c (linux_mourn): Static declaration.
9943 (linux_arch_setup): Move in front of
9944 handle_extended_wait.
9945 (linux_arch_setup_thread): New function.
9946 (handle_extended_wait): Handle exec events. Call
9947 linux_arch_setup_thread. Make event_lwp argument a
9948 pointer-to-a-pointer.
9949 (check_zombie_leaders): Do not check stopped threads.
9950 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
9951 (linux_low_filter_event): Add lwp and thread for exec'ing
9952 non-leader thread if leader thread has been deleted.
9953 Refactor code into linux_arch_setup_thread and call it.
9954 Pass child lwp pointer by reference to handle_extended_wait.
9955 (linux_wait_for_event_filtered): Update comment.
9956 (linux_wait_1): Prevent clobbering exec event status.
9957 (linux_supports_exec_events): New function.
9958 (linux_target_ops) <supports_exec_events>: Initialize new member.
9959 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
9960 new member.
9961 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
9962 * server.c (report_exec_events): New global variable.
9963 (handle_query): Handle qSupported query for exec-events feature.
9964 (captured_main): Initialize report_exec_events.
9965 * server.h (report_exec_events): Declare new global variable.
9966 * target.h (struct target_ops) <supports_exec_events>: New
9967 member.
9968 (target_supports_exec_events): New macro.
9969 * win32-low.c (win32_target_ops) <supports_exec_events>:
9970 Initialize new member.
9971
0568462b
MM
99722015-09-09 Markus Metzger <markus.t.metzger@intel.com>
9973
9974 * linux-low.c (linux_low_enable_btrace): Remove.
9975 (linux_target_ops): Replace linux_low_enable_btrace with
9976 linux_enable_btrace.
9977
39edd165
YQ
99782015-09-03 Yao Qi <yao.qi@linaro.org>
9979
9980 * linux-aarch64-low.c (aarch64_insert_point): Call
9981 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
9982 returns true.
9983
1db33b5a
UW
99842015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9985
9986 * linux-low.c (check_stopped_by_breakpoint): Use
9987 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
9988
ab290430
PA
99892015-08-27 Pedro Alves <palves@redhat.com>
9990
9991 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
9992
8d749320
SM
99932015-08-26 Simon Marchi <simon.marchi@ericsson.com>
9994
6711b7f8
SM
9995 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
9996 the XNEW-family equivalent.
8d749320
SM
9997 (compile_bytecodes): Likewise.
9998 * dll.c (loaded_dll): Likewise.
9999 * event-loop.c (append_callback_event): Likewise.
10000 (create_file_handler): Likewise.
10001 (create_file_event): Likewise.
10002 * hostio.c (handle_open): Likewise.
10003 * inferiors.c (add_thread): Likewise.
10004 (add_process): Likewise.
10005 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10006 * linux-arm-low.c (arm_new_process): Likewise.
10007 (arm_new_thread): Likewise.
10008 * linux-low.c (add_to_pid_list): Likewise.
10009 (linux_add_process): Likewise.
10010 (handle_extended_wait): Likewise.
10011 (add_lwp): Likewise.
10012 (enqueue_one_deferred_signal): Likewise.
10013 (enqueue_pending_signal): Likewise.
10014 (linux_resume_one_lwp_throw): Likewise.
10015 (linux_resume_one_thread): Likewise.
10016 (linux_read_memory): Likewise.
10017 (linux_write_memory): Likewise.
10018 * linux-mips-low.c (mips_linux_new_process): Likewise.
10019 (mips_linux_new_thread): Likewise.
10020 (mips_add_watchpoint): Likewise.
10021 * linux-x86-low.c (initialize_low_arch): Likewise.
10022 * lynx-low.c (lynx_add_process): Likewise.
10023 * mem-break.c (set_raw_breakpoint_at): Likewise.
10024 (set_breakpoint): Likewise.
10025 (add_condition_to_breakpoint): Likewise.
10026 (add_commands_to_breakpoint): Likewise.
10027 (clone_agent_expr): Likewise.
10028 (clone_one_breakpoint): Likewise.
10029 * regcache.c (new_register_cache): Likewise.
10030 * remote-utils.c (look_up_one_symbol): Likewise.
10031 * server.c (queue_stop_reply): Likewise.
10032 (start_inferior): Likewise.
10033 (queue_stop_reply_callback): Likewise.
10034 (handle_target_event): Likewise.
10035 * spu-low.c (fetch_ppc_memory): Likewise.
10036 (store_ppc_memory): Likewise.
10037 * target.c (set_target_ops): Likewise.
10038 * thread-db.c (thread_db_load_search): Likewise.
10039 (try_thread_db_load_1): Likewise.
10040 * tracepoint.c (add_tracepoint): Likewise.
10041 (add_tracepoint_action): Likewise.
10042 (create_trace_state_variable): Likewise.
10043 (cmd_qtdpsrc): Likewise.
10044 (cmd_qtro): Likewise.
10045 (add_while_stepping_state): Likewise.
10046 * win32-low.c (child_add_thread): Likewise.
10047 (get_image_name): Likewise.
10048
ed8b7b42
YQ
100492015-08-25 Yao Qi <yao.qi@linaro.org>
10050
10051 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10052
db3cb7cb
YQ
100532015-08-25 Yao Qi <yao.qi@linaro.org>
10054
10055 * Makefile.in (aarch64-linux.o): New rule.
10056 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10057 srv_tgtobj.
10058 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10059 (aarch64_init_debug_reg_state): Make it extern.
10060 (aarch64_linux_prepare_to_resume): Remove.
10061
f6011a1c
YQ
100622015-08-25 Yao Qi <yao.qi@linaro.org>
10063
10064 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10065 lwp_arch_private_info and ptid_of_lwp.
10066
88e2cf7e
YQ
100672015-08-25 Yao Qi <yao.qi@linaro.org>
10068
10069 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10070 Find proc_info by find_process_pid. All callers updated.
10071
5e35436e
YQ
100722015-08-25 Yao Qi <yao.qi@linaro.org>
10073
10074 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10075 Remove.
10076 (debug_reg_change_callback): Remove.
10077 (aarch64_notify_debug_reg_change): Remove.
10078
4a8a7965
YQ
100792015-08-25 Yao Qi <yao.qi@linaro.org>
10080
10081 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10082 Call current_lwp_ptid.
10083
32a271ee
YQ
100842015-08-25 Yao Qi <yao.qi@linaro.org>
10085
10086 * linux-aarch64-low.c (debug_reg_change_callback): Use
10087 debug_printf.
10088
0d51c8d7
YQ
100892015-08-25 Yao Qi <yao.qi@linaro.org>
10090
10091 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10092
31a43dd5
YQ
100932015-08-25 Yao Qi <yao.qi@linaro.org>
10094
10095 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10096
8ee52567
YQ
100972015-08-25 Yao Qi <yao.qi@linaro.org>
10098
10099 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10100 the code.
10101
ff3f0f45
YQ
101022015-08-25 Yao Qi <yao.qi@linaro.org>
10103
10104 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10105 Remove.
10106 (debug_reg_change_callback): Remove argument entry and add argument
10107 lwp. Remove local variable thread. Don't print thread id in the
10108 debugging output. Don't check whether pid of thread equals to pid.
10109 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10110 iterate_over_lwps instead find_inferior.
10111
3d40fbb5
PA
101122015-08-24 Pedro Alves <palves@redhat.com>
10113
10114 * inferiors.c (get_first_process): New function.
10115 * inferiors.h (get_first_process): New declaration.
10116 * remote-utils.c (read_ptid): Default to the first process in the
10117 list, instead of to the current thread's process.
10118
438e1e42
PA
101192015-08-24 Pedro Alves <palves@redhat.com>
10120
10121 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10122 * event-loop.c: Likewise.
10123 * remote-utils.c: Likewise.
10124 * tracepoint.c: Likewise.
10125
a8c6d4fc
PA
101262015-08-24 Pedro Alves <palves@redhat.com>
10127
10128 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10129 ptid_get_lwp.
10130
99b0bb12
PA
101312015-08-21 Pedro Alves <palves@redhat.com>
10132
10133 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10134 instead of literal 1.
10135
f8904751
PA
101362015-08-21 Pedro Alves <palves@redhat.com>
10137
10138 * tdesc.c (default_description): Explicitly zero-initialize.
10139
465a859e
PA
101402015-08-21 Pedro Alves <palves@redhat.com>
10141
10142 PR gdb/18749
10143 * inferiors.c (remove_thread): Discard any pending stop reply for
10144 this thread.
10145 * server.c (remove_all_on_match_pid): Rename to ...
10146 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10147 instead of a pid.
10148 (discard_queued_stop_replies): Change parameter to a ptid. Now
10149 extern.
10150 (handle_v_kill, kill_inferior_callback, captured_main)
10151 (process_serial_event): Adjust.
10152 * server.h (discard_queued_stop_replies): Declare.
10153
f0db101d
PA
101542015-08-21 Pedro Alves <palves@redhat.com>
10155
10156 * linux-low.c (wait_for_sigstop): Always switch to no thread
10157 selected if the previously current thread dies.
10158 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10159 process instead of the current thread's.
10160 * remote-utils.c (input_interrupt): Don't check if there's no
10161 current thread.
10162 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10163 current thread to the general thread fails, error out.
10164 (handle_qxfer_auxv, handle_qxfer_libraries)
10165 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10166 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10167 (handle_query): Check if there's a thread selected instead of
10168 checking whether there's any thread in the thread list.
10169 (handle_qxfer_threads, handle_qxfer_btrace)
10170 (handle_qxfer_btrace_conf): Don't error out early if there's no
10171 thread in the thread list.
10172 (handle_v_cont, myresume): Don't set the current thread to the
10173 continue thread.
10174 (process_serial_event) <Hg handling>: Also set thread_id if the
10175 previous general thread is still alive.
10176 (process_serial_event) <g/G handling>: If setting the current
10177 thread to the general thread fails, error out.
10178 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10179 thread's lwp instead of the current thread's.
10180 * target.c (set_desired_thread): If the desired thread was not
10181 found, leave the current thread pointing to NULL. Return an int
10182 (boolean) indicating success.
10183 * target.h (set_desired_thread): Change return type to int.
10184
40045d91
MF
101852015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10186
10187 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10188 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10189 #includes.
10190 (ps_get_thread_area): New function.
10191
45face3b
GB
101922015-08-19 Gary Benson <gbenson@redhat.com>
10193
10194 * hostio.c (handle_pread): Do not attempt to read more data
10195 than hostio_reply_with_data can fit in a packet.
10196
16d5f642
JB
101972015-08-18 Joel Brobecker <brobecker@adacore.com>
10198
10199 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10200
a738da3a
MF
102012015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10202
10203 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10204
33ebda9d
PA
102052015-08-06 Pedro Alves <palves@redhat.com>
10206
10207 * tracepoint.c (expr_eval_result): Now an int.
10208
a44892be
PA
102092015-08-06 Pedro Alves <palves@redhat.com>
10210
10211 * gdbthread.h (struct regcache): Forward declare.
10212 (struct thread_info) <regcache_data>: Now a struct regcache
10213 pointer.
10214 * inferiors.c (inferior_regcache_data)
10215 (set_inferior_regcache_data): Now work with struct regcache
10216 pointers.
10217 * inferiors.h (struct regcache): Forward declare.
10218 (inferior_regcache_data, set_inferior_regcache_data): Now work
10219 with struct regcache pointers.
10220 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10221 (free_register_cache_thread): Remove struct regcache pointer
10222 casts.
10223
608a1e46
PA
102242015-08-06 Pedro Alves <palves@redhat.com>
10225
10226 * server.c (captured_main): On error, print the exception message
10227 to stderr, and if run_once is set, throw a quit.
10228
f0ce0d3a
PA
102292015-08-06 Pedro Alves <palves@redhat.com>
10230
10231 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10232 the current thread.
10233
bf47e248
PA
102342015-08-06 Pedro Alves <palves@redhat.com>
10235
10236 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10237 reading beyond the passed in buffer length.
10238
b6b9ffcc
PL
102392015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10240
10241 * tracepoint.c (symbol_list) <required>: Remove.
10242
863d01bd
PA
102432015-08-06 Pedro Alves <palves@redhat.com>
10244
10245 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10246 count if stopping and suspending threads.
10247 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10248 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10249 (linux_detach): Complete an ongoing step-over.
10250 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10251 throughout.
10252 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10253 (linux_wait_1): If passing a signal to the inferior after
10254 finishing a step-over, unsuspend and re-resume all lwps. If we
10255 see a single-step event but the thread should be continuing, don't
10256 pass the trap to gdb.
10257 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10258 internal_error instead of gdb_assert.
10259 (enqueue_pending_signal): New function.
10260 (check_ptrace_stopped_lwp_gone): Add debug output.
10261 (start_step_over): Use internal_error instead of gdb_assert.
10262 (complete_ongoing_step_over): New function.
10263 (linux_resume_one_thread): Don't resume a suspended thread.
10264 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10265 it stepping.
10266
00db26fa
PA
102672015-08-06 Pedro Alves <palves@redhat.com>
10268
10269 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10270 (linux_thread_alive): Use lwp_is_marked_dead.
10271 (extended_event_reported): Delete.
10272 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10273 instead of extended_event_reported.
10274 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10275 as well.
10276 (lwp_is_marked_dead): New function.
10277 (lwp_running): Use lwp_is_marked_dead.
10278 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10279 comment.
10280
ad071a30
PA
102812015-08-06 Pedro Alves <palves@redhat.com>
10282
10283 * linux-low.c (linux_wait_1): Move fork event output out of the
10284 !report_to_gdb check. Pass event_child->waitstatus to
10285 target_waitstatus_to_string instead of ourstatus.
10286
524b57e6
YQ
102872015-08-04 Yao Qi <yao.qi@linaro.org>
10288
10289 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10290 if current_thread is 32 bit.
10291
6085d6f6
YQ
102922015-08-04 Yao Qi <yao.qi@linaro.org>
10293
10294 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10295 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10296 * server.c (extended_protocol): Remove "static".
10297 * server.h (extended_protocol): Declare it.
10298
8a7e4587
YQ
102992015-08-04 Yao Qi <yao.qi@linaro.org>
10300
10301 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10302 both aarch64 and aarch32.
10303 (aarch64_set_pc): Likewise.
10304
3b53ae99
YQ
103052015-08-04 Yao Qi <yao.qi@linaro.org>
10306
10307 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10308 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10309 arm-with-neon.xml to srv_xmlfiles.
10310 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10311 (is_64bit_tdesc): New function.
10312 (aarch64_linux_read_description): New function.
10313 (aarch64_arch_setup): Call aarch64_linux_read_description.
10314 (regs_info): Rename to regs_info_aarch64.
10315 (aarch64_regs_info): Return right regs_info.
10316 (initialize_low_arch): Call initialize_low_arch_aarch32.
10317
bd9e6534
YQ
103182015-08-04 Yao Qi <yao.qi@linaro.org>
10319
10320 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10321 * linux-aarch32-low.c: New file.
10322 * linux-aarch32-low.h: New file.
10323 * linux-arm-low.c (arm_fill_gregset): Move it to
10324 linux-aarch32-low.c.
10325 (arm_store_gregset): Likewise.
10326 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10327 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10328 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10329 (regs_info): Rename to regs_info_arm.
10330 (arm_regs_info): Return regs_info_aarch32 if
10331 have_ptrace_getregset is 1 and target description is
10332 arm_with_neon or arm_with_vfpv3.
10333 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10334 Call initialize_low_arch_aarch32 instead.
10335
ded48a5e
YQ
103362015-08-04 Yao Qi <yao.qi@linaro.org>
10337
10338 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10339 * linux-low.c: ... here.
10340 * linux-low.h (have_ptrace_getregset): Declare it.
10341
96e9210f
PA
103422015-08-04 Pedro Alves <palves@redhat.com>
10343
10344 * thread-db.c (struct thread_db): Use new typedefs.
10345 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10346 CHK calls.
10347 (disable_thread_event_reporting): Cast result of dlsym to
10348 destination function pointer type.
10349 (thread_db_mourn): Use td_ta_delete_ftype.
10350
af60a1ef
SL
103512015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10352
10353 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10354 arch variant.
10355 (CDX_BREAKPOINT): Define for R2.
10356 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10357 (the_low_target): Add comments.
10358
e8b41681
YQ
103592015-07-30 Yao Qi <yao.qi@linaro.org>
10360
10361 * linux-arm-low.c (arm_hwcap): Remove it.
10362 (arm_read_description): New local variable arm_hwcap. Don't
10363 set arm_hwcap to zero.
10364
89abb039
YQ
103652015-07-30 Yao Qi <yao.qi@linaro.org>
10366
10367 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10368 Use regcache->tdesc instead.
10369 (arm_store_wmmxregset): Likewise.
10370 (arm_fill_vfpregset): Likewise.
10371 (arm_store_vfpregset): Likewise.
10372
deca266c
YQ
103732015-07-30 Yao Qi <yao.qi@linaro.org>
10374
10375 * linux-arm-low.c: Include arch/arm.h.
10376 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10377 (arm_store_gregset): Likewise.
10378
aa58a496
SM
103792015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10380
10381 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10382 ptrace's 4th parameter.
10383
50904b25
YQ
103842015-07-27 Yao Qi <yao.qi@linaro.org>
10385
10386 * configure.srv (case aarch64*-*-linux*): Don't set
10387 srv_linux_usrregs.
10388
5826e159
PA
103892015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10390
10391 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10392 sys/ptrace.h.
10393 * linux-arm-low.c: Likewise.
10394 * linux-cris-low.c: Likewise.
10395 * linux-crisv32-low.c: Likewise.
10396 * linux-low.c: Likewise.
10397 * linux-m68k-low.c: Likewise.
10398 * linux-mips-low.c: Likewise.
10399 * linux-nios2-low.c: Likewise.
10400 * linux-s390-low.c: Likewise.
10401 * linux-sparc-low.c: Likewise.
10402 * linux-tic6x-low.c: Likewise.
10403 * linux-tile-low.c: Likewise.
10404 * linux-x86-low.c: Likewise.
10405
54019719
PA
104062015-07-24 Pedro Alves <palves@redhat.com>
10407
10408 * config.in: Regenerate.
10409 * configure: Regenerate.
10410
eb7aa561
PA
104112015-07-24 Pedro Alves <palves@redhat.com>
10412
10413 * acinclude.m4: Include ../ptrace.m4.
10414 * configure.ac: Call GDB_AC_PTRACE.
10415 * config.in, configure: Regenerate.
10416
55d7b841
YQ
104172015-07-24 Yao Qi <yao.qi@linaro.org>
10418
10419 * linux-low.c (linux_create_inferior): Remove setting to
10420 proc->priv->new_inferior.
10421 (linux_attach): Likewise.
10422 (linux_low_filter_event): Likewise.
10423 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10424
c06cbd92
YQ
104252015-07-24 Yao Qi <yao.qi@linaro.org>
10426
10427 * linux-low.c (linux_arch_setup): New function.
10428 (linux_low_filter_event): If proc->tdesc is NULL and
10429 proc->attached is true, call the_low_target.arch_setup.
10430 Otherwise, keep status pending, and return.
10431 (linux_resume_one_lwp_throw): Don't call get_pc if
10432 thread->while_stepping isn't NULL. Don't call
10433 get_thread_regcache if proc->tdesc is NULL.
10434 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10435 (linux_target_ops): Install arch_setup.
10436 * server.c (start_inferior): Call the_target->arch_setup.
10437 * target.h (struct target_ops) <arch_setup>: New field.
10438 (target_arch_setup): New marco.
10439 * lynx-low.c (lynx_target_ops): Update.
10440 * nto-low.c (nto_target_ops): Update.
10441 * spu-low.c (spu_target_ops): Update.
10442 * win32-low.c (win32_target_ops): Update.
10443
5ae3ebba
YQ
104442015-07-24 Yao Qi <yao.qi@linaro.org>
10445
10446 * linux-low.c (linux_add_process): Don't set
10447 proc->priv->new_inferior.
10448 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10449 (linux_attach): Likewise.
10450
eb97750b
YQ
104512015-07-24 Yao Qi <yao.qi@linaro.org>
10452
10453 * server.c (start_inferior): Code refactor.
10454
51aee833
YQ
104552015-07-24 Yao Qi <yao.qi@linaro.org>
10456
10457 * server.c (process_serial_event): Set general_thread.
10458
af1b22f3
YQ
104592015-07-21 Yao Qi <yao.qi@linaro.org>
10460
10461 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10462 aarch64_linux_get_debug_reg_capacity.
10463
554717a3
YQ
104642015-07-17 Yao Qi <yao.qi@linaro.org>
10465
10466 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10467 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10468 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10469 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10470 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10471 (AARCH64_HWP_ALIGNMENT): Likewise.
10472 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10473 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10474 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10475 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10476 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10477 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10478 (struct aarch64_debug_reg_state): Likewise.
10479 (struct arch_lwp_info): Likewise.
10480 (aarch64_align_watchpoint): Likewise.
10481 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10482 (aarch64_watchpoint_length): Likewise.
10483 (aarch64_point_encode_ctrl_reg): Likewise
10484 (aarch64_point_is_aligned): Likewise.
10485 (aarch64_align_watchpoint): Likewise.
10486 (aarch64_linux_set_debug_regs):
10487 (aarch64_dr_state_insert_one_point): Likewise.
10488 (aarch64_dr_state_remove_one_point): Likewise.
10489 (aarch64_handle_breakpoint): Likewise.
10490 (aarch64_handle_aligned_watchpoint): Likewise.
10491 (aarch64_handle_unaligned_watchpoint): Likewise.
10492 (aarch64_handle_watchpoint): Likewise.
10493
c67ca4de
YQ
104942015-07-17 Yao Qi <yao.qi@linaro.org>
10495
10496 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10497 and don't aarch64_get_debug_reg_state. All callers update.
10498 (aarch64_handle_aligned_watchpoint): Likewise.
10499 (aarch64_handle_unaligned_watchpoint): Likewise.
10500 (aarch64_handle_watchpoint): Likewise.
10501 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10502 (aarch64_remove_point): Likewise.
10503
25abf979
YQ
105042015-07-17 Yao Qi <yao.qi@linaro.org>
10505
10506 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10507 debug_printf.
10508 (aarch64_handle_unaligned_watchpoint): Likewise.
10509
db1ff28b
JK
105102015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10511
10512 Revert the previous 3 commits:
10513 Move gdb_regex* to common/
10514 Move linux_find_memory_regions_full & co.
10515 gdbserver build-id attribute generator
10516
700ca40f
JK
105172015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10518 Jan Kratochvil <jan.kratochvil@redhat.com>
10519
10520 gdbserver build-id attribute generator.
10521 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10522 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10523 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10524 (find_phdr): New.
10525 (get_dynamic): Use find_pdhr to traverse program headers.
10526 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10527 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10528 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10529 (get_hex_build_id): New.
10530 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10531 to reply XML document.
10532
9904185c
JK
105332015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10534 Jan Kratochvil <jan.kratochvil@redhat.com>
10535
10536 * target.c: Include target/target-utils.h and fcntl.h.
10537 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10538 (target_fileio_read_stralloc): New functions.
10539
6e5b4429
JK
105402015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10541
10542 * Makefile.in (OBS): Add gdb_regex.o.
10543 (gdb_regex.o): New.
10544 * config.in: Rebuilt.
10545 * configure: Rebuilt.
10546
ddc98fbf
JK
105472015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10548 Jan Kratochvil <jan.kratochvil@redhat.com>
10549
10550 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10551 * Makefile.in (OBS): Add target-utils.o.
10552 (linux-maps.o, target-utils.o): New.
10553 * configure.srv (srv_linux_obj): Add linux-maps.o.
10554
e57bb7a0
PL
105552015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10556
10557 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10558 function, return 1.
10559 (the_low_target): Install it.
10560
586b02a9
PA
105612015-07-14 Pedro Alves <palves@redhat.com>
10562
10563 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10564 Instead, ignore ECHILD, and throw an error for other errnos.
10565
58c1b36c
PA
105662015-07-10 Pedro Alves <palves@redhat.com>
10567
10568 * event-loop.c (struct callback_event) <data>: Change type to
10569 gdb_client_data instance instead of gdb_client_data pointer.
10570 (append_callback_event): Adjust.
10571
421530db
PL
105722015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10573
10574 * linux-aarch64-low.c: Add comments for each linux_target_ops
10575 method. Remove comments already covered in target_ops and
10576 linux_target_ops definitions.
10577 (the_low_target): Add comments for each unimplemented method.
10578
c2d65f38
YQ
105792015-07-09 Yao Qi <yao.qi@linaro.org>
10580
10581 * linux-aarch64-low.c (aarch64_regmap): Remove.
10582 (aarch64_usrregs_info): Remove.
10583 (regs_info): Set field usrregs to NULL.
10584
b20a6524
MM
105852015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10586
10587 * linux-low.c: Include "rsp-low.h"
10588 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10589 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10590 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10591 (handle_btrace_enable_pt): New.
10592 (handle_btrace_general_set): Support "pt".
10593 (handle_btrace_conf_general_set): Support "pt:size".
10594
96c97461
PL
105952015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10596
10597 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10598 Z_PACKET_SW_BP.
10599
37d66942
PL
106002015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10601
10602 * linux-aarch64-low.c: Remove comment about endianness.
10603 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10604 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10605 memcmp.
10606
dc06243f
GB
106072015-06-24 Gary Benson <gbenson@redhat.com>
10608
10609 * linux-i386-ipa.c (stdint.h): Do not include.
10610 * lynx-i386-low.c (stdint.h): Likewise.
10611 * lynx-ppc-low.c (stdint.h): Likewise.
10612 * mem-break.c (stdint.h): Likewise.
10613 * thread-db.c (stdint.h): Likewise.
10614 * tracepoint.c (stdint.h): Likewise.
10615 * win32-low.c (stdint.h): Likewise.
10616
124e13d9
SM
106172015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10618
10619 * server.c (write_qxfer_response): Update call to
10620 remote_escape_output.
10621
909c2cda
JK
106222015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10623 Jan Kratochvil <jan.kratochvil@redhat.com>
10624
10625 Merge multiple hex conversions.
10626 * gdbreplay.c (tohex): Rename to 'fromhex'.
10627 (logchar): Use fromhex.
10628
24c05f46
JK
106292015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10630
10631 * server.c (handle_qxfer_libraries): Set `version' attribute for
10632 <library-list>.
10633
14d2069a
GB
106342015-06-10 Gary Benson <gbenson@redhat.com>
10635
10636 * target.h (struct target_ops) <multifs_open>: New field.
10637 <multifs_unlink>: Likewise.
10638 <multifs_readlink>: Likewise.
10639 * linux-low.c (nat/linux-namespaces.h): New include.
10640 (linux_target_ops): Initialize the_target->multifs_open,
10641 the_target->multifs_unlink and the_target->multifs_readlink.
10642 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10643 * hostio.c (hostio_fs_pid): New static variable.
10644 (hostio_handle_new_gdb_connection): New function.
10645 (handle_setfs): Likewise.
10646 (handle_open): Use the_target->multifs_open as appropriate.
10647 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10648 (handle_readlink): Use the_target->multifs_readlink as
10649 appropriate.
10650 (handle_vFile): Handle vFile:setfs packets.
10651 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10652 after target_handle_new_gdb_connection.
10653
4b8b5e72
GB
106542015-06-10 Gary Benson <gbenson@redhat.com>
10655
10656 * configure.ac (AC_CHECK_FUNCS): Add setns.
10657 * config.in: Regenerate.
10658 * configure: Likewise.
10659 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10660 (linux-namespaces.o): New rule.
10661 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10662
3ac2e371
GB
106632015-06-09 Gary Benson <gbenson@redhat.com>
10664
10665 * hostio.c (handle_open): Process mode argument with
10666 fileio_to_host_mode.
10667
ca9b78ce
YQ
106682015-06-01 Yao Qi <yao.qi@linaro.org>
10669
10670 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10671 * linux-x86-low.c: Likewise.
10672
bfacd19d
DB
106732015-05-28 Don Breazeal <donb@codesourcery.com>
10674
10675 * linux-low.c (handle_extended_wait): Initialize
10676 thread_info.last_resume_kind for new fork children.
10677
452003ef
PA
106782015-05-15 Pedro Alves <palves@redhat.com>
10679
10680 * target.h (target_handle_new_gdb_connection): Rewrite using if
10681 wrapped in do/while.
10682
1041a03c
JB
106832015-05-14 Joel Brobecker <brobecker@adacore.com>
10684
10685 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10686 * configure, config.in: Regenerate.
10687 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10688 Declare typedef.
10689
c269dbdb
DB
106902015-05-12 Don Breazeal <donb@codesourcery.com>
10691
10692 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10693 PTRACE_EVENT_VFORK_DONE.
10694 (linux_low_ptrace_options, extended_event_reported): Add vfork
10695 events.
10696 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10697 and "vforkdone" for RSP 'T' Stop Reply Packet.
10698 * server.h (report_vfork_events): Declare
10699 global variable.
10700
3a8a0396
DB
107012015-05-12 Don Breazeal <donb@codesourcery.com>
10702
10703 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10704 (the_low_target) <new_fork>: Initialize new member.
10705 * linux-arm-low.c (arm_new_fork): New function.
10706 (the_low_target) <new_fork>: Initialize new member.
10707 * linux-low.c (handle_extended_wait): Call new target function
10708 new_fork.
10709 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10710 * linux-mips-low.c (mips_add_watchpoint): New function
10711 extracted from mips_insert_point.
10712 (the_low_target) <new_fork>: Initialize new member.
10713 (mips_linux_new_fork): New function.
10714 (mips_insert_point): Call mips_add_watchpoint.
10715 * linux-x86-low.c (x86_linux_new_fork): New function.
10716 (the_low_target) <new_fork>: Initialize new member.
10717
de0d863e
DB
107182015-05-12 Don Breazeal <donb@codesourcery.com>
10719
10720 * linux-low.c (handle_extended_wait): Implement return value,
10721 rename argument 'event_child' to 'event_lwp', handle
10722 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10723 (linux_low_ptrace_options): New function.
10724 (linux_low_filter_event): Call linux_low_ptrace_options,
10725 use different argument fo linux_enable_event_reporting,
10726 use return value from handle_extended_wait.
10727 (extended_event_reported): New function.
10728 (linux_wait_1): Call extended_event_reported and set
10729 status to report fork events.
10730 (linux_write_memory): Add pid to debug message.
10731 (reset_lwp_ptrace_options_callback): New function.
10732 (linux_handle_new_gdb_connection): New function.
10733 (linux_target_ops): Initialize new structure member.
10734 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10735 * lynx-low.c: Initialize new structure member.
10736 * remote-utils.c (prepare_resume_reply): Implement stop reason
10737 "fork" for "T" stop message.
10738 * server.c (handle_query): Call handle_new_gdb_connection.
10739 * server.h (report_fork_events): Declare global flag.
10740 * target.h (struct target_ops) <handle_new_gdb_connection>:
10741 New member.
10742 (target_handle_new_gdb_connection): New macro.
10743 * win32-low.c: Initialize new structure member.
10744
ddcbc397
DB
107452015-05-12 Don Breazeal <donb@codesourcery.com>
10746
10747 * mem-break.c (APPEND_TO_LIST): Define macro.
10748 (clone_agent_expr): New function.
10749 (clone_one_breakpoint): New function.
10750 (clone_all_breakpoints): New function.
10751 * mem-break.h: Declare new functions.
10752
89245bc0
DB
107532015-05-12 Don Breazeal <donb@codesourcery.com>
10754
10755 * linux-low.c (linux_supports_fork_events): New function.
10756 (linux_supports_vfork_events): New function.
10757 (linux_target_ops): Initialize new structure members.
10758 (initialize_low): Call linux_check_ptrace_features.
10759 * lynx-low.c (lynx_target_ops): Initialize new structure
10760 members.
10761 * server.c (report_fork_events, report_vfork_events):
10762 New global flags.
10763 (handle_query): Add new features to qSupported packet and
10764 response.
10765 (captured_main): Initialize new global variables.
10766 * target.h (struct target_ops) <supports_fork_events>:
10767 New member.
10768 <supports_vfork_events>: New member.
10769 (target_supports_fork_events): New macro.
10770 (target_supports_vfork_events): New macro.
10771 * win32-low.c (win32_target_ops): Initialize new structure
10772 members.
10773
835205d0
GB
107742015-05-12 Gary Benson <gbenson@redhat.com>
10775
10776 * server.c (handle_qxfer_exec_file): Use current process
10777 if annex is empty.
10778
21e94bd9
SL
107792015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10780
10781 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10782 Remove HAVE_PTRACE_GETREGS conditionals.
10783 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10784 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10785
45614f15
YQ
107862015-05-08 Yao Qi <yao.qi@linaro.org>
10787
10788 * linux-low.c (linux_supports_conditional_breakpoints): New
10789 function.
10790 (linux_target_ops): Install new target method.
10791 * lynx-low.c (lynx_target_ops): Install NULL hook for
10792 supports_conditional_breakpoints.
10793 * nto-low.c (nto_target_ops): Likewise.
10794 * spu-low.c (spu_target_ops): Likewise.
10795 * win32-low.c (win32_target_ops): Likewise.
10796 * server.c (handle_query): Check
10797 target_supports_conditional_breakpoints.
10798 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10799 New field.
10800 (target_supports_conditional_breakpoints): New macro.
10801
80ad801e
PA
108022015-05-06 Pedro Alves <palves@redhat.com>
10803
10804 PR server/18081
10805 * server.c (start_inferior): If the process exits, mourn it.
10806
819843c7
GB
108072015-04-21 Gary Benson <gbenson@redhat.com>
10808
10809 * hostio.c (fileio_open_flags_to_host): Factored out to
10810 fileio_to_host_openflags in common/fileio.c. Single use
10811 updated.
10812
a2d5a9d7
MF
108132015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10814
10815 * linux-xtensa-low.c (xtensa_fill_gregset)
10816 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10817 XCHAL_HAVE_LOOP.
10818
deb44829
MF
108192015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10820
10821 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10822 (regs_info): Replace usrregs pointer with NULL.
10823
e57f1de3
GB
108242015-04-17 Gary Benson <gbenson@redhat.com>
10825
10826 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10827 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10828 * server.c (handle_qxfer_exec_file): New function.
10829 (qxfer_packets): Add exec-file entry.
10830 (handle_query): Report qXfer:exec-file:read as supported packet.
10831
62828379
RN
108322015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10833
10834 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10835
b88bb450
GB
108362015-04-09 Gary Benson <gbenson@redhat.com>
10837
10838 * hostio-errno.c (errno_to_fileio_error): Remove function.
10839 Update caller to use remote_fileio_to_fio_error.
10840
c8f4bfdd
YQ
108412015-04-09 Yao Qi <yao.qi@linaro.org>
10842
10843 * linux-low.c (linux_insert_point): Call
10844 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10845 (linux_remove_point): Call remove_memory_breakpoint if type is
10846 raw_bkpt_type_sw.
10847 * linux-x86-low.c (x86_insert_point): Don't call
10848 insert_memory_breakpoint.
10849 (x86_remove_point): Don't call remove_memory_breakpoint.
10850
41f98f02
PA
108512015-04-01 Pedro Alves <palves@redhat.com>
10852 Cleber Rosa <crosa@redhat.com>
10853
10854 * server.c (gdbserver_usage): Reorganize and extend the usage
10855 message.
10856
2bf6fb9d
PA
108572015-03-24 Pedro Alves <palves@redhat.com>
10858
10859 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10860 output. Also dump TRAP_TRACE.
10861 (linux_low_filter_event): In debug output, distinguish a
10862 resume_stop SIGSTOP from a delayed SIGSTOP.
10863
369f6daa
GB
108642015-03-24 Gary Benson <gbenson@redhat.com>
10865
10866 * linux-x86-low.c (x86_linux_new_thread): Moved to
10867 nat/x86-linux.c.
10868 (x86_linux_prepare_to_resume): Likewise.
10869
8e5d4070
GB
108702015-03-24 Gary Benson <gbenson@redhat.com>
10871
10872 * Makefile.in (x86-linux-dregs.o): New rule.
10873 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10874 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10875 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10876 (x86_linux_dr_get): Likewise.
10877 (x86_linux_dr_set): Likewise.
10878 (update_debug_registers_callback): Likewise.
10879 (x86_linux_dr_set_addr): Likewise.
10880 (x86_linux_dr_get_addr): Likewise.
10881 (x86_linux_dr_set_control): Likewise.
10882 (x86_linux_dr_get_control): Likewise.
10883 (x86_linux_dr_get_status): Likewise.
10884 (x86_linux_update_debug_registers): Likewise.
10885
2b95d440
GB
108862015-03-24 Gary Benson <gbenson@redhat.com>
10887
10888 * linux-x86-low.c (x86_linux_update_debug_registers):
10889 New function, factored out from...
10890 (x86_linux_prepare_to_resume): ...this.
10891
14b0bc68
GB
108922015-03-24 Gary Benson <gbenson@redhat.com>
10893
10894 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10895 (x86_linux_dr_set): Likewise.
10896 (update_debug_registers_callback): Likewise.
10897 (x86_linux_dr_set_addr): Likewise.
10898 (x86_linux_dr_get_addr): Likewise.
10899 (x86_linux_dr_set_control): Likewise.
10900 (x86_linux_dr_get_control): Likewise.
10901 (x86_linux_dr_get_status): Likewise.
10902 (x86_linux_prepare_to_resume): Likewise.
10903
5dfe6ca8
GB
109042015-03-24 Gary Benson <gbenson@redhat.com>
10905
10906 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10907 Use perror_with_name. Pass string through gettext.
10908 (x86_linux_dr_set): Likewise.
10909
d33472ad
GB
109102015-03-24 Gary Benson <gbenson@redhat.com>
10911
10912 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10913 (x86_linux_dr_set_addr): ...this.
10914 (x86_dr_low_get_addr): Rename to...
10915 (x86_linux_dr_get_addr): ...this.
10916 (x86_dr_low_set_control): Rename to...
10917 (x86_linux_dr_set_control): ...this.
10918 (x86_dr_low_get_control): Rename to...
10919 (x86_linux_dr_get_control): ...this.
10920 (x86_dr_low_get_status): Rename to...
10921 (x86_linux_dr_get_status): ...this.
10922 (x86_dr_low): Update with new function names.
10923
4b134ca1
GB
109242015-03-24 Gary Benson <gbenson@redhat.com>
10925
10926 * Makefile.in (x86-linux.o): New rule.
10927 * configure.srv: Add x86-linux.o to relevant targets.
10928 * linux-low.c (lwp_set_arch_private_info): New function.
10929 (lwp_arch_private_info): Likewise.
10930 * linux-x86-low.c: Include nat/x86-linux.h.
10931 (arch_lwp_info): Removed structure.
10932 (update_debug_registers_callback):
10933 Use lwp_set_debug_registers_changed.
10934 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10935 and lwp_set_debug_registers_changed.
10936 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10937
34c703da
GB
109382015-03-24 Gary Benson <gbenson@redhat.com>
10939
10940 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
10941 * linux-arm-low.c (arm_new_thread): Likewise.
10942 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
10943 * linux-mips-low.c (mips_linux_new_thread): Likewise.
10944 * linux-x86-low.c (x86_linux_new_thread): Likewise.
10945 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
10946
cff068da
GB
109472015-03-24 Gary Benson <gbenson@redhat.com>
10948
10949 * linux-low.c (ptid_of_lwp): New function.
10950 (lwp_is_stopped): Likewise.
10951 (lwp_stop_reason): Likewise.
10952 * linux-x86-low.c (update_debug_registers_callback):
10953 Use lwp_is_stopped.
10954 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10955 lwp_stop_reason.
10956
b2f7c7e8
GB
109572015-03-24 Gary Benson <gbenson@redhat.com>
10958
10959 * linux-low.h (linux_stop_lwp): Remove declaration.
10960
6d4ee8c6
GB
109612015-03-24 Gary Benson <gbenson@redhat.com>
10962
10963 * linux-low.h: Include nat/linux-nat.h.
10964 * linux-low.c (iterate_over_lwps_args): New structure.
10965 (iterate_over_lwps_filter): New function.
10966 (iterate_over_lwps): Likewise.
10967 * linux-x86-low.c (update_debug_registers_callback):
10968 Update signature to what iterate_over_lwps expects.
10969 Remove PID check that iterate_over_lwps now performs.
10970 (x86_dr_low_set_addr): Use iterate_over_lwps.
10971 (x86_dr_low_set_control): Likewise.
10972
70a0bb6b
GB
109732015-03-24 Gary Benson <gbenson@redhat.com>
10974
10975 * linux-x86-low.c (x86_debug_reg_state): New function.
10976 (x86_linux_prepare_to_resume): Use the above.
10977
7b669087
GB
109782015-03-24 Gary Benson <gbenson@redhat.com>
10979
10980 * linux-low.c (current_lwp_ptid): New function.
10981 * linux-x86-low.c: Include nat/linux-nat.h.
10982 (x86_dr_low_get_addr): Use current_lwp_ptid.
10983 (x86_dr_low_get_control): Likewise.
10984 (x86_dr_low_get_status): Likewise.
10985
eef49a3d
PA
109862015-03-20 Pedro Alves <palves@redhat.com>
10987
10988 * tracepoint.c (cmd_qtstatus): Make "str" const.
10989
b2333d22
PA
109902015-03-20 Pedro Alves <palves@redhat.com>
10991
10992 * server.c (handle_general_set): Make "req_str" const.
10993
23f238d3
PA
109942015-03-19 Pedro Alves <palves@redhat.com>
10995
10996 * linux-low.c (linux_resume_one_lwp): Rename to ...
10997 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10998 instead call perror_with_name.
10999 (check_ptrace_stopped_lwp_gone): New function.
11000 (linux_resume_one_lwp): Reimplement as wrapper around
11001 linux_resume_one_lwp_throw that swallows errors if the LWP is
11002 gone.
11003
91baf43f
PA
110042015-03-19 Pedro Alves <palves@redhat.com>
11005
11006 * linux-low.c (count_events_callback, select_event_lwp_callback):
11007 No longer check whether the thread has resume_stop as last resume
11008 kind.
11009
8bf3b159
PA
110102015-03-19 Pedro Alves <palves@redhat.com>
11011
11012 * linux-low.c (count_events_callback, select_event_lwp_callback):
11013 Use the lwp's status_pending_p field, not the thread's.
11014
b90fc188
PA
110152015-03-19 Pedro Alves <palves@redhat.com>
11016
11017 * linux-low.c (select_event_lwp_callback): Update comments to
11018 no longer mention SIGTRAP.
11019
464b0089
GB
110202015-03-18 Gary Benson <gbenson@redhat.com>
11021
11022 * server.c (handle_query): Do not report vFile:fstat as supported.
11023
aa9e327f
GB
110242015-03-11 Gary Benson <gbenson@redhat.com>
11025
11026 * hostio.c (sys/types.h): New include.
11027 (sys/stat.h): Likewise.
11028 (common-remote-fileio.h): Likewise.
11029 (handle_fstat): New function.
11030 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11031
791c0056
GB
110322015-03-11 Gary Benson <gbenson@redhat.com>
11033
11034 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11035 struct stat.st_blocks and struct stat.st_blksize.
11036 * configure: Regenerate.
11037 * config.in: Likewise.
11038 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11039 (OBS): Add common-remote-fileio.o.
11040 (common-remote-fileio.o): New rule.
11041
9a9df970
PA
110422015-03-09 Pedro Alves <palves@redhat.com>
11043
11044 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11045 'struct sockaddr' pointer in 'accept' call.
11046
9eb1356e
PA
110472015-03-09 Pedro Alves <palves@redhat.com>
11048
11049 Revert:
11050 2015-03-07 Pedro Alves <palves@redhat.com>
11051 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11052 or <winsock2.h> here. Instead include "gdb_socket.h".
11053 (remote_open): Use union gdb_sockaddr_u.
11054 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11055 or <winsock2.h> here. Instead include "gdb_socket.h".
11056 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11057 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11058 or <sys/un.h>.
11059 (init_named_socket, gdb_agent_helper_thread): Use union
11060 gdb_sockaddr_u.
11061
aac331e4
PA
110622015-03-07 Pedro Alves <palves@redhat.com>
11063
11064 * configure.ac (build_warnings): Move
11065 -Wdeclaration-after-statement to the C-specific set.
11066 * configure: Regenerate.
11067
366c75fc
PA
110682015-03-07 Pedro Alves <palves@redhat.com>
11069
11070 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11071 or <winsock2.h> here. Instead include "gdb_socket.h".
11072 (remote_open): Use union gdb_sockaddr_u.
11073 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11074 or <winsock2.h> here. Instead include "gdb_socket.h".
11075 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11076 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11077 or <sys/un.h>.
11078 (init_named_socket, gdb_agent_helper_thread): Use union
11079 gdb_sockaddr_u.
11080
492d29ea
PA
110812015-03-07 Pedro Alves <palves@redhat.com>
11082
11083 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11084 instead.
11085
60a191ed
YQ
110862015-03-06 Yao Qi <yao.qi@linaro.org>
11087
11088 * linux-aarch64-low.c (aarch64_insert_point): Use
11089 show_debug_regs as a boolean.
11090 (aarch64_remove_point): Likewise.
11091
f5771b1d
PA
110922015-03-05 Pedro Alves <palves@redhat.com>
11093
11094 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11095 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11096 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11097 * nto-low.c (nto_target_ops): Likewise.
11098 * spu-low.c (spu_target_ops): Likewise.
11099 * win32-low.c (win32_target_ops): Likewise.
11100
3e572f71
PA
111012015-03-04 Pedro Alves <palves@redhat.com>
11102
72f4393d 11103 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11104 Decide whether a breakpoint triggered based on the SIGTRAP's
11105 siginfo.si_code.
72f4393d
L
11106 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11107 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11108 (linux_low_filter_event): Check for breakpoints before checking
11109 watchpoints.
11110 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11111 siginfo.si_code.
72f4393d
L
11112 (linux_stopped_by_sw_breakpoint)
11113 (linux_supports_stopped_by_sw_breakpoint)
11114 (linux_stopped_by_hw_breakpoint)
11115 (linux_supports_stopped_by_hw_breakpoint): New functions.
11116 (linux_target_ops): Install new target methods.
3e572f71 11117
1ec68e26
PA
111182015-03-04 Pedro Alves <palves@redhat.com>
11119
11120 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11121 * server.c (swbreak_feature, hwbreak_feature): New globals.
11122 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11123 (captured_main): Clear swbreak_feature and hwbreak_feature.
11124 * server.h (swbreak_feature, hwbreak_feature): Declare.
11125 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11126 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11127 supports_stopped_by_hw_breakpoint>: New fields.
11128 (target_supports_stopped_by_sw_breakpoint)
11129 (target_stopped_by_sw_breakpoint)
11130 (target_supports_stopped_by_hw_breakpoint)
11131 (target_stopped_by_hw_breakpoint): Declare.
11132
15c66dd6
PA
111332015-03-04 Pedro Alves <palves@redhat.com>
11134
11135 enum lwp_stop_reason -> enum target_stop_reason
11136 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11137 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11138 (linux_wait_1, stuck_in_jump_pad_callback)
11139 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11140 (linux_stopped_by_watchpoint):
11141 * linux-low.h (enum lwp_stop_reason): Delete.
11142 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11143 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11144
98fc70d6
YQ
111452015-03-04 Yao Qi <yao.qi@linaro.org>
11146
11147 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11148
dd2ac174
GB
111492015-03-03 Gary Benson <gbenson@redhat.com>
11150
11151 * hostio.c (handle_vFile): Fix prefix lengths.
11152
d68e53f4
MM
111532015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11154
11155 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11156 ptr_bits.
11157
bf2d68ab
AA
111582015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11159
11160 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11161 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11162 (clean): Add "rm -f" for above C files.
11163 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11164 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11165 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11166 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11167 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11168 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11169 (init_registers_s390x_vx_linux64)
11170 (init_registers_s390x_tevx_linux64)
11171 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11172 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11173 declarations.
11174 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11175 (s390_store_vxrs_high): New functions.
11176 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11177 NT_S390_VXRS_HIGH.
11178 (s390_arch_setup): Add logic for selecting one of the new target
11179 descriptions. Activate the new vector regsets if applicable.
11180 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11181 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11182 and init_registers_s390x_tevx_linux64.
11183
c966a859
PA
111842015-03-01 Pedro Alves <palves@redhat.com>
11185
11186 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11187 parameter.
11188
4180215b
PA
111892015-02-27 Pedro Alves <palves@redhat.com>
11190
11191 * linux-x86-low.c (u_debugreg_offset): New function.
11192 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11193
749bab01
PA
111942015-02-27 Pedro Alves <palves@redhat.com>
11195
11196 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11197 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11198 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11199 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11200 (ps_lsetfpregs, ps_getpid)
11201 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11202 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11203 (ps_lsetxregs, ps_plog): Declare.
11204
3c14e5a3
PA
112052015-02-27 Pedro Alves <palves@redhat.com>
11206
11207 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11208 IP_AGENT_EXPORT_FUNC.
11209 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11210 IP_AGENT_EXPORT_FUNC.
11211 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11212 (IP_AGENT_EXPORT): Delete.
11213 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11214 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11215 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11216 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11217 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11218 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11219 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11220 (traceframe_read_count, traceframe_write_count)
11221 (traceframes_created, trace_state_variables, get_raw_reg)
11222 (get_trace_state_variable_value, set_trace_state_variable_value)
11223 (ust_loaded, helper_thread_id, cmd_buf): Use
11224 IPA_SYM_EXPORTED_NAME.
11225 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11226 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11227 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11228 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11229 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11230 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11231 EXTERN_C_PUSH/EXTERN_C_POP.
11232 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11233 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11234 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11235 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11236 (traceframe_write_count, traceframe_read_count)
11237 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11238 (about_to_request_buffer_space, get_trace_state_variable_value)
11239 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11240 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11241 EXTERN_C_PUSH/EXTERN_C_POP.
11242 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11243 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11244 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11245 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11246 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11247 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11248 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11249 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11250 Define.
11251 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11252 (IP_AGENT_EXPORT_VAR_DECL): Define.
11253 (tracing): Declare.
11254 (gdb_agent_get_raw_reg): Declare.
11255
fe978cb0
PA
112562015-02-27 Tom Tromey <tromey@redhat.com>
11257 Pedro Alves <palves@redhat.com>
11258
11259 Rename symbols whose names are reserved C++ keywords throughout.
11260
3bc3d82a
PA
112612015-02-27 Pedro Alves <palves@redhat.com>
11262
11263 * Makefile.in (COMPILER): New, get it from autoconf.
11264 (CXX): Get from autoconf instead.
11265 (COMPILE.pre): Use COMPILER.
11266 (CC-LD): Rename to ...
11267 (CC_LD): ... this. Use COMPILER.
11268 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11269 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11270 * acinclude.m4: Include build-with-cxx.m4.
11271 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11272 Disable -Werror by default if building in C++ mode.
11273 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11274 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11275 the C++ compiler. Save/restore CXXFLAGS too.
11276 * configure: Regenerate.
11277
07697489
PA
112782015-02-27 Pedro Alves <palves@redhat.com>
11279
11280 * acinclude.m4: Include libiberty.m4.
11281 * configure.ac: Call libiberty_INIT.
11282 * config.in, configure: Regenerate.
11283
9beb7c4e
PA
112842015-02-26 Pedro Alves <palves@redhat.com>
11285
11286 * linux-low.c (linux_wait_1): When incrementing the PC past a
11287 program breakpoint always use the_low_target.breakpoint_len as
11288 increment, rather than the maximum between that and
11289 the_low_target.decr_pc_after_break.
11290
8090aef2
PA
112912015-02-23 Pedro Alves <palves@redhat.com>
11292
11293 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11294 thread was doing a step-over; always adjust the PC if
11295 we stepped over a permanent breakpoint.
11296 (linux_wait_1): If we stepped over breakpoint that was on top of a
11297 permanent breakpoint, manually advance the PC past it.
11298
bc9540e8
PA
112992015-02-23 Pedro Alves <palves@redhat.com>
11300
11301 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11302 modes.
11303 (x86_fill_gregset, x86_store_gregset): Use it when handling
11304 $orig_eax.
11305
2db9a427
PA
113062015-02-20 Pedro Alves <palves@redhat.com>
11307
11308 * thread-db.c: Include "nat/linux-procfs.h".
11309 (thread_db_init): Skip listing new threads if the kernel supports
11310 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11311
afa8d396
PA
113122015-02-20 Pedro Alves <palves@redhat.com>
11313
11314 * linux-low.c (status_pending_p_callback): Use ptid_match.
11315
c9587f88
AT
113162015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11317
11318 PR breakpoints/16812
11319 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11320 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11321 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11322
b05ec7a5
AT
113232015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11324
11325 PR breakpoints/15956
11326 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11327
d33501a5
MM
113282015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11329
11330 * linux-low.c (linux_low_btrace_conf): Print size.
11331 * server.c (handle_btrace_conf_general_set): New.
11332 (hanle_general_set): Call handle_btrace_conf_general_set.
11333 (handle_query): Report Qbtrace-conf:bts:size as supported.
11334
f4abbc16
MM
113352015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11336
11337 * linux-low.c (linux_low_enable_btrace): Update parameters.
11338 (linux_low_btrace_conf): New.
11339 (linux_target_ops)<to_btrace_conf>: Initialize.
11340 * server.c (current_btrace_conf): New.
11341 (handle_btrace_enable): Rename to ...
11342 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11343 to target_enable_btrace. Update comment. Update users.
11344 (handle_qxfer_btrace_conf): New.
11345 (qxfer_packets): Add btrace-conf entry.
11346 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11347 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11348 (target_ops)<read_btrace_conf>: New.
11349 (target_enable_btrace): Update parameters.
11350 (target_read_btrace_conf): New.
11351
043c3577
MM
113522015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11353
11354 * server.c (handle_btrace_general_set): Remove call to
11355 target_supports_btrace.
11356 (supported_btrace_packets): New.
11357 (handle_query): Call supported_btrace_packets.
11358 * target.h: include btrace-common.h.
11359 (btrace_target_info): Removed.
11360 (supports_btrace, target_supports_btrace): Update parameters.
11361
734b0e4b
MM
113622015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11363
11364 * Makefile.in (SFILES): Add common/btrace-common.c.
11365 (OBS): Add common/btrace-common.o.
11366 (btrace-common.o): Add build rules.
11367 * linux-low: Include btrace-common.h.
11368 (linux_low_read_btrace): Use struct btrace_data. Call
11369 btrace_data_init and btrace_data_fini.
11370
d6c146e9
PA
113712015-02-06 Pedro Alves <palves@redhat.com>
11372
11373 * thread-db.c (find_new_threads_callback): Add debug output.
11374
20ba1ce6
PA
113752015-02-04 Pedro Alves <palves@redhat.com>
11376
11377 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11378 (resume_stopped_resumed_lwps): New function.
11379 (linux_wait_for_event_filtered): Use it.
11380
8cc73a39
SDJ
113812015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11382
11383 * Makefile.in (SFILES): Add linux-personality.c.
11384 (linux-personality.o): New rule.
11385 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11386 list of objects to be built.
11387 * linux-low.c: Include nat/linux-personality.h.
11388 (linux_create_inferior): Remove code to disable address space
11389 randomization (moved to ../nat/linux-personality.c). Create
11390 cleanup to disable address space randomization.
11391
fb23d554
SDJ
113922015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11393
11394 * Makefile.in (posix-strerror.o): New rule.
11395 (mingw-strerror.o): Likewise.
11396 * configure: Regenerated.
11397 * configure.ac: Source file ../common/common.host. Initialize new
11398 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11399
cdf43629
YQ
114002015-01-14 Yao Qi <yao@codesourcery.com>
11401
11402 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11403 (ppc-linux.o): New rule.
11404 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11405 * configure.ac: AC_CHECK_FUNCS(getauxval).
11406 * config.in: Re-generated.
11407 * configure: Re-generated.
11408 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11409 ppc64_64bit_inferior_p
11410
514c5338
YQ
114112015-01-14 Yao Qi <yao@codesourcery.com>
11412
11413 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11414 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11415 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11416 (PT_ORIG_R3, PT_TRAP): Likewise.
11417 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11418 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11419 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11420
3368c1e5
JB
114212015-01-10 Joel Brobecker <brobecker@adacore.com>
11422
11423 * i387-fp.c (i387_cache_to_xsave): In look over
11424 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11425 zmmh_low_space field by use of zmmh_high_space.
11426
582511be
PA
114272015-01-09 Pedro Alves <palves@redhat.com>
11428
11429 * linux-low.c (step_over_bkpt): Move higher up in the file.
11430 (handle_extended_wait): Don't store the stop_pc here.
11431 (get_stop_pc): Adjust comments and rename to ...
11432 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11433 stopped for a software breakpoint or hardware breakpoint.
11434 (thread_still_has_status_pending_p): New function.
11435 (status_pending_p_callback): Use
11436 thread_still_has_status_pending_p. If the event is no longer
11437 interesting, resume the LWP.
11438 (handle_tracepoints): Add assert.
11439 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11440 (wstatus_maybe_breakpoint): New function.
11441 (cancel_breakpoint): Delete function.
11442 (check_stopped_by_watchpoint): New function, factored out from
11443 linux_low_filter_event.
11444 (lp_status_maybe_breakpoint): Delete function.
11445 (linux_low_filter_event): Remove filter_ptid argument.
11446 Leave thread group exits pending here. Store the LWP's stop PC.
11447 Always leave events pending.
11448 (linux_wait_for_event_filtered): Pull all events out of the
11449 kernel, and leave them all pending.
11450 (count_events_callback, select_event_lwp_callback): Consider all
11451 events.
11452 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11453 (select_event_lwp): Only give preference to the stepping LWP in
11454 all-stop mode. Adjust comments.
11455 (ignore_event): New function.
11456 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11457 references to cancel_breakpoints. Adjust to renames. Also give
11458 equal priority to all LWPs that have had events in non-stop mode.
11459 If reporting a software breakpoint event, unadjust the LWP's PC.
11460 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11461 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11462 Adjust.
11463 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11464 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11465 (linux_stopped_by_watchpoint): Adjust.
11466 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11467 * linux-low.h (enum lwp_stop_reason): New.
11468 (struct lwp_info) <stop_pc>: Adjust comment.
11469 <stopped_by_watchpoint>: Delete field.
11470 <stop_reason>: New field.
11471 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11472 * mem-break.c (software_breakpoint_inserted_here)
11473 (hardware_breakpoint_inserted_here): New function.
11474 * mem-break.h (software_breakpoint_inserted_here)
11475 (hardware_breakpoint_inserted_here): Declare.
11476 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11477 (cancel_breakpoints): Delete.
11478 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11479 (upload_fast_traceframes): Remove references to
11480 cancel_breakpoints.
11481
a33e3959
PA
114822015-01-09 Pedro Alves <palves@redhat.com>
11483
11484 * thread-db.c (find_new_threads_callback): Ignore thread if the
11485 kernel thread ID is -1.
11486
8784d563
PA
114872015-01-09 Pedro Alves <palves@redhat.com>
11488
11489 * linux-low.c (linux_attach_fail_reason_string): Move to
11490 nat/linux-ptrace.c, and rename.
11491 (linux_attach_lwp): Update comment.
11492 (attach_proc_task_lwp_callback): New function.
11493 (linux_attach): Adjust to rename and use
11494 linux_proc_attach_tgid_threads.
11495 (linux_attach_fail_reason_string): Delete declaration.
11496
76f2b779
JB
114972015-01-01 Joel Brobecker <brobecker@adacore.com>
11498
11499 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11500 * server.c (gdbserver_version): Likewise.
11501
fafcc06a
SDJ
115022014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11503
11504 * remote-utils.c: Include ctype.h.
11505 (input_interrupt): Explicitly handle the case when the char
11506 received is the NUL byte. Improve the printing of non-ASCII
11507 characters.
11508
beed38b8
JB
115092014-12-16 Joel Brobecker <brobecker@adacore.com>
11510
11511 * linux-low.c (linux_low_filter_event): Update call to
11512 linux_enable_event_reporting following the addition of
11513 a new parameter to that function.
11514
bf330350
CU
115152014-12-16 Catalin Udma <catalin.udma@freescale.com>
11516
11517 PR server/17457
11518 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11519 (AARCH64_FPCR_REGNO): Likewise.
11520 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11521 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11522 (aarch64_store_fpregset): Likewise.
11523
5227d625
JB
115242014-12-15 Joel Brobecker <brobecker@adacore.com>
11525
11526 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11527 Remove FIXME comment about assumption about N.
11528
f93b65a0
JB
115292014-12-13 Joel Brobecker <brobecker@adacore.com>
11530
11531 * configure.ac: If large-file support is disabled in GDBserver,
11532 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11533 * configure: Regenerate.
11534
e5a9158d
AA
115352014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11536
11537 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11538 warning upon ENODATA from ptrace.
11539 * linux-s390-low.c (s390_store_tdb): New.
11540 (s390_regsets): Add regset for NT_S390_TDB.
11541
feea5f36
AA
115422014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11543
11544 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11545 without a fill_function.
11546 * linux-s390-low.c (s390_fill_last_break): Remove.
11547 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11548 (s390_arch_setup): Use regset's size instead of fill_function for
11549 loop end condition.
11550
098dbe61
AA
115512014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11552
11553 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11554 the regset's store function when ptrace returned an error.
11555 * regcache.c (get_thread_regcache): Invalidate register cache
11556 before fetching inferior's registers.
11557
28eef672
AA
115582014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11559
11560 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11561 while-loop as for-loop.
11562 (regsets_store_inferior_registers): Likewise.
11563
bdca27a2
YQ
115642014-11-28 Yao Qi <yao@codesourcery.com>
11565
11566 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11567 * config.in, configure: Re-generate.
11568 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11569 is defined.
11570
9c232dda
YQ
115712014-11-21 Yao Qi <yao@codesourcery.com>
11572
11573 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11574 (AC_CHECK_HEADERS): Remove malloc.h.
11575 * configure: Re-generated.
11576 * config.in: Re-generated.
11577 * server.h: Don't include alloca.h and malloc.h.
11578 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11579 Don't include malloc.h.
11580
43968415
JB
115812014-11-17 Joel Brobecker <brobecker@adacore.com>
11582
11583 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11584 corresponding ERRNO check in same block.
11585
40e91bc7
PA
115862014-11-12 Pedro Alves <palves@redhat.com>
11587
11588 * server.c (cont_thread): Update comment.
11589 (start_inferior, attach_inferior): No longer clear cont_thread.
11590 (handle_v_cont): No longer set cont_thread.
11591 (captured_main): Clear cont_thread each time a GDB connects.
11592
c2c118cf
PA
115932014-11-12 Pedro Alves <palves@redhat.com>
11594
11595 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11596 thread, and don't resume all threads if the Hc thread has exited.
11597
78708b7c
PA
115982014-11-12 Pedro Alves <palves@redhat.com>
11599
11600 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11601 the process group instead of to a specific LWP.
11602
a2abc7de
PA
116032014-10-15 Pedro Alves <palves@redhat.com>
11604
11605 PR server/17487
11606 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11607 parameter.
11608 (arm_set_thread_context): Delete.
11609 (the_low_target): Adjust.
11610 * win32-i386-low.c (debug_registers_changed)
11611 (debug_registers_used): Delete.
11612 (update_debug_registers_callback): New function.
11613 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11614 needing to update their debug registers.
11615 (win32_get_current_dr): New function.
11616 (x86_dr_low_get_addr, x86_dr_low_get_control)
11617 (x86_dr_low_get_status): Fetch the debug register from the thread
11618 record's context.
11619 (i386_initial_stuff): Adjust.
11620 (i386_get_thread_context): Remove current_event parameter. Don't
11621 clear debug_registers_changed nor copy DR values to
11622 debug_reg_state.
11623 (i386_set_thread_context): Delete.
11624 (i386_prepare_to_resume): New function.
11625 (i386_thread_added): Mark the thread as needing to update irs
11626 debug registers.
11627 (the_low_target): Remove i386_set_thread_context and install
11628 i386_prepare_to_resume.
11629 * win32-low.c (win32_get_thread_context): Adjust.
11630 (win32_set_thread_context): Use SetThreadContext
11631 directly.
11632 (win32_prepare_to_resume): New function.
11633 (win32_require_context): New function, factored out from ...
11634 (thread_rec): ... this.
11635 (continue_one_thread): Call win32_prepare_to_resume on each thread
11636 we're about to continue.
11637 (win32_resume): Call win32_prepare_to_resume on the event thread.
11638 * win32-low.h (struct win32_thread_info)
11639 <debug_registers_changed>: New field.
11640 (struct win32_target_ops): Change prototype of set_thread_context,
11641 delete set_thread_context and add prepare_to_resume.
11642 (win32_require_context): New declaration.
11643
a442d071
GB
116442014-10-08 Gary Benson <gbenson@redhat.com>
11645
11646 * server.h: Do not include common-exceptions.h.
11647
6f1947e8
GB
116482014-10-08 Gary Benson <gbenson@redhat.com>
11649
11650 * server.h: Do not include cleanups.h.
11651
63b434a4
JH
116522014-09-30 James Hogan <james.hogan@imgtec.com>
11653
11654 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11655 mips64-dsp-linux.c.
11656
c4d9ceb6
YQ
116572014-09-23 Yao Qi <yao@codesourcery.com>
11658
11659 * linux-low.c (lp_status_maybe_breakpoint): New function.
11660 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11661 (count_events_callback): Likewise.
11662 (select_event_lwp_callback): Likewise.
11663 (cancel_breakpoints_callback): Likewise.
11664
89a5711c
DB
116652014-09-19 Don Breazeal <donb@codesourcery.com>
11666
11667 * linux-low.c (handle_extended_wait): Call
11668 linux_ptrace_get_extended_event.
11669 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11670 linux_is_extended_waitstatus.
11671
bffc0964
JB
116722014-09-16 Joel Brobecker <brobecker@adacore.com>
11673
11674 * Makefile.in (CPPFLAGS): Define.
11675 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11676 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11677
0bfdf32f
GB
116782014-09-16 Gary Benson <gbenson@redhat.com>
11679
11680 * inferiors.h (current_inferior): Renamed as...
11681 (current_thread): New variable. All uses updated.
11682 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11683 (maybe_move_out_of_jump_pad): Likewise.
11684 (cancel_breakpoint): Likewise.
11685 (linux_low_filter_event): Likewise.
11686 (wait_for_sigstop): Likewise.
11687 (linux_resume_one_lwp): Likewise.
11688 (need_step_over_p): Likewise.
11689 (start_step_over): Likewise.
11690 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11691 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11692 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11693 and save_inferior as saved_thread.
11694 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11695 saved_thread.
11696 (regcache_invalidate_thread): Likewise.
11697 * remote-utils.c (prepare_resume_reply): Likewise.
11698 * thread-db.c (thread_db_get_tls_address): Likewise.
11699 (disable_thread_event_reporting): Likewise.
11700 (remove_thread_event_breakpoints): Likewise.
11701 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11702 as saved_thread.
11703 * target.h (set_desired_inferior): Renamed as...
11704 (set_desired_thread): New declaration. All uses updated.
11705 * server.c (myresume): Updated comment to reference thread instead
11706 of inferior.
11707 (handle_serial_event): Likewise.
11708 (handle_target_event): Likewise.
11709
361c8ade
GB
117102014-09-12 Tom Tromey <tromey@redhat.com>
11711 Gary Benson <gbenson@redhat.com>
11712
11713 * regcache.h: Include common-regcache.h.
11714 (regcache_read_pc): Don't declare.
11715 * regcache.c (get_thread_regcache_for_ptid): New function.
11716
bd9269f7
GB
117172014-09-11 Tom Tromey <tromey@redhat.com>
11718 Gary Benson <gbenson@redhat.com>
11719
11720 * symbol.c: New file.
11721 * Makefile.in (SFILES): Add symbol.c.
11722 (OBS): Add symbol.o.
11723
f8c1d06b
GB
117242014-09-11 Gary Benson <gbenson@redhat.com>
11725
11726 * target.c (target_stop_ptid, target_continue_ptid): New
11727 functions.
11728
721ec300
GB
117292014-09-11 Tom Tromey <tromey@redhat.com>
11730 Gary Benson <gbenson@redhat.com>
11731
11732 * target.h: Include target/target.h.
11733 * target.c (target_read_memory, target_read_uint32)
11734 (target_write_memory): New functions.
11735
c5e92cca
GB
117362014-09-11 Gary Benson <gbenson@redhat.com>
11737
11738 * server.h (debug_hw_points): Don't declare.
11739 * server.c (debug_hw_points): Don't define. Replace all uses
11740 with show_debug_regs.
11741 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11742 all uses with show_debug_regs.
11743
2e4bb98a
EBM
117442014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11745
11746 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11747 endianness into account.
11748 (ppc_supply_ptrace_register): Likewise.
11749
ac740bc7
JH
117502014-09-03 James Hogan <james.hogan@imgtec.com>
11751
11752 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11753 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11754
97ea6506
GB
117552014-09-03 Gary Benson <gbenson@redhat.com>
11756
11757 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11758 ALL_DEBUG_ADDRESS_REGISTERS.
11759
df7e5265
GB
117602014-09-02 Gary Benson <gbenson@redhat.com>
11761
11762 * i386-low.h: Renamed as...
11763 * x86-low.h: New file. All type, function and variable name
11764 prefixes changed from "i386_" to "x86_". All references updated.
11765 * i386-low.c: Renamed as...
11766 * x86-low.c: New file. All type, function and variable name
11767 prefixes changed from "i386_" to "x86_". All references updated.
11768
ed859da7
GB
117692014-09-02 Gary Benson <gbenson@redhat.com>
11770
11771 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11772 (x86_linux_new_thread): Likewise.
11773
860789c7
GB
117742014-08-29 Gary Benson <gbenson@redhat.com>
11775
11776 * server.h (setjmp.h): Do not include.
11777 (toplevel): Do not declare.
11778 (common-exceptions.h): Include.
11779 (cleanups.h): Likewise.
11780 * server.c (toplevel): Do not define.
11781 (exit_code): New static global.
11782 (detach_or_kill_for_exit_cleanup): New function.
11783 (main): New function. Original main renamed to...
11784 (captured_main): New function.
11785 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11786
ff55e1b5
GB
117872014-08-29 Gary Benson <gbenson@redhat.com>
11788
11789 * Makefile.in (SFILES): Add common/common-exceptions.c.
11790 (OBS): Add common-exceptions.o.
11791 (common-exceptions.o): New rule.
11792 * utils.c (prepare_to_throw_exception): New function.
11793
e9bcb658
GB
117942014-08-29 Gary Benson <gbenson@redhat.com>
11795
11796 * config.in: Regenerate.
11797 * configure: Likewise.
11798
e3180625
GB
117992014-08-29 Gary Benson <gbenson@redhat.com>
11800
11801 * Makefile.in (SFILES): Add common/cleanups.c.
11802 (OBS): cleanups.o.
11803 (cleanups.o): New rule.
11804
e3d6ba5d
GB
118052014-08-29 Gary Benson <gbenson@redhat.com>
11806
11807 * utils.c (internal_vwarning): New function.
11808
7096e886
GB
118092014-08-28 Gary Benson <gbenson@redhat.com>
11810
11811 * utils.h (fatal): Remove declaration.
11812 * utils.c (fatal): Remove function.
11813
14ce3192
GB
118142014-08-28 Gary Benson <gbenson@redhat.com>
11815
11816 * tracepoint.c (gdb_agent_init): Replace fatal with
11817 perror_with_name.
11818 (initialize_tracepoint): Likewise.
11819
50278d59
GB
118202014-08-28 Gary Benson <gbenson@redhat.com>
11821
11822 * remote-utils.c (remote_prepare): Replace fatal with error.
11823
aa96c426
GB
118242014-08-28 Gary Benson <gbenson@redhat.com>
11825
11826 * linux-low.c (linux_async): Replace fatal with warning.
11827 Tidy up and return.
11828 (linux_start_non_stop): Return -1 if linux_async failed.
11829
f7160e97
GB
118302014-08-28 Gary Benson <gbenson@redhat.com>
11831
11832 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11833 gdb_assert.
11834 (i386_dr_low_get_addr): Remove vague comment.
11835 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11836 gdb_assert.
11837
38e08fca
GB
118382014-08-28 Gary Benson <gbenson@redhat.com>
11839
11840 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11841 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11842 internal_error.
11843 (linux_resume_one_lwp): Likewise.
11844 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11845 gdb_assert.
11846 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11847 with internal_error.
11848 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11849 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11850 (find_register_by_name): Replace fatal with internal_error.
11851 (find_regno): Likewise.
11852 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11853 * thread-db.c (thread_db_create_event): Likewise.
11854 (thread_db_load_search): Likewise.
11855 (try_thread_db_load_1): Likewise.
11856 * tracepoint.c (get_jump_space_head): Replace fatal with
11857 internal_error.
11858 (claim_trampoline_space): Likewise.
11859 (have_fast_tracepoint_trampoline_buffer): Likewise.
11860 (cmd_qtstart): Likewise.
11861 (stop_tracing): Likewise.
11862 (fast_tracepoint_collecting): Likewise.
11863 (target_malloc): Likewise.
11864 (download_tracepoint): Likewise.
11865 (download_trace_state_variables): Replace check with gdb_assert.
11866 (upload_fast_traceframes): Replace fatal with internal_error.
11867
34abf635
GB
118682014-08-19 Tom Tromey <tromey@redhat.com>
11869 Gary Benson <gbenson@redhat.com>
11870
11871 * Makefile.in (SFILES): Add common/common-debug.c.
11872 (OBS): Add common-debug.o.
11873 (common-debug.o): New rule.
11874 * debug.h (debug_printf): Don't declare.
11875 * debug.c (debug_printf): Renamed and rewritten as...
11876 (debug_vprintf): New function.
11877
f6e94d78
GB
118782014-08-19 Gary Benson <gbenson@redhat.com>
11879
11880 * utils.h: Do not include print-utils.h.
11881
9239eeab
GB
118822014-08-19 Tom Tromey <tromey@redhat.com>
11883 Gary Benson <gbenson@redhat.com>
11884
11885 * server.h: Add static assertion.
11886 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11887
ef87c8bb
GB
118882014-08-19 Tom Tromey <tromey@redhat.com>
11889 Gary Benson <gbenson@redhat.com>
11890
11891 * Makefile.in (SFILES): Add common/errors.c.
11892 (OBS): Add errors.o.
11893 (IPA_OBS): Add errors-ipa.o.
11894 (errors.o): New rule.
11895 (errors-ipa.o): Likewise.
11896 * utils.h (perror_with_name, error, warning): Don't declare.
11897 * utils.c (warning): Renamed and rewritten as...
11898 (vwarning): New function.
11899 (error): Renamed and rewritten as...
11900 (verror): New function.
11901 (internal_error): Renamed and rewritten as...
11902 (internal_verror): New function.
11903
bb974a24
GB
119042014-08-07 Gary Benson <gbenson@redhat.com>
11905
11906 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11907 * configure: Regenerate.
11908 * config.in: Likewise.
11909 * server.h: Do not include errno.h.
11910 * event-loop.c: Likewise.
11911 * hostio-errno.c: Likewise.
11912 * linux-low.c: Likewise.
11913 * remote-utils.c: Likewise.
11914 * spu-low.c: Likewise.
11915 * utils.c: Likewise.
11916 * gdbreplay.c: Unconditionally include errno.h.
11917
6d3d12eb
GB
119182014-08-07 Gary Benson <gbenson@redhat.com>
11919
11920 * server.h: Do not include string.h.
11921 * event-loop.c: Likewise.
11922 * linux-low.c: Likewise.
11923 * regcache.c: Likewise.
11924 * remote-utils.c: Likewise.
11925 * spu-low.c: Likewise.
11926 * utils.c: Likewise.
11927
dccbb609
GB
119282014-08-07 Gary Benson <gbenson@redhat.com>
11929
11930 * server.h: Do not include gdb_assert.h.
11931
e76df0d0
GB
119322014-08-07 Gary Benson <gbenson@redhat.com>
11933
11934 * server.h: Do not include common-utils.h.
11935
4cb9c816
GB
119362014-08-07 Gary Benson <gbenson@redhat.com>
11937
11938 * server.h: Do not include ptid.h.
11939 * notif.h: Likewise.
11940
3995eeee
GB
119412014-08-07 Gary Benson <gbenson@redhat.com>
11942
11943 * server.h: Do not include gdb_locale.h.
11944
cb9f1a9b
GB
119452014-08-07 Gary Benson <gbenson@redhat.com>
11946
11947 * server.h: Do not include gdb/signals.h.
11948 * win32-low.c: Likewise.
11949
a5fceff8
GB
119502014-08-07 Gary Benson <gbenson@redhat.com>
11951
11952 * server.h: Do not include pathmax.h.
11953
b9391142
GB
119542014-08-07 Gary Benson <gbenson@redhat.com>
11955
11956 * server.h: Do not include libiberty.h.
11957 * linux-bfin-low.c: Likewise.
11958
0e443c87
GB
119592014-08-07 Gary Benson <gbenson@redhat.com>
11960
11961 * server.h: Do not include ansidecl.h.
11962
8ebb3f56
GB
119632014-08-07 Gary Benson <gbenson@redhat.com>
11964
11965 * linux-x86-low.c: Do not include stddef.h.
11966 * lynx-ppc-low.c: Likewise.
11967 * tracepoint.c: Likewise.
11968
8980bdf6
GB
119692014-08-07 Gary Benson <gbenson@redhat.com>
11970
11971 * server.h: Do not include stdarg.h.
11972 * nto-low.c: Likewise.
11973
d7096f71
GB
119742014-08-07 Gary Benson <gbenson@redhat.com>
11975
11976 * server.h: Do not include stdlib.h.
11977 * inferiors.c: Likewise.
11978 * linux-low.c: Likewise.
11979 * regcache.c: Likewise.
11980 * spu-low.c: Likewise.
11981 * tracepoint.c: Likewise.
11982 * utils.c: Likewise.
11983
d02f550d
GB
119842014-08-07 Gary Benson <gbenson@redhat.com>
11985
11986 * server.h: Do not include stdio.h.
11987 * linux-low.c: Likewise.
11988 * remote-utils.c: Likewise.
11989 * spu-low.c: Likewise.
11990 * utils.c: Likewise.
11991 * wincecompat.c: Likewise.
11992
87f6c4e3
GB
119932014-08-06 Gary Benson <gbenson@redhat.com>
11994
11995 * regcache.c (init_register_cache): Move conditionals inside if.
11996
7089dca4
GB
119972014-08-06 Gary Benson <gbenson@redhat.com>
11998
11999 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12000
462f517e
GB
120012014-07-31 Gary Benson <gbenson@redhat.com>
12002
12003 * ax.h: Do not include server.h.
12004 * gdbthread.h: Likewise.
12005 * lynx-low.h: Likewise.
12006 * notif.h: Likewise.
12007
976411d6
GB
120082014-07-30 Gary Benson <gbenson@redhat.com>
12009
12010 * server.h: Include common-defs.h.
12011 Do not include config.h or build-gnulib-gdbserver/config.h.
12012
d41f6d8e
GB
120132014-07-30 Gary Benson <gbenson@redhat.com>
12014
12015 * hostio-errno.c: Move server.h to top of includes list.
12016 * inferiors.c: Likewise.
12017 * linux-x86-low.c: Likewise.
12018 * notif.c: Include server.h.
12019
314c6a35
TT
120202014-07-24 Tom Tromey <tromey@redhat.com>
12021 Gary Benson <gbenson@redhat.com>
12022
12023 * server.h (CORE_ADDR): Now unsigned.
12024
69ff6be5
PA
120252014-07-16 Pedro Alves <palves@redhat.com>
12026
12027 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12028
ce9e3fe7
PA
120292014-07-15 Pedro Alves <palves@redhat.com>
12030
12031 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12032 copy.
12033
e76126e8
PA
120342014-07-11 Pedro Alves <palves@redhat.com>
12035
12036 * linux-low.c (kill_wait_lwp): New function, based on
12037 kill_one_lwp_callback, but use my_waitpid directly.
12038 (kill_one_lwp_callback, linux_kill): Use it.
12039
8e9db26e
PA
120402014-06-23 Pedro Alves <palves@redhat.com>
12041
12042 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12043 before setting DR0..DR3.
12044
698b3e08
GB
120452014-06-20 Gary Benson <gbenson@redhat.com>
12046
12047 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12048 * configure: Regenerated.
12049 * config.in: Likewise.
12050
125f8a3d
GB
120512014-06-20 Gary Benson <gbenson@redhat.com>
12052
12053 * Makefile.in (SFILES): Update locations for files moved
12054 from common to nat.
12055 (object file files): Reordered.
12056
42995dbd
GB
120572014-06-20 Gary Benson <gbenson@redhat.com>
12058
12059 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12060 (i386_dr_low_set_addr): Likewise.
12061 (i386_dr_low_get_addr): Likewise.
12062 (i386_dr_low_can_set_control): Likewise.
12063 (i386_dr_low_set_control): Likewise.
12064 (i386_dr_low_get_control): Likewise.
12065 (i386_dr_low_get_status): Likewise.
12066 (i386_get_debug_register_length): Likewise.
12067 * linux-x86-low.c (i386_dr_low_set_addr):
12068 Changed signature. Made static.
12069 (i386_dr_low_get_addr): Likewise.
12070 (i386_dr_low_set_control): Likewise.
12071 (i386_dr_low_get_control): Likewise.
12072 (i386_dr_low_get_status): Likewise.
12073 (i386_dr_low): New global variable.
12074 * win32-i386-low.c (i386_dr_low_set_addr):
12075 Changed signature. Made static.
12076 (i386_dr_low_get_addr): Likewise.
12077 (i386_dr_low_set_control): Likewise.
12078 (i386_dr_low_get_control): Likewise.
12079 (i386_dr_low_get_status): Likewise.
12080 (i386_dr_low): New global variable.
12081
e1d2394b
MS
120822014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12083
12084 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12085 * Makefile.in (AR, AR_FLAGS): Define.
12086 * configure: Regenerate.
12087
3a8ee006
GB
120882014-06-19 Gary Benson <gbenson@redhat.com>
12089
12090 * Makefile.in (i386-dregs.o): New rule.
12091 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12092 * i386-low.c (target.h): Remove include.
12093 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12094 (DR_CONTROL_SHIFT): Likewise.
12095 (DR_CONTROL_SIZE): Likewise.
12096 (DR_RW_EXECUTE): Likewise.
12097 (DR_RW_WRITE): Likewise.
12098 (DR_RW_READ): Likewise.
12099 (DR_RW_IORW): Likewise.
12100 (DR_LEN_1): Likewise.
12101 (DR_LEN_2): Likewise.
12102 (DR_LEN_4): Likewise.
12103 (DR_LEN_8): Likewise.
12104 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12105 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12106 (DR_ENABLE_SIZE): Likewise.
12107 (DR_LOCAL_SLOWDOWN): Likewise.
12108 (DR_GLOBAL_SLOWDOWN): Likewise.
12109 (DR_CONTROL_RESERVED): Likewise.
12110 (I386_DR_CONTROL_MASK): Likewise.
12111 (I386_DR_VACANT): Likewise.
12112 (I386_DR_LOCAL_ENABLE): Likewise.
12113 (I386_DR_GLOBAL_ENABLE): Likewise.
12114 (I386_DR_DISABLE): Likewise.
12115 (I386_DR_SET_RW_LEN): Likewise.
12116 (I386_DR_GET_RW_LEN): Likewise.
12117 (I386_DR_WATCH_HIT): Likewise.
12118 (i386_wp_op_t): Likewise.
12119 (i386_show_dr): Likewise.
12120 (i386_length_and_rw_bits): Likewise.
12121 (i386_insert_aligned_watchpoint): Likewise.
12122 (i386_remove_aligned_watchpoint): Likewise.
12123 (i386_handle_nonaligned_watchpoint): Likewise.
12124 i386_update_inferior_debug_regs(): Likewise.
12125 (i386_dr_insert_watchpoint): Likewise.
12126 (i386_dr_remove_watchpoint): Likewise.
12127 (i386_dr_region_ok_for_watchpoint): Likewise.
12128 (i386_dr_stopped_data_address): Likewise.
12129 (i386_dr_stopped_by_watchpoint): Likewise.
12130
8f26655c
GB
121312014-06-19 Gary Benson <gbenson@redhat.com>
12132
12133 * i386-low.c (i386_dr_show): Renamed to
12134 i386_show_dr and made static. All uses updated.
12135 (i386_dr_length_and_rw_bits): Renamed to
12136 i386_length_and_rw_bits and made static.
12137 All uses updated.
12138 (i386_dr_insert_aligned_watchpoint): Renamed to
12139 i386_insert_aligned_watchpoint and made static.
12140 All uses updated.
12141 (i386_dr_remove_aligned_watchpoint): Renamed to
12142 i386_remove_aligned_watchpoint and made static.
12143 All uses updated.
12144 (i386_dr_update_inferior_debug_regs): Renamed to
12145 i386_update_inferior_debug_regs and made static.
12146 All uses updated.
12147
b9228891
GB
121482014-06-18 Gary Benson <gbenson@redhat.com>
12149
5171def3
GB
12150 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12151 (i386_dr_low_can_set_control): Likewise.
12152 (i386_get_debug_register_length): Likewise.
12153 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12154 (i386_dr_low_can_set_control): Likewise.
12155 (i386_get_debug_register_length): Likewise.
12156
121572014-06-17 Gary Benson <gbenson@redhat.com>
12158
b9228891
GB
12159 * i386-low.h (i386-dregs.h): New include.
12160 (DR_FIRSTADDR): Now in i386-dregs.h.
12161 (DR_LASTADDR): Likewise.
12162 (DR_NADDR): Likewise.
12163 (DR_STATUS): Likewise.
12164 (DR_CONTROL): Likewise.
12165 (i386_debug_reg_state): Likewise.
12166 (i386_dr_insert_watchpoint): Likewise.
12167 (i386_dr_remove_watchpoint): Likewise.
12168 (i386_dr_region_ok_for_watchpoint): Likewise.
12169 (i386_dr_stopped_data_address): Likewise.
12170 (i386_dr_stopped_by_watchpoint): Likewise.
12171 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12172
4be83cc2
GB
121732014-06-18 Gary Benson <gbenson@redhat.com>
12174
12175 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12176 i386_dr_insert_watchpoint.
12177 (i386_low_remove_watchpoint): Renamed to
12178 i386_dr_remove_watchpoint.
12179 (i386_low_region_ok_for_watchpoint): Renamed to
12180 i386_dr_region_ok_for_watchpoint.
12181 (i386_low_stopped_data_address): Renamed to
12182 i386_dr_stopped_data_address.
12183 (i386_low_stopped_by_watchpoint): Renamed to
12184 i386_dr_stopped_by_watchpoint.
12185 * i386-low.c (i386_show_dr): Renamed to
12186 i386_dr_show and made nonstatic. All uses updated.
12187 (i386_length_and_rw_bits): Renamed to
12188 i386_dr_length_and_rw_bits and made nonstatic.
12189 All uses updated.
12190 (i386_insert_aligned_watchpoint): Renamed to
12191 i386_dr_insert_aligned_watchpoint and made nonstatic.
12192 All uses updated.
12193 (i386_remove_aligned_watchpoint): Renamed to
12194 i386_dr_remove_aligned_watchpoint and made nonstatic.
12195 All uses updated.
12196 (i386_update_inferior_debug_regs): Renamed to
12197 i386_dr_update_inferior_debug_regs and made nonstatic.
12198 All uses updated.
12199 (i386_low_insert_watchpoint): Renamed to
12200 i386_dr_insert_watchpoint. All uses updated.
12201 (i386_low_remove_watchpoint): Renamed to
12202 i386_dr_remove_watchpoint. All uses updated.
12203 (i386_low_region_ok_for_watchpoint): Renamed to
12204 i386_dr_region_ok_for_watchpoint. All uses updated.
12205 (i386_low_stopped_data_address): Renamed to
12206 i386_dr_stopped_data_address. All uses updated.
12207 (i386_low_stopped_by_watchpoint): Renamed to
12208 i386_dr_stopped_by_watchpoint. All uses updated.
12209
131aa0d4
GB
122102014-06-18 Gary Benson <gbenson@redhat.com>
12211
12212 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12213 (i386_dr_low_can_set_control): Likewise.
12214 (i386_insert_aligned_watchpoint): New check.
12215
d9305f7f
GB
122162014-06-18 Gary Benson <gbenson@redhat.com>
12217
12218 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12219 Renamed to state.
12220
e927c9fc
GB
122212014-06-18 Gary Benson <gbenson@redhat.com>
12222
12223 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12224 instead of fatal and error.
12225 (i386_handle_nonaligned_watchpoint): Likewise.
12226
1b6d4134
GB
122272014-06-18 Gary Benson <gbenson@redhat.com>
12228
12229 * i386-low.c (i386_get_debug_register_length): New macro.
12230 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12231 (i386_show_dr): Use debug_printf instead of fprintf. Use
12232 phex to format values.
12233
6e62758f
GB
122342014-06-18 Gary Benson <gbenson@redhat.com>
12235
12236 * i386-low.h: Comment changes.
12237 * i386-low.c: Likewise.
12238
fc6e2f03
GB
122392014-06-18 Gary Benson <gbenson@redhat.com>
12240
12241 * i386-low.c: Whitespace changes.
12242
f9d1eeed
TT
122432014-06-12 Tom Tromey <tromey@redhat.com>
12244
12245 * utils.c (freeargv): Remove.
12246
0b04e523
TT
122472014-06-12 Tom Tromey <tromey@redhat.com>
12248
12249 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12250 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12251 (parse_debug_format_options): Likewise.
12252 (gdbserver_usage): Likewise.
12253 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12254 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12255 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12256 against libiberty.
12257 ($(LIBGNU)): Depend on libiberty.
12258 (all-lib): Recurse into all subdirs.
12259 (install-only): Invoke "install" target in subdirs.
12260 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12261 targets.
12262 * configure: Rebuild.
12263 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12264 for vasprintf, vsnprintf, or gettimeofday.
12265 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12266 srv_tgtobj.
12267
270c9937
JB
122682014-06-05 Joel Brobecker <brobecker@adacore.com>
12269
12270 * development.sh: Delete.
12271 * Makefile.in (config.status): Adjust dependency on development.sh.
12272 * configure.ac: Adjust development.sh source call.
12273 * configure: Regenerate.
12274
0a261ed8
PA
122752014-06-02 Pedro Alves <palves@redhat.com>
12276
12277 * ax.c (gdb_free_agent_expr): New function.
12278 * ax.h (gdb_free_agent_expr): New declaration.
12279 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12280 list.
12281 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12282 static.
12283 (clear_breakpoint_conditions_and_commands): New function.
12284 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12285 (clear_breakpoint_conditions_and_commands): New declaration.
12286
e9dae05e
RR
122872014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12288
12289 * linux-aarch64-low.c (asm/ptrace.h): Include.
12290
5876f503
JK
122912014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12292
12293 Fix TLS access for -static -pthread.
12294 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12295 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12296 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12297
802e8e6d
PA
122982014-05-20 Pedro Alves <palves@redhat.com>
12299
12300 * linux-aarch64-low.c (aarch64_insert_point)
12301 (aarch64_remove_point): No longer check whether the type is
12302 supported here. Adjust to new interface.
12303 (the_low_target): Install aarch64_supports_z_point_type as
12304 supports_z_point_type method.
12305 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12306 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12307 instead of a Z packet char. Adjust.
12308 (arm_supports_z_point_type): New function.
12309 (arm_insert_point, arm_remove_point): Adjust to new interface.
12310 (the_low_target): Install arm_supports_z_point_type.
12311 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12312 (cris_insert_point, cris_remove_point): Adjust to new interface.
12313 Don't check whether the type is supported here.
12314 (the_low_target): Install cris_supports_z_point_type.
12315 * linux-low.c (linux_supports_z_point_type): New function.
12316 (linux_insert_point, linux_remove_point): Adjust to new interface.
12317 * linux-low.h (struct linux_target_ops) <insert_point,
12318 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12319 raw_breakpoint pointer parameter.
12320 <supports_z_point_type>: New method.
12321 * linux-mips-low.c (mips_supports_z_point_type): New function.
12322 (mips_insert_point, mips_remove_point): Adjust to new interface.
12323 Use mips_supports_z_point_type.
12324 (the_low_target): Install mips_supports_z_point_type.
12325 * linux-ppc-low.c (the_low_target): Install NULL as
12326 supports_z_point_type method.
12327 * linux-s390-low.c (the_low_target): Install NULL as
12328 supports_z_point_type method.
12329 * linux-sparc-low.c (the_low_target): Install NULL as
12330 supports_z_point_type method.
12331 * linux-x86-low.c (x86_supports_z_point_type): New function.
12332 (x86_insert_point): Adjust to new insert_point interface. Use
12333 insert_memory_breakpoint. Adjust to new
12334 i386_low_insert_watchpoint interface.
12335 (x86_remove_point): Adjust to remove_point interface. Use
12336 remove_memory_breakpoint. Adjust to new
12337 i386_low_remove_watchpoint interface.
12338 (the_low_target): Install x86_supports_z_point_type.
12339 * lynx-low.c (lynx_target_ops): Install NULL as
12340 supports_z_point_type callback.
12341 * nto-low.c (nto_supports_z_point_type): New.
12342 (nto_insert_point, nto_remove_point): Adjust to new interface.
12343 (nto_target_ops): Install nto_supports_z_point_type.
12344 * mem-break.c: Adjust intro comment.
12345 (struct raw_breakpoint) <raw_type, size>: New fields.
12346 <inserted>: Update comment.
12347 <shlib_disabled>: Delete field.
12348 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12349 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12350 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12351 (raw_bkpt_type_to_target_hw_bp_type): New function.
12352 (find_enabled_raw_code_breakpoint_at): New function.
12353 (find_raw_breakpoint_at): New type and size parameters. Use them.
12354 (insert_memory_breakpoint): New function, based off
12355 set_raw_breakpoint_at.
12356 (remove_memory_breakpoint): New function.
12357 (set_raw_breakpoint_at): Reimplement.
12358 (set_breakpoint): New, based on set_breakpoint_at.
12359 (set_breakpoint_at): Reimplement.
12360 (delete_raw_breakpoint): Go through the_target->remove_point
12361 instead of assuming memory breakpoints.
12362 (find_gdb_breakpoint_at): Delete.
12363 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12364 (find_gdb_breakpoint): New function.
12365 (set_gdb_breakpoint_at): Delete.
12366 (z_type_supported): New function.
12367 (set_gdb_breakpoint_1): New function, loosely based off
12368 set_gdb_breakpoint_at.
12369 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12370 (delete_gdb_breakpoint_at): Delete.
12371 (delete_gdb_breakpoint_1): New function, loosely based off
12372 delete_gdb_breakpoint_at.
12373 (delete_gdb_breakpoint): New function.
12374 (clear_gdb_breakpoint_conditions): Rename to ...
12375 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12376 breakpoint.
12377 (add_condition_to_breakpoint): Make static.
12378 (add_breakpoint_condition): Take a struct breakpoint pointer
12379 instead of an address. Adjust.
12380 (gdb_condition_true_at_breakpoint): Rename to ...
12381 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12382 z_type parameter.
12383 (gdb_condition_true_at_breakpoint): Reimplement.
12384 (add_breakpoint_commands): Take a struct breakpoint pointer
12385 instead of an address. Adjust.
12386 (gdb_no_commands_at_breakpoint): Rename to ...
12387 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12388 parameter. Return true if no breakpoint was found. Change debug
12389 output.
12390 (gdb_no_commands_at_breakpoint): Reimplement.
12391 (run_breakpoint_commands): Rename to ...
12392 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12393 and change return type to boolean.
12394 (run_breakpoint_commands): New function.
12395 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12396 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12397 breakpoint. Go through the_target->remove_point instead of
12398 assuming memory breakpoint.
12399 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12400 software and hardware breakpoints.
12401 (reinsert_raw_breakpoint): Go through the_target->insert_point
12402 instead of assuming memory breakpoint.
12403 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12404 software and hardware breakpoints.
12405 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12406 Check both software and hardware breakpoints.
12407 (validate_inserted_breakpoint): Assert the breakpoint is a
12408 software breakpoint. Set the inserted flag to -1 instead of
12409 setting shlib_disabled.
12410 (delete_disabled_breakpoints): Adjust.
12411 (validate_breakpoints): Only validate software breakpoints.
12412 Adjust to inserted flag change.
12413 (check_mem_read, check_mem_write): Skip breakpoint types other
12414 than software breakpoints. Adjust to inserted flag change.
12415 * mem-break.h (enum raw_bkpt_type): New enum.
12416 (raw_breakpoint, struct process_info): Forward declare.
12417 (Z_packet_to_target_hw_bp_type): Delete declaration.
12418 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12419 (set_gdb_breakpoint, delete_gdb_breakpoint)
12420 (clear_breakpoint_conditions): New declarations.
12421 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12422 (breakpoint_inserted_here): Update comment.
12423 (add_breakpoint_condition, add_breakpoint_commands): Replace
12424 address parameter with a breakpoint pointer parameter.
12425 (gdb_breakpoint_here): Update comment.
12426 (delete_gdb_breakpoint_at): Delete.
12427 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12428 * server.c (process_point_options): Take a struct breakpoint
12429 pointer instead of an address. Adjust.
12430 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12431 delete_gdb_breakpoint.
12432 * spu-low.c (spu_target_ops): Install NULL as
12433 supports_z_point_type method.
12434 * target.h: Include mem-break.h.
12435 (struct target_ops) <prepare_to_access_memory>: Update comment.
12436 <supports_z_point_type>: New field.
12437 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12438 instead of a char. Also take a raw breakpoint pointer.
12439 * win32-arm-low.c (the_low_target): Install NULL as
12440 supports_z_point_type.
12441 * win32-i386-low.c (i386_supports_z_point_type): New function.
12442 (i386_insert_point, i386_remove_point): Adjust to new interface.
12443 (the_low_target): Install i386_supports_z_point_type.
12444 * win32-low.c (win32_supports_z_point_type): New function.
12445 (win32_insert_point, win32_remove_point): Adjust to new interface.
12446 (win32_target_ops): Install win32_supports_z_point_type.
12447 * win32-low.h (struct win32_target_ops):
12448 <supports_z_point_type>: New method.
12449 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12450 instead of a char. Also take a raw breakpoint pointer.
12451
932539e3
PA
124522014-05-20 Pedro Alves <palves@redhat.com>
12453
12454 * mem-break.h: Include break-common.h.
12455 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12456 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12457 (Z_packet_to_target_hw_bp_type): New declaration.
12458 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12459 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12460 (Z_PACKET_ACCESS_WP): Delete macros.
12461 (Z_packet_to_hw_type): Delete function.
12462 * i386-low.h: Don't include break-common.h here.
12463 (Z_packet_to_hw_type): Delete declaration.
12464 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12465 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12466 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12467 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12468 * linux-aarch64-low.c: Don't include break-common.h here.
12469 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12470 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12471 (Z_packet_to_target_hw_bp_type): Delete function.
12472 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12473 function.
12474 (mips_insert_point, mips_remove_point): Use
12475 Z_packet_to_target_hw_bp_type.
12476
4ff0d3d8
PA
124772014-05-20 Pedro Alves <palves@redhat.com>
12478
12479 * linux-aarch64-low.c: Include break-common.h.
12480 (enum target_point_type): Delete.
12481 (Z_packet_to_point_type): Rename to ...
12482 (Z_packet_to_target_hw_bp_type): ... this, and return a
12483 target_hw_bp_type instead.
12484 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12485 instead of an enum target_point_type.
12486 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12487 breakpoint type.
12488 (aarch64_dr_state_insert_one_point)
12489 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12490 (aarch64_handle_aligned_watchpoint)
12491 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12492 Take an enum target_hw_bp_type instead of an enum
12493 target_point_type.
12494 (aarch64_supports_z_point_type): New function.
12495 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12496 use Z_packet_to_target_hw_bp_type.
12497
786dc519
JB
124982014-05-20 Joel Brobecker <brobecker@adacore.com>
12499
12500 * configure.ac: Only use -Werror by default when DEVELOPMENT
12501 is true.
12502 * configure: Regenerate.
12503
9e0aa64f
JK
125042014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12505
12506 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12507 * linux-x86-low.c (X86_64_USER_REGS): New.
12508 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12509
2b577b92
YQ
125102014-04-28 Yao Qi <yao@codesourcery.com>
12511
12512 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12513 name.
12514
94611da2
PA
125152014-04-25 Pedro Alves <palves@redhat.com>
12516
12517 PR server/16255
12518 * linux-low.c (linux_attach_fail_reason_string): New function.
12519 (linux_attach_lwp): Delete.
12520 (linux_attach_lwp_1): Rename to ...
12521 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12522 argument. Remove "initial" parameter. Return int instead of
12523 void. Don't error or warn here.
12524 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12525 failure to attach to the tgid. Call warning when failing to
12526 attach to an lwp.
12527 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12528 argument. Remove "initial" parameter. Return int instead of
12529 void. Don't error or warn here.
12530 (linux_attach_fail_reason_string): New declaration.
12531 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12532 interface change. Use linux_attach_fail_reason_string.
12533
01f9f808
MS
125342014-04-24 Michael Sturm <michael.sturm@mintel.com>
12535 Walfred Tedeschi <walfred.tedeschi@intel.com>
12536
12537 * Makefile.in: Added rules to handle new files
12538 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12539 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12540 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12541 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12542 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12543 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12544 x32-avx512-linux.o.
12545 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12546 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12547 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12548 i386/x32-avx512.xml.
12549 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12550 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12551 i386/x32-avx512-linux.xml.
12552 * i387-fp.c (num_avx512_k_registers): New constant for number
12553 of K registers.
12554 (num_avx512_zmmh_low_registers): New constant for number of
12555 lower ZMM registers (0-15).
12556 (num_avx512_zmmh_high_registers): New constant for number of
12557 higher ZMM registers (16-31).
12558 (num_avx512_ymmh_registers): New contant for number of higher
12559 YMM registers (ymm16-31 added by avx521 on x86_64).
12560 (num_avx512_xmm_registers): New constant for number of higher
12561 XMM registers (xmm16-31 added by AVX512 on x86_64).
12562 (struct i387_xsave): Add space for AVX512 registers.
12563 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12564 Add code to handle AVX512 registers.
12565 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12566 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12567 prototypei from generated file.
12568 (tdesc_amd64_avx512_linux): Likewise.
12569 (init_registers_x32_avx512_linux): Likewise.
12570 (tdesc_x32_avx512_linux): Likewise.
12571 (init_registers_i386_avx512_linux): Likewise.
12572 (tdesc_i386_avx512_linux): Likewise.
12573 (x86_64_regmap): Add AVX512 registers.
12574 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12575 mask.
12576 (initialize_low_arch): Add code to initialize AVX512 registers.
12577
51aa91f9
PA
125782014-04-23 Pedro Alves <palves@redhat.com>
12579
12580 * mem-break.c (find_gdb_breakpoint_at): Make static.
12581 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12582
a4165e94
PA
125832014-04-23 Pedro Alves <palves@redhat.com>
12584
12585 * i386-low.c: Don't include break-common.h here.
12586 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12587 prototype to take target_hw_bp_type as argument instead of a Z
12588 packet char.
12589 * i386-low.h: Include break-common.h here.
12590 (Z_packet_to_hw_type): Declare.
12591 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12592 prototypes.
12593 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12594 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12595 (x86_remove_point): Convert the packet number to a
12596 target_hw_bp_type before calling i386_low_remove_watchpoint.
12597 * win32-i386-low.c (i386_insert_point): Convert the packet number
12598 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12599 (i386_remove_point): Convert the packet number to a
12600 target_hw_bp_type before calling i386_low_remove_watchpoint.
12601
b8acf843
PA
126022014-04-23 Pedro Alves <palves@redhat.com>
12603
12604 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12605
d708bcd1
PA
126062014-04-10 Pedro Alves <palves@redhat.com>
12607
12608 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12609 Check if the condition or command is NULL before checking if the
12610 breakpoint is known. On success, return true.
12611 * mem-break.h (add_breakpoint_condition): Document return.
12612 (add_breakpoint_commands): Add describing comment.
12613 * server.c (skip_to_semicolon): New function.
12614 (process_point_options): Use it.
12615
2eec7d5b
PA
126162014-04-09 Pedro Alves <palves@redhat.com>
12617
12618 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12619 to lwpid_of.
12620
fa96cb38
PA
126212014-02-27 Pedro Alves <palves@redhat.com>
12622
12623 PR 12702
12624 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12625 macros.
12626 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12627 output.
12628 (last_thread_of_process_p): Take a PID argument instead of a
12629 thread pointer.
12630 (linux_wait_for_lwp): Delete.
12631 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12632 functions.
12633 (linux_low_filter_event): New function, party factored out from
12634 linux_wait_for_event.
12635 (linux_wait_for_event): Rename to ...
12636 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12637 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12638 sigsuspend. Check for zombie leaders.
12639 (linux_wait_for_event): Reimplement as wrapper around
12640 linux_wait_for_event_filtered.
12641 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12642 a normal or signal exit is seen, it's the whole process exiting.
12643 (wait_for_sigstop): No longer a for_each_inferior callback.
12644 Rewrite on top of linux_wait_for_event_filtered.
12645 (stop_all_lwps): Call wait_for_sigstop directly.
12646 * server.c (resume, handle_target_event): Handle
12647 TARGET_WAITKIND_NO_RESUMED.
12648
d763de10
JB
126492014-02-26 Joel Brobecker <brobecker@adacore.com>
12650
12651 * win32-low.c (psapi_get_dll_name,
12652 * win32_CreateToolhelp32Snapshot): Delete.
12653 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12654 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12655 Delete.
12656 (handle_load_dll): Add function description.
12657 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12658
850a0f76
JB
126592014-02-26 Joel Brobecker <brobecker@adacore.com>
12660
12661 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12662 Add comment.
12663 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12664 base address when calling win32_add_one_solib.
12665 (handle_load_dll): Delete local variable load_addr.
12666 Remove 0x1000 offset applied to DLL base address when calling
12667 win32_add_one_solib.
12668 (handle_unload_dll): Add comment.
12669
f25b3fc3
JB
126702014-02-26 Joel Brobecker <brobecker@adacore.com>
12671
12672 * win32-low.c (win32_add_all_dlls): Renames
12673 win32_ensure_ntdll_loaded. Rewrite function documentation.
12674 Adjust implementation to always load all DLLs.
12675 Add 0x1000 offset to DLL base address when calling
12676 win32_add_one_solib.
12677 (child_initialization_done): New static global.
12678 (do_initial_child_stuff): Set child_initialization_done to
12679 zero during child initialization, and 1 after. Replace call
12680 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12681 Add comment.
12682 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12683 (handle_unload_dll): Add function documentation.
12684 (get_child_debug_event): Ignore load and unload DLL events
12685 during child initialization.
12686
d86d4aaf
DE
126872014-02-20 Doug Evans <dje@google.com>
12688
3bc32da3 12689 Remove global all_lwps.
d86d4aaf
DE
12690 * inferiors.h (ptid_of): Move here from linux-low.h.
12691 (pid_of, lwpid_of): Ditto.
12692 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12693 parameter is a struct thread_info * now.
12694 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12695 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12696 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12697 directly.
12698 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12699 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12700 * linux-arm-low.c (update_registers_callback): Update, "entry"
12701 parameter is a struct thread_info * now.
12702 Fetch lwpid from current_inferior directly.
12703 (arm_insert_point): Pass &all_threads to find_inferior instead of
12704 &all_lwps.
12705 (arm_remove_point): Ditto.
12706 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12707 (arm_prepare_to_resume): Fetch pid from thread.
12708 (arm_read_description): Fetch lwpid from current_inferior directly.
12709 * linux-low.c (all_lwps): Delete.
12710 (delete_lwp): Delete call to remove_inferior.
12711 (handle_extended_wait): Fetch lwpid from thread.
12712 (add_lwp): Don't set lwp->entry.id. Remove call to
12713 add_inferior_to_list.
12714 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12715 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12716 (kill_one_lwp_callback): Ditto.
12717 (linux_kill): Don't dereference NULL pointer.
12718 Fetch ptid,lwpid from thread.
12719 (get_detach_signal): Fetch ptid from thread.
12720 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12721 Simplify call to regcache_invalidate_thread.
12722 (delete_lwp_callback): Update, "entry" parameter is a
12723 struct thread_info * now. Fetch pid from thread.
12724 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12725 (status_pending_p_callback): Update, "entry" parameter is a
12726 struct thread_info * now. Fetch ptid from thread.
12727 (find_lwp_pid): Update, "entry" parameter is a
12728 struct thread_info * now.
12729 (linux_wait_for_lwp): Fetch pid from thread.
12730 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12731 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12732 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12733 (dequeue_one_deferred_signal): Ditto.
12734 (cancel_breakpoint): Fetch ptid from current_inferior.
12735 (linux_wait_for_event): Pass &all_threads to find_inferior,
12736 not &all_lwps. Fetch ptid, lwpid from thread.
12737 (count_events_callback): Update, "entry" parameter is a
12738 struct thread_info * now.
12739 (select_singlestep_lwp_callback): Ditto.
12740 (select_event_lwp_callback): Ditto.
12741 (cancel_breakpoints_callback): Ditto.
12742 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12743 not &all_lwps.
12744 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12745 (unsuspend_one_lwp): Update, "entry" parameter is a
12746 struct thread_info * now.
12747 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12748 not &all_lwps.
12749 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12750 Fetch lwpid from thread, not lwp.
12751 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12752 Pass &all_threads to find_inferior, not &all_lwps.
12753 (send_sigstop): Fetch lwpid from thread, not lwp.
12754 (send_sigstop_callback): Update, "entry" parameter is a
12755 struct thread_info * now.
12756 (suspend_and_send_sigstop_callback): Ditto.
12757 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12758 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12759 struct thread_info * now.
12760 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12761 from thread, lwp.
12762 (lwp_running): Update, "entry" parameter is a
12763 struct thread_info * now.
12764 (stop_all_lwps): Fetch ptid from thread.
12765 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12766 (linux_resume_one_lwp): Fetch lwpid from thread.
12767 (linux_set_resume_request): Update, "entry" parameter is a
12768 struct thread_info * now. Fetch pid, lwpid from thread.
12769 (resume_status_pending_p): Update, "entry" parameter is a
12770 struct thread_info * now.
12771 (need_step_over_p): Ditto. Fetch lwpid from thread.
12772 (start_step_over): Fetch lwpid from thread.
12773 (linux_resume_one_thread): Update, "entry" parameter is a
12774 struct thread_info * now. Fetch lwpid from thread.
12775 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12776 (proceed_one_lwp): Update, "entry" parameter is a
12777 struct thread_info * now. Fetch lwpid from thread.
12778 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12779 struct thread_info * now.
12780 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12781 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12782 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12783 directly.
12784 (regsets_store_inferior_registers): Ditto.
12785 (fetch_register, store_register): Ditto.
12786 (linux_read_memory, linux_write_memory): Ditto.
12787 (linux_request_interrupt): Ditto.
12788 (linux_read_auxv): Ditto.
12789 (linux_xfer_siginfo): Ditto.
12790 (linux_qxfer_spu): Ditto.
12791 (linux_qxfer_libraries_svr4): Ditto.
12792 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12793 moved to inferiors.h.
12794 (get_lwp): Delete.
12795 (get_thread_lwp): Update.
12796 (struct lwp_info): Delete member "entry". Simplify comment for
12797 member "thread".
12798 (all_lwps): Delete.
12799 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12800 current_inferior directly.
12801 (update_watch_registers_callback): Update, "entry" parameter is a
12802 struct thread_info * now. Fetch pid from thread.
12803 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12804 (mips_insert_point): Fetch lwpid from current_inferior.
12805 Pass &all_threads to find_inferior, not &all_lwps.
12806 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12807 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12808 directly.
12809 (mips_stopped_data_address): Ditto.
12810 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12811 directly.
12812 * linux-tile-low.c (tile_arch_setup): Ditto.
12813 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12814 (update_debug_registers_callback): Update, "entry" parameter is a
12815 struct thread_info * now. Fetch pid from thread.
12816 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12817 Pass &all_threads to find_inferior, not &all_lwps.
12818 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12819 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12820 Pass &all_threads to find_inferior, not &all_lwps.
12821 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12822 (i386_dr_low_get_status): Ditto.
12823 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12824 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12825 (x86_linux_read_description): Ditto.
12826 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12827
3b8361aa
DE
128282014-02-20 Doug Evans <dje@google.com>
12829
12830 * inferiors.c (get_first_inferior): Fix buglet.
12831
f7667f0d
DE
128322014-02-19 Doug Evans <dje@google.com>
12833
12834 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12835 * inferiors.c (add_thread): Change result type to struct thread_info *.
12836 All callers updated.
12837 (add_lwp): Call add_thread here instead of in callers.
12838 All callers updated.
12839 * linux-low.h (get_lwp_thread): Rewrite.
12840 (struct lwp_info): New member "thread".
12841
b3312d80
DE
128422014-02-19 Doug Evans <dje@google.com>
12843
12844 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12845 All callers updated.
12846
ecc6f45c
DE
128472014-02-19 Doug Evans <dje@google.com>
12848
12849 * inferiors.c (add_thread): Fix whitespace.
12850
649ebbca
DE
128512014-02-19 Doug Evans <dje@google.com>
12852
12853 * dll.c (clear_dlls): Replace accessing list implemention details
12854 with API function.
12855 * gdbthread.h (get_first_thread): Declare.
12856 * inferiors.c (for_each_inferior_with_data): New function.
12857 (get_first_thread): New function.
12858 (find_thread_ptid): Simplify.
12859 (get_first_inferior): New function.
12860 (clear_list): Delete.
12861 (one_inferior_p): New function.
12862 (clear_inferior_list): New function.
12863 (clear_inferiors): Update.
12864 * inferiors.h (for_each_inferior_with_data): Declare.
12865 (clear_inferior_list): Declare.
12866 (one_inferior_p): Declare.
12867 (get_first_inferior): Declare.
12868 * linux-low.c (linux_wait_for_event): Replace accessing list
12869 implemention details with API function.
12870 * server.c (target_running): Ditto.
12871 (accumulate_file_name_length): New function.
12872 (emit_dll_description): New function.
12873 (handle_qxfer_libraries): Replace accessing list implemention
12874 details with API function.
12875 (handle_qxfer_threads_worker): New function.
12876 (handle_qxfer_threads_proper): Replace accessing list implemention
12877 details with API function.
12878 (handle_query): Ditto.
12879 (visit_actioned_threads_callback_ftype): New typedef.
12880 (visit_actioned_threads_data): New struct.
12881 (visit_actioned_threads): Rewrite to be find_inferior callback.
12882 (resume): Call find_inferior.
12883 (handle_status): Replace accessing list implemention
12884 details with API function.
12885 (process_serial_event): Replace accessing list implemention details
12886 with API function.
12887 * target.c (set_desired_inferior): Replace accessing list implemention
12888 details with API function.
12889 * tracepoint.c (same_process_p): New function.
12890 (gdb_agent_about_to_close): Replace accessing list implemention
12891 details with API function.
12892 * win32-low.c (child_delete_thread): Replace accessing list
12893 implemention details with API function.
12894 (match_dll_by_basename): New function.
12895 (dll_is_loaded_by_basename): New function.
12896 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12897 details call to dll_is_loaded_by_basename.
12898
80894984
DE
128992014-02-19 Doug Evans <dje@google.com>
12900
12901 * dll.h (struct dll_info): Add comment.
12902 * gdbthread.h (struct thread_info): Add comment.
12903 (current_ptid): Simplify.
12904 * inferiors.c (add_process): Update.
12905 (remove_process): Update.
12906 * inferiors.h (struct process_info): Rename member "head" to "entry".
12907 * linux-low.c (delete_lwp): Update.
12908 (add_lwp): Update.
12909 (last_thread_of_process_p): Update.
12910 (kill_one_lwp_callback, linux_kill): Update.
12911 (status_pending_p_callback): Update.
12912 (wait_for_sigstop): Update. Simplify read of ptid.
12913 (start_step_over): Update.
12914 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12915 (get_lwp_thread): Update.
12916 (struct lwp_info): Rename member "head" to "entry".
12917 * regcache.h (inferior_list_entry): Delete.
12918 * server.c (kill_inferior_callback): Update.
12919 (detach_or_kill_inferior_callback): Update.
12920 (print_started_pid): Update.
12921 (print_attached_pid): Update.
12922 (process_serial_event): Simplify read of ptid.
12923 * thread-db.c (thread_db_create_event): Update.
12924 (thread_db_get_tls_address): Update.
12925 * win32-low.c (current_inferior_ptid): Simplify.
12926
46917d26
TT
129272014-02-19 Tom Tromey <tromey@redhat.com>
12928
12929 * target.h (struct target_ops) <supports_btrace>: Add target_ops
12930 argument.
12931 (target_supports_btrace): Update.
12932
0759a81e
YQ
129332014-02-14 Yao Qi <yao@codesourcery.com>
12934
12935 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
12936 (rsp-low-ipa.o): New target.
12937
a7191e8b
TT
129382014-02-12 Tom Tromey <tromey@redhat.com>
12939
12940 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
12941 convert_ascii_to_int.
12942 * regcache.c (registers_to_string): Likewise.
12943 * remote-utils.c (decode_M_packet): Likewise.
12944 * server.c (process_serial_event): Likewise.
12945
ff0e980e
TT
129462014-02-12 Tom Tromey <tromey@redhat.com>
12947
12948 * server.c (handle_query, handle_v_run): Use hex2bin, not
12949 unhexify.
12950 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
12951
e9371aff
TT
129522014-02-12 Tom Tromey <tromey@redhat.com>
12953
12954 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
12955 convert_int_to_ascii.
12956 * regcache.c (registers_to_string, collect_register_as_string):
12957 Likewise.
12958 * remote-utils.c (look_up_one_symbol, relocate_instruction):
12959 Likewise.
12960 * server.c (process_serial_event): Likewise.
12961 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
12962 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
12963
971dc0b8
TT
129642014-02-12 Tom Tromey <tromey@redhat.com>
12965
12966 * remote-utils.c (look_up_one_symbol, monitor_output): Use
12967 bin2hex, not hexify.
12968 * tracepoint.c (cmd_qtstatus): Likewise.
12969
0a822afb
TT
129702014-02-12 Tom Tromey <tromey@redhat.com>
12971
12972 * remote-utils.c (monitor_output): Pass explicit length to
12973 hexify.
12974
9c3d6531
TT
129752014-02-12 Tom Tromey <tromey@redhat.com>
12976
12977 * tracepoint.c: Include rsp-low.h.
12978 * server.c: Include rsp-low.h.
12979 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
12980 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
12981 declare.
12982 * remote-utils.c: Include rsp-low.h.
12983 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
12984 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
12985 (convert_int_to_ascii, convert_ascii_to_int): Move to
12986 common/rsp-low.c.
12987 * regcache.c: Include rsp-low.h.
12988 * ax.c: Include rsp-low.h.
12989 * Makefile.in (SFILES): Add common/rsp-low.c.
12990 (OBS): Add rsp-low.o.
12991 (rsp-low.o): New target.
12992
01fd3ea5
TT
129932014-02-12 Tom Tromey <tromey@redhat.com>
12994
12995 * utils.h (pulongest, plongest, phex_nz): Don't declare.
12996 Include print-utils.h.
12997 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12998 (plongest, thirty_two, phex_nz): Remove.
12999 * Makefile.in (SFILES): Add common/print-utils.c.
13000 (OBS): Add print-utils.o.
13001 (print-utils-ipa.o): New target.
13002 (print-utils.o): New target.
13003 (IPA_OBJS): Add print-utils-ipa.o.
13004
e99dc820
TT
130052014-02-06 Tom Tromey <tromey@redhat.com>
13006
13007 * Makefile.in (SFILES): Fix indentation.
13008
ee1e2d4f
DE
130092014-02-05 Doug Evans <dje@google.com>
13010
13011 * linux-low.c (linux_wait_for_event): Improve comment.
13012 (linux_wait_1): Keep current_inferior in sync with event_child.
13013
f5a02773
DE
130142014-01-22 Doug Evans <dje@google.com>
13015
13016 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13017
87ce2a04
DE
130182014-01-22 Doug Evans <dje@google.com>
13019
13020 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13021 * configure: Regenerate.
13022 * config.in: Regenerate.
13023 * Makefile.in (SFILES): Add debug.c.
13024 (OBS): Add debug.o.
13025 * debug.c: New file.
13026 * debug.h: New file.
13027 * linux-aarch64-low.c (*): Update all debugging printfs to use
13028 debug_printf instead of fprintf.
13029 * linux-arm-low.c (*): Ditto.
13030 * linux-cris-low.c (*): Ditto.
13031 * linux-crisv32-low.c (*): Ditto.
13032 * linux-m32r-low.c (*): Ditto.
13033 * linux-sparc-low.c (*): Ditto.
13034 * linux-x86.c (*): Ditto.
13035 * linux-low.c (*): Ditto.
13036 (linux_wait_1): Add calls to debug_enter, debug_exit.
13037 (linux_wait): Remove redundant debugging printf.
13038 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13039 (linux_resume, unstop_all_lwps): Ditto.
13040 * mem-break.c (*): Update all debugging printfs to use
13041 debug_printf instead of fprintf.
13042 * remote-utils.c (*): Ditto.
13043 * thread-db.c (*): Ditto.
13044 * server.c #include <ctype.h>, "gdb_vecs.h".
13045 (debug_threads): Moved to debug.c.
13046 (*): Update all debugging printfs to use debug_printf instead of
13047 fprintf.
13048 (start_inferior): Replace call to fflush with call to debug_flush.
13049 (monitor_show_help): Mention set debug-format.
13050 (parse_debug_format_options): New function.
13051 (handle_monitor_command): Handle "monitor set debug-format".
13052 (gdbserver_usage): Mention --debug-format.
13053 (main): Parse --debug-format.
13054 * server.h (debug_threads): Declaration moved to debug.h.
13055 #include "debug.h".
13056 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13057 trace_debug_1 that uses debug_printf.
13058 (tracepoint_look_up_symbols): Update all debugging printfs to use
13059 debug_printf instead of fprintf.
13060
e671835b
BS
130612014-01-20 Baruch Siach <baruch@tkos.co.il>
13062
13063 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13064 sys/ptrace.h.
13065
b5737fa9
PA
130662014-01-17 Pedro Alves <palves@redhat.com>
13067
ea38d2a9 13068 PR build/16445
c7faa97a
PA
13069 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13070 defined after including gdb_proc_service.h.
b5737fa9 13071
40ed484e
DE
130722014-01-16 Doug Evans <dje@google.com>
13073
13074 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13075 (match_dll): Use it.
13076
969c39fb
MM
130772014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13078
13079 * target.h (target_ops) <read_btrace>: Change parameters and
13080 return type to allow error reporting.
13081 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13082 trace reading errors on.
13083 * linux-low.c (linux_low_read_btrace): Pass trace reading
13084 errors on.
13085 (linux_low_disable_btrace): New.
13086
ab7f45ba
DE
130872014-01-15 Doug Evans <dje@google.com>
13088
13089 * inferiors.c (thread_id_to_gdb_id): Delete.
13090 * inferiors.h (thread_id_to_gdb_id): Delete.
13091
66af0f44
EZ
130922014-01-13 Eli Zaretskii <eliz@gnu.org>
13093
13094 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13095 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13096 versions.
13097
9939e131
PA
130982014-01-08 Pedro Alves <palves@redhat.com>
13099
13100 * server.c (handle_status): Don't discard previous queued stop
13101 replies or thread's pending status here.
13102 (main) <disconnection>: Do it here instead.
13103
b7ea362b
PA
131042014-01-08 Pedro Alves <palves@redhat.com>
13105
13106 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13107 * server.c (visit_actioned_threads, handle_pending_status): New
13108 function.
13109 (handle_v_cont): Factor out parts to ...
13110 (resume): ... this new function. If in all-stop, and a thread
13111 being resumed has a pending status, report it without actually
13112 resuming.
13113 (myresume): Adjust to use the new 'resume' function.
13114 (clear_pending_status_callback, set_pending_status_callback)
13115 (find_status_pending_thread_callback): New functions.
13116 (handle_status): Handle the case of multiple threads having
13117 interesting statuses to report. Report threads' real last signal
13118 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13119 with an interesting thread to report the status for, instead of
13120 always reporting the status of the first thread.
13121
28498c42
JB
131222014-01-01 Joel Brobecker <brobecker@adacore.com>
13123
13124 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13125 * gdbreplay.c (gdbreplay_version): Likewise.
13126
f45c82da
YZ
131272013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13128
13129 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13130 iov.iov_len with the real length in use.
13131
379a5e2d
JB
131322013-12-13 Joel Brobecker <brobecker@adacore.com>
13133
13134 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13135 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13136 for all targets that use win32-low.c.
13137 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13138 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13139
4210d83e
PA
131402013-12-13 Pedro Alves <palves@redhat.com>
13141
13142 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13143 if equal to TARGET_WAITKIND_LOADED.
13144 * win32-low.c (cached_status): New static global.
13145 (win32_wait): Add declaration.
13146 (do_initial_child_stuff): Flush all initial pending debug events
13147 up to the initial breakpoint.
13148 (win32_wait): If CACHED_STATUS was set, return that instead
13149 of doing a real wait. Remove the code resuming the execution
13150 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13151 during the initial phase. Also remove the code changing
13152 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13153 TARGET_WAITKIND_STOPPED.
13154
e7f0d979
YQ
131552013-12-11 Yao Qi <yao@codesourcery.com>
13156
13157 * notif.c (handle_notif_ack): Return 0 if no notification
13158 matches.
13159
ebcf782c
DE
131602013-11-20 Doug Evans <dje@google.com>
13161
13162 * linux-low.c (linux_set_resume_request): Fix comment.
13163
20ad9378
DE
131642013-11-20 Doug Evans <dje@google.com>
13165
13166 * linux-low.c (resume_status_pending_p): Tweak comment.
13167
a196ebeb
WT
131682013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13169
13170 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13171 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13172 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13173 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13174 (srv_amd64_regobj): Add amd64-mpx.o.
13175 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13176 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13177 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13178 * i387-fp.c (num_pl_bnd_register) Added constant.
13179 (num_pl_bnd_cfg_registers) Added constant.
13180 (struct i387_xsave) Added reserved area and MPX fields.
13181 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13182 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13183 function.
13184 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13185 (init_registers_amd64_mpx_linux): Declare new function.
13186 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13187 (x86_64_regmap): Add MPX registers.
13188 (x86_linux_read_description): Add MPX case.
13189 (initialize_low_arch): Initialize MPX targets.
13190
0080a2f6
TT
131912013-11-18 Tom Tromey <tromey@redhat.com>
13192
13193 * configure: Rebuild.
13194 * configure.ac: Don't check for stdlib.h.
13195 * gdbreplay.c: Unconditionally include stdlib.h.
13196
2978b111
TT
131972013-11-18 Tom Tromey <tromey@redhat.com>
13198
13199 * config.in: Rebuild.
13200 * configure: Rebuild.
13201 * configure.ac: Don't use AC_HEADER_DIRENT.
13202
a3d08894
TT
132032013-11-18 Tom Tromey <tromey@redhat.com>
13204
13205 * server.h: Don't check HAVE_STRING_H.
13206 * gdbreplay.c: Don't check HAVE_STRING_H.
13207 * configure: Rebuild.
13208
0a5dd17d
TT
132092013-11-18 Tom Tromey <tromey@redhat.com>
13210
13211 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13212 LIBGNU.
13213
1bd2f0ba
TT
132142013-11-08 Tom Tromey <tromey@redhat.com>
13215
13216 * configure, config.in: Rebuild.
13217 * configure.ac: Remove unused configury.
13218
3266f10b
TT
132192013-11-08 Tom Tromey <tromey@redhat.com>
13220
13221 * acinclude.m4: Include common.m4, codeset.m4.
13222 * configure, config.in: Rebuild.
13223 * configure.ac: Use GDB_AC_COMMON.
13224
6682d959
AA
132252013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13226
13227 * linux-s390-low.c (HWCAP_S390_TE): New define.
13228 (s390_arch_setup): Consider the TE field in the HWCAP for
13229 determining 'have_regset_tdb'.
13230
fd0a4d76
SDJ
132312013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13232
13233 PR gdb/16014
13234 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13235 call to sizeof.
13236
1a3d890b
PA
132372013-10-02 Pedro Alves <palves@redhat.com>
13238
13239 * server.c (process_serial_event): Don't output "GDBserver
13240 exiting" if GDB is connected through stdio.
13241 * target.c (mywait): Likewise, be silent if GDB is connected
13242 through stdio.
13243
97ad4581
JB
132442013-10-01 Joel Brobecker <brobecker@adacore.com>
13245
13246 * lynx-low.c (lynx_add_threads_after_attach): New function.
13247 (lynx_attach): Remove call to add_thread. Add call to
13248 lynx_add_threads_after_attach instead.
13249
5b4e221c
MF
132502013-09-28 Mike Frysinger <vapier@gentoo.org>
13251
13252 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13253 * config.in, configure: Regenerated.
13254
ee47b2f8
YQ
132552013-09-18 Yao Qi <yao@codesourcery.com>
13256
13257 PR server/15959
13258 * server.c (start_inferior): Clear 'resume_info'.
13259
d6707650 132602013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13261
d6707650
JW
13262 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13263 for each register.
13264
9243dd0e 132652013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13266
9243dd0e
JW
13267 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13268 linux-tile-low.o to srv_tgtobj.
13269
c623a6ef
WN
132702013-09-16 Will Newton <will.newton@linaro.org>
13271
13272 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13273 out regs.
13274
fb71d39e
PA
132752013-09-06 Pedro Alves <palves@redhat.com>
13276
13277 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13278 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13279 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13280 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13281 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13282 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13283
8e7e9910
PA
132842013-09-06 Pedro Alves <palves@redhat.com>
13285
13286 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13287 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13288
7c3a12ca
PA
132892013-09-06 Pedro Alves <palves@redhat.com>
13290
13291 * linux-amd64-ipa.c: Include tracepoint.h.
13292 * linux-i386-ipa.c: Include tracepoint.h.
13293
8eb3d7b6
RW
132942013-09-06 Ricard Wanderlof <ricardw@axis.com>
13295
13296 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13297 (ps_get_thread_area): New function.
13298
eddddb9d
RW
132992013-09-06 Ricard Wanderlof <ricardw@axis.com>
13300
13301 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13302 (initialize_low_arch): Call init_registers_crisv32 rather than
13303 init_register_crisv32.
13304
533b0600
PA
133052013-09-05 Pedro Alves <palves@redhat.com>
13306
13307 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13308 to ...
13309 * hostio.h: ... this new file.
13310 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13311 win32-low.c: Include hostio.h.
13312
0ce3d3b5
PA
133132013-09-05 Pedro Alves <palves@redhat.com>
13314
13315 * server.h (gdb_client_data, handler_func, callback_handler_func)
13316 (delete_file_handler, add_file_handler, append_callback_event)
13317 (delete_callback_event, start_event_loop, initialize_event_loop):
13318 Move to event-loop.h and include it.
13319 * event-loop.h: New file.
13320
799cdc37
PA
133212013-09-05 Pedro Alves <palves@redhat.com>
13322
13323 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13324 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13325 (loaded_dll, unloaded_dll): Move to ...
13326 * dll.h: ... this new file.
13327 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13328
6a6bbd9d
PA
133292013-09-05 Pedro Alves <palves@redhat.com>
13330
13331 * server.h (current_process, get_thread_process, all_processes)
13332 (add_inferior_to_list, for_each_inferior, current_inferior)
13333 (remove_inferior, add_process, remove_process, find_process_pid)
13334 (have_started_inferiors_p, have_attached_inferiors_p)
13335 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13336 (clear_inferiors, find_inferior, find_inferior_id)
13337 (inferior_target_data, set_inferior_target_data)
13338 (inferior_regcache_data, set_inferior_regcache_data): Move to
13339 inferiors.h, and include it.
13340 * inferiors.h: New file.
13341
f699aaba
PA
133422013-09-05 Pedro Alves <palves@redhat.com>
13343
13344 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13345 Move ...
72f4393d 13346 * ax.h: ... here.
f699aaba 13347
c144c7a0
PA
133482013-09-05 Pedro Alves <palves@redhat.com>
13349
13350 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13351 tracepoint.h.
13352 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13353 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13354 (handle_tracepoint_general_set, handle_tracepoint_query)
13355 (tracepoint_finished_step, tracepoint_was_hit)
13356 (release_while_stepping_state_list, current_traceframe)
13357 (in_readonly_region, traceframe_read_mem)
13358 (fetch_traceframe_registers, traceframe_read_sdata)
13359 (traceframe_read_info, struct fast_tpoint_collect_status)
13360 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13361 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13362 (supply_fast_tracepoint_registers)
13363 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13364 (ipa_tdesc, claim_trampoline_space)
13365 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13366 (agent_mem_read, agent_get_trace_state_variable_value)
13367 (agent_set_trace_state_variable_value, agent_tsv_read)
13368 (agent_mem_read_string, get_raw_reg_func_addr)
13369 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13370 * tracepoint.h: ... this new file.
13371
ff42e6ab
PA
133722013-09-05 Pedro Alves <palves@redhat.com>
13373
13374 * server.h (perror_with_name, error, fatal, warning, paddress)
13375 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13376 include it.
13377 * utils.h: New file.
13378
541af0f4
PA
133792013-09-05 Pedro Alves <palves@redhat.com>
13380
13381 * server.h (remote_debug, noack_mode, transport_is_reliable)
13382 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13383 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13384 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13385 (write_enn, initialize_async_io, enable_async_io)
13386 (disable_async_io, check_remote_input_interrupt_request)
13387 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13388 (dead_thread_notify, prepare_resume_reply)
13389 (decode_address_to_semicolon, decode_address, decode_m_packet)
13390 (decode_M_packet, decode_X_packet, decode_xfer_write)
13391 (decode_search_memory_packet, unhexify, hexify)
13392 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13393 (look_up_one_symbol, relocate_instruction)
13394 (monitor_output): Move to remote-utils.h, and include it.
13395 * remote-utils.h: New file.
13396
eebdf26b
PA
133972013-09-05 Pedro Alves <palves@redhat.com>
13398
13399 * server.h (_): Delete.
13400
3aafd2ff
PA
134012013-09-02 Pedro Alves <palves@redhat.com>
13402
13403 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13404 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13405 allocated.
13406 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13407
cee83bcb
PM
134082013-09-02 Pierre Muller <muller@sourceware.org>
13409
13410 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13411 or WriteProcessMemory complete successfully and handle
13412 ERROR_PARTIAL_COPY error.
13413
9a13b2fa
PA
134142013-09-02 Pedro Alves <palves@redhat.com>
13415
13416 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13417 error instead of EIO.
13418
602e3198
JK
134192013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13420
13421 PR server/15604
13422 * linux-low.c: Include filestuff.h.
13423 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13424 * lynx-low.c: Include filestuff.h.
13425 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13426 * server.c: Include filestuff.h.
13427 (main): Call notice_open_fds.
13428 * spu-low.c: Include filestuff.h.
13429 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13430
96d7229d
LM
134312013-08-22 Luis Machado <lgustavo@codesourcery.com>
13432
13433 * Makefile.in: Explain why ../target and ../nat are not
13434 listed as include file search paths.
13435 (linux-waitpid.o): New object file rule.
13436 * configure.srv (srv_native_linux_obj): New variable.
13437 Replace all occurrences of linux native object files with
13438 $srv_native_linux_obj.
13439 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13440 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13441 (linux_enable_event_reporting): Remove declaration.
13442 (my_waitpid): Moved to common/linux-waitpid.c.
13443 (linux_wait_for_event): Pass ptid when calling
13444 linux_enable_event_reporting.
13445 (linux_supports_tracefork_flag): Remove.
13446 (linux_enable_event_reporting): Likewise.
13447 (linux_tracefork_grandchild): Remove.
13448 (STACK_SIZE): Moved to common/linux-ptrace.c.
13449 (linux_tracefork_child): Remove.
13450 (linux_test_for_tracefork): Remove.
13451 (linux_look_up_symbols): Call linux_supports_traceclone.
13452 (initialize_low): Remove call to linux_test_for_tracefork.
13453 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13454 common/linux-ptrace.h.
13455 (PTRACE_TYPE_ARG4): Likewise.
13456 Include linux-ptrace.h.
13457
32940073
PA
134582013-08-21 Pedro Alves <palves@redhat.com>
13459
13460 * config.in: Renegerate.
13461
33b60d58 134622013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13463
33b60d58
LM
13464 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13465 (SFILES): Remove $(srcdir)/common/target-common.c and
13466 add $(srcdir)/target/waitstatus.c.
13467 (OBS): Remove target-common.o and add waitstatus.o.
13468 (server_h): Remove $(srcdir)/../common/target-common.h and
13469 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13470 and $(srcdir)/../target/waitstatus.h.
13471 (target-common.o): Remove.
13472 (waitstatus.o): New target object file.
13473 * target.h: Do not include target-common.h and
13474 include target/resume.h, target/wait.h and
13475 target/waitstatus.h.
13476
b8e1b30e
LM
134772013-08-13 Luis Machado <lgustavo@codesourcery.com>
13478
13479 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13480 to PTRACE_TYPE_ARG3.
13481 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13482 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13483 PTRACE_TYPE_ARG4.
13484 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13485 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13486
7a60ad40
YQ
134872013-07-27 Jie Zhang <jie@codesourcery.com>
13488 Daniel Jacobowitz <dan@codesourcery.com>
13489 Yao Qi <yao@codesourcery.com>
13490
13491 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13492 (mips-linux-watch.o): New rule.
13493 (mips_linux_watch_h): New variable.
13494 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13495 srv_tgtobj.
13496 * linux-mips-low.c: Include mips-linux-watch.h.
13497 (struct arch_process_info, struct arch_lwp_info): New.
13498 (update_watch_registers_callback): New function.
13499 (mips_linux_new_process, mips_linux_new_thread) New functions.
13500 (mips_linux_prepare_to_resume, mips_insert_point): New
13501 functions.
13502 (mips_remove_point, mips_stopped_by_watchpoint): New
13503 functions.
13504 (rsp_bp_type_to_target_hw_bp_type): New function.
13505 (mips_stopped_data_address): New function.
13506 (the_low_target): Add watchpoint support functions.
13507
de6f69ad
YQ
135082013-07-27 Yao Qi <yao@codesourcery.com>
13509
13510 * i386-low.c: Include break-common.h.
13511 (enum target_hw_bp_type): Remove.
13512
3360c0bf
LM
135132013-07-24 Luis Machado <lgustavo@codesourcery.com>
13514
13515 * Makefile.in (SFILES): /common/target-common.c.
13516 (OBS): Add target-common.o.
13517 (server_h): Add $(srcdir)/../common/target-common.h.
13518 (target-common.o): New target.
13519 * server.c (queue_stop_reply_callback): Free
13520 status string after use.
13521 * target.c (target_waitstatus_to_string): Remove.
13522 * target.h: Include target-common.h.
13523 (resume_kind): Likewise.
13524 (target_waitkind): Likewise.
13525 (target_waitstatus): Likewise.
13526 (TARGET_WNOHANG): Likewise.
13527
bd885420
YQ
135282013-07-04 Yao Qi <yao@codesourcery.com>
13529
13530 * Makefile.in (host_alias): Use @host_noncanonical@.
13531 (target_alias): Use @target_noncanonical@.
13532 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13533 ACX_NONCANONICAL_HOST.
13534 * configure: Regenerated.
13535
13536 Revert:
13537 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13538
13539 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13540 * configure: Rebuild.
13541 * Makefile.in (version_host, version_target): Get from configure.
13542 (version.c): Use $(version_host) and $(version_target).
13543
17ef446e
PA
135442013-07-03 Pedro Alves <palves@redhat.com>
13545
13546 * Makefile.in (config.status): Depend on development.sh.
13547 * acinclude.m4: Include libmcheck.m4.
13548 * configure: Regenerate.
13549
7a9a7487
MG
135502013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13551
13552 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13553 attribute inside the parentheses.
13554 (winapi_DebugSetProcessKillOnExit): Ditto.
13555 (winapi_DebugBreakProcess): Ditto.
13556 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13557
49b64de6
MG
135582013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13559
13560 * notif.h (notif_event): Add a dummy member to avoid compiler
13561 errors.
13562
d5749ee7
PA
135632013-07-01 Pedro Alves <palves@redhat.com>
13564
13565 * hostio.c (HOSTIO_PATH_MAX): Define.
13566 (require_filename, handle_open, handle_unlink, handle_readlink):
13567 Use it.
13568
d8d2a3ee
PA
135692013-07-01 Pedro Alves <palves@redhat.com>
13570
13571 * server.h: Include "pathmax.h".
13572 * linux-low.c: Don't include sys/param.h.
13573 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13574 MAXPATHLEN.
13575 * win32-low.c: Don't include sys/param.h.
13576 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13577
bc7dea8d
PA
135782013-07-01 Pedro Alves <palves@redhat.com>
13579
13580 * event-loop.c: Don't check HAVE_UNISTD_H before including
13581 <unistd.h>.
13582 * gdbreplay.c: Likewise.
13583 * remote-utils.c: Likewise.
13584 * server.c: Likewise.
13585 * configure.ac: Don't check for unistd.h.
13586 * configure: Regenerate.
13587
d6c2da54
TT
135882013-06-28 Tom Tromey <tromey@redhat.com>
13589
13590 * Makefile.in (version.c): Use version.in, not
13591 common/version.in.
13592
257b6bec
MG
135932013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13594
13595 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13596 * configure: Rebuild.
13597 * Makefile.in (version_host, version_target): Get from configure.
13598 (version.c): Use $(version_host) and $(version_target).
13599
86ebe149
DK
136002013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13601
13602 Fix trace-status to output user name without trailing colon.
13603 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13604
f30aa5af
DK
136052013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13606
13607 Fix trace-status to output proper start-time and stop-time.
13608 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13609 output start time and stop time in hex as gdb expects.
13610
28a93511
YQ
136112013-06-26 Pedro Alves <pedro@codesourcery.com>
13612
13613 * tracepoint.c (build_traceframe_info_xml): Output trace state
13614 variables present in the trace buffer.
13615
01208463
TT
136162013-06-24 Tom Tromey <tromey@redhat.com>
13617
13618 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13619 create-version.sh.
13620 (version.o): Remove.
13621 * gdbreplay.c: Include version.h.
13622 (version, host_name): Don't declare.
13623 * server.h: Include version.h.
13624 (version, host_name): Don't declare.
13625
760256f9
PA
136262013-06-12 Pedro Alves <palves@redhat.com>
13627
13628 * linux-x86-low.c (linux_is_elf64): Delete global.
13629 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13630 with local linux_pid_exe_is_elf_64_file use.
13631
030031ee
PA
136322013-06-11 Pedro Alves <palves@redhat.com>
13633
13634 * linux-low.c (regset_disabled, disable_regset): New functions.
13635 (regsets_fetch_inferior_registers)
13636 (regsets_store_inferior_registers): Use them.
13637 (initialize_regsets_info); Don't allocate the disabled_regsets
13638 array here.
13639 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13640 comment.
13641
5da6eb0a
PA
136422013-06-11 Pedro Alves <palves@redhat.com>
13643
13644 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13645 xmalloc.
13646
7e5aaa09
PA
136472013-06-11 Pedro Alves <palves@redhat.com>
13648
13649 * linux-x86-low.c (initialize_low_arch): Call
13650 init_registers_x32_avx_linux.
13651
d878444c
JK
136522013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13653
13654 Fix compatibility with Android Bionic.
13655 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13656 it is not empty.
13657
3aee8918
PA
136582013-06-07 Pedro Alves <palves@redhat.com>
13659
5f2b57b5 13660 PR server/14823
3aee8918
PA
13661 * Makefile.in (OBS): Add tdesc.o.
13662 (IPA_OBJS): Add tdesc-ipa.o.
13663 (tdesc-ipa.o): New rule.
13664 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13665 interface.
13666 * linux-low.c (new_inferior): Delete.
13667 (disabled_regsets, num_regsets): Delete.
13668 (linux_add_process): Adjust to set the new per-process
13669 new_inferior flag.
13670 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13671 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13672 was a stop. When calling arch_setup, switch the current inferior
13673 to the thread that got an event.
13674 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13675 (regsets_fetch_inferior_registers)
13676 (regsets_store_inferior_registers): New regsets_info parameter.
13677 Adjust to use it.
13678 (linux_register_in_regsets): New regs_info parameter. Adjust to
13679 use it.
13680 (register_addr, fetch_register, store_register): New usrregs_info
13681 parameter. Adjust to use it.
13682 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13683 parameter regs_info. Adjust to use it.
13684 (linux_fetch_registers): Get the current inferior's regs_info, and
13685 adjust to use it.
13686 (linux_store_registers): Ditto.
13687 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13688 (initialize_low): Don't initialize the target_regsets here. Call
13689 initialize_low_arch.
13690 * linux-low.h (target_regsets): Delete declaration.
13691 (struct regsets_info): New.
13692 (struct usrregs_info): New.
13693 (struct regs_info): New.
13694 (struct process_info_private) <new_inferior>: New field.
13695 (struct linux_target_ops): Delete the num_regs, regmap, and
13696 regset_bitmap fields. New field regs_info.
13697 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13698 * i387-fp.c (num_xmm_registers): Delete.
13699 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13700 calls to new interface.
13701 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13702 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13703 Infer the number of xmm registers from the regcache's target
13704 description.
13705 * i387-fp.h (num_xmm_registers): Delete.
13706 * inferiors.c (add_thread): Don't install the thread's regcache
13707 here.
13708 * proc-service.c (gregset_info): Fetch the current inferior's
13709 regs_info. Adjust to use it.
13710 * regcache.c: Include tdesc.h.
13711 (register_bytes, reg_defs, num_registers)
13712 (gdbserver_expedite_regs): Delete.
13713 (get_thread_regcache): If the thread doesn't have a regcache yet,
13714 create one, instead of aborting gdbserver.
13715 (regcache_invalidate_one): Rename to ...
13716 (regcache_invalidate_thread): ... this.
13717 (regcache_invalidate_one): New.
13718 (regcache_invalidate): Only invalidate registers of the current
13719 process.
13720 (init_register_cache): Add target_desc parameter, and use it.
13721 (new_register_cache): Ditto. Assert the target description has a
13722 non zero registers_size.
13723 (regcache_cpy): Add assertions. Adjust.
13724 (realloc_register_cache, set_register_cache): Delete.
13725 (registers_to_string, registers_from_string): Adjust.
13726 (find_register_by_name, find_regno, find_register_by_number)
13727 (register_cache_size): Add target_desc parameter, and use it.
13728 (free_register_cache_thread, free_register_cache_thread_one)
13729 (regcache_release, register_cache_size): New.
13730 (register_size): Add target_desc parameter, and use it.
13731 (register_data, supply_register, supply_register_zeroed)
13732 (supply_regblock, supply_register_by_name, collect_register)
13733 (collect_register_as_string, collect_register_by_name): Adjust.
13734 * regcache.h (struct target_desc): Forward declare.
13735 (struct regcache) <tdesc>: New field.
13736 (init_register_cache, new_register_cache): Add target_desc
13737 parameter.
13738 (regcache_invalidate_thread): Declare.
13739 (regcache_invalidate_one): Delete declaration.
13740 (regcache_release): Declare.
13741 (find_register_by_number, register_cache_size, register_size)
13742 (find_regno): Add target_desc parameter.
13743 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13744 declarations.
13745 * remote-utils.c: Include tdesc.h.
13746 (outreg, prepare_resume_reply): Adjust.
13747 * server.c: Include tdesc.h.
13748 (gdbserver_xmltarget): Delete declaration.
13749 (get_features_xml, process_serial_event): Adjust.
13750 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13751 declare.
13752 (struct process_info) <tdesc>: New field.
13753 (ipa_tdesc): Declare.
13754 * tdesc.c: New file.
13755 * tdesc.h: New file.
13756 * tracepoint.c: Include tdesc.h.
13757 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13758 (get_context_regcache): Adjust to pass ipa_tdesc down.
13759 (do_action_at_tracepoint): Adjust to get the register cache size
13760 from the context regcache's description.
13761 (traceframe_walk_blocks): Adjust to get the register cache size
13762 from the current trace frame's description.
13763 (traceframe_get_pc): Adjust to get current trace frame's
13764 description and pass it down.
13765 (gdb_collect): Adjust to get the register cache size from the
13766 IPA's description.
13767 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13768 (gdbserver_xmltarget): Delete.
13769 (initialize_low_tracepoint): Set the ipa's target description.
13770 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13771 (initialize_low_tracepoint): Set the ipa's target description.
13772 * linux-x86-low.c: Include tdesc.h.
13773 [__x86_64__] (is_64bit_tdesc): New.
13774 (ps_get_thread_area, x86_get_thread_area): Use it.
13775 (i386_cannot_store_register): Rename to ...
13776 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13777 (i386_cannot_fetch_register): Rename to ...
13778 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13779 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13780 to new interface.
13781 (target_regsets): Rename to ...
13782 (x86_regsets): ... this.
13783 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13784 interface.
13785 (x86_siginfo_fixup): Use is_64bit_tdesc.
13786 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13787 (tdesc_x32_avx_linux, tdesc_x32_linux)
13788 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13789 Declare.
13790 (x86_linux_update_xmltarget): Delete.
13791 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13792 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13793 (AMD64_LINUX_USER64_CS): New.
13794 (x86_linux_read_description): New, based on
13795 x86_linux_update_xmltarget.
13796 (same_process_callback): New.
13797 (x86_arch_setup_process_callback): New.
13798 (x86_linux_update_xmltarget): New.
13799 (x86_regsets_info): New.
13800 (amd64_linux_regs_info): New.
13801 (i386_linux_usrregs_info): New.
13802 (i386_linux_regs_info): New.
13803 (x86_linux_regs_info): New.
13804 (x86_arch_setup): Reimplement.
13805 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13806 (x86_emit_ops): Ditto.
13807 (the_low_target): Adjust. Install x86_linux_regs_info,
13808 x86_cannot_fetch_register, and x86_cannot_store_register.
13809 (initialize_low_arch): New.
13810 * linux-ia64-low.c (tdesc_ia64): Declare.
13811 (ia64_fetch_register): Adjust.
13812 (ia64_usrregs_info, regs_info): New globals.
13813 (ia64_regs_info): New function.
13814 (the_low_target): Adjust.
13815 (initialize_low_arch): New function.
13816 * linux-sparc-low.c (tdesc_sparc64): Declare.
13817 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13818 Adjust.
13819 (sparc_arch_setup): New function.
13820 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13821 (the_low_target): Adjust.
13822 (initialize_low_arch): New function.
13823 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13824 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13825 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13826 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13827 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13828 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13829 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13830 (tdesc_powerpc_isa205_vsx64l): Declare.
13831 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13832 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13833 (ppc_set_pc, ppc_get_hwcap): Adjust.
13834 (ppc_usrregs_info): Forward declare.
13835 (!__powerpc64__) ppc_regmap_adjusted: New global.
13836 (ppc_arch_setup): Adjust to the current process'es target
13837 description.
13838 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13839 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13840 (ppc_store_evrregset): Adjust.
13841 (target_regsets): Rename to ...
13842 (ppc_regsets): ... this, and make static.
13843 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13844 (ppc_regs_info): New function.
13845 (the_low_target): Adjust.
13846 (initialize_low_arch): New function.
13847 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13848 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13849 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13850 (tdesc_s390x_linux64v2): Declare.
13851 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13852 (s390_fill_gregset, s390_store_last_break): Adjust.
13853 (target_regsets): Rename to ...
13854 (s390_regsets): ... this, and make static.
13855 (s390_get_pc, s390_set_pc): Adjust.
13856 (s390_get_hwcap): New target_desc parameter, and use it.
13857 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13858 (s390_arch_setup): Adjust to set the current process'es target
13859 description. Don't adjust the regmap.
13860 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13861 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13862 (regs_info_3264): New globals.
13863 (s390_regs_info): New function.
13864 (the_low_target): Adjust.
13865 (initialize_low_arch): New function.
13866 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13867 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13868 [__mips64] (init_registers_mips_linux)
13869 (init_registers_mips_dsp_linux): Delete defines.
13870 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13871 (have_dsp): New global.
13872 (mips_read_description): New, based on mips_arch_setup.
13873 (mips_arch_setup): Reimplement.
13874 (get_usrregs_info): New function.
13875 (mips_cannot_fetch_register, mips_cannot_store_register)
13876 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13877 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13878 (target_regsets): Rename to ...
13879 (mips_regsets): ... this, and make static.
13880 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13881 (dsp_regs_info, regs_info): New globals.
13882 (mips_regs_info): New function.
13883 (the_low_target): Adjust.
13884 (initialize_low_arch): New function.
13885 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13886 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13887 Declare.
13888 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13889 (arm_read_description): New, with bits factored from
13890 arm_arch_setup.
13891 (arm_arch_setup): Reimplement.
13892 (target_regsets): Rename to ...
13893 (arm_regsets): ... this, and make static.
13894 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13895 (arm_regs_info): New function.
13896 (the_low_target): Adjust.
13897 (initialize_low_arch): New function.
13898 * linux-m68k-low.c (tdesc_m68k): Declare.
13899 (target_regsets): Rename to ...
13900 (m68k_regsets): ... this, and make static.
13901 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13902 (m68k_regs_info): New function.
13903 (m68k_arch_setup): New function.
13904 (the_low_target): Adjust.
13905 (initialize_low_arch): New function.
13906 * linux-sh-low.c (tdesc_sharch): Declare.
13907 (target_regsets): Rename to ...
13908 (sh_regsets): ... this, and make static.
13909 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13910 (sh_regs_info, sh_arch_setup): New functions.
13911 (the_low_target): Adjust.
13912 (initialize_low_arch): New function.
13913 * linux-bfin-low.c (tdesc_bfin): Declare.
13914 (bfin_arch_setup): New function.
13915 (bfin_usrregs_info, regs_info): New globals.
13916 (bfin_regs_info): New function.
13917 (the_low_target): Adjust.
13918 (initialize_low_arch): New function.
13919 * linux-cris-low.c (tdesc_cris): Declare.
13920 (cris_arch_setup): New function.
13921 (cris_usrregs_info, regs_info): New globals.
13922 (cris_regs_info): New function.
13923 (the_low_target): Adjust.
13924 (initialize_low_arch): New function.
13925 * linux-cris-low.c (tdesc_crisv32): Declare.
13926 (cris_arch_setup): New function.
13927 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
13928 (cris_regs_info): New function.
13929 (the_low_target): Adjust.
13930 (initialize_low_arch): New function.
13931 * linux-m32r-low.c (tdesc_m32r): Declare.
13932 (m32r_arch_setup): New function.
13933 (m32r_usrregs_info, regs_info): New globals.
13934 (m32r_regs_info): Adjust.
13935 (initialize_low_arch): New function.
13936 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
13937 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
13938 (tic6x_usrregs_info): Forward declare.
13939 (tic6x_read_description): New function, based on ...
13940 (tic6x_arch_setup): ... this. Reimplement.
13941 (target_regsets): Rename to ...
13942 (tic6x_regsets): ... this, and make static.
13943 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
13944 (tic6x_regs_info): New function.
13945 (the_low_target): Adjust.
13946 (initialize_low_arch): New function.
13947 * linux-xtensa-low.c (tdesc_xtensa): Declare.
13948 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
13949 (target_regsets): Rename to ...
13950 (xtensa_regsets): ... this, and make static.
13951 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
13952 globals.
13953 (xtensa_arch_setup, xtensa_regs_info): New functions.
13954 (the_low_target): Adjust.
13955 (initialize_low_arch): New function.
13956 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
13957 (nios2_arch_setup): Set the current process'es tdesc.
13958 (target_regsets): Rename to ...
13959 (nios2_regsets): ... this.
13960 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
13961 (nios2_regs_info): New function.
13962 (the_low_target): Adjust.
13963 (initialize_low_arch): New function.
a261b8f5
PA
13964 * linux-aarch64-low.c (tdesc_aarch64): Declare.
13965 (aarch64_arch_setup): Set the current process'es tdesc.
13966 (target_regsets): Rename to ...
13967 (aarch64_regsets): ... this.
13968 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
13969 (aarch64_regs_info): New function.
13970 (the_low_target): Adjust.
13971 (initialize_low_arch): New function.
3aee8918
PA
13972 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
13973 globals.
13974 (target_regsets): Rename to ...
13975 (tile_regsets): ... this.
13976 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
13977 (tile_regs_info): New function.
13978 (tile_arch_setup): Set the current process'es tdesc.
13979 (the_low_target): Adjust.
13980 (initialize_low_arch): New function.
13981 * spu-low.c (tdesc_spu): Declare.
13982 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
13983 * win32-arm-low.c (tdesc_arm): Declare.
13984 (arm_arch_setup): New function.
13985 (the_low_target): Install arm_arch_setup instead of
13986 init_registers_arm.
13987 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
13988 (init_windows_x86): Rename to ...
13989 (i386_arch_setup): ... this. Set `win32_tdesc'.
13990 (the_low_target): Adjust.
13991 * win32-low.c (win32_tdesc): New global.
13992 (child_add_thread): Don't create the thread cache here.
13993 (do_initial_child_stuff): Set the new process'es tdesc.
13994 * win32-low.h (struct target_desc): Forward declare.
13995 (win32_tdesc): Declare.
13996 * lynx-i386-low.c (tdesc_i386): Declare global.
13997 (lynx_i386_arch_setup): Set `lynx_tdesc'.
13998 * lynx-low.c (lynx_tdesc): New global.
13999 (lynx_add_process): Set the new process'es tdesc.
14000 * lynx-low.h (struct target_desc): Forward declare.
14001 (lynx_tdesc): Declare global.
14002 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14003 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14004 * nto-low.c (nto_tdesc): New global.
14005 (do_attach): Set the new process'es tdesc.
14006 * nto-low.h (struct target_desc): Forward declare.
14007 (nto_tdesc): Declare.
14008 * nto-x86-low.c (tdesc_i386): Declare.
14009 (nto_x86_arch_setup): Set `nto_tdesc'.
14010
b1fbec62
GB
140112013-06-04 Gary Benson <gbenson@redhat.com>
14012
14013 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14014 to qSupported response when appropriate.
14015 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14016 with nonzero-length annex.
14017 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14018 arguments supplied in annex.
14019
d1ec4ce7
DE
140202013-05-31 Doug Evans <dje@google.com>
14021
ac44adcb 14022 PR server/15594
d1ec4ce7
DE
14023 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14024 64 bits in 64-cross-32 environment.
14025
9b25f2d3
PA
140262013-05-28 Pedro Alves <palves@redhat.com>
14027
14028 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14029 (aarch64-without-fpu.c): Delete rule.
14030 * configure.srv (aarch64*-*-linux*): Remove references to
14031 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14032 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14033 declaration.
14034
6740dc9c
PA
140352013-05-24 Pedro Alves <palves@redhat.com>
14036
14037 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14038 instead of strchr/decode_address. Error if the range isn't split
14039 with a ','. Don't assume there's be a ':' in the action.
14040
c2d6af84
PA
140412013-05-23 Yao Qi <yao@codesourcery.com>
14042 Pedro Alves <palves@redhat.com>
14043
14044 * linux-low.c (lwp_in_step_range): New function.
14045 (linux_wait_1): If the thread was range stepping and stopped
14046 outside the stepping range, report the stop to GDB. Otherwise,
14047 continue stepping. Add range stepping debug output.
14048 (linux_set_resume_request): Copy the step range from the resume
14049 request to the lwp.
14050 (linux_supports_range_stepping): New.
14051 (linux_target_ops) <supports_range_stepping>: Set to
14052 linux_supports_range_stepping.
14053 * linux-low.h (struct linux_target_ops)
14054 <supports_range_stepping>: New field.
14055 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14056 * linux-x86-low.c (x86_supports_range_stepping): New.
14057 (the_low_target) <supports_range_stepping>: Set to
14058 x86_supports_range_stepping.
14059 * server.c (handle_v_cont): Handle 'r' action.
14060 (handle_v_requests): Append ";r" if the target supports range
14061 stepping.
14062 * target.h (struct thread_resume) <step_range_start,
14063 step_range_end>: New fields.
14064 (struct target_ops) <supports_range_stepping>:
14065 New field.
14066 (target_supports_range_stepping): New macro.
14067
58794e1a
JB
140682013-05-17 Joel Brobecker <brobecker@adacore.com>
14069
14070 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14071 confusion in comment.
14072
d631c5a7
JB
140732013-05-17 Joel Brobecker <brobecker@adacore.com>
14074
14075 * lynx-low.c (struct process_info_private): New type.
14076 (lynx_add_process): New function.
14077 (lynx_create_inferior, lynx_attach): Replace calls to
14078 add_process by calls to lynx_add_process.
14079 (lynx_resume): If PTID is null, then try using
14080 current_process()->private->last_wait_event_ptid.
14081 Add comments.
14082 (lynx_clear_inferiors): Delete. The contents of that function
14083 has been inlined in lynx_mourn;
14084 (lynx_wait_1): Save the ptid in the process's private data.
14085 (lynx_mourn): Free the process' private data. Replace call
14086 to lynx_clear_inferiors by call to clear_inferiors.
14087
96f7a20f
YQ
140882013-05-17 Yao Qi <yao@codesourcery.com>
14089
14090 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14091 the right place.
14092
db0dfaa0
LM
140932013-05-16 Luis Machado <lgustavo@codesourcery.com>
14094
14095 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14096 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14097 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14098 PT_TEXT_END_ADDR guards. Update comments.
14099 (linux_target_op) <read_offsets>: Conditionally define to
14100 linux_read_offsets if the target is UCLIBC and if it defines
14101 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14102
68f5f838
SL
141032013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14104 Andrew Jenner <andrew@codesourcery.com>
14105
14106 * Makefile.in (SFILES): Add linux-nios2-low.c.
14107 (clean): Add action to delete nios2-linux.c.
14108 (nios2-linux.c): New rule.
14109 * configure.srv: Add nios2*-*-linux*.
14110 * linux-nios2-low.c: New.
14111
1ebff1fd
HAQ
141122013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14113
14114 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14115
f6150862
HZ
141162013-04-25 Hui Zhu <hui@codesourcery.com>
14117
14118 PR gdb/15186
f6150862
HZ
14119 * ax.c (ax_printf): Add fflush.
14120
614c279d
TT
141212013-04-22 Tom Tromey <tromey@redhat.com>
14122
14123 * Makefile.in (SFILES): Add filestuff.c.
14124 (OBS): Add filestuff.o.
14125 (filestuff.o): New target.
14126 * config.in, configure: Rebuild.
14127 * configure.ac: Check for fdwalk, pipe2.
14128
7d4e5717
PA
141292013-04-17 Pedro Alves <palves@redhat.com>
14130
14131 * configure.ac (USE_THREAD_DB): Delete variable.
14132 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14133 Don't AC_SUBST USE_THREAD_DB.
14134 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14135 * config.in, configure: Regenerate.
14136
d5c93e41
PA
141372013-04-16 Pedro Alves <palves@redhat.com>
14138
14139 * linux-low.h (struct lwp_info) <thread_known>: Move under
14140 the USE_THREAD_DB #ifdef.
14141
04f5fe89
PA
141422013-04-16 Pedro Alves <palves@redhat.com>
14143
14144 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14145 (linux-low.o): Delete rule.
14146 * linux-low.h: Always include "gdb_thread_db.h" instead of
14147 conditionally including thread_db.h.
14148 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14149 HAVE_THREAD_DB_H.
14150
480b27bf
JK
141512013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14152
14153 * Makefile.in (install-only): Fix make install regression.
14154
43662968
JK
141552013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14156
14157 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14158 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14159 installation.
14160 * gdbserver.1: Remove.
14161
3e74e146
PA
141622013-03-22 Pedro Alves <palves@redhat.com>
14163
14164 * linux-low.c (handle_extended_wait): Don't call
14165 linux_enable_event_reporting.
14166
a8347a2a
TT
141672013-03-15 Tony Theodore <tonyt@logyst.com>
14168
14169 PR build/9098:
14170 * Makefile.in (SHELL): Use @SHELL@.
14171
eeb56fa7
SDJ
141722013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14173
14174 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14175 compiler warning.
14176
4fa7e2ff
JB
141772013-03-13 Joel Brobecker <brobecker@adacore.com>
14178
14179 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14180 Remove extraneous NULL element.
14181
8ddb1965
YQ
141822013-03-13 Yao Qi <yao@codesourcery.com>
14183
14184 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14185 'V' block in trace frame.
14186
9accd112
MM
141872013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14188
14189 * target.h (struct target_ops): Add btrace ops.
14190 (target_supports_btrace): New macro.
14191 (target_enable_btrace): New macro.
14192 (target_disable_btrace): New macro.
14193 (target_read_btrace): New macro.
14194 * gdbthread.h (struct thread_info): Add btrace field.
14195 * server.c: Include btrace-common.h.
14196 (handle_btrace_general_set): New function.
14197 (handle_btrace_enable): New function.
14198 (handle_btrace_disable): New function.
14199 (handle_general_set): Call handle_btrace_general_set.
14200 (handle_qxfer_btrace): New function.
14201 (struct qxfer qxfer_packets[]): Add btrace entry.
14202 * inferiors.c (remove_thread): Disable btrace.
14203 * linux-low: Include linux-btrace.h.
14204 (linux_low_enable_btrace): New function.
14205 (linux_low_read_btrace): New function.
14206 (linux_target_ops): Add btrace ops.
14207 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14208 Add srv_linux_btrace=yes.
14209 (x86_64-*-linux*): Add linux-btrace.o.
14210 Add srv_linux_btrace=yes.
14211 * configure.ac: Define HAVE_LINUX_BTRACE.
14212 * config.in: Regenerated.
14213 * configure: Regenerated.
14214
5cc22e4c
MM
142152013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14216
14217 * server.c (handle_qxfer): Preserve error message if -3 is
14218 returned.
14219 (qxfer): Document the -3 return value.
14220
7c97f91e
MM
142212013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14222
14223 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14224 (linux_btrace_h): New variable.
14225 (linux-btrace.o): New rule.
14226
be9a119c 142272013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14228 Hafiz Abid Qadeer <abidh@codesourcery.com>
14229
14230 * tracepoint.c (trace_buffer_size): New global.
14231 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14232 (init_trace_buffer): Change to one-argument function. Allocate
14233 trace buffer memory.
14234 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14235 handle QTBuffer:size packet.
14236 (cmd_bigqtbuffer_size): New function.
14237 (initialize_tracepoint): Call init_trace_buffer with
14238 DEFAULT_TRACE_BUFFER_SIZE.
14239 * server.c (handle_query): Add QTBuffer:size in the
14240 supported packets.
14241
e64f7499
YQ
142422013-03-07 Yao Qi <yao@codesourcery.com>
14243
14244 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14245 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14246 of -1.
14247 (cmd_qtsp): Adjust condition. Do post increment.
14248 Set cur_action and cur_step_action back to 0.
14249
f0ae6fc3
PA
142502013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14251
14252 PR server/15236
14253 * linux-low.c (linux_write_memory): Return early success if LEN is
14254 zero.
14255
b5b0b0af
CV
142562013-03-05 Corinna Vinschen <vinschen@redhat.de>
14257
334ad4a8 14258 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14259
589bc927
TT
142602013-02-28 Tom Tromey <tromey@redhat.com>
14261
14262 * configure.ac: Invoke AC_SYS_LARGEFILE.
14263 * configure, config.in: Rebuild.
14264
dfe07582
CV
142652013-02-28 Corinna Vinschen <vinschen@redhat.com>
14266
14267 * win32-low.c: Throughout, fix format strings and casts of
14268 printf-like functions to avoid type related warnings on all
14269 platforms.
14270 (get_child_debug_event): Print dwDebugEventCode as hex since
14271 that's how it's usually documented.
14272
736cd585
YQ
142732013-02-28 Yao Qi <yao@codesourcery.com>
14274
14275 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14276 pulongest.
14277
e1f58301
JW
142782013-02-27 Jiong Wang <jiwang@tilera.com>
14279
14280 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14281 (reg-tilegx32.c): New rule.
14282 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14283 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14284 different register info initializer according to elf class.
14285 (init_registers_tilgx32): New function. The tilegx32 register info
14286 initializer.
14287 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14288 (tile_store_gregset): Likewise.
14289
d171ca78
YQ
142902013-02-27 Yao Qi <yao@codesourcery.com>
14291
14292 * server.c (process_point_options): Print debug message when
14293 debug_threads is true.
14294
282bbdf3
YQ
142952013-02-26 Yao Qi <yao@codesourcery.com>
14296
14297 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14298
aca22551
PA
142992013-02-19 Pedro Alves <palves@redhat.com>
14300 Kai Tietz <ktietz@redhat.com>
14301
14302 PR gdb/15161
14303
14304 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14305 instead of strtoul to extract address from packet.
14306 (process_serial_event) <'z'>: Likewise.
14307
4f3cee1c
YQ
143082013-02-18 Yao Qi <yao@codesourcery.com>
14309
14310 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14311
8e1d55a3
PA
143122013-02-14 Pedro Alves <palves@redhat.com>
14313
14314 Plug memory leak.
14315
14316 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14317 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14318
458820da
PA
143192013-02-14 Pedro Alves <palves@redhat.com>
14320
14321 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14322
baea0dae
PA
143232013-02-14 Pedro Alves <palves@redhat.com>
14324
14325 * tracepoint.c (save_string): Delete.
14326 (add_tracepoint_action): Use savestring instead of save_string.
14327
0b1afbb3
PA
143282013-02-12 Pedro Alves <palves@redhat.com>
14329
14330 * linux-xtensa-low.c: Ditto.
14331 * xtensa-xtregs.c: Ditto.
14332
8a4ac37e
PA
143332013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14334
14335 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14336 thread_db.
14337
148de6bb
MS
143382013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14339
14340 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14341 aarch64_num_wp_regs and aarch64_num_bp_regs to
14342 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14343
55fac6e0
MS
143442013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14345
14346 * linux-aarch64-low.c (ps_get_thread_area): Replace
14347 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14348
176eb98c
MS
143492013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14350 Marcus Shawcroft <marcus.shawcroft@arm.com>
14351 Nigel Stephens <nigel.stephens@arm.com>
14352 Yufeng Zhang <yufeng.zhang@arm.com>
14353
14354 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14355 (aarch64.c, aarch64-without-fpu.c): New targets.
14356 * configure.srv (aarch64*-*-linux*): New.
14357 * linux-aarch64-low.c: New file.
14358
56f7af9c
MS
143592013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14360
43aaf8b6 14361 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14362 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14363 (dequeue_one_deferred_signal, linux_resume_one_thread)
14364 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14365 (linux_tracefork_grandchild, linux_test_for_tracefork)
14366 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14367 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14368 where the argument is 0.
14369
60f662b0
YQ
143702013-01-25 Yao Qi <yao@codesourcery.com>
14371
14372 * event-loop.c: Include "queue.h".
14373 (gdb_event_p): New typedef.
14374 (struct gdb_event) <next_event>: Remove.
14375 (event_queue): Change to QUEUE(gdb_event_p).
14376 (async_queue_event): Remove.
14377 (gdb_event_xfree): New.
14378 (initialize_event_loop): New.
14379 (process_event): Use API from QUEUE.
14380 (wait_for_event): Likewise.
14381 * server.c (main): Call initialize_event_loop.
14382 * server.h (initialize_event_loop): Declare.
14383
5ae4861a
YQ
143842013-01-18 Yao Qi <yao@codesourcery.com>
14385
14386 * ax.h (struct eval_agent_expr_context): New.
14387 (gdb_eval_agent_expr): Update declaration.
14388 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14389 TFRAME. Add new argument CTX.
14390 * server.h (struct eval_agent_expr_context): Declare.
14391 (agent_mem_read, agent_tsv_read): Update declaration.
14392 (agent_mem_read_string): Likewise.
14393 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14394 (add_traceframe_block): Add new argument TPOINT.
14395 Increase TPOINT->traceframe_usage.
14396 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14397 eval_tracepoint_agent_expr.
14398 (condition_true_at_tracepoint): Likewise.
14399 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14400 (agent_mem_read_string, agent_tsv_read): Likewise.
14401
85e00e85
YQ
144022013-01-16 Yao Qi <yao@codesourcery.com>
14403
14404 * linux-low.c (linux_resume_one_lwp): Don't check
14405 'lwp->bp_reinsert != 0'.
14406
4039cf45
JB
144072013-01-07 Joel Brobecker <brobecker@adacore.com>
14408 Pedro Alves <palves@redhat.com>
14409
14410 * lynx-low.c (ptrace_request_to_str): Define a temporary
14411 macro and use it to simplify this function's implementation.
14412
9044dee2
JB
144132013-01-07 Joel Brobecker <brobecker@adacore.com>
14414
14415 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14416 sets errno.
14417
e6352c8f
JB
144182013-01-07 Joel Brobecker <brobecker@adacore.com>
14419
14420 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14421
50681a27
JB
144222013-01-07 Joel Brobecker <brobecker@adacore.com>
14423
14424 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14425
3f6e77ef
JB
144262013-01-07 Joel Brobecker <brobecker@adacore.com>
14427
14428 * lynx-low.c (lynx_resume): Use the resume_info parameter
14429 to determine the ptid for the lynx_ptrace call, unless
14430 it is equal to minus_one_ptid, in which case we use the
14431 ptid of the current_inferior.
14432 (lynx_wait_1): After having received a thread create/exit
14433 event, resume the inferior's execution using the signaling
14434 thread's ptid, rather than the old ptid.
14435
7fda33ae
JB
144362013-01-07 Joel Brobecker <brobecker@adacore.com>
14437
14438 * lynx-low.c (lynx_resume): Delete variable ret.
14439
b9786c74
JB
144402013-01-01 Joel Brobecker <brobecker@adacore.com>
14441
14442 * gdbreplay.c (gdbreplay_version): Update copyright year.
14443 * server.c (gdbserver_version): Likewise.
14444
8b93d60f
JB
144452012-12-17 Joel Brobecker <brobecker@adacore.com>
14446
14447 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14448 new thread.
14449
037335a7
JB
144502012-12-17 Joel Brobecker <brobecker@adacore.com>
14451
14452 * lynx-low.c (ptrace_request_to_str): Add handling for
14453 PTRACE_GETTRACESIG.
14454
52d4cbd8
JB
144552012-12-17 Joel Brobecker <brobecker@adacore.com>
14456
14457 * lynx-low.c (lynx_attach): Delete variable new_process.
14458
ab8f6ca9
JB
144592012-12-17 Joel Brobecker <brobecker@adacore.com>
14460
14461 * lynx-low.c (lynx_create_inferior): Delete variable
14462 new_process.
14463
78cbc024
JB
144642012-12-17 Joel Brobecker <brobecker@adacore.com>
14465
14466 * lynx-low.c (ptrace_request_to_str): Do not handle
14467 PTRACE_GETTHREADLIST if this macro does not exist.
14468
14a00470
YQ
144692012-12-15 Yao Qi <yao@codesourcery.com>
14470
14471 * Makefile.in (OBS): Add notif.o.
14472 * notif.c, notif.h: New.
14473 * server.c: Include "notif.h".
14474 (struct vstop_notif) <next>: Remove.
14475 <base>: New field.
14476 (queue_stop_reply): Update.
14477 (push_event, send_next_stop_reply): Remove.
14478 (discard_queued_stop_replies): Update.
14479 (notif_stop): New variable.
14480 (handle_v_stopped): Remove.
14481 (handle_v_requests): Don't call handle_v_stopped. Call
14482 handle_ack_notif instead.
14483 (queue_stop_reply_callback): Call notif_event_enque instead
14484 of queue_stop_reply.
14485 (handle_status): Don't call send_next_stop_reply, call
14486 notif_write_event instead.
14487 (kill_inferior_callback): Likewise.
14488 (detach_or_kill_inferior_callback): Likewise.
14489 (main): Call initialize_notif.
14490 (process_serial_event): Call QUEUE_is_empty.
14491 (handle_target_event): Call notif_push instead of push event.
14492 * server.h (push_event): Remove declaration.
14493
61c125b9
TT
144942012-12-10 Tom Tromey <tromey@redhat.com>
14495
14496 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14497 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14498 macros.
14499 (.c.o): Rewrite.
14500 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14501 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14502 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14503 (amd64-linux-ipa.o, ax.o): Rewrite.
14504 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14505 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14506 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14507 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14508 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14509 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14510 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14511 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14512 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14513 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14514 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14515 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14516 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14517 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14518 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14519 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14520 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14521 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14522 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14523 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14524 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14525 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14526 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14527 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14528 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14529 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14530 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14531 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14532 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14533 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14534 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14535 (reg-tilegx.o): Remove.
14536 (all_object_files): New macro.
14537 Include .deps files.
14538 * aclocal.m4, configure: Rebuild.
14539 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14540 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14541 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14542
e90e9ad9
TT
145432012-12-05 Tom Tromey <tromey@redhat.com>
14544
14545 PR gdb/14917:
14546 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14547
02d403bf 145482012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14549
14550 * configure.ac: Check for linux/perf_event.h.
14551 * config.in: Regenerated.
14552 * configure: Regenerated.
14553
0270a750
PA
145542012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14555
14556 * hostio.c (handle_readlink): Decrease buffer size
14557 parameter passed to readlink by one byte.
14558
8c29b58e
YQ
145592012-11-26 Yao Qi <yao@codesourcery.com>
14560
14561 * configure.ac (build_warnings): Append '-Wempty-body'.
14562 * configure: Regenerated.
14563 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14564 body.
14565
8bdce1ff
PM
145662012-11-15 Pierre Muller <muller@sourceware.org>
14567
14568 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14569 * config.in: Regenerate.
14570 * configure: Regenerate.
14571 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14572 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14573 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14574 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14575 header.
14576 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14577 instead of <sys/wait.h> header.
14578 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14579
02d403bf 145802012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14581
14582 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14583 (various make rules): Remove -DGDBSERVER
14584
fbd5db48
YQ
145852012-11-09 Yao Qi <yao@codesourcery.com>
14586
14587 * spu-low.c (current_ptid): Move it to ..
14588 * gdbthread.h: ... here. New.
14589 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14590 * server.c (myresume, process_serial_event): Likewise.
14591 * thread-db.c (thread_db_find_new_threads): Likewise.
14592 * tracepoint.c (run_inferior_command): Likewise.
14593
b3dc46ff
AB
145942012-10-01 Andrew Burgess <aburgess@broadcom.com>
14595
14596 * server.c (handle_search_memory_1): Include access length in
14597 warning message.
14598
07c04788
HPN
145992012-09-05 Michael Brandt <michael.brandt@axis.com>
14600
14601 * linux-crisv32-low.c: Fix compile errors.
14602
918d227b
YQ
146032012-09-04 Yao Qi <yao@codesourcery.com>
14604
14605 * tracepoint.c (cmd_qtsv): Adjust debug message.
14606 Don't check CUR_TPOINT.
14607
18c1b81a
YQ
146082012-08-28 Yao Qi <yao@codesourcery.com>
14609
14610 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14611 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14612 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14613 Remove declarations of xmalloc, xreallloc, xstrdup and
14614 freeargv.
14615 * Makefile.in (libiberty_h): New.
14616 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14617 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14618
dc82f37b
YQ
146192012-08-23 Yao Qi <yao@codesourcery.com>
14620
14621 * server.h: Remove declaration of 'xsnprintf'.
14622
406b1477
KS
146232012-08-22 Keith Seitz <keiths@redhat.com>
14624
14625 * server.h: Include build-gnulib-gbserver/config.h.
14626 * gdbreplay.c: Likewise.
14627
e6712ff1
DE
146282012-08-08 Doug Evans <dje@google.com>
14629
14630 * Makefile.in (SFILES): Add gdb_vecs.c.
14631 (OBS): Add gdb_vecs.o.
14632 (gdb_vecs_h, host_defs_h): New variables.
14633 (thread-db.o): Add $(gdb_vecs_h) dependency.
14634 (gdb_vecs.o): New rule.
14635 * thread-db.c: #include "gdb_vecs.h".
14636 (thread_db_load_search): Use a vector to iterate over path elements.
14637 Handle text appearing after "$pdir".
14638
14639 * configure.ac: Add check for strstr.
14640 * config.in: Regenerate.
14641 * configure: Regenerate.
14642
7c3270ae
UW
146432012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14644
14645 * hostio.c (handle_pread): If pread fails, fall back to attempting
14646 lseek/read.
14647 (handle_pwrite): Likewise for pwrite.
14648
b62e2b27
UW
146492012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14650
14651 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14652 between unsupported TYPE and unimplementable ADDR/LEN combination.
14653 (arm_insert_point): Act on new return value.
14654
78a99e91
PA
146552012-07-31 Pedro Alves <palves@redhat.com>
14656
14657 * server.c (process_point_options): Only skip tokens if we find
14658 one that is unrecognized. Don't treat 'X' specially while
14659 skipping unrecognized tokens.
14660
fcf303ab
UW
146612012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14662
14663 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14664 to 4-byte-align HW breakpoint addresses for Thumb.
14665
7255706c
YQ
146662012-07-27 Yao Qi <yao@codesourcery.com>
14667
14668 PR remote/14161.
14669
14670 * server.h: Declare gdb_agent_about_to_close.
14671 * target.c (kill_inferior): Include "agent.h".
14672 New. Send command 'kill'.
14673 * target.h (kill_inferior): Removed macro.
14674 * tracepoint.c (gdb_agent_about_to_close): New.
14675 (gdb_agent_helper_thread): Handle command 'close'.
14676 Wait endlessly until the inferior stops.
14677 Install gdb_agent_remove_socket to atexit hook.
14678 (agent_socket_name): New static variable.
14679 (gdb_agent_socket_init): Replace local variable 'name' with
14680 'agent_socket_name'.
14681 (gdb_agent_remove_socket): New.
14682
5a3f286f
YQ
146832012-07-27 Yao Qi <yao@codesourcery.com>
14684
14685 * server.c (process_point_options): Stop at 'X' when parsing.
14686
961bd387
ME
146872012-07-19 Michael Eager <eager@eagercon.com>
14688
a261b8f5 14689 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
14690 to hw_execute.
14691 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14692 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14693 hardware breakpoint.
14694
aa7c7447
JK
146952012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14696
14697 * gdbserver/linux-low.c (initialize_low): Call
14698 linux_ptrace_init_warnings.
14699
7f216e7c
DE
147002012-07-02 Doug Evans <dje@google.com>
14701
14702 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14703 pointer to int.
14704
d3ce09f5
SS
147052012-07-02 Stan Shebs <stan@codesourcery.com>
14706
14707 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14708 (ax.o): Add it to build rule.
14709 (ax-ipa.o): Ditto.
14710 (OBS): Add format.o.
14711 (IPA_OBS): Add format.o.
14712 * server.c (handle_query): Claim support for breakpoint commands.
14713 (process_point_options): Add command case.
14714 (process_serial_event): Leave running if there are printfs in
14715 effect.
14716 * mem-break.h (any_persistent_commands): Declare.
14717 (add_breakpoint_commands): Declare.
14718 (gdb_no_commands_at_breakpoint): Declare.
14719 (run_breakpoint_commands): Declare.
14720 * mem-break.c (struct point_command_list): New struct.
14721 (struct breakpoint): New field command_list.
14722 (any_persistent_commands): New function.
14723 (add_commands_to_breakpoint): New function.
14724 (add_breakpoint_commands): New function.
14725 (gdb_no_commands_at_breakpoint): New function.
14726 (run_breakpoint_commands): New function.
14727 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14728 locally.
14729 * ax.c: Include format.h.
14730 (ax_printf): New function.
14731 (gdb_eval_agent_expr): Add printf opcode.
14732
2f8f6aed
YQ
147332012-06-13 Yao Qi <yao@codesourcery.com>
14734
14735 * server.c (start_inferior): Remove duplicated writes to fields
14736 'last_resume_kind' and 'last_status' of 'current_inferior'.
14737
0c9070b3
YQ
147382012-06-12 Yao Qi <yao@codesourcery.com>
14739 Pedro Alves <palves@redhat.com>
14740
14741 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14742 comment.
14743 * server.c (handle_v_cont): Extend comment.
14744
c52daf70
YQ
147452012-06-11 Yao Qi <yao@codesourcery.com>
14746
14747 * linux-low.c (linux_attach): Add 'static'.
14748
d38bbb0a
YQ
147492012-06-06 Yao Qi <yao@codesourcery.com>
14750
14751 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14752
89dc0afd
JK
147532012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14754
14755 Fix gcc -flto compilation warning.
14756 * server.c (main): Make variable multi_mode and attach volatile.
14757
75f62ce7
TJB
147582012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14759
14760 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14761 if the platform doesn't know about it.
14762
65f479b6
PA
147632012-05-30 Jeff Kenton <jkenton@tilera.com>
14764
14765 * Makefile.in (SFILES): Add linux-tile-low.c.
14766 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14767 * configure.srv: Handle tilegx-*-linux*.
14768 * linux-tile-low.c: New file.
14769
0c5bf5a9
JK
147702012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14771
14772 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14773
a493e3e2
PA
147742012-05-24 Pedro Alves <palves@redhat.com>
14775
14776 PR gdb/7205
14777
43aaf8b6 14778 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 14779
2ea28649
PA
147802012-05-24 Pedro Alves <palves@redhat.com>
14781
14782 PR gdb/7205
14783
14784 Replace target_signal with gdb_signal throughout.
14785
8d409d16
MR
147862012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14787
14788 * linux-low.c (linux_store_registers): Avoid the copying sequence
14789 when no data has been retrieved by ptrace.
14790
23512c01
MGD
147912012-05-22 Will Deacon <will.deacon@arm.com>
14792
14793 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14794 Include asm/ptrace.h.
14795 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14796 already defined.
14797
4934b29e
MR
147982012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14799
14800 * linux-low.c (linux_store_registers): Don't re-retrieve data
14801 with ptrace that has already been obtained from /proc. Always
14802 copy any data retrieved with ptrace to the buffer supplied.
14803
bde24c0a
PA
148042012-05-11 Yao Qi <yao@codesourcery.com>
14805 Pedro Alves <palves@redhat.com>
14806
14807 * linux-low.c (enum stopping_threads_kind): New.
14808 (stopping_threads): Change type to `enum stopping_threads_kind'.
14809 (handle_extended_wait): If stopping and suspending threads, leave
14810 the new_lwp suspended too.
14811 (linux_wait_for_event): Adjust.
14812 (stop_all_lwps): Set `stopping_threads' to
14813 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14814 whether we're suspending threads or just stopping them. Assert no
14815 recursion happens.
14816
623b6bdf
YQ
148172012-04-29 Yao Qi <yao@codesourcery.com>
14818
14819 * server.h: Move some code to ...
14820 * gdbthread.h: ... here. New.
14821 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14822 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14823 (nto-low.o, win32-low.o): Likewise.
14824 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14825 * regcache.c, remote-utils.c, server.c: Likewise.
14826 * target.c, tracepoint.c, win32-low.c: Likewise.
14827
f15f9948
TJB
148282012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14829
14830 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14831 (PTRACE_ARG4_TYPE): Likewise.
14832 (PTRACE_XFER_TYPE): Likewise.
14833 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14834 ptrace to PTRACE_ARG3_TYPE.
14835 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14836 (PTRACE_ARG4_TYPE): Likewise.
14837 (PTRACE_XFER_TYPE): Likewise.
14838 (linux_detach_one_lwp): Cast fourth argument of
14839 ptrace to long then PTRACE_ARG4_TYPE.
14840 (regsets_fetch_inferior_registers): Cast third argument of
14841 ptrace to long then PTRACE_ARG3_TYPE.
14842 (regsets_store_inferior_registers): Likewise.
14843
38ea300a
PA
148442012-04-20 Pedro Alves <palves@redhat.com>
14845
14846 * configure: Regenerate.
14847
c971b7fa
PA
148482012-04-19 Pedro Alves <palves@redhat.com>
14849
43aaf8b6 14850 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 14851 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
14852 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14853 (all, install-only, uninstall, clean-info, all-lib, clean): No
14854 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14855 (maintainer-clean realclean distclean): Use subdir_do.
14856 (subdir_do): New.
14857 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 14858 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
14859 * acinclude.m4: Include acx_configure_dir.m4.
14860 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14861 calls. Call AC_PROG_RANLIB. Configure gnulib using
14862 ACX_CONFIGURE_DIR.
14863 (GNULIB): New.
14864 (GNULIB_STDINT_H): Adjust.
14865 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14866 * gdbreplay.c: Include build-gnulib/config.h.
14867 * server.h: Likewise.
14868 * aclocal.m4: Regenerate.
14869 * config.in: Regenerate.
14870 * configure: Regenerate.
c971b7fa 14871
809277f8
PA
148722012-04-19 Pedro Alves <palves@redhat.com>
14873
14874 * Makefile.in (LIBGNU, INCGNU): Adjust.
14875 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14876 (all, install-only, uninstall, clean-info, all-lib, clean)
14877 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14878 * configure.ac: Adjust AC_OUTPUT output.
14879 * aclocal.m4: Regenerate.
14880 * configure: Regenerate.
14881
fd9bb8b8
PA
148822012-04-19 Pedro Alves <palves@redhat.com>
14883
14884 * Makefile.in (generated_files): New.
14885 (server_h): Remove the explicit dependency on config.h, and depend
14886 on $generated_files.
14887
1c298c66
PA
148882012-04-19 Pedro Alves <palves@redhat.com>
14889
14890 * Makefile.in (INCGNU): Add -Ignulib.
14891
57c4b50b
PA
148922012-04-19 Pedro Alves <palves@redhat.com>
14893
14894 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14895 (INCGNU): ... this, and spell out -I here.
14896 (GNULIB_LIB): Rename to ...
14897 (LIBGNU): ... this.
14898 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14899
1030e047
PA
149002012-04-19 Pedro Alves <palves@redhat.com>
14901
14902 * config.in: Regenerate.
14903
447d4319
PA
149042012-04-19 Pedro Alves <palves@redhat.com>
14905
14906 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14907 * server.h (memmem): Remove declaration.
14908 * config.in: Regenerate.
14909 * configure: Regenerate.
14910
aad9eab9
YQ
149112012-04-19 Yao Qi <yao@codesourcery.com>
14912
14913 * Makefile.in (SFILES): Add common/vec.c.
14914 (OBS): Add vec.o.
14915 (vec.o): New rule.
14916
3e10640f
YQ
149172012-04-19 Yao Qi <yao@codesourcery.com>
14918
14919 * remote-utils.c (prepare_resume_reply): Replace with macro
14920 target_core_of_thread.
14921 * server.c (handle_qxfer_threads_proper): Likewise.
14922 * target.h (traget_core_of_thread): New macro.
14923
71622373
PA
149242012-04-18 Pedro Alves <palves@redhat.com>
14925
14926 * aclocal.m4: Regenerate.
14927 * configure: Regenerate.
14928
80d26939
YQ
149292012-04-16 Yao Qi <yao@codesourcery.com>
14930
14931 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
14932 duplicated on address.
14933
42476b70
YQ
149342012-04-16 Yao Qi <yao@codesourcery.com>
14935
14936 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
14937 (struct tracepoint_action_ops) <send>: New field.
14938 (m_tracepoint_action_send, r_tracepoint_action_send): New.
14939 (agent_expr_send, x_tracepoint_action_send): New.
14940 (l_tracepoint_action_send): New.
14941 (cmd_qtdp): Download and install tracepoint
14942 according to `use_agent'.
14943 (run_inferior_command): Add one more parameter `len'.
14944 Update callers.
14945 (tracepoint_send_agent): New.
14946 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
14947
7bc83639
YQ
149482012-04-16 Yao Qi <yao@codesourcery.com>
14949
14950 * tracepoint.c (download_tracepoints): Moved to ...
14951 (cmd_qtstart): ... here.
14952
5f18041e
YQ
149532012-04-14 Yao Qi <yao@codesourcery.com>
14954
14955 * tracepoint.c: Include inttypes.h.
14956 (struct collect_memory_action): Use sized types.
14957 (struct tracepoint): Likewise.
14958 (cmd_qtdp, stop_tracing): Update print specifiers.
14959 (cmd_qtp, response_tracepoint): Likewise.
14960 (collect_data_at_tracepoint): Likewise.
14961 (collect_data_at_step): Likewise.
14962
55a8c076
YQ
149632012-04-14 Yao Qi <yao@codesourcery.com>
14964
14965 Import gnulib module inttypes.
14966 * aclocal.m4, config.in, configure: Regenerated.
14967
dc750257
YQ
149682012-04-14 Yao Qi <yao@codesourcery.com>
14969
14970 * Makefile.in (maintainer-clean, realclean, distclean): Remove
14971 Makefile and config.status at last.
14972
0ab5faf9
YQ
149732012-04-13 Yao Qi <yao@codesourcery.com>
14974
14975 * tracepoint.c: Include stdint.h unconditionally.
14976
18f5fd81
TJB
149772012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14978
14979 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
14980 on BFD_HAVE_SYS_PROCFS_TYPE.
14981 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
14982 * configure: Regenerate.
14983 * config.in: Likewise.
14984
4d47af5c
L
149852012-04-13 H.J. Lu <hongjiu.lu@intel.com>
14986
14987 * Makefile.in (clean): Also remove x32.c x32-linux.c
14988 x32-avx.c x32-avx-linux.c.
14989 (x32.o): New target.
14990 (x32.c): Likewise.
14991 (x32-linux.o): Likewise.
14992 (x32-linux.c): Likewise.
14993 (x32-avx.o): Likewise.
14994 (x32-avx.c): Likewise.
14995 (x32-avx-linux.o): Likewise.
14996 (x32-avx-linux.c): Likewise.
14997
14998 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
14999 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15000 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15001 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15002 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15003 i386/x32-avx-linux.xml.
15004
15005 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15006 (init_registers_x32_avx_linux): Likwise.
15007 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15008 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15009
ecedbe58
PA
150102012-04-13 Pedro Alves <palves@redhat.com>
15011
15012 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15013 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15014 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15015 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15016 the sub-make.
15017
c92b5177
L
150182012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15019
15020 * linux-x86-low.c (compat_x32_clock_t): New.
15021 (compat_x32_siginfo_t): Likewise.
15022 (compat_x32_siginfo_from_siginfo): Likewise.
15023 (siginfo_from_compat_x32_siginfo): Likewise.
15024 (linux_is_elf64): Likewise.
15025 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15026 and siginfo_from_compat_x32_siginfo for x32.
15027 (x86_arch_setup): Set linux_is_elf64.
15028
214d508e
L
150292012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15030
15031 PR gdb/13969
15032 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15033 e_machine field.
15034 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15035 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15036 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15037 compatible with process.
15038
c9a1864a
YQ
150392012-04-12 Yao Qi <yao@codesourcery.com>
15040
15041 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15042 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15043 (install-only, install-info, clean): Handle sub dir gnulib.
15044 (all-lib, am--refresh): New targets.
15045 (memmem.o): Remove target.
15046 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15047 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15048 (AC_REPLACE_FUNCS): Remove memmem.
15049 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15050 (AC_OUTPUT): Generate Makefile in gnulib/.
15051 * aclocal.m4, config.in, configure: Regenerated.
15052
367ba2c2
MR
150532012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15054
15055 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15056
9d236627
PA
150572012-04-05 Pedro Alves <palves@redhat.com>
15058
15059 -Werror=strict-aliasing
15060
15061 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15062 pointer.
15063
111217b3
PA
150642012-04-04 Pedro Alves <palves@redhat.com>
15065
15066 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15067 (sparc_store_gregset_from_stack, sparc_store_gregset)
15068 (sparc_breakpoint_at): Fix formatting.
15069
8365dcf5
TJB
150702012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15071
15072 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15073 are available.
15074 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15075 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15076 * config.in: Regenerate.
15077 * configure: Likewise.
15078
689cc2ae
PA
150792012-03-29 Pedro Alves <palves@redhat.com>
15080
15081 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15082 Correct ptrace arguments.
15083
c14dfd32
PA
150842012-03-28 Pedro Alves <palves@redhat.com>
15085
15086 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15087 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15088 (IA64_FR1_REGNUM): New defines.
15089 (ia64_fetch_register): New.
15090 (the_low_target): Install it.
15091 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15092 field.
15093 * linux-low.c (linux_fetch_registers): Try the
15094 the_low_target.fetch_register hook first.
15095
15096 * linux-arm-low.c (the_low_target): Adjust.
15097 * linux-bfin-low.c (the_low_target): Adjust.
15098 * linux-cris-low.c (the_low_target): Adjust.
15099 * linux-crisv32-low.c (the_low_target): Adjust.
15100 * linux-m32r-low.c (the_low_target): Adjust.
15101 * linux-m68k-low.c (the_low_target): Adjust.
15102 * linux-mips-low.c (the_low_target): Adjust.
15103 * linux-ppc-low.c (the_low_target): Adjust.
15104 * linux-s390-low.c (the_low_target): Adjust.
15105 * linux-sh-low.c (the_low_target): Adjust.
15106 * linux-sparc-low.c (the_low_target): Adjust.
15107 * linux-tic6x-low.c (the_low_target): Adjust.
15108 * linux-x86-low.c (the_low_target): Adjust.
15109 * linux-xtensa-low.c (the_low_target): Adjust.
15110
63c88e13
PA
151112012-03-26 Pedro Alves <palves@redhat.com>
15112
15113 * server.c (handle_qxfer_libraries): Don't bail early if
15114 the_target->qxfer_libraries_svr4 is not NULL.
15115
fb723180
PA
151162012-03-26 Pedro Alves <palves@redhat.com>
15117
15118 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15119
0afae3cf
PA
151202012-03-23 Pedro Alves <palves@redhat.com>
15121
15122 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15123 "library-list-svr4" element's start tag when the the DSO list is
15124 empty.
15125
485f1ee4
PA
151262012-03-23 Pedro Alves <palves@redhat.com>
15127
15128 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15129 a variable whose type size is the same as the inferior's pointer
15130 size.
15131
a5362b9a
TS
151322012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15133
15134 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15135 struct siginfo.
15136 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15137 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15138 * linux-low.h: Include <signal.h>.
15139 (struct siginfo): Remove forward declaration.
15140 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15141 struct siginfo.
15142
d226c142
MF
151432012-03-21 Mike Frysinger <vapier@gentoo.org>
15144
15145 * .gitignore: Ignore more files.
15146
122f36ef
PA
151472012-03-19 Pedro Alves <palves@redhat.com>
15148 Jan Kratochvil <jan.kratochvil@redhat.com>
15149
15150 * server.c (cont_thread, general_thread): Add describing comments.
15151 (start_inferior): Clear `cont_thread'.
15152 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15153 of a process.
15154
fc3e5175
YQ
151552012-03-15 Yao Qi <yao@codesourcery.com>
15156
15157 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15158 handling to ...
15159 (cmd_qtdp): ... here.
15160
8d0d92cd
YQ
151612012-03-15 Yao Qi <yao@codesourcery.com>
15162
15163 * tracepoint.c (struct tracepoint_action_ops): New.
15164 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15165 (m_tracepoint_action_download): New.
15166 (r_tracepoint_action_download): New.
15167 (x_tracepoint_action_download): New.
15168 (l_tracepoint_action_download): New.
15169 (add_tracepoint_action): Install `action->ops' according type.
15170 (download_tracepoint_1): Move code `download' function pointer
15171 of various tracepoint_action_ops.
15172
87b0bb13
JK
151732012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15174
15175 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15176 linux_ptrace_attach_warnings.
15177
5f572dec
JK
151782012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15179
15180 * Makefile.in (linux-ptrace.o): New.
15181 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15182 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15183 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15184 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15185 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15186 of these targets.
15187 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15188
f4647387
YQ
151892012-03-08 Yao Qi <yao@codesourcery.com>
15190 Pedro Alves <palves@redhat.com>
15191
15192 Fix PR server/13392.
15193 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15194 offset of JMP insn.
15195 * tracepoint.c (remove_tracepoint): New.
15196 (cmd_qtdp): Call remove_tracepoint when failed to install.
15197
9b224c5e
PA
151982012-03-07 Pedro Alves <palves@redhat.com>
15199
15200 * linux-low.c (get_detach_signal): New.
15201 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15202 Pass on pending signals to PTRACE_DETACH. Check the result of the
15203 ptrace call.
15204 * server.c (program_signals, program_signals_p): New.
15205 (handle_general_set): Handle QProgramSignals.
15206 * server.h (program_signals, program_signals_p): Declare.
15207
e237a7e2
JK
152082012-03-05 Pedro Alves <palves@redhat.com>
15209 Jan Kratochvil <jan.kratochvil@redhat.com>
15210
15211 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15212 New comment why.
15213
5808517f
YQ
152142012-03-03 Yao Qi <yao@codesourcery.com>
15215
15216 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15217 agent_look_up_symbols.
15218
58b4daa5
YQ
152192012-03-03 Yao Qi <yao@codesourcery.com>
15220
15221 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15222 (linux-x86-low.o): Likewise.
15223 * server.h: Remove in_process_agent_loaded.
15224 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15225 common/agent.c.
15226 Update callers.
15227
8ffcbaaf
YQ
152282012-03-03 Yao Qi <yao@codesourcery.com>
15229
15230 * tracepoint.c (gdb_agent_capability): New global.
15231 (in_process_agent_loaded_ust): Renamed to
15232 `in_process_agent_supports_ust'.
15233 Update callers.
15234 (in_process_agent_supports_ust): Call agent_capability_check.
15235 (clear_installed_tracepoints): Assert that agent supports
15236 agent.
15237
d1feda86
YQ
152382012-03-03 Yao Qi <yao@codesourcery.com>
15239
15240 * linux-low.c (linux_supports_agent): New.
15241 (linux_target_ops): Initialize field `supports_agent' with
15242 linux_supports_agent.
15243 * target.h (struct target_ops) <supports_agent>: New.
15244 (target_supports_agent): New macro.
15245 * server.c (handle_general_set): Handle packet 'QAgent'.
15246 (handle_query): Send `QAgent+'.
15247 * Makefile.in (server.o): Depends on agent.h.
15248
2fa291ac
YQ
152492012-03-03 Yao Qi <yao@codesourcery.com>
15250
15251 * Makefile.in (OBS): Add agent.o.
15252 Add new rule for agent.o.
15253 Track dependence of tracepoint.c on agent.h.
15254 * tracepoint.c (run_inferior_command_1):
15255 (run_inferior_command): Call agent_run_command.
15256 (gdb_ust_connect_sync_socket): Deleted. Move it to
15257 common/agent.c.
15258 (resume_thread, stop_thread): Likewise.
15259 (gdb_ust_socket_init): Renamed to ...
15260 (gdb_agent_socket_init): ... New.
15261 (gdb_ust_thread): Renamed to ...
15262 (gdb_agent_helper_thread): ... New.
15263 (gdb_ust_init): Move some code to ...
15264 (gdb_agent_init): ... here. New.
15265 [HAVE_UST]: Call gdb_ust_init.
15266 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15267 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15268 * config.in, configure: Regenerated.
15269
05044653
PA
152702012-03-02 Pedro Alves <palves@redhat.com>
15271
15272 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15273 * linux-low.c (struct simple_pid_list): New.
15274 (stopped_pids): New a struct simple_pid_list pointer.
15275 (add_to_pid_list, pull_pid_from_list): New.
15276 (handle_extended_wait): Don't assume the first signal new children
15277 report is SIGSTOP. Adjust call to pull_pid_from_list.
15278 (linux_wait_for_lwp): Adjust.
15279
8d00225b
YQ
152802012-03-02 Yao Qi <yao@codesourcery.com>
15281
15282 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15283 debug log.
15284
19560ba5
YQ
152852012-03-02 Yao Qi <yao@codesourcery.com>
15286
15287 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15288 `stop_pc' and `tpoint'. Update caller.
15289
1faeff08
MR
152902012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15291
15292 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15293 * linux-low.c (use_linux_regsets): New macro.
15294 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15295 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15296 (linux_register_in_regsets): New function.
15297 (usr_fetch_inferior_registers): Skip registers covered by
15298 regsets.
15299 (usr_store_inferior_registers): Likewise.
15300 (usr_fetch_inferior_registers): New macro.
15301 (usr_store_inferior_registers): Likewise.
15302 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15303 (linux_store_registers): Likewise.
15304 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15305 prototype.
15306 (init_registers_mips64_dsp_linux): Likewise.
15307 (init_registers_mips_linux): New macro.
15308 (init_registers_mips_dsp_linux): Likewise.
15309 (mips_dsp_num_regs): Likewise.
15310 (DSP_BASE, DSP_CONTROL): New fallback macros.
15311 (mips_base_regs): New macro.
15312 (mips_regmap): Use it. Fix the size.
15313 (mips_dsp_regmap): New variable.
15314 (mips_dsp_regset_bitmap): Likewise.
15315 (mips_arch_setup): New function.
15316 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15317 than mips_regmap.
15318 (mips_cannot_store_register): Likewise.
15319 (the_low_target): Update .arch_setup, .num_regs and .regmap
15320 initializers. Add .regset_bitmap initializer.
15321 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15322 initializer.
15323 * linux-bfin-low.c (the_low_target): Likewise.
15324 * linux-cris-low.c (the_low_target): Likewise.
15325 * linux-crisv32-low.c (the_low_target): Likewise.
15326 * linux-ia64-low.c (the_low_target): Likewise.
15327 * linux-m32r-low.c (the_low_target): Likewise.
15328 * linux-m68k-low.c (the_low_target): Likewise.
15329 * linux-ppc-low.c (the_low_target): Likewise.
15330 * linux-s390-low.c (the_low_target): Likewise.
15331 * linux-sh-low.c (the_low_target): Likewise.
15332 * linux-sparc-low.c (the_low_target): Likewise.
15333 * linux-tic6x-low.c (the_low_target): Likewise.
15334 * linux-x86-low.c (the_low_target): Likewise.
15335 * linux-xtensa-low.c (the_low_target): Likewise.
15336 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15337 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15338 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15339 srv_xmlfiles.
15340 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15341 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15342
c03e6ccc
YQ
153432012-02-29 Yao Qi <yao@codesourcery.com>
15344 Pedro Alves <palves@redhat.com>
15345
15346 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15347 `step_over_finished' is true.
15348
644cebc9
PA
153492012-02-27 Pedro Alves <palves@redhat.com>
15350
15351 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15352 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15353
c14d7ab2
PA
153542012-02-27 Pedro Alves <palves@redhat.com>
15355
15356 PR server/9684
15357 * linux-low.c (pid_is_stopped): New.
15358 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15359
412c89dd
LM
153602012-02-25 Luis Machado <lgustavo@codesourcery.com>
15361
15362 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15363 of conditions.
15364
b745defe
MR
153652012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15366
15367 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15368
9f3a5c85
LM
153692012-02-24 Luis Machado <lgustavo@codesourcery>
15370
15371 * server.c (handle_query): Advertise support for target-side
15372 breakpoint condition evaluation.
15373 (process_point_options): New function.
15374 (process_serial_event): When inserting a breakpoint, check for
15375 a target-side condition that should be evaluated.
15376
15377 * mem-break.c: Include regcache.h and ax.h.
15378 (point_cond_list_t): New data structure.
15379 (breakpoint) <cond_list>: New field.
15380 (find_gdb_breakpoint_at): Make non-static.
15381 (delete_gdb_breakpoint_at): Clear any target-side
15382 conditions.
15383 (clear_gdb_breakpoint_conditions): New function.
15384 (add_condition_to_breakpoint): Likewise.
15385 (add_breakpoint_condition): Likewise.
15386 (gdb_condition_true_at_breakpoint): Likewise.
15387 (gdb_breakpoint_here): Return result directly instead
15388 of going through a local variable.
15389
15390 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15391 (clear_gdb_breakpoint_conditions): Likewise.
15392 (add_breakpoint_condition): Likewise.
15393 (gdb_condition_true_at_breakpoint): Likewise.
15394
15395 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15396 (need_step_over_p): Take target-side breakpoint condition into
15397 consideration.
15398
5e1dc496
LM
153992012-02-24 Luis Machado <lgustavo@codesourcery>
15400
15401 * server.h: Include tracepoint.h.
15402 (agent_mem_read, agent_get_trace_state_variable_value,
15403 agent_set_trace_state_variable_value,
15404 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15405 get_set_tsv_func_addr): New prototypes.
15406
15407 * ax.h: New include file.
15408 * ax.c: New source file.
15409
15410 * tracepoint.c: Include ax.h.
15411 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15412 agent_expr, eval_result_type): Move to ax.h.
15413 (parse_agent_expr): Rename to ...
15414 (gdb_parse_agent_expr): ... this, make it non-static and move
15415 to ax.h.
15416 (unparse_agent_expr) Rename to ...
15417 (gdb_unparse_agent_expr): ... this, make it non-static and move
15418 to ax.h.
15419 (eval_agent_expr): Rename to ...
15420 (eval_tracepoint_agent_expr): ... this.
15421 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15422 forward declarations.
15423 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15424 (agent_get_trace_state_variable_value): New function.
15425 (agent_set_trace_state_variable_value): New function.
15426 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15427 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15428 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15429 (condition_true_at_tracepoint): Likewise.
15430 (parse_agent_expr): Rename to ...
15431 (gdb_parse_agent_expr): ... this and move to ax.c.
15432 (unparse_agent_expr): Rename to ...
15433 (gdb_unparse_agent_expr): ... this and move to ax.c.
15434 (gdb_agent_op_name): Move to ax.c.
15435 (eval_agent_expr): Rename to ...
15436 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15437 and move to ax.c.
15438 (eval_tracepoint_agent_expr): New function.
15439 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15440 non-static.
5e1dc496
LM
15441 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15442 ax.c.
15443 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15444 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15445 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15446 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15447 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15448 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15449 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15450 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15451 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15452 (compile_bytecodes): Remove forward declaration.
15453 (is_goto_target): Move to ax.c.
15454 (compile_bytecodes): Move to ax.c and call
15455 agent_get_trace_state_variable_value (...) and
15456 agent_set_trace_state_variable_value (...).
15457
15458 * Makefile.in: Update ax.c and IPA dependencies.
15459
277e4e52
PA
154602012-02-24 Pedro Alves <palves@redhat.com>
15461
15462 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15463 (cmd_bigqtbuffer_circular): ... this. Only handle
15464 'QTBuffer:circular:'.
15465 (handle_tracepoint_general_set): Adjust.
15466
bf4c19f7
YQ
154672012-02-16 Yao Qi <yao@codesourcery.com>
15468
15469 * inferiors.c: Move code to ...
15470 * dll.c: .... here. New.
15471 * server.h: Declare clear_dlls.
15472 * Makefile.in (SFILES): Add dll.c.
15473 (OBS): Add dll.o
15474 (dll.o): New rule.
15475
d73f2619
YQ
154762012-02-11 Yao Qi <yao@codesourcery.com>
15477
15478 * server.c: (handle_monitor_command): Add a new parameter
15479 `own_buf'.
15480 (handle_query): Update caller.
15481
f8255c2a
JB
154822012-02-09 Joel Brobecker <brobecker@adacore.com>
15483
15484 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15485 * configure, config.in: Regenerate.
15486 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15487 is not defined.
15488
da84f473
PA
154892012-02-02 Pedro Alves <palves@redhat.com>
15490
15491 Try SIGKILL first, then PTRACE_KILL.
15492 * linux-low.c (linux_kill_one_lwp): New.
15493 (linux_kill_one_lwp): Rename to ...
15494 (kill_one_lwp_callback): ... this. Use the new
15495 linux_kill_one_lwp.
15496
e886a173
PA
154972012-02-02 Pedro Alves <palves@redhat.com>
15498
15499 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15500 inferior.
15501
be07f1a2
PA
155022012-01-27 Pedro Alves <palves@redhat.com>
15503
15504 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15505 (elf_64_file_p): Make static.
15506 (linux_pid_exe_is_elf_64_file): New.
15507 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15508 Delete declarations.
15509 (linux_pid_exe_is_elf_64_file): Declare.
15510 * linux-x86-low.c (x86_arch_setup): Use
15511 linux_pid_exe_is_elf_64_file.
15512
d8301ad1
JK
155132012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15514
15515 * linux-low.c (linux_wait_for_event_1): Rename to ...
15516 (linux_wait_for_event): ... here and merge it with former
15517 linux_wait_for_event - new variable wait_ptid, use it.
15518 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15519
01b17894
PA
155202012-01-23 Pedro Alves <palves@redhat.com>
15521
15522 * server.c (main): Avoid yet another case of infinite loop while
15523 detaching/killing after a longjmp.
15524
e825046f
JK
155252012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15526
15527 Code cleanup.
15528 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15529
b9e7b9c3
UW
155302012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15531
15532 * hostio.c (handle_readlink): New function.
15533 (handle_vFile): Call it to handle "vFile:readlink" packets.
15534
901f9912
UW
155352012-01-20 Pedro Alves <palves@redhat.com>
15536 Ulrich Weigand <ulrich.weigand@linaro.org>
15537
15538 * server.c (handle_v_requests): Only support vAttach and vRun to
15539 start multiple processes when in extended protocol mode.
15540
fc1ab1a0
PA
155412012-01-17 Pedro Alves <palves@redhat.com>
15542
15543 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15544 memalign plus mprotect to allocate the scratch buffer.
15545
7d5d4e98
PA
155462012-01-13 Pedro Alves <palves@redhat.com>
15547
15548 * server.c (attach_inferior): Clear `cont_thread'.
15549
f128d5e9
PA
155502012-01-13 Pedro Alves <palves@redhat.com>
15551
15552 * server.c (main): Avoid infinite loop while detaching/killing
15553 after a longjmp.
15554
06db92f0
DE
155552012-01-09 Doug Evans <dje@google.com>
15556
15557 * server.c (start_inferior): Set last_ptid in --wrapper case.
15558
32d92999
YQ
155592012-01-06 Yao Qi <yao@codesourcery.com>
15560
15561 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15562 defined.
15563 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15564
5e0a92a9
YQ
155652012-01-04 Yao Qi <yao@codesourcery.com>
15566
15567 * tracepoint.c (cmd_qtdp): Print debug message
15568 for static tracepoint.
15569
ae639e8c
YQ
155702012-01-04 Yao Qi <yao@codesourcery.com>
15571
15572 * tracepoint.c (trace_vdebug): Differentiate debug message
15573 between gdbserver and IPA.
15574
f72429c5
YQ
155752012-01-03 Yao Qi <yao@codesourcery.com>
15576
15577 * tracepoint.c (tracepoint_was_hit): Don't collect for
15578 static tracepoint.
15579
12c3e59c
JB
155802012-01-02 Joel Brobecker <brobecker@adacore.com>
15581
15582 * terminal.h: Reformat copyright header.
15583
67827812
JB
155842012-01-02 Joel Brobecker <brobecker@adacore.com>
15585
15586 * server.c (gdbserver_version): Update copyright year.
15587 * gdbreplay.c (gdbreplay_version): Likewise.
15588
3e52c33d
JK
155892011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15590
15591 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15592
15593 Revert:
15594 2011-12-18 Hui Zhu <teawater@gmail.com>
15595 * linux-low.c (linux_create_inferior): Save return value to ret.
15596
66f1260e
HZ
155972011-12-18 Hui Zhu <teawater@gmail.com>
15598
15599 * linux-low.c (linux_create_inferior): Save return value to ret.
15600
e77616d7
DE
156012011-12-16 Doug Evans <dje@google.com>
15602
e7b06c57
DE
15603 * linux-low.c (linux_create_inferior): If stdio connection,
15604 redirect stdin from /dev/null, stdout to stderr.
15605 * remote-utils.c (remote_is_stdio): New static global.
15606 (remote_connection_is_stdio): New function.
15607 (remote_prepare): Handle stdio connection.
15608 (remote_open): Ditto.
15609 (remote_close): Don't close stdin for stdio connections.
15610 (read_prim,write_prim): New functions. Replace all calls to
15611 read/write to these.
15612 * server.c (main): Watch for "-" argument. Move call to
15613 remote_prepare before start_inferior.
15614 * server.h (STDIO_CONNECTION_NAME): New macro.
15615 (remote_connection_is_stdio): Declare.
15616
e77616d7
DE
15617 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15618 in debugging output.
15619
82067193
YQ
156202011-12-15 Yao Qi <yao@codesourcery.com>
15621
15622 * tracepoint.c: Include sys/syscall.h.
15623 (gdb_ust_thread): Remove preprocessor conditional.
15624
82bfbe7e
PA
156252011-12-14 Pedro Alves <pedro@codesourcery.com>
15626
15627 * linux-low.c (linux_detach_one_lwp): Call
15628 the_low_target.prepare_to_resume before detaching.
15629
712c6575
YQ
156302011-12-14 Yao Qi <yao@codesourcery.com>
15631
15632 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15633 of write.
15634
d54d1edf
YQ
156352011-12-14 Yao Qi <yao@codesourcery.com>
15636
15637 * i386-low.c (i386_low_stopped_data_address): Initialize local
15638 variable `control'.
15639
6210a125
PA
156402011-12-13 Pedro Alves <pedro@codesourcery.com>
15641
15642 PR remote/13492
15643
15644 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15645 DR_CONTROL unless necessary. Extend comments.
15646 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15647 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15648
2ece8244
YQ
156492011-12-13 Yao Qi <yao@codesourcery.com>
15650
15651 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15652 macros.
15653 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15654
784867a5
JK
156552011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15656
15657 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15658 Print new debug message for such case.
15659
6bf36717
JK
156602011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15661
15662 Fix overlapping memcpy.
15663 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15664 the read_inferior_memory transfer.
15665 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15666 write_inferior_memory transfer.
15667 (set_fast_tracepoint_jump): New variable buf. Use it for the
15668 read_inferior_memory and write_inferior_memory transfers.
15669 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15670 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15671 Use it for the write_inferior_memory transfer.
15672 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15673 buffers.
15674
50275556
MR
156752011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15676
15677 * linux-low.c (fetch_register, store_register): Make code
15678 consistent, fix formatting.
15679
7325beb4
MR
156802011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15681
15682 * linux-low.c (usr_store_inferior_registers): Factor out code
15683 to handle individual registers into...
15684 (store_register): ... this new function.
15685
c642a434
UW
156862011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15687
15688 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15689 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15690 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15691 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15692 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15693 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15694 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15695 (srv_xmlfiles): Add new XML files.
15696
15697 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15698 and <sys/uio.h>.
15699 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15700 (init_registers_s390_linux32v1): Add prototype.
15701 (init_registers_s390_linux32v2): Likewise.
15702 (init_registers_s390_linux64v1): Likewise.
15703 (init_registers_s390_linux64v2): Likewise.
15704 (init_registers_s390x_linux64v1): Likewise.
15705 (init_registers_s390x_linux64v2): Likewise.
15706 (s390_num_regs): Increment to 52.
15707 (s390_regmap): Add orig_r2 register.
15708 (s390_num_regs_3264): Increment to 68.
15709 (s390_regmap_3264): Add orig_r2 register.
15710 (s390_collect_ptrace_register): Handle orig_r2 register.
15711 (s390_supply_ptrace_register): Likewise.
15712 (s390_fill_last_break): New function.
15713 (s390_store_last_break): Likewise.
15714 (s390_fill_system_call): New function.
15715 (s390_store_system_call): Likewise.
15716 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15717 register sets.
15718 (s390_check_regset): New function.
15719 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15720 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15721 Update target_regsets for available register sets.
15722
2268b414
JK
157232011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15724 Jan Kratochvil <jan.kratochvil@redhat.com>
15725
15726 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15727 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15728 New.
15729 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15730 * linux-low.h (struct process_info_private): New member r_debug.
15731 * server.c (handle_qxfer_libraries): Call
15732 the_target->qxfer_libraries_svr4.
15733 (handle_qxfer_libraries_svr4): New function.
15734 (qxfer_packets): New entry "libraries-svr4".
15735 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15736 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15737 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15738 PACKET_qXfer_libraries_svr4.
15739
d6db1fab
UW
157402011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15741
15742 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15743 PSW address/mask between 8-byte and 16-byte formats.
15744 (s390_supply_ptrace_register): Likewise.
15745 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15746 basic addressing mode bit.
15747
242f5f1c
SS
157482011-11-24 Stan Shebs <stan@codesourcery.com>
15749
15750 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15751
f196051f
SS
157522011-11-17 Stan Shebs <stan@codesourcery.com>
15753
15754 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15755 (tracing_start_time): New global.
15756 (tracing_stop_time): New global.
15757 (tracing_user_name): New global.
15758 (tracing_notes): New global.
15759 (tracing_stop_note): New global.
15760 (cmd_qtstart): Set traceframe_usage, start_time.
15761 (stop_tracing): Set stop_time.
15762 (cmd_qtstatus): Report additional status.
15763 (cmd_qtp): New function.
15764 (handle_tracepoint_query): Call it.
15765 (cmd_qtnotes): New function.
15766 (handle_tracepoint_general_set): Call it.
15767 (get_timestamp): Rename from tsv_get_timestamp.
15768
405f8e94
SS
157692011-11-14 Stan Shebs <stan@codesourcery.com>
15770 Kwok Cheung Yeung <kcy@codesourcery.com>
15771
15772 * linux-x86-low.c (small_jump_insn): New.
15773 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15774 trampoline and error message, build a trampoline and issue a small
15775 jump instruction to it.
15776 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15777 trampoline and error message.
15778 (x86_get_min_fast_tracepoint_insn_len): New.
15779 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15780 * linux-low.h (struct linux_target_ops): Add arguments to
15781 install_fast_tracepoint_jump_pad operation, add new operation.
15782 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15783 arguments.
15784 (linux_get_min_fast_tracepoint_insn_len): New function.
15785 (linux_target_op): Add new operation.
15786 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15787 (gdb_trampoline_buffer_end): Ditto.
15788 (gdb_trampoline_buffer_error): Ditto.
15789 (struct ipa_sym_addresses): Add fields for new IPA variables.
15790 (symbol_list): Add entries for new IPA variables.
15791 (struct tracepoint): Add fields to hold the address range of the
15792 trampoline used by the tracepoint.
15793 (trampoline_buffer_head): New static variable.
15794 (trampoline_buffer_tail): Ditto.
15795 (claim_trampoline_space): New function.
15796 (have_fast_tracepoint_trampoline_buffer): New function.
15797 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15798 structure.
15799 (install_fast_tracepoint): Ditto, also add error buffer argument.
15800 (cmd_qtminftpilen): New function.
15801 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15802 (fast_tracepoint_from_trampoline_address): New function.
15803 (fast_tracepoint_collecting): Handle trampoline as part of jump
15804 pad space.
15805 (set_trampoline_buffer_space): New function.
15806 (initialize_tracepoint): Initialize new IPA variables.
15807 * target.h (struct target_ops): Add arguments to
15808 install_fast_tracepoint_jump_pad operation, add new
15809 get_min_fast_tracepoint_insn_len operation.
15810 (target_get_min_fast_tracepoint_insn_len): New.
15811 (install_fast_tracepoint_jump_pad): Add arguments.
15812 * server.h (IPA_BUFSIZ): Define.
15813 * linux-i386-ipa.c: Include extra header files.
15814 (initialize_fast_tracepoint_trampoline_buffer): New function.
15815 (initialize_low_tracepoint): Call it.
15816 * server.h (set_trampoline_buffer_space): Declare.
15817 (claim_trampoline_space): Ditto.
15818 (have_fast_tracepoint_trampoline_buffer): Ditto.
15819
1e4d1764
YQ
158202011-11-14 Yao Qi <yao@codesourcery.com>
15821
15822 * server.c (handle_query): Handle InstallInTrace for qSupported.
15823 * tracepoint.c (add_tracepoint): Sort list.
15824 (install_tracepoint, download_tracepoint): New.
15825 (cmd_qtdp): Call them to install and download tracepoints.
15826 (sort_tracepoints): Removed.
15827 (cmd_qtstart): Update.
15828
5c73ff4e
YQ
158292011-11-14 Yao Qi <yao@codesourcery.com>
15830
15831 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15832 * mem-break.h: Declare.
15833 * tracepoint.c (cmd_qtstart): Move some code to ...
15834 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15835 New.
15836 (download_tracepoints): Move some code to ...
15837 (download_tracepoint_1): ... here. New.
15838
86a30030
YQ
158392011-11-08 Yao Qi <yao@codesourcery.com>
15840
15841 * remote-utils.c (relocate_instruction): A comment fix.
15842
8d26e50c
JB
158432011-11-07 Joel Brobecker <brobecker@adacore.com>
15844
15845 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15846 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15847 dr_status_mirror and dr_control_mirror from debug_reg_state.
15848 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15849 (i386_initial_stuff): Remove use of deleted globals.
15850 (i386_get_thread_context, i386_set_thread_context,
15851 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15852 from debug_reg_state.
15853
a59306a3
YQ
158542011-11-05 Yao Qi <yao@codesourcery.com>
15855
15856 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15857 address as TPOINT's.
15858
3065dfb6
SS
158592011-11-02 Stan Shebs <stan@codesourcery.com>
15860
15861 * tracepoint.c (agent_mem_read_string): New function.
15862 (eval_agent_expr): Call it for tracenz.
15863 * server.c (handle_query): Report support for tracenz.
15864
fd0d8c7c
YQ
158652011-11-02 Yao Qi <yao@codesourcery.com>
15866
15867 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15868
609086b1
YQ
158692011-11-02 Yao Qi <yao@codesourcery.com>
15870
15871 * target.h: Fix a typo in comment.
15872
b9fd1791
PA
158732011-10-31 Pedro Alves <pedro@codesourcery.com>
15874
15875 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15876 clobber the breakpoints' shadows with fast tracepoint jumps.
15877 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15878 * target.c (write_inferior_memory): Also pass MYADDR down to
15879 check_mem_write.
15880
03583c20
UW
158812011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15882
15883 * configure.ac: Check support for personality routine.
15884 * configure: Regenerate.
15885 * config.in: Likewise.
15886 * linux-low.c: Include <sys/personality.h>.
15887 Define ADDR_NO_RANDOMIZE if necessary.
15888 (linux_create_inferior): Disable address space randomization when
15889 forking inferior, if requested.
15890 (linux_supports_disable_randomization): New function.
15891 (linux_target_ops): Install it.
15892 * server.h (disable_randomization): Declare.
15893 * server.c (disable_randomization): New global variable.
15894 (handle_general_set): Handle QDisableRandomization.
15895 (handle_query): Likewise for qSupported.
15896 (main): Support --disable-randomization and --no-disable-randomization
15897 command line arguments.
15898 * target.h (struct target_ops): Add supports_disable_randomization.
15899 (target_supports_disable_randomization): New macro.
15900
723b724b
MF
159012011-09-29 Mike Frysinger <vapier@gentoo.org>
15902
15903 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15904 ifdef check.
15905 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15906 [!PT_GETDSBT] (target_loadmap): New definition.
15907 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15908 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15909 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15910 and PT_GETDSBT to LINUX_LOADMAP.
15911 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15912 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15913
55329a5c 159142011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
15915
15916 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
15917 (arm_linux_hwbp_cap): New static variable.
15918 (arm_linux_get_hwbp_cap): Replace by ...
15919 (arm_linux_init_hwbp_cap): ... this new function.
15920 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
15921 (arm_linux_get_hw_watchpoint_count): Likewise.
15922 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15923 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
15924 (arm_prepare_to_resume): Use perror_with_name instead of error.
15925
55329a5c 159262011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
15927
15928 * linux-arm-low.c: Include <signal.h>.
15929 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
15930 (struct arm_linux_hwbp_cap): New data type.
15931 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
15932 (struct arm_linux_hw_breakpoint): New data type.
15933 (MAX_BPTS, MAX_WPTS): Define.
15934 (struct arch_process_info, struct arch_lwp_info): New data types.
15935 (arm_linux_get_hwbp_cap): New function.
15936 (arm_linux_get_hw_breakpoint_count): Likewise.
15937 (arm_linux_get_hw_watchpoint_count): Likewise.
15938 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15939 (arm_hwbp_control_initialize): Likewise.
15940 (arm_hwbp_control_is_enabled): Likewise.
15941 (arm_hwbp_control_is_initialized): Likewise.
15942 (arm_hwbp_control_disable): Likewise.
15943 (arm_linux_hw_breakpoint_equal): Likewise.
15944 (arm_linux_hw_point_initialize): Likewise.
15945 (struct update_registers_data): New data structure.
15946 (update_registers_callback: New function.
15947 (arm_insert_point): Likewise.
15948 (arm_remove_point): Likewise.
15949 (arm_stopped_by_watchpoint): Likewise.
15950 (arm_stopped_data_address): Likewise.
15951 (arm_new_process): Likewise.
15952 (arm_new_thread): Likewise.
15953 (arm_prepare_to_resume): Likewise.
15954 (the_low_target): Register arm_insert_point, arm_remove_point,
15955 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
15956 arm_new_thread, and arm_prepare_to_resume.
15957
6b9801d4
SS
159582011-09-15 Stan Shebs <stan@codesourcery.com>
15959
15960 * server.h (struct emit_ops): Add compare-goto fields.
15961 * tracepoint.c (gdb_agent_op_sizes): New table.
15962 (emit_eq_goto): New function.
15963 (emit_ne_goto): New function.
15964 (emit_lt_goto): New function.
15965 (emit_le_goto): New function.
15966 (emit_gt_goto): New function.
15967 (emit_ge_goto): New function.
15968 (is_goto_target): New function.
15969 (compile_bytecodes): Recognize special cases of compare-goto
15970 combinations and call specialized emitters for them.
15971 * linux-x86-low.c (amd64_emit_eq_goto): New function.
15972 (amd64_emit_ne_goto): New function.
15973 (amd64_emit_lt_goto): New function.
15974 (amd64_emit_le_goto): New function.
15975 (amd64_emit_gt_goto): New function.
15976 (amd64_emit_ge_goto): New function.
15977 (amd64_emit_ops): Add the new functions.
15978 (i386_emit_eq_goto): New function.
15979 (i386_emit_ne_goto): New function.
15980 (i386_emit_lt_goto): New function.
15981 (i386_emit_le_goto): New function.
15982 (i386_emit_gt_goto): New function.
15983 (i386_emit_ge_goto): New function.
15984 (i386_emit_ops): Add the new functions.
15985
bf15cbda
SS
159862011-09-08 Stan Shebs <stan@codesourcery.com>
15987
15988 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
15989 (i386_emit_epilogue): Restore %ebx.
15990
943ca1dd
JZ
159912011-08-31 Jie Zhang <jzhang918@gmail.com>
15992
15993 * server.c (step_thread): Remove definition.
15994 (process_serial_event): Don't handle Hs.
15995 * server.h (step_thread): Remove declaration.
15996 * target.c (set_desired_inferior): Remove use of step_thread.
15997
e3deef73
LM
159982011-08-24 Luis Machado <lgustavo@codesourcery.com>
15999
16000 * linux-low.c: Include linux-procfs.h.
16001 (linux_attach_lwp_1): Update comments.
16002 (linux_attach): Scan for existing threads when attaching to a
16003 process that is the tgid.
16004 * Makefile.in: Update dependencies.
16005
13da1c97
LM
160062011-08-24 Luis Machado <lgustavo@codesourcery.com>
16007
16008 * configure.srv: Add linux-procfs.o dependencies.
16009
881127c9
YQ
160102011-08-14 Yao Qi <yao@codesourcery.com>
16011
16012 * target.h (struct target_ops): Fix indent.
16013 * win32-low.c (win32_target_ops): Fix comment.
16014
58dbd541
YQ
160152011-08-14 Andrew Jenner <andrew@codesourcery.com>
16016 Yao Qi <yao@codesourcery.com>
16017
16018 * Makefile.in (clean): Remove tic6x-*.c files.
16019 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16020 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16021 (tic6x-c64xp-linux.c): Likewise.
16022 * configure.srv: Add support for tic6x-*-uclinux.
16023 * linux-tic6x-low.c: New.
16024 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16025
78d85199
YQ
160262011-08-14 Andrew Stubbs <ams@codesourcery.com>
16027 Yao Qi <yao@codesourcery.com>
16028
16029 * target.h (struct target_ops): Add read_loadmap.
16030 * linux-low.c (struct target_loadseg): New type.
16031 (struct target_loadmap): New type.
16032 (linux_read_loadmap): New function.
16033 (linux_target_ops): Add linux_read_loadmap.
16034 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16035 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16036 to NULL.
78d85199 16037
a959a88d
EZ
160382011-08-05 Eli Zaretskii <eliz@gnu.org>
16039
16040 * win32-low.c: Include <stdint.h>.
16041
1ced966e
PA
160422011-07-22 Pedro Alves <pedro@codesourcery.com>
16043
16044 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16045 to the inferior here.
16046 (i386_remove_aligned_watchpoint): Ditto.
16047 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16048 fit part of the watchpoint in the debug registers.
16049 (i386_update_inferior_debug_regs): New.
16050 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16051 registers, and only update the inferior on success.
16052 (i386_low_remove_watchpoint): Ditto.
16053
d26e3629
KY
160542011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16055
16056 * linux-low.c (compare_ints, unique, list_threads, show_process,
16057 linux_core_of_thread): Delete.
16058 (linux_target_ops): Change linux_core_of_thread to
16059 linux_common_core_of_thread.
16060 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16061 * utils.c (malloc_failure): Change type of argument.
16062 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16063 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16064 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16065 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16066 (IPA_OBJS): Add common-utils-ipa.o.
16067 (ptid_h, linux_osdata_h): New macros.
16068 (server_h): Add common/common-utils.h, common/xml-utils.h,
16069 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16070 common/ptid.h.
16071 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16072 ptid.o, buffer.o): New rules.
16073 (linux-low.o): Add common/linux-osdata.h as a dependency.
16074 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16075 * configure.ac: Add AC_HEADER_DIRENT check.
16076 * config.in: Regenerate.
16077 * configure: Regenerate.
16078 * remote-utils.c (xml_escape_text): Delete.
16079 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16080 buffer_xml_printf): Move to common/buffer.c.
16081 * server.c (main): Remove call to initialize_inferiors.
16082 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16083 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16084 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16085 internal_error, gdb_assert, gdb_assert_fail): Delete.
16086 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16087 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16088 common/buffer.h.
16089 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16090 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16091 initialize_inferiors): Delete.
16092
2275a1a7
PA
160932011-07-20 Pedro Alves <pedro@codesourcery.com>
16094
16095 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16096 symbol error.
16097
0a5b1e09
PA
160982011-05-31 Pedro Alves <pedro@codesourcery.com>
16099
16100 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16101 assertion.
16102 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16103
6938fd34
YQ
161042011-05-26 Yao Qi <yao@codesourcery.com>
16105
16106 * Makefile.in (thread-db.o): Track dependence to
16107 common/gdb_thread_db.h.
16108 * thread-db.c: include gdb_thread_db.h from right place.
16109
b481f9e0
TT
161102011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16111
16112 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16113 __FILE__ and __LINE__ to internal_error.
16114
98a5dd13
DE
161152011-05-13 Doug Evans <dje@google.com>
16116
16117 * thread-db.c (try_thread_db_load_from_sdir): New function.
16118 (try_thread_db_load_from_dir): New function.
16119 (thread_db_load_search): Handle $sdir, ignore $pdir.
16120 Remove trying of system directories if search of
16121 libthread-db-search-path fails, that is now done via $sdir.
16122
d248b706
KY
161232011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16124
16125 * server.c (handle_query): Add EnableDisableTracepoints to the list
16126 of supported features.
43aaf8b6 16127 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16128 tracepoints.
43aaf8b6
PA
16129 (cmd_qtenable_disable): New.
16130 (cmd_qtstart): Install tracepoints even if disabled.
16131 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16132 receiving a QTEnable or QTDisable packet.
16133 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16134 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16135 tracepoints.
16136 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16137
84e578fb
DE
161382011-05-10 Doug Evans <dje@google.com>
16139
16140 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16141
71f55dd8
DE
161422011-05-04 Doug Evans <dje@google.com>
16143
16144 * linux-low.c (linux_join): Skip process lookup.
16145 * spu-low.c (spu_join): Ditto.
16146 * server.c (join_inferiors_callback): Delete.
16147 (process_serial_event): For 'D' packet (detach) call join_inferior
16148 directly.
16149
4d393d60
JM
161502011-05-04 Joseph Myers <joseph@codesourcery.com>
16151
16152 * README: Don't mention xscale*-*-linux*.
16153 * configure.srv (xscale*-*-linux*): Don't handle target.
16154
b00ad6ff
NF
161552011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16156
16157 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16158 casting pointers.
16159 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16160 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16161 (i386_emit_void_call_2): Likewise.
16162
af96c192
YQ
161632011-04-26 Yao Qi <yao@codesourcery.com>
16164
43aaf8b6
PA
16165 * linux-low.c: Move common macros to linux-ptrace.h.
16166 Include linux-ptrace.h.
af96c192
YQ
16167 * Makefile.in (linux_ptrace_h): New.
16168 (linux-low.o): Depends on linux-ptrace.h.
16169
03f2bd59
JK
161702011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16171
16172 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16173 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16174 (remote_prepare): New function with most of the TCP code from ...
16175 (remote_open): ... here. Detect PORT here unconditionally. Move also
16176 setting transport_is_reliable.
16177 * server.c (run_once): New variable.
16178 (gdbserver_usage): Document it.
16179 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16180 the first run if RUN_ONCE.
16181 * server.h (run_once, remote_prepare): New declarations.
16182
7a9dd1b2
TT
161832011-04-19 Tom Tromey <tromey@redhat.com>
16184
16185 * win32-low.c (handle_load_dll): Remove duplicate "the".
16186
81239425
PM
161872011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16188
16189 Remove support for old Cygwin 1.5 versions.
16190 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16191 function to avoid warning.
16192 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16193 warning.
16194
9e0627f1
PM
161952011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16196
16197 * gdbserver/server.h (Macro _): Define it if not available.
16198
588eebee
MS
161992011-03-14 Michael Snyder <msnyder@vmware.com>
16200
348af9f7 16201 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16202
43f70d4c
JB
162032011-03-10 Joel Brobecker <brobecker@adacore.com>
16204
16205 * Makefile.in (maintainer-clean realclean distclean): Remove
16206 "make ... subdir_do" command.
16207
348af9f7
MS
162082011-03-10 Michael Snyder <msnyder@vmware.com>
16209
16210 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16211
16212 * server.c (handle_v_run): Free alloced buffer on early return.
16213
e637a4f5
YQ
162142011-03-09 Yao Qi <yao@codesourcery.com>
16215
16216 Revert:
16217 2011-03-04 Yao Qi <yao@codesourcery.com>
16218
16219 * Makefile.in: Remove GNU make feature --directory.
16220
16221 2011-03-05 Yao Qi <yao@codesourcery.com>
16222
16223 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16224 (subdir_do): New make target. Copied from gdb/Makefile.
16225 (maintainer-clean, realclean, distclean, clean): Call corresponding
16226 make targets in common/Makefile.
16227
16228 2011-02-11 Yao Qi <yao@codesourcery.com>
16229
16230 * configure.ac: Call AC_PROG_RANLIB.
16231 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16232 * configure: Regenerate.
16233
e6edda56
JK
162342011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16235
16236 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16237
e5141119
JB
162382011-03-06 Yao Qi <yao@codesourcery.com>
16239
16240 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16241
64794aa4
JB
162422011-03-05 Yao Qi <yao@codesourcery.com>
16243
16244 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16245 (subdir_do): New make target. Copied from gdb/Makefile.
16246 (maintainer-clean, realclean, distclean, clean): Call corresponding
16247 make targets in common/Makefile.
16248
7a762829
YQ
162492011-03-04 Yao Qi <yao@codesourcery.com>
16250
16251 * Makefile.in: Remove GNU make feature --directory.
16252
348af9f7
MS
162532011-03-04 Michael Snyder <msnyder@vmware.com>
16254
16255 * server.c (queue_stop_reply): Call xmalloc not malloc.
16256
162572011-03-02 Michael Snyder <msnyder@vmware.com>
16258
16259 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16260
9f72fee2
MS
162612011-02-28 Michael Snyder <msnyder@vmware.com>
16262
588eebee
MS
16263 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16264 (cmd_qtframe): Ditto.
16265 (cmd_qtbuffer): Ditto.
16266 (cmd_bigqtbuffer): Ditto.
16267
9f72fee2
MS
16268 * utils.c (decimal2str): Initialize 'width' to nine, then
16269 don't mess with it.
16270
8040bd49
UW
162712011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16272
16273 * hostio.c (require_data): Free *data, not data.
16274
7e52cbd0
JK
162752011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16276
16277 * hostio.c (require_data): Use free, not xfree.
16278
9130f83e
MS
162792011-02-27 Michael Snyder <msnyder@vmware.com>
16280
4b812f4e
MS
16281 * server.c (handle_query): Discard unused value.
16282
9130f83e
MS
16283 * hostio.c (require_data): Free malloc memory before returning
16284 error.
16285
69d37113
MS
162862011-02-26 Michael Snyder <msnyder@vmware.com>
16287
16288 * linux-low.c (list_threads): Call closedir for dirent.
16289
35f5825a
MS
162902011-02-27 Michael Snyder <msnyder@vmware.com>
16291
2a589cef
MS
16292 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16293 a case statement falls through.
16294
0adea5f7
MS
16295 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16296
35f5825a
MS
16297 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16298 in comparison.
16299
238f1c74
MS
163002011-02-26 Michael Snyder <msnyder@vmware.com>
16301
16302 * utils.c (decimal2str): Eliminate dead code and dead param.
16303 (pulongest): Drop dead param from call to decimal2str.
16304 (plongest): Ditto.
16305
633ff500
JB
163062011-02-24 Joel Brobecker <brobecker@adacore.com>
16307
16308 Revert the following patch (not approved yet):
16309 2011-02-21 Hui Zhu <teawater@gmail.com>
16310 * tracepoint.c (tp_printf): New function.
16311 (eval_agent_expr): Handle gdb_agent_op_printf.
16312
f9c6ff72
HZ
163132011-02-21 Hui Zhu <teawater@gmail.com>
16314
16315 * tracepoint.c (tp_printf): New function.
16316 (eval_agent_expr): Handle gdb_agent_op_printf.
16317
94d5e490
TT
163182011-02-18 Tom Tromey <tromey@redhat.com>
16319
16320 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16321 (tracepoint.o): Likewise.
16322 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16323 (gdb_agent_op_names): Likewise.
16324
c7f96d2b
TT
163252011-02-18 Tom Tromey <tromey@redhat.com>
16326
16327 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16328 gdb_agent_op_rot>: New constants.
16329 (gdb_agent_op_names): Add pick and roll.
16330 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16331 cases.
16332
0feedb2c
JK
163332011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16334
16335 * aclocal.m4: Regenerated with aclocal-1.11.1.
16336
b3b9301e
PA
163372011-02-14 Pedro Alves <pedro@codesourcery.com>
16338
16339 * server.c (handle_qxfer_traceframe_info): New.
16340 (qxfer_packets): Register "traceframe-info".
16341 (handle_query): Report support for qXfer:traceframe-info:read+.
16342 * tracepoint.c (match_blocktype): New.
16343 (traceframe_find_block_type): Rename to ...
16344 (traceframe_walk_blocks): ... this. Add callback filter argument,
16345 and use it.
16346 (traceframe_find_block_type): New, reimplemented on top of
16347 traceframe_walk_blocks.
16348 (build_traceframe_info_xml): New.
16349 (traceframe_read_info): New.
16350 * server.h (traceframe_read_info): Declare.
16351
4f3e6fb7
YQ
163522011-02-11 Yao Qi <yao@codesourcery.com>
16353
16354 * configure.ac: Call AC_PROG_RANLIB.
16355 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16356 * configure: Regenerate.
16357
764880b7
PA
163582011-02-07 Pedro Alves <pedro@codesourcery.com>
16359
16360 * server.c (gdb_read_memory): Change return semantics to allow
16361 partial transfers.
16362 (handle_search_memory_1): Adjust.
16363 (process_serial_event) <'m' packet>: Handle partial transfers.
16364 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16365
1c79eb8a
PA
163662011-01-28 Pedro Alves <pedro@codesourcery.com>
16367
16368 * regcache.c (init_register_cache): Initialize
16369 regcache->register_status.
16370 (free_register_cache): Release regcache->register_status.
16371 (regcache_cpy): Copy register_status.
16372 (registers_to_string): Print 'x's for unavailable registers.
16373 (supply_register): Mark the register's status valid or
16374 unavailable, depending on whether a buffer was passed in or not.
16375 (supply_register_zeroed): New.
16376 (supply_regblock): Mark the registers' status valid or
16377 unavailable, depending on whether a buffer was passed in or not.
16378 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16379 (struct regcache): New `register_status' field.
16380 (supply_register_zeroed): Declare.
16381 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16382 supply_register_zeroed, rather than passing a NULL buffer to
16383 supply_register.
16384 * tracepoint.c (fetch_traceframe_registers): Update comment.
16385
85724a0e
PA
163862011-01-28 Pedro Alves <pedro@codesourcery.com>
16387
16388 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16389 buffer explicit.
16390
d08aafef
PA
163912011-01-25 Pedro Alves <pedro@codesourcery.com>
16392
16393 * server.h (decode_xfer_write): Change prototype.
16394 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16395 and don't extract the annex here.
16396 * server.c (decode_xfer_read): Remove `annex' parameter,
16397 and don't extract the annex here.
16398 (decode_xfer): New.
16399 (struct qxfer): New.
16400 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16401 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16402 (handle_qxfer_statictrace): New functions, abstracted out from
16403 handle_query, and made to use the struct qxfer interface.
16404 (handle_threads_qxfer_proper): Rename to ...
16405 (handle_qxfer_threads_proper): ... this.
16406 (handle_threads_qxfer): Rename to ...
16407 (handle_qxfer_threads): ... this. Adjust.
16408 (qxfer_packets): New array.
16409 (handle_qxfer): New function.
16410 (handle_query): Use handle_qxfer.
16411
493e2a69
MS
164122011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16413
16414 * gdbreplay.c: Shorten lines of >= 80 columns.
16415 * linux-low.c: Ditto.
16416 * linux-ppc-low.c: Ditto.
16417 * linux-s390-low.c: Ditto.
16418 * linux-sparc-low.c: Ditto.
16419 * linux-x86-low.c: Ditto.
16420 * linux-xtensa-low.c: Ditto.
16421 * mem-break.c: Ditto.
16422 * nto-low.c: Ditto.
16423 * regcache.h: Ditto.
16424 * remote-utils.c: Ditto.
16425 * server.c: Ditto.
16426 * server.h: Ditto.
16427 * thread-db.c: Ditto.
16428 * tracepoint.c: Ditto.
16429 * utils.c: Ditto.
16430 * win32-low.h: Ditto.
16431
44944448
JB
164322011-01-05 Joel Brobecker <brobecker@adacore.com>
16433
16434 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16435 update.
16436
71ce852c
JB
164372011-01-01 Joel Brobecker <brobecker@adacore.com>
16438
16439 * server.c (gdbserver_version): Update copyright year in version
16440 output.
16441 * gdbreplay.c (gdbreplay_version): Ditto.
16442
eb826dc6
MF
164432010-12-29 Jie Zhang <jie.zhang@analog.com>
16444
16445 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16446 * linux-bfin-low.c: New file.
16447 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16448 PT_DATA_ADDR for BFIN targets.
16449 * Makefile.in (SFILES): Add linux-bfin-low.c.
16450 (clean): Remove reg-bfin.c.
16451 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16452 * README: Mention supported Blackfin targets.
16453
39ab222a
MF
164542010-12-23 Mike Frysinger <vapier@gentoo.org>
16455
16456 * .gitignore: New file.
16457
a1f2ce7d
MF
164582010-11-16 Mike Frysinger <vapier@gentoo.org>
16459
16460 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16461
f474844c
JZ
164622010-10-22 Jie Zhang <jie@codesourcery.com>
16463
16464 * Makefile.in: Add FLAGS_TO_PASS variable.
16465 (install): Remove dependency of install-only and recursively
16466 invoke make for install-only.
16467
f1048712
DE
164682010-10-04 Doug Evans <dje@google.com>
16469
16470 * Makefile.in (uninstall): Use $(DESTDIR).
16471
b53a1623
PA
164722010-09-24 Pedro Alves <pedro@codesourcery.com>
16473
e6ee044d
PA
16474 PR gdb/11842
16475
b53a1623
PA
16476 * linux-x86-low.c (compat_siginfo_from_siginfo)
16477 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16478 si_code is < 0. Check for si_code == SI_TIMER before checking for
16479 si_code < 0.
16480
fa1bd1e4
JB
164812010-09-13 Joel Brobecker <brobecker@adacore.com>
16482
16483 * lynx-i386-low.c: New file.
16484 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16485
47fac8f8
JB
164862010-09-13 Joel Brobecker <brobecker@adacore.com>
16487
16488 * lynx-low.c (ptrace_request_to_str): Remove handling for
16489 request values that have been removed in LynxOS 5.x.
16490
1adfc54d
JB
164912010-09-13 Joel Brobecker <brobecker@adacore.com>
16492
16493 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16494 <ptrace.h>
16495
c2a66c29
NS
164962010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16497
16498 * configure.ac: Add --enable-inprocess-agent option.
16499 * configure: Rebuilt.
16500
32fcada3
YQ
165012010-09-06 Yao Qi <yao@codesourcery.com>
16502
16503 * linux-low.c (linux_kill): Remove unused variable.
16504 (linux_stabilize_threads): Likewise.
16505 * server.c (start_inferior): Likewise.
16506 (queue_stop_reply_callback): Likewise.
16507 * tracepoint.c (do_action_at_tracepoint): Likewise.
16508
0cccb683
YQ
165092010-09-06 Yao Qi <yao@codesourcery.com>
16510
16511 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16512 on return.
16513
423ec54c
JK
165142010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16515
16516 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16517
12ac6819
PA
165182010-09-06 Pedro Alves <pedro@codesourcery.com>
16519
16520 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16521 "$(IPA_DEPFILES)".
16522
8ed54b31
JB
165232010-09-01 Joel Brobecker <brobecker@adacore.com>
16524
16525 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16526 gdbserver/lynx-ppc-low.c: New files.
16527 * Makefile.in (lynx_low_h): New variable.
16528 (lynx-low.o, lynx-ppc-low.o): New rules.
16529 * configure.ac: On LynxOS, link with -lnetinet.
16530 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16531 * configure: regenerate.
16532
bb0116a4
JB
165332010-09-01 Joel Brobecker <brobecker@adacore.com>
16534
16535 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16536 * configure.ac: Add check for vasprintf and vsnprintf.
16537 * configure, config.in: Regenerate.
16538 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16539
a778ab81 165402010-09-01 Joel Brobecker <brobecker@adacore.com>
16541
16542 * gdbreplay.c: Move include of alloca.h up, next to include of
16543 malloc.h.
16544 * server.h: Add include of malloc.h.
16545 * mem-break.c: Remove include of malloc.h.
16546 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16547
8b034a19 165482010-09-01 Joel Brobecker <brobecker@adacore.com>
16549
16550 * Makefile.in (memmem.o): Build with -Wno-error.
16551
165522010-09-01 Joel Brobecker <brobecker@adacore.com>
16553
16554 * utils.c (xsnprintf): Make non-static.
16555 * server.h: Add xsnprintf declaration.
16556 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16557 replace calls to snprintf by calls to xsnprintf throughout.
16558
165592010-09-01 Joel Brobecker <brobecker@adacore.com>
16560
16561 * configure.ac: Add configure check for alloca.
16562 * configure, config.in: Regenerate.
16563 * server.h: Include alloca.h if it exists.
16564 * gdbreplay.c: Include alloca.h if it exists.
16565
1a981360
PA
165662010-08-28 Pedro Alves <pedro@codesourcery.com>
16567
16568 * linux-low.c (__SIGRTMIN): Define if not already defined.
16569 (linux_create_inferior): Check for __ANDROID__ rather than
16570 __SIGRTMIN.
16571 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16572 are already deferred.
16573 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16574 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16575 stopped and already has a pending signal to report.
16576 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16577 a pending signal to report or is moving out of a jump pad.
16578 (linux_init_signals): Check for __ANDROID__ rather than
16579 __SIGRTMIN.
16580
b4d51a55
PA
165812010-08-28 Pedro Alves <pedro@codesourcery.com>
16582
16583 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16584 debug_threads check. Avoid a linear search when not doing debug
16585 output.
16586
ec48365d
PA
165872010-08-27 Pedro Alves <pedro@codesourcery.com>
16588
16589 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16590 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16591 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16592 (process_event): Change local fd's type to gdb_fildes_t.
16593 (create_file_handler): Adjust prototype.
16594 (delete_file_handler): Adjust prototype.
16595 (handle_file_event): Adjust prototype. Use pfildes.
16596 (create_file_event): Adjsut prototype.
16597 * remote-utils.c (remote_desc, listen_desc): Change type to
16598 gdb_fildes_t.
16599 * server.h: New gdb_fildes_t typedef.
16600 [USE_WIN32API]: Include winsock2.h.
16601 (delete_file_handler, add_file_handler): Adjust prototypes.
16602 (pfildes): Declare.
16603 * utils.c (pfildes): New.
16604
854d88f0
PA
166052010-08-27 Pedro Alves <pedro@codesourcery.com>
16606
16607 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16608 * configure: Regenerate.
16609
0146f85b
PA
166102010-08-27 Pedro Alves <pedro@codesourcery.com>
16611
16612 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16613 (linux_done_accessing_memory): ... this.
16614 (linux_target_ops): Adjust.
16615 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16616 * nto-low.c (nto_target_ops): Adjust comment.
16617 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16618 * spu-low.c (spu_target_ops): Adjust comment.
16619 * target.h (target_ops): Rename unprepare_to_access_memory field
16620 to done_accessing_memory.
16621 (unprepare_to_access_memory): Rename to ...
16622 (done_accessing_memory): ... this.
16623
90d74c30
PA
166242010-08-26 Pedro Alves <pedro@codesourcery.com>
16625
16626 * linux-low.c (linux_prepare_to_access_memory): New.
16627 (linux_unprepare_to_access_memory): New.
16628 (linux_target_ops): Install them.
16629 * server.c (read_memory): Rename to ...
16630 (gdb_read_memory): ... this. Use
16631 prepare_to_access_memory/prepare_to_access_memory.
16632 (write_memory): Rename to ...
16633 (gdb_write_memory): ... this. Use
16634 prepare_to_access_memory/prepare_to_access_memory.
16635 (handle_search_memory_1): Adjust.
16636 (process_serial_event): Adjust.
16637 * target.h (struct target_ops): New fields
16638 prepare_to_access_memory and unprepare_to_access_memory.
16639 (prepare_to_access_memory, unprepare_to_access_memory): New.
16640 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16641 prepare_to_access_memory/prepare_to_access_memory.
16642 * nto-low.c (nto_target_ops): Adjust.
16643 * spu-low.c (spu_target_ops): Adjust.
16644 * win32-low.c (win32_target_ops): Adjust.
16645
fd467969
PA
166462010-08-26 Pedro Alves <pedro@codesourcery.com>
16647
16648 * Makefile.in (WARN_CFLAGS): Get it from configure.
16649 (WERROR_CFLAGS): New.
16650 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16651 * configure.ac: Introduce --enable-werror, which adds -Werror to
16652 the compiler command line. Enabled by default. Disable with
16653 --disable-werror. Add -Wdeclaration-after-statement
16654 Wpointer-arith and -Wformat-nonliteral to warning flags.
16655 * configure: Regenerate.
16656
331e2f5f
PA
166572010-08-26 Pedro Alves <pedro@codesourcery.com>
16658
16659 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16660
e581f2b4
PA
166612010-08-26 Pedro Alves <pedro@codesourcery.com>
16662
16663 * gdbreplay.c (remote_error): New.
16664 (gdbchar): New.
16665 (expect): Use gdbchar. Check for error reading from GDB.
16666 Clarify sync error output.
16667 (play): Check for errors writing to GDB.
16668 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16669 * remote-utils.c (getpkt): Check for errors writing to the remote
16670 descriptor.
16671
3c11dd79
PA
166722010-08-25 Pedro Alves <pedro@codesourcery.com>
16673
16674 * linux-low.c (linux_wait_1): Move non-debugging code out of
16675 `debug_threads' control.
16676
d20a8ad9
PA
166772010-08-25 Pedro Alves <pedro@codesourcery.com>
16678
16679 * linux-low.c (linux_wait_1): Don't set last_status here.
16680 * server.c (push_event, queue_stop_reply_callback): Assert we're
16681 not pushing a TARGET_WAITKIND_IGNORE event.
16682 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16683 (myresume, handle_target_event): Set the thread's last_resume_kind
16684 and last_status from the target returned status.
16685
964e4306
PA
166862010-08-25 Pedro Alves <pedro@codesourcery.com>
16687
16688 PR threads/10729
16689
16690 * linux-x86-low.c (update_debug_registers_callback): New.
16691 (i386_dr_low_set_addr): Use it.
16692 (i386_dr_low_get_addr): New.
16693 (i386_dr_low_set_control): Use update_debug_registers_callback.
16694 (i386_dr_low_get_control): New.
16695 (i386_dr_low_get_status): Adjust.
16696 * linux-low.c (linux_stop_lwp): New.
16697 * linux-low.h (linux_stop_lwp): Declare.
16698
16699 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16700 argument instead of a i386_debug_reg_state.
16701 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16702 a i386_debug_reg_state.
16703 (i386_insert_aligned_watchpoint): Adjust.
16704 (i386_remove_aligned_watchpoint): Adjust.
16705 (i386_low_stopped_data_address): Read the debug registers from the
16706 inferior instead of from the mirrors.
16707 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16708 (i386_dr_low_get_addr): Declare.
16709 (i386_dr_low_get_control): Declare.
16710 (i386_dr_low_get_status): Change prototype.
16711
16712 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16713 (i386_dr_low_get_addr): New.
16714 (i386_dr_low_get_control): New.
16715 (i386_dr_low_get_status): Adjust prototype. Return
16716 dr_status_mirror.
16717 (i386_initial_stuff): Clear dr_status_mirror and
16718 dr_control_mirror.
16719 (i386_get_thread_context): Adjust.
16720 (i386_set_thread_context): Adjust.
16721 (i386_thread_added): Adjust.
16722
5f21a75b
PA
167232010-08-24 Pedro Alves <pedro@codesourcery.com>
16724
16725 * linux-low.h (linux_thread_area): Delete declaration.
16726
3e4c1235
TS
167272010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16728
16729 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16730 after its termination.
16731
1971b033
PA
167322010-08-09 Pedro Alves <pedro@codesourcery.com>
16733
16734 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16735 (gdb_wants_all_stopped): Delete.
16736 (linux_wait_1): Don't call them.
16737 * server.c (handle_v_cont): Tag all threads as want-stopped.
16738 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16739 stopped as "client-wants-stopped".
16740
310444ac
PA
167412010-07-31 Pedro Alves <pedro@codesourcery.com>
16742
16743 * Makefile.in (signals_h): New.
16744 (server_h): Depend on it.
16745 (server.o): Don't depend on $(signals_def).
16746 (signals.o): Depend on $(signals_def).
16747
a19cae16
JK
167482010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16749
16750 * Makefile.in (signals_def): New.
16751 (server_h): Append include/gdb/signals.h and signals_def.
16752 (server.o): Append signals_def.
16753
30d50328
JK
167542010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16755
16756 * server.c (handle_target_event): Use target_signal_to_host for
16757 resume_info.sig initialization.
16758 * target.h (struct thread_resume) <sig>: New comment.
16759
5c3216e2
OS
167602010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16761
c6f46ca0
OS
16762 * server.c (handle_query): strcpy() the returned string from paddress()
16763 instead of sprintf().
5c3216e2
OS
16764 * utils.c (paddress): Return phex_nz().
16765
6bd31874
JB
167662010-07-07 Joel Brobecker <brobecker@adacore.com>
16767
16768 * server.c (handle_v_cont): Call mourn_inferior if process
16769 just exited.
16770 (myresume): Likewise.
16771
0fb4aa4b
PA
167722010-07-01 Pedro Alves <pedro@codesourcery.com>
16773
16774 Static tracepoints, and integration with UST.
16775
16776 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16777 * mem-break.c (uninsert_all_breakpoints)
16778 (reinsert_all_breakpoints): New.
16779 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16780 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16781 (gdb_agent_ust_loaded, helper_thread_id)
16782 (gdb_agent_helper_thread_id): New macros.
16783 (struct ipa_sym_addresses): Add addr_ust_loaded,
16784 addr_helper_thread_id, addr_cmd_buf.
16785 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16786 (in_process_agent_loaded_ust): New.
16787 (write_e_ust_not_loaded): New.
16788 (maybe_write_ipa_ust_not_loaded): New.
16789 (struct collect_static_trace_data_action): New.
16790 (enum tracepoint_type) <static_tracepoint>: New.
16791 (struct tracepoint) <handle>: Mention static tracepoints.
16792 (struct static_tracepoint_ctx): New.
16793 (CMD_BUF_SIZE): New.
16794 (add_tracepoint_action): Handle static tracepoint actions.
16795 (unprobe_marker_at): New.
16796 (clear_installed_tracepoints): Handle static tracepoints.
16797 (cmd_qtdp): Handle static tracepoints.
16798 (probe_marker_at): New.
16799 (cmd_qtstart): Handle static tracepoints.
16800 (response_tracepoint): Handle static tracepoints.
16801 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16802 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16803 (get_context_regcache): Handle static tracepoints.
16804 (do_action_at_tracepoint): Handle static tracepoint actions.
16805 (traceframe_find_block_type): Handle static trace data blocks.
16806 (traceframe_read_sdata): New.
16807 (download_tracepoints): Download static tracepoint actions.
16808 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16809 (GDB_PROBE_NAME): New.
16810 (ust_ops): New.
16811 (GET_UST_SYM): New.
16812 (USTF): New.
16813 (dlsym_ust): New.
16814 (ust_marker_to_static_tracepoint): New.
16815 (gdb_probe): New.
16816 (collect_ust_data_at_tracepoint): New.
16817 (gdb_ust_probe): New.
16818 (UNIX_PATH_MAX, SOCK_DIR): New.
16819 (gdb_ust_connect_sync_socket): New.
16820 (resume_thread, stop_thread): New.
16821 (run_inferior_command): New.
16822 (init_named_socket): New.
16823 (gdb_ust_socket_init): New.
16824 (cstr_to_hexstr): New.
16825 (next_st): New.
16826 (first_marker, next_marker): New.
16827 (response_ust_marker): New.
16828 (cmd_qtfstm, cmd_qtsstm): New.
16829 (unprobe_marker_at, probe_marker_at): New.
16830 (cmd_qtstmat, gdb_ust_thread): New.
16831 (gdb_ust_init): New.
16832 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16833 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16834 (ST_REGENTRY): New.
16835 (x86_64_st_collect_regmap): New.
16836 (X86_64_NUM_ST_COLLECT_GREGS): New.
16837 (AMD64_RIP_REGNUM): New.
16838 (supply_static_tracepoint_registers): New.
16839 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16840 (ST_REGENTRY): New.
16841 (i386_st_collect_regmap): New.
16842 (i386_NUM_ST_COLLECT_GREGS): New.
16843 (supply_static_tracepoint_registers): New.
16844 * server.c (handle_query): Handle qXfer:statictrace:read.
16845 <qSupported>: Report support for StaticTracepoints, and
16846 qXfer:statictrace:read features.
16847 * server.h (traceframe_read_sdata)
16848 (supply_static_tracepoint_registers): Declare.
16849 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16850 (unpack_varlen_hex): Include in IPA build.
16851 * Makefile.in (ustlibs, ustinc): New.
16852 (IPA_OBJS): Add remote-utils-ipa.o.
16853 ($(IPA_LIB)): Link -ldl and -lpthread.
16854 (UST_CFLAGS): New.
16855 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16856 * config.in, configure: Regenerate.
16857
9e4344e5
PA
168582010-06-20 Ian Lance Taylor <iant@google.com>
16859 Pedro Alves <pedro@codesourcery.com>
16860
16861 * linux-x86-low.c (always_true): Delete.
16862 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16863 trying to fool the compiler with always_true.
16864
c6beb2cb
PA
168652010-06-20 Pedro Alves <pedro@codesourcery.com>
16866
16867 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16868 conditions in gdbserver.
16869
d2ed6730
UW
168702010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16871
16872 * spu-low.c (spu_read_memory): Wrap around local store limit.
16873 (spu_write_memory): Likewise.
16874
4e29fb54
PA
168752010-06-15 Pedro Alves <pedro@codesourcery.com>
16876
16877 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16878 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16879 LONGEST uses.
16880 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16881 uses.
16882 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16883 uses with LONGEST uses.
16884
6a271cae
PA
168852010-06-14 Stan Shebs <stan@codesourcery.com>
16886 Pedro Alves <pedro@codesourcery.com>
16887
16888 Bytecode compiler.
16889
16890 * linux-x86-low.c: Include limits.h.
16891 (add_insns): New.
16892 (always_true): New.
16893 (EMIT_ASM): New.
16894 (EMIT_ASM32): New.
16895 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16896 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16897 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16898 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16899 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16900 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16901 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16902 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16903 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16904 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16905 (amd64_emit_void_call_2): New.
16906 (amd64_emit_ops): New.
16907 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16908 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16909 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16910 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16911 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16912 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16913 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16914 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16915 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
16916 (i386_emit_stack_adjust, i386_emit_int_call_1)
16917 (i386_emit_void_call_2): New.
16918 (i386_emit_ops): New.
16919 (x86_emit_ops): New.
16920 (the_low_target): Install x86_emit_ops.
16921 * server.h (struct emit_ops): New.
16922 (get_raw_reg_func_addr): Declare.
16923 (current_insn_ptr, emit_error): Declare.
16924 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
16925 (set_trace_state_variable_value): New defines.
16926 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
16927 addr_get_trace_state_variable_value and
16928 addr_set_trace_state_variable_value.
16929 (symbol_list): New fields for get_raw_reg,
16930 get_trace_state_variable_value and set_trace_state_variable_value.
16931 (condfn): New typedef.
16932 (struct tracepoint): New field `compiled_cond'.
16933 (do_action_at_tracepoint): Clear compiled_cond.
16934 (get_trace_state_variable_value, set_trace_state_variable_value):
16935 Export in the IPA.
16936 (condition_true_at_tracepoint): If there's a compiled condition,
16937 run that.
16938 (current_insn_ptr, emit_error): New globals.
16939 (struct bytecode_address): New.
16940 (get_raw_reg_func_addr): New.
16941 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
16942 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
16943 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
16944 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
16945 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
16946 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
16947 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
16948 (compile_tracepoint_condition, compile_bytecodes): New.
16949 * target.h (emit_ops): Forward declare.
16950 (struct target_ops): New field emit_ops.
16951 (target_emit_ops): New.
16952 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
16953 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
16954 * linux-low.c (linux_emit_ops): New.
16955 (linux_target_ops): Install it.
16956 * linux-low.h (struct linux_target_ops): New field emit_ops.
16957
92b72907
UW
169582010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
16959
16960 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
16961 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
16962
fa593d66
PA
169632010-06-01 Pedro Alves <pedro@codesourcery.com>
16964 Stan Shebs <stan@codesourcery.com>
16965
16966 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
16967 (all): Depend on $(extra_libraries).
16968 (install-only): Install the IPA.
16969 (IPA_OBJS, IPA_LIB): New.
16970 (clean): Remove the IPA lib.
16971 (IPAGENT_CFLAGS): New.
16972 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
16973 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
16974 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
16975 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
16976 * configure.ac: Check for atomic builtins support in the compiler.
16977 (IPA_DEPFILES, extra_libraries): Define.
16978 * configure.srv (ipa_obj): Add description.
16979 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
16980 (i[34567]86-*-linux*): Set ipa_obj.
16981 (x86_64-*-linux*): Set ipa_obj.
16982 * linux-low.c (stabilizing_threads): New.
16983 (supports_fast_tracepoints): New.
16984 (linux_detach): Stabilize threads before detaching.
16985 (handle_tracepoints): Handle internal tracing breakpoints. Assert
16986 the lwp is either not stabilizing, or is moving out of a jump pad.
16987 (linux_fast_tracepoint_collecting): New.
16988 (maybe_move_out_of_jump_pad): New.
16989 (enqueue_one_deferred_signal): New.
16990 (dequeue_one_deferred_signal): New.
16991 (linux_wait_for_event_1): If moving out of a jump pad, defer
16992 pending signals to later.
16993 (linux_stabilize_threads): New.
16994 (linux_wait_1): Check if threads need moving out of jump pads, and
16995 do it if so.
16996 (stuck_in_jump_pad_callback): New.
16997 (move_out_of_jump_pad_callback): New.
16998 (lwp_running): New.
16999 (linux_resume_one_lwp): Handle moving out of jump pads.
17000 (linux_set_resume_request): Dequeue deferred signals.
17001 (need_step_over_p): Also step over fast tracepoint jumps.
17002 (start_step_over): Also uninsert fast tracepoint jumps.
17003 (finish_step_over): Also reinsert fast tracepoint jumps.
17004 (linux_install_fast_tracepoint_jump): New.
17005 (linux_target_ops): Install linux_stabilize_threads and
17006 linux_install_fast_tracepoint_jump_pad.
17007 * linux-low.h (linux_target_ops) <get_thread_area,
17008 install_fast_tracepoint_jump_pad>: New fields.
17009 (struct lwp_info) <collecting_fast_tracepoint,
17010 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17011 (linux_get_thread_area): Declare.
17012 * linux-x86-low.c (jump_insn): New.
17013 (x86_get_thread_area): New.
17014 (append_insns): New.
17015 (push_opcode): New.
17016 (amd64_install_fast_tracepoint_jump_pad): New.
17017 (i386_install_fast_tracepoint_jump_pad): New.
17018 (x86_install_fast_tracepoint_jump_pad): New.
17019 (the_low_target): Install x86_get_thread_area and
17020 x86_install_fast_tracepoint_jump_pad.
17021 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17022 (struct fast_tracepoint_jump): New.
17023 (fast_tracepoint_jump_insn): New.
17024 (fast_tracepoint_jump_shadow): New.
17025 (find_fast_tracepoint_jump_at): New.
17026 (fast_tracepoint_jump_here): New.
17027 (delete_fast_tracepoint_jump): New.
17028 (set_fast_tracepoint_jump): New.
17029 (uninsert_fast_tracepoint_jumps_at): New.
17030 (reinsert_fast_tracepoint_jumps_at): New.
17031 (set_breakpoint_at): Use write_inferior_memory.
17032 (uninsert_raw_breakpoint): Use write_inferior_memory.
17033 (check_mem_read): Mask out fast tracepoint jumps.
17034 (check_mem_write): Mask out fast tracepoint jumps.
17035 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17036 (set_fast_tracepoint_jump): Declare.
17037 (delete_fast_tracepoint_jump)
17038 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17039 (reinsert_fast_tracepoint_jumps_at): Declare.
17040 * regcache.c: Don't compile many functions when building the
17041 in-process agent library.
17042 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17043 the register buffer in the heap.
17044 (free_register_cache): If the register buffer isn't owned by the
17045 regcache, don't free it.
17046 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17047 pre-existing register caches.
17048 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17049 type.
17050 (convert_ascii_to_int): : Constify `from' parameter type.
17051 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17052 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17053 the needed buffer in-place.
17054 (relocate_instruction): New.
17055 * server.c (handle_query) <qSymbols>: If the target supports
17056 tracepoints, give it a chance of looking up symbols. Report
17057 support for fast tracepoints.
17058 (handle_status): Stabilize threads.
17059 (process_serial_event): Adjust.
17060 * server.h (struct fast_tracepoint_jump): Forward declare.
17061 (struct process_info) <fast_tracepoint_jumps>: New field.
17062 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17063 (decode_X_packet, decode_M_packet): Adjust.
17064 (relocate_instruction): Declare.
17065 (in_process_agent_loaded): Declare.
17066 (tracepoint_look_up_symbols): Declare.
17067 (struct fast_tpoint_collect_status): Declare.
17068 (fast_tracepoint_collecting): Declare.
17069 (force_unlock_trace_buffer): Declare.
17070 (handle_tracepoint_bkpts): Declare.
17071 (initialize_low_tracepoint)
17072 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17073 * target.h (struct target_ops) <stabilize_threads,
17074 install_fast_tracepoint_jump_pad>: New fields.
17075 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17076 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17077 [HAVE_STDINT_H]: Include stdint.h.
17078 (trace_debug_1): Rename to ...
17079 (trace_vdebug): ... this.
17080 (trace_debug): Rename to ...
17081 (trace_debug_1): ... this. Add `level' parameter.
17082 (trace_debug): New.
17083 (ATTR_USED, ATTR_NOINLINE): New.
17084 (IP_AGENT_EXPORT): New.
17085 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17086 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17087 (about_to_request_buffer_space, trace_buffer_is_full)
17088 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17089 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17090 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17091 (traceframe_write_count, traceframes_created)
17092 (trace_state_variables)
17093 New renaming defines.
17094 (struct ipa_sym_addresses): New.
17095 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17096 (symbol_list): New.
17097 (ipa_sym_addrs): New.
17098 (all_tracepoint_symbols_looked_up): New.
17099 (in_process_agent_loaded): New.
17100 (write_e_ipa_not_loaded): New.
17101 (maybe_write_ipa_not_loaded): New.
17102 (tracepoint_look_up_symbols): New.
17103 (debug_threads) [IN_PROCESS_AGENT]: New.
17104 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17105 (UNKNOWN_SIDE_EFFECTS): New.
17106 (stop_tracing): New.
17107 (flush_trace_buffer): New.
17108 (stop_tracing_bkpt): New.
17109 (flush_trace_buffer_bkpt): New.
17110 (read_inferior_integer): New.
17111 (read_inferior_uinteger): New.
17112 (read_inferior_data_pointer): New.
17113 (write_inferior_data_pointer): New.
17114 (write_inferior_integer): New.
17115 (write_inferior_uinteger): New.
17116 (struct collect_static_trace_data_action): Delete.
17117 (enum tracepoint_type): New.
17118 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17119 <actions_str, step_actions, step_actions_str>: Only include in
17120 GDBserver.
fa593d66
PA
17121 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17122 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17123 (tracepoints): Use IP_AGENT_EXPORT.
17124 (last_tracepoint): Don't include in the IPA.
17125 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17126 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17127 (alloced_trace_state_variables): New.
17128 (trace_state_variables): Use IP_AGENT_EXPORT.
17129 (traceframe_t): Delete unused variable.
17130 (circular_trace_buffer): Don't include in the IPA.
17131 (trace_buffer_start): Delete.
17132 (struct trace_buffer_control): New.
17133 (trace_buffer_free): Delete.
17134 (struct ipa_trace_buffer_control): New.
17135 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17136 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17137 New.
17138 (trace_buffer_ctrl): New.
17139 (TRACE_BUFFER_CTRL_CURR): New.
17140 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17141 Reimplement as macros.
17142 (trace_buffer_wrap): Delete.
17143 (traceframe_write_count, traceframe_read_count)
17144 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17145 (struct tracepoint_hit_ctx) <type>: New field.
17146 (struct fast_tracepoint_ctx): New.
17147 (memory_barrier): New.
17148 (cmpxchg): New.
17149 (record_tracepoint_error): Update atomically in the IPA.
17150 (clear_inferior_trace_buffer): New.
17151 (about_to_request_buffer_space): New.
17152 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17153 updating the same buffer.
17154 (add_tracepoint): Default the tracepoint's type to trap
17155 tracepoint, and orig_size to -1.
17156 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17157 internal variables.
17158 (create_trace_state_variable): New parameter `gdb'. Handle it.
17159 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17160 (cmd_qtdp): Handle fast tracepoints.
17161 (cmd_qtdv): Adjust.
17162 (max_jump_pad_size): New.
17163 (gdb_jump_pad_head): New.
17164 (get_jump_space_head): New.
17165 (claim_jump_space): New.
17166 (sort_tracepoints): New.
17167 (MAX_JUMP_SIZE): New.
17168 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17169 IPA.
17170 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17171 support. Upload fast traceframes, and delete internal IPA
17172 breakpoints.
17173 (stop_tracing_handler): New.
17174 (flush_trace_buffer_handler): New.
17175 (cmd_qtstop): Upload fast tracepoints.
17176 (response_tracepoint): Handle fast tracepoints.
17177 (tracepoint_finished_step): Upload fast traceframes. Set the
17178 tracepoint hit context's tracepoint type.
17179 (handle_tracepoint_bkpts): New.
17180 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17181 type. Add comment about fast tracepoints.
17182 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17183 non-existing action_str field.
17184 (get_context_regcache): Handle fast tracepoints.
17185 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17186 to the regcache.
17187 (fast_tracepoint_from_jump_pad_address): New.
17188 (fast_tracepoint_from_ipa_tpoint_address): New.
17189 (collecting_t): New.
17190 (force_unlock_trace_buffer): New.
17191 (fast_tracepoint_collecting): New.
17192 (collecting): New.
17193 (gdb_collect): New.
17194 (write_inferior_data_ptr): New.
17195 (target_tp_heap): New.
17196 (target_malloc): New.
17197 (download_agent_expr): New.
17198 (UALIGN): New.
17199 (download_tracepoints): New.
17200 (download_trace_state_variables): New.
17201 (upload_fast_traceframes): New.
17202 (IPA_FIRST_TRACEFRAME): New.
17203 (IPA_NEXT_TRACEFRAME_1): New.
17204 (IPA_NEXT_TRACEFRAME): New.
17205 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17206 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17207 (gdb_jump_pad_buffer_end): New.
17208 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17209 (initialize_tracepoint): Adjust.
17210 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17211 buffer. Initialize the low module.
17212 * utils.c (PREFIX, TOOLNAME): New.
17213 (malloc_failure): Use PREFIX.
17214 (error): In the IPA, an error causes an exit.
17215 (fatal, warning): Use PREFIX.
17216 (internal_error): Use TOOLNAME.
17217 (NUMCELLS): Increase to 10.
17218 * configure, config.in: Regenerate.
17219
d149dd1d
PA
172202010-06-01 Pedro Alves <pedro@codesourcery.com>
17221
17222 * server.c (handle_query) <qSupported>: Do two passes over the
17223 qSupported string to avoid nesting strtok.
17224
f6528abd
JK
172252010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17226
17227 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17228 (CDEPS): New.
17229 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17230 -Wl,--dynamic-list.
17231 * configure: Regenerate.
17232 * proc-service.list: New.
17233
ca2a87a0
JK
172342010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17235
17236 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17237 New comment.
17238
363a6e9f
OS
172392010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17240
17241 * gdbreplay.c (remote_open): Check error return from socket() call by
17242 its equality to -1 not by it being negative.
17243 * remote-utils.c (remote_open): Likewise.
17244
d23b6cb1
PA
172452010-05-23 Pedro Alves <pedro@codesourcery.com>
17246
17247 * config.h: Regenerate.
17248
28d3cf85
MK
172492010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17250
17251 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17252 doesn't provide PTRACE_GET_THREAD_AREA.
17253
fea36a59
MK
172542010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17255
17256 * linux-m68k-low.c: Include <asm/ptrace.h>
17257 (ps_get_thread_area): Implement.
17258
24b066ba
DE
172592010-05-03 Doug Evans <dje@google.com>
17260
17261 * event-loop.c (struct callback_event): New struct.
17262 (callback_list): New global.
17263 (append_callback_event, delete_callback_event): New functions.
17264 (process_callback): New function.
17265 (start_event_loop): Call it.
17266 * remote-utils.c (NOT_SCHEDULED): Define.
17267 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17268 moved out of readchar.
17269 (readchar): Rewrite. Call reschedule before returning.
17270 (reset_readchar): New function.
17271 (remote_close): Call it.
17272 (process_remaining, reschedule): New functions.
17273 * server.h (callback_handler_func): New typedef.
17274 (append_callback_event, delete_callback_event): Declare.
17275
9836d6ea
PA
172762010-05-03 Pedro Alves <pedro@codesourcery.com>
17277
17278 * proc-service.c (ps_pglobal_lookup): Use
17279 thread_db_look_up_one_symbol.
17280 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17281 parameter. Use it instead of all_symbols_looked_up.
17282 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17283 field.
17284 (all_symbols_looked_up): Don't declare.
17285 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17286 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17287 field.
17288 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17289 Set all_symbols_looked_up here.
17290 (thread_db_look_up_one_symbol): New.
17291 (thread_db_get_tls_address): Adjust.
17292 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17293 thread_db object on the heap, and tentatively set it in the
17294 process structure.
17295 (thread_db_init): Don't set all_symbols_looked_up here.
17296 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17297
7984d532
PA
172982010-05-03 Pedro Alves <pedro@codesourcery.com>
17299
17300 * linux-low.c (linux_kill, linux_detach): Adjust.
17301 (status_pending_p_callback): Remove redundant statement. Check
17302 for !TARGET_WAITIKIND_IGNORE, instead of
17303 TARGET_WAITKIND_STOPPED.
17304 (handle_tracepoints): Make sure LWP is locked. Adjust.
17305 (linux_wait_for_event_1): Adjust.
17306 (linux_cancel_breakpoints): New.
17307 (unsuspend_one_lwp): New.
17308 (unsuspend_all_lwps): New.
17309 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17310 (send_sigstop_callback): Change return type to int, add new
17311 `except' parameter and handle it.
17312 (suspend_and_send_sigstop_callback): New.
17313 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17314 pass them down. If SUSPEND, also increment the lwp's suspend
17315 count.
17316 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17317 (need_step_over_p): Don't consider suspended LWPs.
17318 (start_step_over): Adjust.
17319 (proceed_one_lwp): Change return type to int, add new `except'
17320 parameter and handle it.
17321 (unsuspend_and_proceed_one_lwp): New.
17322 (proceed_all_lwps): Use find_inferior instead of
17323 for_each_inferior.
17324 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17325 also decrement the suspend count of LWPs. Pass `except' down,
17326 instead of hacking its suspend count.
17327 (linux_pause_all): Add `freeze' parameter. Adjust.
17328 (linux_unpause_all): New.
17329 (linux_target_ops): Install linux_unpause_all.
17330 * server.c (handle_status): Adjust.
17331 * target.h (struct target_ops): New fields `unpause_all' and
17332 `cancel_breakpoints'. Add new parameter to `pause_all'.
17333 (pause_all): Add new `freeze' parameter.
17334 (unpause_all): New.
17335 (cancel_breakpoints): New.
17336 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17337 cancel breakpoints.
17338 (cmd_qtstart): Pause threads.
17339 (stop_tracing): Pause threads, and cancel breakpoints.
17340 * win32-low.c (win32_target_ops): Adjust.
17341
e471f25b
PA
173422010-05-03 Pedro Alves <pedro@codesourcery.com>
17343
17344 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17345 the inferior right away from here...
17346 (linux_wait_1): ... to here, and adjust to check the thread's
17347 last_resume_kind instead of the lwp's step or stop_expected flags.
17348
1915ef4f
PA
173492010-05-02 Pedro Alves <pedro@codesourcery.com>
17350
17351 * README: Use consistent `GDB' and `GDBserver' spellings.
17352
f9e39928
PA
173532010-05-02 Pedro Alves <pedro@codesourcery.com>
17354
17355 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17356 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17357 (linux_detach_one_lwp): Assume the lwp is stopped.
17358 (any_thread_of): Delete.
17359 (linux_detach): Stop all lwps here. Don't blindly delete all
17360 breakpoints.
17361 (delete_lwp_callback): New.
17362 (linux_mourn): Delete all lwps of the process that is gone.
17363 (linux_wait_1): Don't delete the last lwp of the process here.
17364 * mem-break.h (mark_breakpoints_out): Declare.
17365 * mem-break.c (mark_breakpoints_out): New.
17366 (free_all_breakpoints): Use it.
17367 * server.c (handle_target_event): If the process is gone, mark
17368 breakpoints out.
17369 * thread-db.c (struct thread_db) <create_bp>: New field.
17370 (thread_db_enable_reporting): Fix prototype. Store a thread event
17371 breakpoint reference in the thread_db struct.
17372 (thread_db_load_search): Clear the thread_db object.
17373 (try_thread_db_load_1): Ditto.
17374 (switch_to_process): New.
17375 (disable_thread_event_reporting): Use it.
17376 (remove_thread_event_breakpoints): New.
17377 (thread_db_detach, thread_db_mourn): Use it.
17378
1e7fc18c
PA
173792010-05-01 Pedro Alves <pedro@codesourcery.com>
17380
17381 * linux-low.c (linux_enable_event_reporting): New.
17382 (linux_wait_for_event_1, handle_extended_wait): Use it.
17383
02fc4de7
PA
173842010-04-30 Pedro Alves <pedro@codesourcery.com>
17385
17386 * linux-low.c (linux_kill_one_lwp, linux_kill)
17387 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17388 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17389 SIGSTOP even if the LWP is stopped.
17390 (send_sigstop_callback): New.
17391 (stop_all_lwps): Use send_sigstop_callback instead.
17392 (linux_resume_one_thread): Adjust.
17393 (proceed_one_lwp): Still proceed an LWP that the client has
17394 requested to stop, if we haven't reported it as stopped yet. Make
17395 sure that LWPs the client want stopped, have a pending SIGSTOP.
17396
bc3b5632
DE
173972010-04-26 Doug Evans <dje@google.com>
17398
ae1ada35
DE
17399 * server.c (handle_general_set): Make static.
17400
bc3b5632
DE
17401 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17402 Print received char after testing for error/eof instead of before.
17403 (input_interrupt): Tweak comment.
17404
65730243
DE
174052010-04-23 Doug Evans <dje@google.com>
17406
17407 * server.c (start_inferior): Print inferior argv if --debug.
17408
a8ae7dc0
AR
174092010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17410
17411 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17412 * nto-x86-low.c: Include server.h
17413
1c07cc19
PM
174142010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17415
17416 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17417 be consistent with other sources of this directory.
17418 (init_registers_amd64): Correct name of source file of this function
17419 in the comment.
17420
e0a61e09
PM
174212010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17422
17423 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17424 64-bit executables.
17425
54709339
PM
174262010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17427
17428 * win32-i386-low.c: Add 64-bit support.
17429 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17430 (init_registers_amd64): Declare.
17431 (mappings): Add 64-bit version of array.
17432 (init_windows_x86): New function.
17433 (the_low_target): Change init_arch field to init_windows_x86.
17434
e8f0053d
PM
174352010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17436
17437 * win32-low.c: Adapt to support also 64-bit architecture.
17438 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17439 (get_image_name): Use SIZE_T type for local variable `done'.
17440 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17441 (toolhelp_get_dll_name): Idem.
17442 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17443 Use uintptr_t typecast to avoid warning.
17444 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17445 (handle_exception): Use phex_nz to avoid warning.
17446 (win32_wait): Remove unused local variable `process'.
17447
c481e77e
PM
174482010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17449
17450 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17451 `amd64-avx.o'.
17452
12ea4b69
PM
174532010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17454
17455 * configure.ac: Use `ws2_32' library for srv_mingw.
17456 * configure: Regenerate.
17457 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17458 * remote-utils.c: Likewise.
17459
f6d1620c
L
174602010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17461
17462 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17463 if __x86_64__ is defined.
17464
8e642873
PM
174652010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17466
17467 * configure: Regenerate.
17468
711e434b
PM
174692010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17470
17471 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17472 * target.h (target_ops): New get_tib_address field.
17473 * win32-low.h (win32_thread_info): Add thread_local_base field.
17474 * win32-low.c (child_add_thread): Add tlb argument.
17475 Set thread_local_base field to TLB.
17476 (get_child_debug_event): Adapt to child_add_thread change.
17477 (win32_get_tib_address): New function.
17478 (win32_target_ops): Set get_tib_address field to
17479 win32_get_tib_address.
17480 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17481
505106cd
PA
174822010-04-12 Pedro Alves <pedro@codesourcery.com>
17483
505106cd
PA
17484 * linux-low.c (linux_mourn): Also remove the process.
17485 * server.c (handle_target_event): Don't remove the process here.
17486 * nto-low.c (nto_mourn): New.
17487 (nto_target_ops): Install it.
17488 * spu-low.c (spu_mourn): New.
17489 (spu_target_ops): Install it.
17490 * win32-low.c (win32_mourn): New.
17491 (win32_target_ops): Install it.
17492
e8470a06
PA
174932010-04-12 Pedro Alves <pedro@codesourcery.com>
17494
17495 * server.h (buffer_xml_printf): Remove redundant `;'.
17496
45ba0d02
PA
174972010-04-12 Pedro Alves <pedro@codesourcery.com>
17498
17499 * regcache.c (set_register_cache): Invalidate regcaches before
17500 changing the register cache layout.
17501 (regcache_invalidate_one): Allow a NULL regcache.
17502 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17503 regcaches before changing the register cache layout or the target
17504 regsets.
17505
59e04013
L
175062010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17507
17508 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17509 variable warning on Linux/x86-64.
17510
8336d594
PA
175112010-04-11 Pedro Alves <pedro@codesourcery.com>
17512
17513 GDBserver disconnected tracing support.
17514
17515 * linux-low.c (linux_remove_process): Delete.
17516 (add_lwp): Don't set last_resume_kind here.
17517 (linux_kill): Use `mourn'.
17518 (linux_detach): Use `thread_db_detach', and `mourn'.
17519 (linux_mourn): New.
17520 (linux_attach_lwp_1): Adjust comment.
17521 (linux_attach): last_resume_kind moved the thread_info; adjust.
17522 (status_pending_p_callback): Adjust.
17523 (linux_wait_for_event_1): Adjust.
17524 (count_events_callback, select_singlestep_lwp_callback)
17525 (select_event_lwp_callback, cancel_breakpoints_callback)
17526 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17527 (proceed_one_lwp): Adjust.
17528 (linux_async): Add debug output.
17529 (linux_thread_stopped): New.
17530 (linux_pause_all): New.
17531 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17532 linux_pause_all.
17533 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17534 (thread_db_free): Delete declaration.
17535 (thread_db_detach, thread_db_mourn): Declare.
17536 * thread-db.c (thread_db_init): Use thread_db_mourn.
17537 (thread_db_free): Delete, split in two.
17538 (disable_thread_event_reporting): New.
17539 (thread_db_detach): New.
17540 (thread_db_mourn): New.
17541
17542 * server.h (struct thread_info) <last_resume_kind>: New field.
17543 <attached>: Add comment.
17544 <gdb_detached>: New field.
17545 (handler_func): Change return type to int.
17546 (handle_serial_event, handle_target_event): Ditto.
17547 (gdb_connected): Declare.
17548 (tracing): Delete.
17549 (disconnected_tracing): Declare.
17550 (stop_tracing): Declare.
17551
17552 * server.c (handle_query) <qSupported>: Report support for
17553 disconnected tracing.
17554 (queue_stop_reply_callback): Account for running threads.
17555 (gdb_wants_thread_stopped): New.
17556 (gdb_wants_all_threads_stopped): New.
17557 (gdb_reattached_process): New.
17558 (handle_status): Clear the `gdb_detached' flag of all processes.
17559 In all-stop, stop all threads.
17560 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17561 (process_serial_event): If the remote connection breaks, or if an
17562 exit was forced with "monitor exit", force an event loop exit.
17563 Handle disconnected tracing on detach.
17564 (handle_serial_event): Adjust.
17565 (handle_target_event): If GDB isn't connected, forward events back
17566 to the inferior, unless the last process exited, in which case,
17567 exit gdbserver. Adjust interface.
17568
17569 * remote-utils.c (remote_open): Don't block in accept. Instead
17570 register an event loop source on the listen socket file
17571 descriptor. Refactor bits into ...
17572 (listen_desc): ... this new global.
17573 (gdb_connected): ... this new function.
17574 (enable_async_notification): ... this new function.
17575 (handle_accept_event): ... this new function.
17576 (remote_close): Clear remote_desc.
17577
17578 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17579
17580 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17581 New fields.
17582 (mourn_inferior): Define.
17583 (target_process_qsupported): Avoid the dangling else problem.
17584 (thread_stopped): Define.
17585 (pause_all): Define.
17586 (target_waitstatus_to_string): Declare.
17587 * target.c (target_waitstatus_to_string): New.
17588
17589 * tracepoint.c (tracing): Make extern.
17590 (disconnected_tracing): New.
17591 (stop_tracing): Make extern. Handle tracing stops due to GDB
17592 disconnecting.
17593 (cmd_qtdisconnected): New.
17594 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17595 (handle_tracepoint_general_set): Handle QTDisconnected.
17596
17597 * event-loop.c (event_handler_func): Change return type to int.
17598 (process_event): Bail out if the event handler wants the event
17599 loop to stop.
17600 (handle_file_event): Ditto.
17601 (start_event_loop): Bail out if the event handler wants the event
17602 loop to stop.
17603
17604 * nto-low.c (nto_target_ops): Adjust.
17605 * spu-low.c (spu_wait): Don't remove the process here.
17606 (spu_target_ops): Adjust.
17607 * win32-low.c (win32_wait): Don't remove the process here.
17608 (win32_target_ops): Adjust.
17609
5d267c4c
PA
176102010-04-11 Pedro Alves <pedro@codesourcery.com>
17611
17612 * regcache.c (realloc_register_cache): Invalidate inferior's
17613 regcache before recreating it.
17614
623ccd72
PA
176152010-04-09 Pedro Alves <pedro@codesourcery.com>
17616
17617 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17618
219f2f23
PA
176192010-04-09 Stan Shebs <stan@codesourcery.com>
17620 Pedro Alves <pedro@codesourcery.com>
17621
17622 * server.h (LONGEST): New.
17623 (struct thread_info) <while_stepping>: New field.
17624 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17625 Declare.
17626 (initialize_tracepoint, handle_tracepoint_general_set)
17627 (handle_tracepoint_query, tracepoint_finished_step)
17628 (tracepoint_was_hit, release_while_stepping_state_list):
17629 (current_traceframe): Declare.
17630 * server.c (handle_general_set): Handle tracepoint packets.
17631 (read_memory): New.
17632 (write_memory): New.
17633 (handle_search_memory_1): Use read_memory.
17634 (handle_query): Report support for conditional tracepoints, trace
17635 state variables, and tracepoint sources. Handle tracepoint
17636 queries.
17637 (main): Initialize the tracepoints module.
17638 (process_serial_event): Handle traceframe reads/writes.
17639
17640 * linux-low.c (handle_tracepoints): New.
17641 (linux_wait_1): Call it.
17642 (linux_resume_one_lwp): Handle while-stepping.
17643 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17644 (linux_target_ops): Install them.
17645 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17646 New field.
17647 * linux-x86-low.c (x86_supports_tracepoints): New.
17648 (the_low_target). Install it.
17649
17650 * mem-break.h (delete_breakpoint): Declare.
17651 * mem-break.c (delete_breakpoint): Make external.
17652
17653 * target.h (struct target_ops): Add `supports_tracepoints',
17654 `read_pc', and `write_pc' fields.
17655 (target_supports_tracepoints): Define.
17656 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17657 (phex_nz): New.
17658
17659 * regcache.h (struct regcache) <registers_owned>: New field.
17660 (init_register_cache, regcache_cpy): Declare.
17661 (regcache_read_pc, regcache_write_pc): Declare.
17662 (register_cache_size): Declare.
17663 (supply_regblock): Declare.
17664 * regcache.c (init_register_cache): New.
17665 (new_register_cache): Use it.
17666 (regcache_cpy): New.
17667 (register_cache_size): New.
17668 (supply_regblock): New.
17669 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 17670
219f2f23
PA
17671 * tracepoint.c: New.
17672
17673 * Makefile.in (OBS): Add tracepoint.o.
17674 (tracepoint.o): New rule.
17675
3a13a53b
L
176762010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17677
17678 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17679 (i386-mmx.o): New.
17680 (i386-mmx.c): Likewise.
17681 (i386-mmx-linux.o): Likewise.
17682 (i386-mmx-linux.c): Likewise.
17683
17684 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17685 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17686 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17687 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17688
17689 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17690 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17691 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17692
1570b33e
L
176932010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17694
17695 * Makefile.in (clean): Updated.
17696 (i386-avx.o): New.
17697 (i386-avx.c): Likewise.
17698 (i386-avx-linux.o): Likewise.
17699 (i386-avx-linux.c): Likewise.
17700 (amd64-avx.o): Likewise.
17701 (amd64-avx.c): Likewise.
17702 (amd64-avx-linux.o): Likewise.
17703 (amd64-avx-linux.c): Likewise.
17704
17705 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17706 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17707 (srv_amd64_regobj): Add amd64-avx.o.
17708 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17709 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17710 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17711 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17712 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17713 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17714 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17715
17716 * i387-fp.c: Include "i386-xstate.h".
17717 (i387_xsave): New.
17718 (i387_cache_to_xsave): Likewise.
17719 (i387_xsave_to_cache): Likewise.
17720 (x86_xcr0): Likewise.
17721
17722 * i387-fp.h (i387_cache_to_xsave): Likewise.
17723 (i387_xsave_to_cache): Likewise.
17724 (x86_xcr0): Likewise.
17725
17726 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17727 * linux-crisv32-low.c (target_regsets): Likewise.
17728 * linux-m68k-low.c (target_regsets): Likewise.
17729 * linux-mips-low.c (target_regsets): Likewise.
17730 * linux-ppc-low.c (target_regsets): Likewise.
17731 * linux-s390-low.c (target_regsets): Likewise.
17732 * linux-sh-low.c (target_regsets): Likewise.
17733 * linux-sparc-low.c (target_regsets): Likewise.
17734 * linux-xtensa-low.c (target_regsets): Likewise.
17735
17736 * linux-low.c: Include <sys/uio.h>.
17737 (regsets_fetch_inferior_registers): Support nt_type.
17738 (regsets_store_inferior_registers): Likewise.
17739 (linux_process_qsupported): New.
17740 (linux_target_ops): Add linux_process_qsupported.
17741
17742 * linux-low.h (regset_info): Add nt_type.
17743 (linux_target_ops): Add process_qsupported.
17744
17745 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17746 and <sys/uio.h>.
17747 (init_registers_i386_avx_linux): New.
17748 (init_registers_amd64_avx_linux): Likewise.
17749 (xmltarget_i386_linux_no_xml): Likewise.
17750 (xmltarget_amd64_linux_no_xml): Likewise.
17751 (PTRACE_GETREGSET): Likewise.
17752 (PTRACE_SETREGSET): Likewise.
17753 (x86_fill_xstateregset): Likewise.
17754 (x86_store_xstateregset): Likewise.
17755 (use_xml): Likewise.
17756 (x86_linux_update_xmltarget): Likewise.
17757 (x86_linux_process_qsupported): Likewise.
17758 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17759 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17760 init_registers_i386_linux here. Call
17761 x86_linux_update_xmltarget.
17762 (the_low_target): Add x86_linux_process_qsupported.
17763
17764 * server.c (handle_query): Call target_process_qsupported.
17765
17766 * target.h (target_ops): Add process_qsupported.
17767 (target_process_qsupported): New.
17768
fc7238bb
PA
177692010-04-03 Pedro Alves <pedro@codesourcery.com>
17770
17771 * inferiors.c (add_thread): Set last_status kind to
17772 TARGET_WAITKIND_IGNORE.
17773 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17774 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17775 (linux_wait_1): Move `thread' local definition to block that uses
17776 it. Don't NULL initialize `event_child'.
17777 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17778 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17779 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17780
bdabb078
PA
177812010-04-01 Pedro Alves <pedro@codesourcery.com>
17782
17783 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17784 an extended waitstatus, or by a watchpoint.
17785 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17786 thread was stepping or has been stopped by a watchpoint.
17787
d3bbe7a0
PA
177882010-04-01 Pedro Alves <pedro@codesourcery.com>
17789
17790 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17791 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17792 of another, then delete the previous, and validate all
17793 breakpoints.
17794 (validate_inserted_breakpoint): New.
17795 (delete_disabled_breakpoints): New.
17796 (validate_breakpoints): New.
17797 (check_mem_read): Validate breakpoints before trusting their
17798 shadow. Delete disabled breakpoints.
17799 (check_mem_write): Validate breakpoints before trusting they
17800 should be inserted. Delete disabled breakpoints.
17801 * mem-break.h (validate_breakpoints):
17802 * server.c (handle_query): Validate breakpoints when we see a
17803 qSymbol query.
17804
8b07ae33
PA
178052010-04-01 Pedro Alves <pedro@codesourcery.com>
17806
17807 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17808 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17809 if we could tell there's a GDB breakpoint at stop_pc.
17810 (need_step_over_p): Don't do a step over if we find a GDB
17811 breakpoint at the resume PC.
17812
17813 * mem-break.c (struct raw_breakpoint): New.
17814 (enum bkpt_type): New type `gdb_breakpoint'.
17815 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17816 fields. New field `raw'.
17817 (find_raw_breakpoint_at): New.
17818 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17819 breakpoint instead.
17820 (set_breakpoint_at): Adjust.
17821 (delete_raw_breakpoint): New.
17822 (release_breakpoint): New.
17823 (delete_breakpoint): Rename to...
17824 (delete_breakpoint_1): ... this. Add proc parameter. Use
17825 release_breakpoint. Return ENOENT.
17826 (delete_breakpoint): Reimplement.
17827 (find_breakpoint_at): Delete.
17828 (find_gdb_breakpoint_at): New.
17829 (delete_breakpoint_at): Delete.
17830 (set_gdb_breakpoint_at): New.
17831 (delete_gdb_breakpoint_at): New.
17832 (gdb_breakpoint_here): New.
17833 (set_reinsert_breakpoint): Use release_breakpoint.
17834 (uninsert_breakpoint): Rename to ...
17835 (uninsert_raw_breakpoint): ... this.
17836 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17837 (reinsert_raw_breakpoint): Change parameter type to
17838 raw_breakpoint.
17839 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17840 instead.
17841 (check_breakpoints): Adjust. Use release_breakpoint.
17842 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17843 (breakpoint_inserted_here): Ditto.
17844 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17845 Don't trust the breakpoint's shadow if it is not inserted.
17846 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17847 (delete_all_breakpoints): Adjust.
17848 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17849 use delete_breakpoint_1.
17850
17851 * mem-break.h (breakpoints_supported): Delete declaration.
17852 (set_gdb_breakpoint_at): Declare.
17853 (gdb_breakpoint_here): Declare.
17854 (delete_breakpoint_at): Delete.
17855 (delete_gdb_breakpoint_at): Declare.
17856
17857 * server.h (struct raw_breakpoint): Forward declare.
17858 (struct process_info): New field `raw_breakpoints'.
17859
17860 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17861 breakpoints.
17862
6bf5e0ba
PA
178632010-03-24 Pedro Alves <pedro@codesourcery.com>
17864
17865 * linux-low.c (status_pending_p_callback): Fix comment.
17866 (linux_wait_for_event_1): Move most of the internal breakpoint
17867 handling from here...
17868 (linux_wait_1): ... to here.
17869 (count_events_callback): New.
17870 (select_singlestep_lwp_callback): New.
17871 (select_event_lwp_callback): New.
17872 (cancel_breakpoints_callback): New.
17873 (select_event_lwp): New.
17874 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17875 priority to all LWPs that have had events that should be reported
17876 to the client. Cancel breakpoints when about to reporting the
17877 event to the client, not while stopping lwps. No longer cancel
17878 finished single-steps here.
17879 (cancel_finished_single_step): Delete.
17880 (cancel_finished_single_steps): Delete.
17881
414a389f
PA
178822010-03-24 Pedro Alves <pedro@codesourcery.com>
17883
17884 * mem-break.c (enum bkpt_type): New.
17885 (struct breakpoint): New field `type'.
17886 (set_breakpoint_at): Change return type to struct breakpoint
17887 pointer. Set type to `other_breakpoint' by default.
17888 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17889 in the breakpoint list.
17890 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17891 (reinsert_breakpoint): Rename to ...
17892 (reinsert_raw_breakpoint): ... this.
17893 (reinsert_breakpoints_at): Adjust.
17894 * mem-break.h (struct breakpoint): Declare.
17895 (set_breakpoint_at): Change return type to struct breakpoint
17896 pointer.
17897
2280c721
PA
178982010-03-24 Pedro Alves <pedro@codesourcery.com>
17899
17900 * server.c (handle_query): Assign, not compare.
17901
d50171e4
PA
179022010-03-24 Pedro Alves <pedro@codesourcery.com>
17903
17904 Teach linux gdbserver to step-over-breakpoints.
17905
17906 * linux-low.c (can_hardware_single_step): New.
17907 (supports_breakpoints): New.
17908 (handle_extended_wait): If stopping threads, read the stop pc of
17909 the new cloned LWP.
17910 (get_pc): New.
17911 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17912 low target doesn't support retrieving the PC.
17913 (add_lwp): Set last_resume_kind to resume_continue.
17914 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17915 (linux_attach): Don't clear stop_expected. Set the lwp's
17916 last_resume_kind to resume_stop.
17917 (linux_detach_one_lwp): Don't check for removed breakpoints.
17918 (check_removed_breakpoint): Delete.
17919 (status_pending_p): Rename to ...
17920 (status_pending_p_callback): ... this. Don't check for removed
17921 breakpoints. Don't consider threads that are stopped from GDB's
17922 perspective.
17923 (linux_wait_for_lwp): Always read the stop_pc here.
17924 (cancel_breakpoint): New.
17925 (step_over_bkpt): New global.
17926 (linux_wait_for_event_1): Implement stepping over breakpoints.
17927 (gdb_wants_lwp_stopped): New.
17928 (gdb_wants_all_stopped): New.
17929 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
17930 single-step traps here. Store the thread's last reported target
17931 wait status.
17932 (send_sigstop): Don't clear stop_expected. Always set it,
17933 instead.
17934 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
17935 (cancel_finished_single_step): New.
17936 (cancel_finished_single_steps): New.
17937 (wait_for_sigstop): Don't cancel finished single-step traps here.
17938 (linux_resume_one_lwp): Don't check for removed breakpoints.
17939 Don't set `step' on non-hardware step archs.
17940 (linux_set_resume_request): Ignore resume_stop requests if already
17941 stopping or stopped. Set the lwp's last_resume_kind.
17942 (resume_status_pending_p): Don't check for removed breakpoints.
17943 (need_step_over_p): New.
17944 (start_step_over): New.
17945 (finish_step_over): New.
17946 (linux_resume_one_thread): Always queue a sigstop for resume_stop
17947 requests. Clear the thread's last reported target waitstatus.
17948 Don't use the `suspended' flag. Don't consider pending breakpoints.
17949 (linux_resume): Start a step-over if necessary.
17950 (proceed_one_lwp): New.
17951 (proceed_all_lwps): New.
17952 (unstop_all_lwps): New.
17953 * linux-low.h (struct lwp_info): Rewrite comment for the
17954 `suspended' flag. Add the `stop_pc' field. Delete the
17955 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
17956 Add `'last_resume_kind' and `need_step_over' fields.
17957 * inferiors.c (struct thread_info): Delete, moved elsewhere.
17958 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
17959 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
17960 (set_raw_breakpoint_at): New.
17961 (set_breakpoint_at): Rewrite to use it.
17962 (reinsert_breakpoint_handler): Delete.
17963 (set_reinsert_breakpoint): New.
17964 (reinsert_breakpoint_by_bp): Delete.
17965 (delete_reinsert_breakpoints): New.
17966 (uninsert_breakpoint): Rewrite.
17967 (uninsert_breakpoints_at): New.
17968 (reinsert_breakpoint): Rewrite.
17969 (reinsert_breakpoints_at): New.
17970 (check_breakpoints): Rewrite.
17971 (breakpoint_here): New.
17972 (breakpoint_inserted_here): New.
17973 (check_mem_read): Adjust.
17974 * mem-break.h (breakpoints_supported, breakpoint_here)
17975 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
17976 (reinsert_breakpoint_by_bp): Delete declaration.
17977 (delete_reinsert_breakpoints): Declare.
17978 (reinsert_breakpoint): Delete declaration.
17979 (reinsert_breakpoints_at): Declare.
17980 (uninsert_breakpoint): Delete declaration.
17981 (uninsert_breakpoints_at): Declare.
17982 (check_breakpoints): Adjust prototype.
17983 * server.h: Adjust include order.
17984 (struct thread_info): Declare here. Add a `last_status' field.
17985
30ba68cb
MS
179862010-03-23 Michael Snyder <msnyder@vmware.com>
17987
17988 * server.c (crc32): New function.
17989 (handle_query): Add handling for 'qCRC:' request.
17990
b9a881c2
PA
179912010-03-23 Pedro Alves <pedro@codesourcery.com>
17992
17993 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
17994 lwp had been stopped by a watchpoint.
17995
e92d13d5
PA
179962010-03-16 Pedro Alves <pedro@codesourcery.com>
17997
17998 * server.h (internal_error): Declare.
17999 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18000 * utils.c (internal_error): New function.
18001
64daa791
AS
180022010-03-15 Andreas Schwab <schwab@redhat.com>
18003
18004 * configure.srv: Fix typo setting srv_regobj.
18005
f52cd8cd
PA
180062010-03-15 Pedro Alves <pedro@codesourcery.com>
18007
18008 * linux-low.c (fetch_register): Avoid passing a non string literal
18009 format to `error'.
18010 (usr_store_inferior_registers): Ditto.
18011
93ae6fdc
PA
180122010-03-14 Pedro Alves <pedro@codesourcery.com>
18013
18014 * linux-low.c (linux_write_memory): Bail out early if peeking
18015 memory failed.
18016
c3adc08c
PA
180172010-03-14 Pedro Alves <pedro@codesourcery.com>
18018
18019 * linux-low.h (struct lwp_info): New fields
18020 `stopped_by_watchpoint' and `stopped_data_address'.
18021 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18022 here, and cache them in the lwp object.
18023 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18024 directly.
18025 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18026 field.
18027 (linux_stopped_by_watchpoint): Rewrite.
18028 (linux_stopped_data_address): Rewrite.
18029
bce522a2
PA
180302010-03-06 Simo Melenius <simo.melenius@iki.fi>
18031
18032 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18033 switching the current inferior, not before.
18034
90884b2b
L
180352010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18036
18037 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18038 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18039 i386-linux.c and amd64-linux.c.
18040 (reg-i386.o): Removed.
18041 (reg-i386.c): Likewise.
18042 (reg-i386-linux.o): Likewise.
18043 (reg-i386-linux.c): Likewise.
18044 (reg-x86-64.o): Likewise.
18045 (reg-x86-64.c): Likewise.
18046 (reg-x86-64-linux.o): Likewise.
18047 (reg-x86-64-linux.c): Likewise.
18048 (i386.o): New.
18049 (i386.c): Likewise.
18050 (i386-linux.o): Likewise.
18051 (i386-linux.c): Likewise.
18052 (amd64.o): Likewise.
18053 (amd64.c): Likewise.
18054 (amd64-linux.o): Likewise.
18055 (amd64-linux.c): Likewise.
18056
18057 * configure.srv (srv_i386_regobj): New.
18058 (srv_i386_linux_regobj): Likewise.
18059 (srv_amd64_regobj): Likewise.
18060 (srv_amd64_linux_regobj): Likewise.
18061 (srv_i386_32bit_xmlfiles): Likewise.
18062 (srv_i386_64bit_xmlfiles): Likewise.
18063 (srv_i386_xmlfiles): Likewise.
18064 (srv_amd64_xmlfiles): Likewise.
18065 (srv_i386_linux_xmlfiles): Likewise.
18066 (srv_amd64_linux_xmlfiles): Likewise.
18067 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18068 srv_xmlfiles to $srv_i386_xmlfiles.
18069 (i[34567]86-*-mingw32ce*): Likewise.
18070 (i[34567]86-*-mingw*): Likewise.
18071 (i[34567]86-*-nto*): Likewise.
18072 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18073 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18074 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18075 (x86_64-*-linux*): Likewise.
18076
18077 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18078 (init_registers_amd64_linux): New.
18079 (x86_arch_setup): Replace init_registers_x86_64_linux with
18080 init_registers_amd64_linux.
18081
193f13e6
MK
180822010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18083
18084 * configure.ac: Check for libdl. If it is not available link against
18085 static libthread_db.
18086 * configure: Regenerate.
18087
85d721b8
PA
180882010-02-22 Pedro Alves <pedro@codesourcery.com>
18089
18090 PR9605
18091
18092 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18093 handing a read watchpoint.
18094 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18095
6076632b
DE
180962010-02-12 Doug Evans <dje@google.com>
18097
18098 * linux-low.c (linux_supports_tracefork_flag): Document.
18099 (linux_look_up_symbols): Add comment.
18100
3327ccf7
L
181012010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18102
18103 * regcache.c (supply_register): Clear regcache if buf is NULL.
18104
0718675c 181052010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18106 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18107
18108 * inferiors.c (find_inferior): Add function documentation.
18109 (unloaded_dll): Handle the case where the unloaded dll has not
18110 been previously registered in the dll list.
18111
177321bd
DJ
181122010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18113
18114 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18115 (thumb2_breakpoint): New.
18116 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18117
2b009048
DJ
181182010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18119
18120 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18121 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18122 breakpoints.
18123
3be029c7
PA
181242010-01-21 Pedro Alves <pedro@codesourcery.com>
18125
18126 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18127
18f5de3b
JK
181282010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18129
18130 * linux-s390-low.c (s390_collect_ptrace_register)
18131 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18132
3743bb4f
DE
181332010-01-21 Doug Evans <dje@google.com>
18134
14ce3065
DE
18135 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18136 (PTRACE_ARG4_TYPE): New macro.
18137 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18138 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18139 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18140 (usr_store_inferior_registers): Ditto.
18141 (linux_read_memory, linux_write_memory): Ditto.
18142 (linux_test_for_tracefork): Ditto.
18143
3743bb4f
DE
18144 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18145 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18146
8b315be5
PA
181472010-01-21 Pedro Alves <pedro@codesourcery.com>
18148
18149 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18150 target.
18151
85492558
PA
181522010-01-21 Pedro Alves <pedro@codesourcery.com>
18153
18154 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18155 prototype to take a regcache. Adjust.
18156
442ea881
PA
181572010-01-20 Pedro Alves <pedro@codesourcery.com>
18158
18159 * regcache.h (struct thread_info): Forward declare.
18160 (struct regcache): New.
18161 (new_register_cache): Adjust prototype.
18162 (get_thread_regcache): Declare.
18163 (free_register_cache): Adjust prototype.
18164 (registers_to_string, registers_from_string): Ditto.
18165 (supply_register, supply_register_by_name, collect_register)
18166 (collect_register_as_string, collect_register_by_name): Ditto.
18167 * regcache.c (struct inferior_regcache_data): Delete.
18168 (get_regcache): Rename to ...
18169 (get_thread_regcache): ... this. Adjust. Switch inferior before
18170 fetching registers.
18171 (regcache_invalidate_one): Adjust.
18172 (regcache_invalidate): Fix prototype.
18173 (new_register_cache): Return the new register cache.
18174 (free_register_cache): Change prototype.
18175 (realloc_register_cache): Adjust.
18176 (registers_to_string): Change prototype to take a regcache. Adjust.
18177 (registers_from_string): Ditto.
18178 (register_data): Ditto.
18179 (supply_register): Ditto.
18180 (supply_register_by_name): Ditto.
18181 (collect_register): Ditto.
18182 (collect_register_as_string): Ditto.
18183 (collect_register_by_name): Ditto.
18184 * server.c (process_serial_event): Adjust.
18185 * linux-low.h (regset_fill_func, regset_store_func): Change
18186 prototype.
18187 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18188 Change prototype.
18189 * linux-low.c (get_stop_pc): Adjust.
18190 (check_removed_breakpoint): Adjust.
18191 (linux_wait_for_event): Adjust.
18192 (linux_resume_one_lwp): Adjust.
18193 (fetch_register): Add regcache parameter. Adjust.
18194 (usr_store_inferior_registers): Ditto.
18195 (regsets_fetch_inferior_registers): Ditto.
18196 (regsets_store_inferior_registers): Ditto.
18197 (linux_fetch_registers, linux_store_registers): Ditto.
18198 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18199 regcache. Adjust.
43aaf8b6
PA
18200 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18201 Ditto.
442ea881
PA
18202 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18203 prototype to take a regcache.
18204 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18205 * remote-utils.c (convert_ascii_to_int, outreg)
18206 (prepare_resume_reply): Change prototype to take a regcache.
18207 Adjust.
18208 * target.h (struct target_ops) <fetch_registers, store_registers>:
18209 Change prototype to take a regcache.
18210 (fetch_inferior_registers, store_inferior_registers): Change
18211 prototype to take a regcache. Adjust.
18212 * proc-service.c (ps_lgetregs): Adjust.
18213 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18214 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18215 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18216 take a regcache. Adjust.
18217 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18218 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18219 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18220 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18221 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18222 (cris_cannot_fetch_register):
18223 (cris_breakpoint_at): Change prototype to take a regcache.
18224 Adjust.
18225 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18226 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18227 to take a regcache. Adjust.
18228 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18229 Adjust.
18230 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18231 take a regcache. Adjust.
18232 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18233 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18234 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18235 * linux-mips-low.c (mips_get_pc):
18236 (mips_set_pc): Change prototype to take a regcache. Adjust.
18237 (mips_reinsert_addr): Adjust.
18238 (mips_collect_register): Change prototype to take a regcache.
18239 Adjust.
18240 (mips_supply_register):
18241 (mips_collect_register_32bit, mips_supply_register_32bit)
18242 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18243 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18244 * linux-ppc-low.c (ppc_supply_ptrace_register)
18245 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18246 (parse_spufs_run): Adjust.
18247 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18248 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18249 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18250 take a regcache. Adjust.
18251 * linux-s390-low.c (s390_collect_ptrace_register)
18252 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18253 (s390_set_pc): Change prototype to take a regcache. Adjust.
18254 (s390_arch_setup): Adjust.
18255 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18256 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18257 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18258 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18259 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18260 regcache. Adjust.
18261 (sparc_breakpoint_at): Adjust.
18262 * linux-xtensa-low.c (xtensa_fill_gregset):
18263 (xtensa_store_gregset):
18264 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18265 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18266 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18267 prototype to take a regcache. Adjust.
18268 * win32-arm-low.c (arm_fetch_inferior_register)
18269 (arm_store_inferior_register): Change prototype to take a
18270 regcache. Adjust.
18271 * win32-i386-low.c (i386_fetch_inferior_register)
18272 (i386_store_inferior_register): Change prototype to take a
18273 regcache. Adjust.
18274 * win32-low.c (child_fetch_inferior_registers)
18275 (child_store_inferior_registers): Change prototype to take a
18276 regcache. Adjust.
18277 (win32_wait): Adjust.
18278 (win32_fetch_inferior_registers): Change prototype to take a
18279 regcache. Adjust.
18280 (win32_store_inferior_registers): Adjust.
18281 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18282 store_inferior_register>: Change prototype to take a regcache.
18283
60c3d7b0
DE
182842010-01-20 Doug Evans <dje@google.com>
18285
18286 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18287 #ifdef.
18288 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18289 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18290
dc146f7c
VP
182912010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18292
18293 * linux-low.c (linux_core_of_thread): New.
18294 (compare_ints, show_process, list_threads): New.
18295 (linux_qxfer_osdata): Report threads and cores.
18296 (linux_target_op): Register linux_core_of_thread.
18297 * remote-utils.c (prepare_resume_reply): Report the core.
18298 (buffer_xml_printf): Support %d specifier.
18299 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18300 New.
18301 (handle_query): Handle qXfer:threads. Announce availability
18302 thereof.
18303 * target.h (struct target_ops): New field core_of_thread.
18304
7803799a
UW
183052010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18306
18307 * Makefile.in (clean): Remove new generated files.
18308 (reg-s390.o, reg-s390.c): Remove rules.
18309 (reg-s390x.o, reg-s390x.c): Likewise.
18310 (s390-linux32.o, s390-linux32.c): Add rules.
18311 (s390-linux64.o, s390-linux64.c): Likewise.
18312 (s390x-linux64.o, s390x-linux64.c): Likewise.
18313 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18314 * linux-s390-low.c: Include <elf.h>.
18315 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18316 (init_registers_s390): Remove prototype.
18317 (init_registers_s390x): Likewise.
18318 (init_registers_s390_linux32): Add prototype.
18319 (init_registers_s390_linux64): Likewise.
18320 (init_registers_s390x_linux64): Likewise.
18321 (s390_num_regs_3264): New define.
18322 (s390_regmap_3264): New global variable.
18323 (s390_cannot_fetch_register): Remove obsolete check.
18324 (s390_cannot_store_register): Likewise.
18325 (s390_collect_ptrace_register): Handle upper/lower register halves.
18326 (s390_supply_ptrace_register): Likewise.
18327 (s390_fill_gregset): Update to register number changes.
18328 (s390_get_hwcap): New routine.
18329 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18330 Install appropriate regmap and register set.
18331
6e7ffa39
JB
183322010-01-01 Joel Brobecker <brobecker@adacore.com>
18333
18334 * server.c (gdbserver_version): Update copyright year to 2010.
18335 * gdbreplay.c (gdbreplay_version): Likewise.
18336
957f3f49
DE
183372009-12-28 Doug Evans <dje@google.com>
18338
18339 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18340 elf/external.h. Include <elf.h> instead but only if necessary.
18341
ca5c370d
PA
183422009-12-28 Pedro Alves <pedro@codesourcery.com>
18343
18344 * linux-low.c (linux_remove_process): Remove `detaching'
18345 parameter. Don't release/detach from thread_db here.
18346 (linux_kill): Release/detach from thread_db here, ...
18347 (linux_detach): ... and here, before actually detaching.
18348 (linux_wait_1): ... and here, when a process exits.
18349 * thread-db.c (any_thread_of): New.
18350 (thread_db_free): Switch the current inferior to a thread of the
18351 passed in process.
18352
4ee62156
DE
183532009-12-21 Doug Evans <dje@google.com>
18354
d90e6a88
DE
18355 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18356
c5f62d5f
DE
18357 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18358 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18359 warning ifndef __NR_tkill. Move setting of errno there too.
18360 Delete unnecessary resetting of errno after syscall.
18361 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18362
10e86dd7
DE
18363 * configure.ac: Check for dladdr.
18364 * config.in: Regenerate.
18365 * configure: Regenerate.
18366 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18367 (try_thread_db_load): Update.
18368
4ee62156
DE
18369 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18370
00f515da
DE
183712009-12-18 Doug Evans <dje@google.com>
18372
e9464885
DE
18373 * event-loop.c: Include unistd.h if it exists.
18374
07d4f67e
DE
18375 * linux-low.c (my_waitpid): Move definition away from being in
18376 between linux_tracefork_child/linux_test_for_tracefork.
18377
00f515da
DE
18378 * gdb_proc_service.h (psaddr_t): Fix type.
18379 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18380 signature to match glibc.
18381
1de1badb
DE
183822009-12-16 Doug Evans <dje@google.com>
18383
18384 * linux-low.c (linux_read_memory): Fix argument to read.
18385
aeeb81d1
PA
183862009-11-26 Pedro Alves <pedro@codesourcery.com>
18387
18388 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18389 events, don't leave current_inferior pointing at null.
18390
10357975
PA
183912009-11-26 Pedro Alves <pedro@codesourcery.com>
18392
18393 * win32-low.c (LOG): Delete.
18394 (OUTMSG): Output to stderr.
18395 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18396 on compile time LOG macro.
18397 (win32_wait): Fix debug output.
18398
cf6e3471
PA
183992009-11-26 Pedro Alves <pedro@codesourcery.com>
18400
18401 * win32-low.c (win32_add_one_solib): If the dll name is
18402 "ntdll.dll", prepend the system directory to the dll path.
18403
0c85e18e
MK
184042009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18405
18406 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18407
9ac544ce 184082009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18409 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18410
18411 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18412 * configure.ac: Check for __mcoldfire__ and set
18413 gdb_cv_m68k_is_coldfire.
18414 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18415 reg-cf.o and reg-m68k.o.
18416 * configure: Regenerated.
18417
fd7dd3e6
PA
184182009-11-16 Pedro Alves <pedro@codesourcery.com>
18419
18420 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18421 Pass it to thread_db_free.
18422 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18423 proper `detaching' argument to linux_remove_process.
18424 * linux-low.h (thread_db_free): Add `detaching' parameter.
18425 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18426 to thread_db_free.
18427 (thread_db_free): Add `detaching' parameter. Only
18428 call td_ta_clear_event if detaching from process.
18429
75aa492e
MK
184302009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18431
18432 * thread-db.c (thread_db_free): Fix typo.
18433
21e1bee4
PP
184342009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18435
18436 PR gdb/10838
18437 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18438
8838b45e
NS
184392009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18440
18441 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18442 with an i686 compiler.
18443 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18444 needed.
18445 * configure: Rebuilt.
18446
8a35fb51
SL
184472009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18448
18449 PR gdb/10783
18450
18451 * server.c (handle_search_memory_1): Correct read_addr initialization
18452 in loop for searching subsequent chunks.
18453
96f15937
PP
184542009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18455
18456 * configure.ac: New --with-libthread-db option.
18457 * thread-db.c: Allow direct dependence on libthread_db.
18458 (thread_db_free): Adjust.
18459 * config.in: Regenerate.
18460 * configure: Likewise.
889bf7c5 18461
5f7d1694
PP
184622009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18463
18464 PR gdb/10757
18465 * thread-db.c (attach_thread): New function.
18466 (maybe_attach_thread): Return success/failure.
18467 (find_new_threads_callback): Adjust.
889bf7c5
PA
18468 (thread_db_find_new_threads): Loop until no new threads.
18469
88e3b899
PA
184702009-10-13 Pedro Alves <pedro@codesourcery.com>
18471
18472 * proc-service.c (ps_lgetregs): Formatting.
18473
cdbfd419
PP
184742009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18475
18476 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18477 * configure.ac: Adjust.
18478 * linux-low.h (struct process_info_private): Move members to struct
18479 thread_db.
18480 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18481 * linux-low.c (linux_remove_process): Adjust.
18482 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18483 * server.c (handle_query): Move code ...
18484 (handle_monitor_command): ... here. New function.
18485 * target.h (struct target_ops): New member.
18486 * thread-db.c (struct thread_db): New.
18487 (libthread_db_search_path): New variable.
18488 (thread_db_create_event, thread_db_enable_reporting)
18489 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18490 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18491 (try_thread_db_load_1, dladdr_to_soname): New functions.
18492 (try_thread_db_load, thread_db_load_search): New functions.
18493 (thread_db_init): Search for libthread_db.
18494 (thread_db_free): New function.
18495 (thread_db_handle_monitor_command): Likewise.
18496 * config.in: Regenerate.
18497 * configure: Regenerate.
889bf7c5 18498
4168d2d6
UW
184992009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18500
18501 * spu-low.c (spu_kill): Wait for inferior to terminate.
18502 Call clear_inferiors.
18503 (spu_detach): Call clear_inferiors.
18504
81ecdfbb
RW
185052009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18506
18507 * aclocal.m4: Regenerate.
18508 * config.in: Likewise.
18509 * configure: Likewise.
18510
0b9ff2c0
UW
185112009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18512
18513 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18514 (parse_spufs_run): New function.
18515 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18516 (ppc_breakpoint_at): Handle SPU breakpoints.
18517
efcbbd14
UW
185182009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18519
18520 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18521 (SPUFS_MAGIC): Define.
18522 (spu_enumerate_spu_ids): New function.
18523 (linux_qxfer_spu): New function.
18524 (linux_target_ops): Install linux_qxfer_spu.
18525
f4d9bade
UW
185262009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18527
18528 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18529 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18530 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18531 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18532 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18533 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18534 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18535 (init_registers_powerpc_cell32l): Add prototype.
18536 (init_registers_powerpc_cell64l): Likewise.
18537 (ppc_arch_setup): Detect Cell/B.E. architecture.
18538
96e946ca
RW
185392009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18540
18541 * Makefile.in (datarootdir): New variable.
18542
58d6951d
DJ
185432009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18544
18545 * linux-low.c (linux_write_memory): Update debugging output.
18546 * Makefile.in (clean): Add new descriptions.
18547 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18548 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18549 * configure.srv: Add new files for arm*-*-linux*.
18550 * linux-arm-low.c: Add new declarations.
18551 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18552 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18553 (HWCAP_VFPv3D16): New.
18554 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18555 instead of __IWMMXT__.
18556 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18557 (arm_arch_setup): New.
18558 (target_regsets): Remove #ifdef. Add VFP regset.
18559 (the_low_target): Use arm_arch_setup.
18560
12b42a12
DJ
185612009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18562
18563 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18564 the main thread again.
18565
ac8c974e
AR
185662009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18567
18568 Adding Neutrino gdbserver.
18569 * configure: Regenerated.
18570 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18571 * configure.srv (i[34567]86-*-nto*): New target.
18572 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18573 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18574 (nto_comctrl) [__QNX__]: New function.
18575 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18576
4424e0c3 185772009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18578
18579 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18580 srv_tgtobj.
18581
912cf4ba
PA
185822009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18583 Pedro Alves <pedro@codesourcery.com>
18584
18585 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18586 don't support CONTEXT_EXTENDED_REGISTERS.
18587 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18588 (the_low_target): Install them.
18589 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18590 failing with ERROR_PIPE_NOT_CONNECTED.
18591
aa5ca48f
DE
185922009-06-30 Doug Evans <dje@google.com>
18593 Pierre Muller <muller@ics.u-strasbg.fr>
18594
18595 Add h/w watchpoint support to x86-linux, win32-i386.
18596 * Makefile.in (SFILES): Add i386-low.c
18597 (i386_low_h): Define.
18598 (i386-low.o): Add dependencies.
18599 (linux-x86-low.o): Add i386-low.h dependency.
18600 (win32-i386-low.o): Ditto.
18601 * i386-low.c: New file.
18602 * i386-low.h: New file.
18603 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18604 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18605 * linux-low.c (linux_add_process): Initialize arch_private.
18606 (linux_remove_process): Free arch_private.
18607 (add_lwp): Initialize arch_private.
18608 (delete_lwp): Free arch_private.
18609 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18610 provided.
18611 * linux-low.h (process_info_private): New member arch_private.
18612 (lwp_info): New member arch_private.
18613 (linux_target_ops): New members new_process, new_thread,
18614 prepare_to_resume.
18615 (ptid_of): New macro.
18616 * linux-x86-low.c: Include stddef.h, i386-low.h.
18617 (arch_process_info): New struct.
18618 (arch_lwp_info): New struct.
18619 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18620 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18621 (i386_dr_low_get_status): New function.
18622 (x86_insert_point, x86_remove_point): New functions.
18623 (x86_stopped_by_watchpoint): New function.
18624 (x86_stopped_data_address): New function.
18625 (x86_linux_new_process, x86_linux_new_thread): New functions.
18626 (x86_linux_prepare_to_resume): New function.
18627 (the_low_target): Add entries for insert_point, remove_point,
18628 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18629 prepare_to_resume.
18630 * server.c (debug_hw_points): New global.
18631 (monitor_show_help): Document set debug-hw-points.
18632 (handle_query): Process "set debug-hw-points".
18633 * server.h (debug_hw_points): Declare.
18634 (paddress): Declare.
18635 * utils.c (NUMCELLS, CELLSIZE): New macros.
18636 (get_sell, xsnprintf, paddress): New functions.
18637 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18638 remove_point, stopped_by_watchpoint, stopped_data_address.
18639 * win32-i386-low.c: Include i386-low.h.
18640 (debug_reg_state): Replaces dr.
18641 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18642 (i386_dr_low_get_status): New function.
18643 (i386_insert_point, i386_remove_point): New functions.
18644 (i386_stopped_by_watchpoint): New function.
18645 (i386_stopped_data_address): New function.
18646 (i386_initial_stuff): Update.
18647 (get_thread_context,set_thread_context,i386_thread_added): Update.
18648 (the_low_target): Add entries for insert_point,
18649 remove_point, stopped_by_watchpoint, stopped_data_address.
18650 * win32-low.c (win32_insert_watchpoint): New function.
18651 (win32_remove_watchpoint): New function.
18652 (win32_stopped_by_watchpoint): New function.
18653 (win32_stopped_data_address): New function.
18654 (win32_target_ops): Add entries for insert_watchpoint,
18655 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18656 * win32-low.h (win32_target_ops): New members insert_point,
18657 remove_point, stopped_by_watchpoint, stopped_data_address.
18658
d993e290
PA
186592009-06-25 Pedro Alves <pedro@codesourcery.com>
18660
18661 * server.c (process_serial_event): Re-return unsupported, not
18662 error, if the type isn't recognized. Re-allow supporting only
18663 insert or remove packets. Also call require_running for
18664 breakpoints. Add missing break statement to default case. Tidy.
18665 * target.h (struct target_ops): Rename insert_watchpoint to
18666 insert_point, and remove_watchpoint to remove_point.
18667
18668 * linux-low.h (struct linux_target_ops): Likewise.
18669 * linux-low.c (linux_insert_watchpoint): Rename to ...
18670 (linux_insert_point): ... this. Adjust.
18671 (linux_remove_watchpoint): Rename to ...
18672 (linux_remove_point): ... this. Adjust.
18673 (linux_target_ops): Adjust.
18674 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18675 (cris_insert_point): ... this.
18676 (cris_remove_watchpoint): Rename to ...
18677 (cris_remove_point): ... this.
18678 (the_low_target): Adjust.
18679
0f54c268
PM
186802009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18681
18682 * server.c (handle_v_kill): Pass signal_pid to
18683 kill_inferior if multi_process is zero.
18684
c6314022
AR
186852009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18686
18687 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18688 * target.h (target_ops): Comment for *_watchpoint to make it clear
18689 the functions can get types '0' and '1'.
18690
4463ce24
AR
186912009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18692
18693 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18694 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18695 * regcache.c (get_regcache): Likewise.
18696 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18697 * win32-low.c (child_fetch_inferior_registers): Remove check for
18698 regno 0.
18699
cf8fd78b
PA
187002009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18701 Pedro Alves <pedro@codesourcery.com>
18702
18703 * target.h (struct target_ops) <supports_multi_process>: New
18704 callback.
18705 (target_supports_multi_process): New.
18706 * server.c (handle_query): Even if GDB reports support, only
18707 enable multi-process if the target also supports it. Report
18708 multi-process support only if the target backend supports it.
18709 * linux-low.c (linux_supports_multi_process): New function.
18710 (linux_target_ops): Install it as target_supports_multi_process
18711 callback.
18712
47c0c975
DE
187132009-05-24 Doug Evans <dje@google.com>
18714
e09875d4
DE
18715 Global renaming of find_thread_pid to find_thread_ptid.
18716 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18717 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18718 All callers updated.
18719
e27d73f6
DE
18720 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18721 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18722 directly.
18723
47c0c975
DE
18724 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18725 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18726 (linux_resume_one_lwp): Ditto.
18727
2acc282a
DE
187282009-05-23 Doug Evans <dje@google.com>
18729
18730 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18731 from struct inferior_list_entry * to struct lwp_info *.
18732 All callers updated.
18733
9f1036c1
DE
187342009-05-13 Doug Evans <dje@google.com>
18735
18736 * linux-x86-low.c: Don't include assert.h.
18737 (x86_siginfo_fixup): Use fatal, not assert.
18738 (x86_arch_setup): Fix comment.
18739
d0722149
DE
187402009-05-12 Doug Evans <dje@google.com>
18741
18742 Biarch support for i386/amd64 gdbserver.
18743 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18744 Add linux-x86-low.c.
18745 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18746 (linux-x86-low.o): Add.
18747 * linux-x86-64-low.c: Delete.
18748 * linux-i386-low.c: Delete.
18749 * linux-x86-low.c: New file.
18750 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18751 linux-x86-low.o.
18752 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18753 linux-x86-low.o.
18754 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18755 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18756 (linux_child_pid_to_exec_file): New function.
18757 (elf_64_header_p, elf_64_file_p): New functions.
18758 (siginfo_fixup): New function.
18759 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18760 give target a chance to convert layout.
18761 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18762 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18763
fdeb2a12
DE
187642009-05-07 Doug Evans <dje@google.com>
18765
18766 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18767 (regsets_store_inferior_registers): Ditto.
18768
a6dbe5df
PA
187692009-05-06 Pedro Alves <pedro@codesourcery.com>
18770
18771 PR server/10048
18772
18773 * linux-low.c (must_set_ptrace_flags): Delete.
18774 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18775 of the global.
18776 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18777 `lwp->must_set_ptrace_flags' instead.
ba42693b 18778 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
18779 (linux_wait_1): ... not here.
18780
5091eb23
DE
187812009-04-30 Doug Evans <dje@google.com>
18782
9f767825
DE
18783 * inferiors.c (started_inferior_callback): New function.
18784 (attached_inferior_callback): New function.
18785 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18786 * server.c (print_started_pid, print_attached_pid): New functions.
18787 (detach_or_kill_for_exit): New function.
18788 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18789 * server.h (have_started_inferiors_p): Declare.
18790 (have_attached_inferiors_p): Declare.
18791
5091eb23
DE
18792 * inferiors.c (remove_process): Fix memory leak, free process.
18793 * linux-low.c (linux_remove_process): New function.
18794 (linux_kill): Call it instead of remove_process.
18795 (linux_detach, linux_wait_1): Ditto.
18796
155c8968
PA
187972009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18798
18799 * configure.srv: Add x86 Windows CE target.
18800
7fe519cb
UW
188012009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18802
18803 * inferiors.c (get_thread_process): Make global.
18804 * server.h (get_thread_process): Add prototype.
18805 * thread-db.c (find_one_thread): Use get_thread_process
18806 instead of current_process.
18807 (thread_db_get_tls_address): Do not crash if called when
18808 thread layer is not yet initialized.
18809
5472f405
UW
188102009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18811
18812 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18813 * spu-low.c (current_tid): Rename to ...
18814 (current_ptid): ... this.
18815 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18816 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18817 ptid_get_lwp (current_ptid) instead of current_tid.
18818 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18819 instead of current_tid. Use find_process_pid to verify pid
18820 argument is valid. Pass proper argument to remove_process.
18821 (spu_thread_alive): Compare current_ptid instead of current_tid.
18822 (spu_resume): Likewise.
18823
55ac2b99
PA
188242009-04-02 Pedro Alves <pedro@codesourcery.com>
18825
18826 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18827 variable.
18828
95954743
PA
188292009-04-01 Pedro Alves <pedro@codesourcery.com>
18830
18831 Implement the multiprocess extensions, and add linux multiprocess
18832 support.
18833
18834 * server.h (ULONGEST): Declare.
18835 (struct ptid, ptid_t): New.
18836 (minus_one_ptid, null_ptid): Declare.
18837 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18838 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18839 (struct inferior_list_entry): Change `id' type from unsigned from
18840 to ptid_t.
18841 (struct sym_cache, struct breakpoint, struct
18842 process_info_private): Forward declare.
18843 (struct process_info): Declare.
18844 (current_process): Declare.
18845 (all_processes): Declare.
18846 (initialize_inferiors): Declare.
18847 (add_thread): Adjust to use ptid_t.
18848 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18849 (add_process, remove_process, find_thread_pid): Declare.
18850 (find_inferior_id): Adjust to use ptid_t.
18851 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18852 (multi_process): Declare.
18853 (push_event): Adjust to use ptid_t.
18854 (read_ptid, write_ptid): Declare.
18855 (prepare_resume_reply): Adjust to use ptid_t.
18856 (clear_symbol_cache): Declare.
18857 * inferiors.c (all_processes): New.
18858 (null_ptid, minus_one_ptid): New.
18859 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18860 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18861 (add_thread): Change unsigned long to ptid. Remove gdb_id
18862 parameter. Adjust.
18863 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18864 (gdb_id_to_thread): Rename to ...
18865 (find_thread_pid): ... this. Change unsigned long to ptid.
18866 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18867 (loaded_dll, pull_pid_from_list): Adjust.
18868 (add_process, remove_process, find_process_pid)
18869 (get_thread_process, current_process, initialize_inferiors): New.
18870 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18871 (struct target_waitstatus) <related_pid>: Ditto.
18872 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18873 return type to int.
18874 (struct target_ops) <join>: Add `pid' argument.
18875 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18876 (struct target_ops) <wait>: Add `ptid' field. Change return type
18877 to ptid.
18878 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18879 (mywait): Add `ptid' argument. Change return type to ptid_t.
18880 (target_pid_to_str): Declare.
18881 * target.c (set_desired_inferior): Adjust to use ptids.
18882 (mywait): Add new `ptid' argument. Adjust.
18883 (target_pid_to_str): New.
18884 * mem-break.h (free_all_breakpoints): Declare.
18885 * mem-break.c (breakpoints): Delelete.
18886 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18887 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18888 to use per-process breakpoint list.
18889 (free_all_breakpoints): New.
18890 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18891 (symbol_cache, all_symbols_looked_up): Delete.
18892 (hexchars): New.
18893 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18894 read_ptid): New.
18895 (prepare_resume_reply): Change ptid argument's type from unsigned
18896 long to ptid_t. Adjust. Implement W;process and X;process.
18897 (free_sym_cache, clear_symbol_cache): New.
18898 (look_up_one_symbol): Adjust to per-process symbol cache. *
18899 * server.c (cont_thread, general_thread, step_thread): Change type
18900 to ptid_t.
18901 (attached): Delete.
18902 (multi_process): New.
18903 (last_ptid): Change type to ptid_t.
18904 (struct vstop_notif) <ptid>: Change type to ptid_t.
18905 (queue_stop_reply, push_event): Change `ptid' argument's type to
18906 ptid_t.
18907 (discard_queued_stop_replies): Add `pid' argument.
18908 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18909 changes. Don't reference the `attached' global.
18910 (attach_inferior): Adjust to mywait interface changes.
18911 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18912 features. Handle and report "multiprocess+". Handle
18913 "qAttached:PID".
18914 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18915 changes.
18916 (handle_v_kill): New.
18917 (handle_v_stopped): Adjust to use target_pid_to_str.
18918 (handle_v_requests): Allow multiple attaches and runs when
18919 multiprocess extensions are in effect. Handle "vKill".
18920 (myresume): Adjust to use ptids.
18921 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
18922 (handle_status): Adjust to discard_queued_stop_replies interface
18923 change.
18924 (first_thread_of, kill_inferior_callback)
18925 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
18926 (main): Call initialize_inferiors. Adjust to use ptids, killing
18927 and detaching from all inferiors. Handle multiprocess packet
18928 variants.
18929 * linux-low.h: Include gdb_proc_service.h.
18930 (struct process_info_private): New.
18931 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
18932 <lwpid_of>: Use ptid_get_lwp.
18933 (get_lwp_thread): Adjust.
18934 (struct lwp_info): Add `dead' member.
18935 (find_lwp_pid): Declare.
18936 * linux-low.c (thread_db_active): Delete.
18937 (new_inferior): Adjust comment.
18938 (inferior_pid): Delete.
18939 (linux_add_process): New.
18940 (handle_extended_wait): Adjust.
18941 (add_lwp): Change unsigned long to ptid.
18942 (linux_create_inferior): Add process to processes table. Adjust
18943 to use ptids. Don't set new_inferior here.
18944 (linux_attach_lwp): Rename to ...
18945 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
18946 it. Adjust to use ptids.
18947 (linux_attach_lwp): New.
18948 (linux_attach): Add process to processes table. Don't set
18949 new_inferior here.
18950 (struct counter): New.
18951 (second_thread_of_pid_p, last_thread_of_process_p): New.
18952 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
18953 multiple processes.
18954 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
18955 processes. Remove process from process table.
18956 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
18957 to multiple processes.
18958 (any_thread_of): New.
18959 (linux_detach): Add `pid' argument, and handle it. Remove process
18960 from processes table.
18961 (linux_join): Add `pid' argument. Handle it.
18962 (linux_thread_alive): Change unsighed long argument to ptid_t.
18963 Consider dead lwps as not being alive.
18964 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
18965 threads we're not interested in.
18966 (same_lwp, find_lwp_pid): New.
18967 (linux_wait_for_lwp): Change `pid' argument's type from int to
18968 ptid_t. Adjust.
18969 (linux_wait_for_event): Rename to ...
18970 (linux_wait_for_event_1): ... this. Change `pid' argument's type
18971 from int to ptid_t. Adjust.
18972 (linux_wait_for_event): New.
18973 (linux_wait_1): Add `ptid' argument. Change return type to
18974 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
18975 that exit from the process table.
18976 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
18977 Adjust.
18978 (mark_lwp_dead): New.
18979 (wait_for_sigstop): Adjust to use ptids. If a process exits while
18980 stopping all threads, mark its main lwp as dead.
18981 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
18982 ptids.
18983 (fetch_register, usr_store_inferior_registers)
18984 (regsets_fetch_inferior_registers)
18985 (regsets_store_inferior_registers, linux_read_memory)
18986 (linux_write_memory): Inline `inferior_pid'.
18987 (linux_look_up_symbols): Adjust to use per-process
18988 `thread_db_active'.
18989 (linux_request_interrupt): Adjust to use ptids.
18990 (linux_read_auxv): Inline `inferior_pid'.
18991 (initialize_low): Don't reference thread_db_active.
18992 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
18993 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
18994 (ps_getpid): Return the pid of the current inferior.
18995 * thread-db.c (proc_handle, thread_agent): Delete.
18996 (thread_db_create_event, thread_db_enable_reporting): Adjust to
18997 per-process data.
18998 (find_one_thread): Change argument type to ptid_t. Adjust to
18999 per-process data.
19000 (maybe_attach_thread): Adjust to per-process data and ptids.
19001 (thread_db_find_new_threads): Ditto.
19002 (thread_db_init): Ditto.
19003 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19004 processes table. Adjust to use ptids.
19005 (spu_kill, spu_detach): Adjust interface. Remove process from
19006 processes table.
19007 (spu_join, spu_thread_alive): Adjust interface.
19008 (spu_wait): Adjust interface. Remove process from processes
19009 table. Adjust to use ptids.
19010 * win32-low.c (current_inferior_tid): Delete.
19011 (current_inferior_ptid): New.
19012 (debug_event_ptid): New.
19013 (thread_rec): Take a ptid. Adjust.
19014 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19015 (child_delete_thread): Ditto.
19016 (do_initial_child_stuff): Add `attached' argument. Add process to
19017 processes table.
19018 (child_fetch_inferior_registers, child_store_inferior_registers):
19019 Adjust.
19020 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19021 (win32_attach): Pass 1 to do_initial_child_stuff.
19022 (win32_kill): Adjust interface. Remove process from processes
19023 table.
19024 (win32_detach): Ditto.
19025 (win32_join): Adjust interface.
19026 (win32_thread_alive): Take a ptid.
19027 (win32_resume): Adjust to use ptids.
19028 (get_child_debug_event): Ditto.
19029 (win32_wait): Adjust interface. Remove exiting process from
19030 processes table.
19031
bd99dc85
PA
190322009-04-01 Pedro Alves <pedro@codesourcery.com>
19033
19034 Non-stop mode support.
19035
19036 * server.h (non_stop): Declare.
19037 (gdb_client_data, handler_func): Declare.
19038 (delete_file_handler, add_file_handler, start_event_loop):
19039 Declare.
19040 (handle_serial_event, handle_target_event, push_event)
19041 (putpkt_notif): Declare.
19042 * target.h (enum resume_kind): New.
19043 (struct thread_resume): Replace `step' field by `kind' field.
19044 (TARGET_WNOHANG): Define.
19045 (struct target_ops) <wait>: Add `options' argument.
19046 <supports_non_stop, async, start_non_stop>: New fields.
19047 (target_supports_non_stop, target_async): New.
19048 (start_non_stop): Declare.
19049 (mywait): Add `options' argument.
19050 * target.c (mywait): Add `options' argument. Print child exit
19051 notifications here.
19052 (start_non_stop): New.
19053 * server.c (non_stop, own_buf, mem_buf): New globals.
19054 (struct vstop_notif): New.
19055 (notif_queue): New global.
19056 (queue_stop_reply, push_event, discard_queued_stop_replies)
19057 (send_next_stop_reply): New.
19058 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19059 interface changes.
19060 (attach_inferior): In non-stop mode, don't wait for the target
19061 here.
19062 (handle_general_set): Handle QNonStop.
19063 (handle_query): When handling qC, return the current general
19064 thread, instead of the first thread of the list.
19065 (handle_query): If the backend supports non-stop mode, include
19066 QNonStop+ in the qSupported query response.
19067 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19068 and non-stop mode.
19069 (handle_v_attach, handle_v_run): Handle non-stop mode.
19070 (handle_v_stopped): New.
19071 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19072 (myresume): Adjust to use resume_kind. Handle non-stop.
19073 (queue_stop_reply_callback): New.
19074 (handle_status): Handle non-stop mode.
19075 (main): Clear non_stop flag on reconnection. Use the event-loop.
19076 Refactor serial protocol handling from here ...
19077 (process_serial_event): ... to this new function. When GDB
19078 selects any thread, select one here. In non-stop mode, wait until
19079 GDB acks all pending events before exiting.
19080 (handle_serial_event, handle_target_event): New.
19081 * remote-utils.c (remote_open): Install remote_desc in the event
19082 loop.
19083 (remote_close): Remove remote_desc from the event loop.
19084 (putpkt_binary): Rename to...
19085 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19086 (putpkt_binary): New as wrapper around putpkt_binary_1.
19087 (putpkt_notif): New.
19088 (prepare_resume_reply): In non-stop mode, don't change the
19089 general_thread.
19090 * event-loop.c: New.
19091 * Makefile.in (OBJ): Add event-loop.o.
19092 (event-loop.o): New rule.
19093
19094 * linux-low.h (pid_of): Moved here.
19095 (lwpid_of): New.
19096 (get_lwp_thread): Use lwpid_of.
19097 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19098 * linux-low.c (pid_of): Delete.
19099 (inferior_pid): Use lwpid_of.
19100 (linux_event_pipe): New.
19101 (target_is_async_p): New.
19102 (delete_lwp): New.
19103 (handle_extended_wait): Use lwpid_of.
19104 (add_lwp): Don't set lwpid field.
19105 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19106 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19107 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19108 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19109 first. Adjust to linux_wait_for_event interface changes. Use
19110 lwpid_of.
19111 (linux_detach): Don't delete the main lwp here.
19112 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19113 (status_pending_p): Don't consider explicitly suspended lwps.
19114 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19115 pointer. Add OPTIONS argument. Change return type to int. Use
19116 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19117 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19118 pointer. Add status pointer argument. Return a pid instead of a
19119 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19120 changes. In non-stop mode, don't switch to a random thread.
19121 (linux_wait): Rename to...
19122 (linux_wait_1): ... this. Add target_options argument, and handle
19123 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19124 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19125 clean exit and signal exit code. Don't stop all threads in
19126 non-stop mode. In all-stop mode, only stop all threads when
19127 reporting a stop to GDB. Handle explicit thread stop requests.
19128 (async_file_flush, async_file_mark): New.
19129 (linux_wait): New.
19130 (send_sigstop): Use lwpid_of.
19131 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19132 interface changes. In non-stop mode, don't switch to a random
19133 thread.
19134 (linux_resume_one_lwp): Use lwpid_of.
19135 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19136 (linux_resume_one_thread): ... this. Handle resume_stop. In
19137 non-stop mode, don't look for pending flag in all threads.
19138 (resume_status_pending_p): Don't consider explicitly suspended
19139 threads.
19140 (my_waitpid): Reimplement. Emulate __WALL.
19141 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19142 Use lwpid_of.
19143 (sigchld_handler, linux_supports_non_stop, linux_async)
19144 (linux_start_non_stop): New.
19145 (linux_target_ops): Register linux_supports_non_stop, linux_async
19146 and linux_start_non_stop.
19147 (initialize_low): Install SIGCHLD handler.
19148 * thread-db.c (thread_db_create_event, find_one_thread)
19149 (thread_db_get_tls_address): Use lwpid_of.
19150 * win32-low.c (win32_detach): Adjust to use resume_kind.
19151 (win32_wait): Add `options' argument.
19152 * spu-low.c (spu_resume): Adjust to use resume_kind.
19153 (spu_wait): Add `options' argument.
19154
5b1c542e
PA
191552009-04-01 Pedro Alves <pedro@codesourcery.com>
19156
19157 Decouple target code from remote protocol.
19158
19159 * target.h (enum target_waitkind): New.
19160 (struct target_waitstatus): New.
19161 (struct target_ops) <wait>: Return an unsigned long. Take a
19162 target_waitstatus pointer instead of a char pointer.
19163 (mywait): Likewise.
19164 * target.c (mywait): Change prototype to return an unsigned long.
19165 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19166 * server.h (thread_from_wait, old_thread_from_wait): Delete
19167 declarations.
19168 (prepare_resume_reply): Change prototype to take a
19169 target_waitstatus.
19170 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19171 (last_status, last_ptid): New.
19172 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19173 pid instead of a signal.
19174 (attach_inferior): Remove "status" and "signal" parameters.
19175 Adjust.
19176 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19177 not as an address.
19178 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19179 (handle_v_requests, myresume): Remove "status" and "signal"
19180 parameters. Adjust.
19181 (handle_status): New.
19182 (main): Delete local `status'. Adjust.
19183 * remote-utils.c: Include target.h.
19184 (prepare_resume_reply): Change prototype to take a
19185 target_waitstatus. Adjust.
19186
19187 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19188 interface.
19189 * spu-low.c (spu_wait): Adjust.
19190 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19191 Delete.
19192 (win32_wait): Adjust.
19193
2bd7c093
PA
191942009-04-01 Pedro Alves <pedro@codesourcery.com>
19195
19196 * target.h (struct thread_resume): Delete leave_stopped member.
19197 (struct target_ops): Add a `n' argument to the `resume' callback.
19198 * server.c (start_inferior): Adjust.
19199 (handle_v_cont, myresume): Adjust.
19200 * linux-low.c (check_removed_breakpoint): Adjust to resume
19201 interface change, and to removed leave_stopped field.
19202 (resume_ptr): Delete.
19203 (struct thread_resume_array): New.
19204 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19205 resume interface change.
19206 (linux_continue_one_thread, linux_queue_one_thread)
19207 (resume_status_pending_p): Check if the resume field is NULL
19208 instead of checking the leave_stopped member.
19209 (linux_resume): Adjust to the target resume interface change.
19210 * spu-low.c (spu_resume): Adjust to the target resume interface
19211 change.
19212 * win32-low.c (win32_detach, win32_resume): Ditto.
19213
c35fafde
PA
192142009-04-01 Pedro Alves <pedro@codesourcery.com>
19215
19216 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19217 flag.
19218 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19219 pending.
19220 (linux_continue_one_thread): Only preserve the stepping flag if
19221 there's a pending breakpoint.
19222
0a59d50b
PA
192232009-03-31 Pedro Alves <pedro@codesourcery.com>
19224
19225 * server.c (main): After the inferior having exited, call
19226 remote_close before exiting gdbserver.
19227
f04c6d38
TJB
192282009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19229
19230 Fix size of FPSCR in Power 7 processors.
19231 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19232 (PPC_FEATURE_HAS_DFP): New #define.
19233 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19234 size of the FPSCR.
19235
78e5cee6
PA
192362009-03-23 Pedro Alves <pedro@codesourcery.com>
19237
19238 * server.c (handle_query) Whitespace and formatting.
19239
1b3f6016
PA
192402009-03-22 Pedro Alves <pedro@codesourcery.com>
19241
19242 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19243 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19244 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19245 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19246 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19247 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19248 Makefile.in, configure.ac: Fix whitespace throughout.
19249 * configure: Regenerate.
19250
a07b2135
PA
192512009-03-22 Pedro Alves <pedro@codesourcery.com>
19252
19253 * inferiors.c (find_inferior): Make it safe for the callback
19254 function to delete the currently iterated inferior.
19255
67cc2626
PA
192562009-03-22 Pedro Alves <pedro@codesourcery.com>
19257
19258 * Makefile.in (linuw_low_h): Move higher.
19259 (thread-db.o): Depend on $(linux_low_h).
19260
54a0b537
PA
192612009-03-17 Pedro Alves <pedro@codesourcery.com>
19262
19263 Rename "process" to "lwp" throughout.
19264
19265 * linux-low.c (all_processes): Rename to...
19266 (all_lwps): ... this.
19267 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19268 (add_process): Rename to ...
19269 (add_lwp): ... this. Adjust.
19270 (linux_create_inferior): Adjust.
19271 (linux_attach_lwp): Adjust.
19272 (linux_attach): Adjust.
19273 (linux_kill_one_process): Rename to ...
19274 (linux_kill_one_lwp): ... this. Adjust.
19275 (linux_kill): Adjust.
19276 (linux_detach_one_process): Rename to ...
19277 (linux_detach_one_lwp): ... this. Adjust.
19278 (linux_detach): Adjust.
19279 (check_removed_breakpoint): Adjust.
19280 (status_pending_p): Adjust.
19281 (linux_wait_for_process): Rename to ...
19282 (linux_wait_for_lwp): ... this. Adjust.
19283 (linux_wait_for_event): Adjust.
19284 (send_sigstop): Adjust.
19285 (wait_for_sigstop): Adjust.
19286 (stop_all_processes): Rename to ...
19287 (stop_all_lwps): ... this.
19288 (linux_resume_one_process): Rename to ...
19289 (linux_resume_one_lwp): ... this. Adjust.
19290 (linux_set_resume_request, linux_continue_one_thread)
19291 (linux_queue_one_thread, resume_status_pending_p)
19292 (usr_store_inferior_registers, regsets_store_inferior_registers)
19293 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19294 Adjust.
19295 * linux-low.h (get_process): Rename to ...
19296 (get_lwp): ... this. Adjust.
19297 (get_thread_process): Rename to ...
19298 (get_thread_lwp): ... this. Adjust.
19299 (get_process_thread): Rename to ...
19300 (get_lwp_thread): ... this. Adjust.
19301 (struct process_info): Rename to ...
19302 (struct lwp_info): ... this.
19303 (all_processes): Rename to ...
19304 (all_lwps): ... this.
19305 * proc-service.c (ps_lgetregs): Adjust.
19306 * thread-db.c (thread_db_create_event, find_one_thread)
19307 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19308
0b16c5cf
PA
193092009-03-14 Pedro Alves <pedro@codesourcery.com>
19310
19311 * server.c (handle_query): Handle "qAttached".
19312
32de4b9d
NS
193132009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19314
19315 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19316 GPLv3, update license URL.
19317
2aecd87f
DE
193182009-03-01 Doug Evans <dje@google.com>
19319
93efd302 19320 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19321 (server_h): Add gdb_signals.h.
19322 (signals.o): Update.
19323 * server.h (target_signal_from_host,target_signal_to_host_p)
19324 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19325
86b1f9c5
PM
193262009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19327
19328 * remote-utils.c (getpkt): Also generate remote-debug
19329 information if noack_mode is set.
19330
4aa995e1
PA
193312009-02-06 Pedro Alves <pedro@codesourcery.com>
19332
19333 * server.c (handle_query): Report qXfer:siginfo:read and
19334 qXfer:siginfo:write as supported and handle them.
19335 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19336 * linux-low.c (linux_xfer_siginfo): New.
19337 (linux_target_ops): Set it.
19338
62709adf
PA
193392009-01-26 Pedro Alves <pedro@codesourcery.com>
19340
19341 * server.c (gdbserver_usage): Mention --remote-debug.
19342 (main): Accept '--remote-debug' switch.
19343
aef93bd7
DE
193442009-01-18 Doug Evans <dje@google.com>
19345
19346 * regcache.c (new_register_cache): No need to check result of xcalloc.
19347 * server.c (handle_search_memory): Back out calls to xmalloc,
19348 result is checked and error is returned to user upon failure.
19349 (handle_query): Ditto. Add more checks for result of malloc.
19350 (handle_v_cont): Check result of malloc, report error back to
19351 user upon failure.
19352 (handle_v_run): Ditto. Call freeargv.
19353 * server.h (freeargv): Declare.
19354 * utils.c (freeargv): New fn.
19355
54363045
DE
193562009-01-15 Doug Evans <dje@google.com>
19357
f626972c
DE
19358 * gdbreplay.c (perror_with_name): Make arg const char *.
19359 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19360 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19361 * utils.c (perror_with_name): Make arg const char *.
54363045 19362
18aae699
PA
193632009-01-14 Pedro Alves <pedro@codesourcery.com>
19364
19365 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19366 when handling a EXIT_PROCESS_DEBUG_EVENT.
19367
ff703abe
JB
193682009-01-06 Joel Brobecker <brobecker@adacore.com>
19369
19370 * gdbreplay.c (gdbreplay_version): Update copyright year.
19371 * server.c (gdbserver_version): Likewise.
19372
f21cc1a2 193732009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19374
19375 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19376 (handle_extended_wait): Improve comment.
0e21c1ec 19377
bca929d3
DE
193782008-12-13 Doug Evans <dje@google.com>
19379
19380 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19381 * server.h (ATTR_MALLOC): New macro.
19382 (xmalloc,xcalloc,xstrdup): Declare.
19383 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19384 * inferiors.c: Ditto.
19385 * linux-low.c: Ditto.
19386 * mem-break.c: Ditto.
19387 * regcache.c: Ditto.
19388 * remote-utils.c: Ditto.
19389 * server.c: Ditto.
19390 * target.c: Ditto.
19391 * win32-low.c: Ditto.
19392
97438e3f
DE
193932008-12-12 Doug Evans <dje@google.com>
19394
896c7fbb
DE
19395 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19396 in debugging printf.
19397
97438e3f
DE
19398 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19399
e3b886f8
DE
194002008-12-09 Doug Evans <dje@google.com>
19401
19402 * linux-low.h (struct process_info): Delete member tid, unused.
19403 * thread-db.c (find_one_thread): Update.
19404 (maybe_attach_thread): Update.
19405
07e059b5
VP
194062008-12-02 Pedro Alves <pedro@codesourcery.com>
19407
889bf7c5
PA
19408 * target.h (struct target_ops): Add qxfer_osdata member.
19409 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19410 and dirent.h.
19411 (linux_qxfer_osdata): New functions.
19412 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19413 callback.
19414 * server.c (handle_query): Handle "qXfer:osdata:read:".
19415 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19416 (buffer_xml_printf): New functions.
19417 * server.h (struct buffer): New.
19418 (buffer_grow_str, buffer_grow_str0): New macros.
19419 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19420 (buffer_xml_printf): Declare.
07e059b5 19421
4cab47ab
DE
194222008-11-24 Doug Evans <dje@google.com>
19423
19424 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19425
f142445f
DJ
194262008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19427
19428 * server.c (handle_v_run): Always use the supplied argument list.
19429
d0107bb6 194302008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19431
d0107bb6
BW
19432 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19433 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19434
2c4ad781
TJB
194352008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19436
19437 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19438 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19439 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19440 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19441 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19442 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19443 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19444 XML target descriptions.
19445 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19446 when inferior is running on an ISA 2.05 or later processor. Add
19447 special case to return offset for full 64-bit slot of FPSCR when
19448 in 32-bits.
19449
dfb64f85
DJ
194502008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19451
19452 * Makefile.in (SFILES, clean): Added sparc64 files.
19453 (reg-sparc64.o, reg-sparc64.c): New.
19454 * configure.srv (sparc*-*-linux*): New configuration.
19455 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19456 syscall arguments for SPARC.
19457 (regsets_store_inferior_registers): Likewise.
19458 * linux-sparc-low.c: New file.
19459
66b6e1dd
DE
194602008-10-21 Doug Evans <dje@google.com>
19461
19462 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19463 (READLINE_DIR,READLINE_DEP): Delete.
19464 (INTERNAL_CFLAGS): Update.
19465 (LINTFLAGS): Update.
19466
9b710a42
PA
194672008-10-10 Pedro Alves <pedro@codesourcery.com>
19468
19469 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19470 whole argv from the last run, not just argv[0].
19471
5822d809
PA
194722008-09-08 Pedro Alves <pedro@codesourcery.com>
19473
19474 * regcache.c (new_register_cache): Return NULL if the register
19475 cache size isn't known yet.
19476 (free_register_cache): Avoid dereferencing a NULL regcache.
19477
74aac56f
DJ
194782008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19479
19480 * configure.srv: Merge MIPS and MIPS64.
19481
400b20f5
MR
194822008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19483
19484 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19485
677c5bb1
LM
194862008-08-18 Luis Machado <luisgpm@br.ibm.com>
19487
19488 * Makefile.in: Add required vsx dependencies.
19489
19490 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19491 Declare init_registers_powerpc_vsx32l.
19492 Declare init_registers_powerpc_vsx64l.
19493 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19494 (ppc_arch_setup): Check for VSX in hwcap.
19495 (ppc_fill_vsxregset): New function.
19496 (ppc_store_vsxregset): New function.
19497 Add new VSX entry in regset_info target_regsets.
19498
19499 * configure.srv: Add new VSX dependencies.
19500
a6f3e723
SL
195012008-08-12 Pedro Alves <pedro@codesourcery.com>
19502
19503 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19504 (remote_open): Set or clear transport_is_reliable.
19505 (putpkt_binary): Don't expect acks in noack mode.
19506 (getpkt): Don't send ack/nac in noack mode.
19507 * server.c (handle_general_set): Handle QStartNoAckMode.
19508 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19509 qSupported.
19510 (main): Reset noack_mode on every connection.
19511 * server.h (noack_mode): Declare.
19512
a417dc56
RW
195132008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19514
19515 * Makefile.in (GDBREPLAY_OBS): New variable.
19516 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19517
3221518c
UW
195182008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19519 Daniel Jacobowitz <dan@codesourcery.com>
19520
19521 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19522 (usr_store_inferior_registers): Likewise.
19523 (regsets_store_inferior_registers): Likewise.
19524
ec56be1b
PA
195252008-07-31 Rolf Jansen <rj@surtec.com>
19526 Pedro Alves <pedro@codesourcery.com>
19527
19528 * configure.ac: Check for memmem declaration.
19529 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19530 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19531 (disable_packet_qfThreadInfo): Unconditionally compile.
19532 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19533 * configure, config.in: Regenerate.
19534
2fe5e3ff
DE
195352008-07-28 Doug Kwan <dougkwan@google.com>
19536
19537 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19538 (linux_write_memory): Remove declaration of errno.
19539
836acd6d
UW
195402008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19541
19542 * linux-low.c (handle_extended_wait): Do not use "status"
19543 variable uninitialized.
19544
aeba519e
PA
195452008-07-07 Pedro Alves <pedro@codesourcery.com>
19546
19547 * server.c (handle_v_attach): Inhibit reporting dll changes.
19548
db42f210
PA
195492008-06-27 Pedro Alves <pedro@codesourcery.com>
19550
19551 * remote-utils.c (prepare_resume_reply): If requested, don't
19552 output "thread:TID" in the T stop reply.
19553
19554 * server.c (disable_packet_vCont, disable_packet_Tthread)
19555 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19556 (handle_query): If requested, disable support for qC, qfThreadInfo
19557 and qsThreadInfo.
19558 (handle_v_requests): If requested, disable support for vCont.
19559 (gdbserver_show_disableable): New.
19560 (main): Handle --disable-packet and --disable-packet=LIST.
19561
19562 * server.h (disable_packet_vCont, disable_packet_Tthread)
19563 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19564
8e4c5421
CD
195652008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19566
19567 * server.c (gdbserver_usage): Mention --version.
19568
6e23a804
DJ
195692008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19570
19571 * Makefile.in (gdbreplay.o): New rule.
19572
90aa6a40
JM
195732008-06-06 Joseph Myers <joseph@codesourcery.com>
19574
19575 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19576 message, not gdbserver.
19577
c16158bc 195782008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19579 Nathan Sidwell <nathan@codesourcery.com>
19580 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19581
19582 * acinclude.m4: Include ../../config/acx.m4.
19583 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19584 * configure, config.in: Regenerate.
19585 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19586 * server.c (gdbserver_version): Print PKGVERSION.
19587 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19588 (main): Adjust gdbserver_usage calls.
19589 * gdbreplay.c (version, host_name): Add declarations.
19590 (gdbreplay_version, gdbreplay_usage): New.
19591 (main): Accept --version and --help options.
19592
aeb75bf5
DJ
195932008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19594
19595 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19596 (arm_breakpoint_at): Handle Thumb.
19597 (the_low_target): Add comment.
19598
76b233dd
UW
195992008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19600
19601 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19602
08388c79
DE
196032008-05-09 Doug Evans <dje@google.com>
19604
a3c83fae
DE
19605 * server.h (decode_search_memory_packet): Declare.
19606 * remote-utils.c (decode_search_memory_packet): New fn.
19607 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19608 (handle_search_memory): New fn.
19609 (handle_query): Process qSearch:memory packets.
19610
bb9c3d36
UW
196112008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19612
19613 * regcache.c (registers_length): Remove.
19614 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19615 full register packet.
19616 * regcache.h (registers_length): Remove prototype.
19617 * server.h (PBUFSIZ): Define to 16384.
19618
7284e1be
UW
196192008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19620
19621 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19622 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19623 powerpc-64l.o, and powerpc-altivec64l.o.
19624 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19625 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19626 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19627 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19628 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19629 to srv_xmlfiles.
19630
19631 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19632 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19633 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19634 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19635 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19636 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19637 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19638 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19639 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19640 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19641 (clean): Update.
19642
19643 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19644 (init_registers_powerpc_32l): ... this new prototype.
19645 (init_registers_powerpc_32): Remove, replace by ...
19646 (init_registers_powerpc_altivec32l): ... this new prototype.
19647 (init_registers_powerpc_e500): Remove, replace by ...
19648 (init_registers_powerpc_e500l): ... this new prototype.
19649 (init_registers_ppc64): Remove, replace by ...
19650 (init_registers_powerpc_64l): ... this new prototype.
19651 (init_registers_powerpc_64): Remove, replace by ...
19652 (init_registers_powerpc_altivec64l): ... this new prototype.
19653 (ppc_num_regs): Set to 73.
19654 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19655 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19656 (ppc_cannot_store_register): Handle orig_r3 and trap.
19657 (ppc_arch_setup): Update init_registers_... calls.
19658 (ppc_fill_gregset): Handle orig_r3 and trap.
19659
19660 * inferiors.c (clear_inferiors): Reset current_inferior.
19661
fdc59709
PB
196622008-04-23 Paolo Bonzini <bonzini@gnu.org>
19663
889bf7c5
PA
19664 * acinclude.m4: Add override.m4.
19665 * configure: Regenerate.
fdc59709 19666
c9b2f845
UW
196672008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19668
19669 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19670 initial call to init_register_ppc64.
19671
550512b8
UW
196722008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19673
43aaf8b6
PA
19674 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19675 single powerpc*-*-linux* case.
550512b8
UW
19676 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19677
b6430ec3
UW
196782008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19679
19680 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 19681 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
19682 from reg_xmlfiles.
19683 * linux-ppc-low.c: Include <elf.h>.
19684 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19685 (ppc_hwcap): New global variable.
19686 (ppc_regmap): Remove __SPE__ #ifdef sections.
19687 (ppc_regmap_e500): New global variable.
19688 (ppc_cannot_store_register): Update __SPE__ special case.
19689 (ppc_get_hwcap): New function.
19690 (ppc_arch_setup): Use it to determine whether inferior supports
19691 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19692 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19693 Do not access registers if target does not support AltiVec.
19694 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19695 Do not access registers if target does not support SPE.
19696 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19697
52fa2412
UW
196982008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19699
19700 * linux-low.c (disabled_regsets, num_regsets): New.
19701 (use_regsets_p): Delete.
19702 (linux_wait_for_process): Clear disabled_regsets.
19703 (regsets_fetch_inferior_registers): Check and set it.
19704 (regsets_store_inferior_registers): Likewise.
19705 (linux_fetch_registers, linux_store_registers): Do not use
19706 use_regsets_p.
19707 (initialize_low): Allocate disabled_regsets.
19708
e28b3332
DJ
197092008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19710
19711 * Makefile.in (LIBOBJS): New.
19712 (OBS): Use LIBOBJS.
19713 (memmem.o): New rule.
19714 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19715 * configure: Regenerated.
19716
4536995d
UW
197172008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19718
19719 * server.c (handle_query): Never return "unsupported" for
19720 qXfer:features:read queries.
19721
221c031f
UW
197222008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19723
19724 * server.c (get_features_xml): Fix inverted condition.
19725 (handle_query): Always support qXfer:feature:read.
19726
ccd213ac
DJ
197272008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19728
19729 * server.c (wrapper_argv): New.
19730 (start_inferior): Handle wrapper_argv. If set, expect an extra
19731 trap.
19732 (gdbserver_usage): Document --wrapper.
19733 (main): Parse --wrapper.
19734
6fe305f7
UW
197352008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19736
19737 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19738 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19739 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19740 (ppc_set_pc): Likewise.
19741 (ppc_arch_setup): New function.
19742 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19743 of collect_register.
889bf7c5 19744 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 19745
5b0a002e
UW
197462008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19747
19748 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19749 instead of linux-ppc64-low.o.
19750 * linux-ppc64-low.c: Remove file.
19751 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19752 (linux-ppc64-low.o): Remove rule.
19753
19754 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19755 (init_registers_powerpc_64): Likewise.
19756 (ppc_regmap): Conditionally define depending on __powerpc64__.
19757 (ppc_cannot_store_register): Do not special-case "fpscr" when
19758 compiled on __powerpc64__.
19759 (ppc_collect_ptrace_register): New function.
19760 (ppc_supply_ptrace_register): New function.
19761 (ppc_breakpoint): Change type to "unsigned int".
19762 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19763 (the_low_target): Conditionally provide initializers for the
889bf7c5 19764 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
19765 collect_ptrace_register and supply_ptrace_register members.
19766
9b4b61c8
UW
197672008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19768
19769 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19770 * server.c (gdbserver_xmltarget): Define.
19771 (get_features_xml): Use it to replace "target.xml" and arch_string.
19772
19773 * configure.srv: Remove srv_xmltarget. Add XML files that were
19774 mentioned there to srv_xmlfiles instead. Remove conditional tests
19775 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19776 srv_xmlfiles and srv_regobj to include all possible choices.
19777 * configure.ac (srv_xmltarget): Remove.
19778 (srv_xmlfiles): Do not add "target.xml".
19779 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19780 checks for supplementary target information.
19781 * configure: Regenerate.
19782 * Makefile.in (XML_TARGET): Remove.
19783 (target.xml): Remove rule.
19784 (clean): Do not clean up target.xml.
19785 (.PRECIOUS): Do not mention target.xml.
19786
19787 * target.h (struct target_ops): Remove arch_string member.
19788 * linux-low.c (linux_arch_string): Remove.
19789 (linux_target_ops): Remove arch_string initializer.
19790 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19791 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19792 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19793 * spu-low.c (spu_arch_string): Remove.
19794 (spu_target_ops): Remove arch_string initializer.
19795 * win32-low.c (win32_arch_string): Remove.
19796 (win32_target_ops): Remove arch_string initializer.
19797 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19798 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19799 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19800
ee1a7ae4
UW
198012008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19802
19803 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19804 by collect_ptrace_register and supply_ptrace_register hooks.
19805 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19806 instead of checking for the_low_target.left_pad_xfer.
19807 (usr_store_inferior_registers): Use collect_ptrace_register callback
19808 instead of checking for the_low_target.left_pad_xfer.
19809
19810 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19811 (s390_supply_ptrace_register): Likewise.
19812 (s390_fill_gregset): Call s390_collect_ptrace_register.
19813 (the_low_target): Update.
19814
19815 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19816 (ppc_supply_ptrace_register): Likewise.
19817 (the_low_target): Update.
19818
19819 * linux-i386-low.c (the_low_target): Update.
19820 * linux-x86-64-low.c (the_low_target): Update.
19821
d61ddec4
UW
198222008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19823
19824 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19825 reg-s390.o and reg-s390x.o.
19826
19827 * linux-low.c (new_inferior): New global variable.
19828 (linux_create_inferior, linux_attach): Set it.
19829 (linux_wait_for_process): Call the_low_target.arch_setup after the
19830 target has stopped for the first time.
19831 (initialize_low): Do not call the_low_target.arch_setup.
19832
19833 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19834 (s390_set_pc): Likewise.
19835 (s390_arch_setup): New function.
19836 (the_low_target): Use s390_arch_setup as arch_setup routine.
19837
19838 * regcache.c (realloc_register_cache): New function.
19839 (set_register_cache): Call it for each existing regcache.
19840
d05b4ac3
UW
198412008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19842
19843 * server.h (init_registers): Remove prototype.
19844
19845 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19846 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19847 instead of init_registers ().
19848 * linux-arm-low.c (init_registers_arm): Add prototype.
19849 (init_registers_arm_with_iwmmxt): Likewise.
19850 (the_low_target): Add initializer for arch_setup field.
19851 * linux-cris-low.c (init_registers_cris): Add prototype.
19852 (the_low_target): Add initializer for arch_setup field.
19853 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19854 (the_low_target): Add initializer for arch_setup field.
19855 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19856 (the_low_target): Add initializer for arch_setup field.
19857 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19858 (the_low_target): Add initializer for arch_setup field.
19859 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19860 (the_low_target): Add initializer for arch_setup field.
19861 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19862 (the_low_target): Add initializer for arch_setup field.
19863 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19864 (init_registers_mips64_linux): Likewise.
19865 (the_low_target): Add initializer for arch_setup field.
19866 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19867 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19868 (the_low_target): Add initializer for arch_setup field.
19869 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19870 (init_registers_powerpc_64): Likewise.
19871 (the_low_target): Add initializer for arch_setup field.
19872 * linux-s390-low.c (init_registers_s390): Add prototype.
19873 (init_registers_s390x): Likewise.
19874 (the_low_target): Add initializer for arch_setup field.
19875 * linux-sh-low.c (init_registers_sh): Add prototype.
19876 (the_low_target): Add initializer for arch_setup field.
19877 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19878 (the_low_target): Add initializer for arch_setup field.
19879 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19880 (the_low_target): Add initializer for arch_setup field.
19881
19882 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19883 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19884 instead of init_registers ().
19885 * win32-arm-low.c (init_registers_arm): Add prototype.
19886 (the_low_target): Add initializer for arch_setup field.
19887 * win32-i386-low.c (init_registers_i386): Add prototype.
19888 (the_low_target): Add initializer for arch_setup field.
19889
19890 * spu-low.c (init_registers_spu): Add prototype.
19891 (initialize_low): Call initialie_registers_spu () instead of
19892 initialize_registers ().
19893
fd96d250
PA
198942008-02-19 Pedro Alves <pedro@codesourcery.com>
19895
19896 * server.c (handle_v_requests): When handling the vRun and vAttach
19897 packets, if already debugging a process, don't kill it. Return an
19898 error instead.
19899
d41b6bb4
DJ
199002008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19901
19902 * server.c (handle_query): Correct length check.
19903
5ac588cf
PA
199042008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19905
19906 * win32-low.c (do_initial_child_stuff): Add process handle
19907 parameter. Set current_process_handle and current_process_id from the
19908 parameters. Clear globals.
19909 (win32_create_inferior): Don't set current_process_handle and
19910 current_process_id here. Instead pass them on the call to
19911 do_initial_child_stuff.
19912 (win32_attach): Likewise.
19913 (win32_clear_inferiors): New.
19914 (win32_kill): Don't close the current process handle or the
19915 current thread handle here. Instead call win32_clear_inferiors.
19916 (win32_detach): Don't open a new handle to the process. Call
19917 win32_clear_inferiors.
19918 (win32_join): Don't rely on current_process_handle; open a new
19919 handle using the process id.
19920 (win32_wait): Call win32_clear_inferiors when the inferior process
19921 has exited.
19922
ecd7ecbc
DJ
199232008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
19924
19925 * server.c (monitor_show_help): Add "exit".
19926
1525d545
MG
199272008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
19928
ecd7ecbc 19929 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
19930 (clean): Add reg-xtensa.c.
19931 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
19932 * configure.srv (xtensa*-*-linux*) New target.
19933 * linux-xtensa-low.c: New.
19934 * xtensa-xtregs.c: New.
1525d545 19935
59a016f0
PA
199362008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
19937
19938 * hostio.c: Don't include errno.h.
19939 (errno_to_fileio_errno): Move to hostio-errno.
19940 * hostio.c: (hostio_error): Remove the error parameter. Defer the
19941 error number outputting to the target->hostio_last_error callback.
19942 (hostio_packet_error): Use FILEIO_EINVAL directly.
19943 (handle_open, handle_pread, hostio_error, handle_unlink): Update
19944 calls to hostio_error.
19945 * hostio-errno.c: New.
19946 * server.h (hostio_last_error_from_errno): Declare.
19947 * target.h (target_ops): Add hostio_last_error member.
19948 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
19949 as hostio_last_error handler.
889bf7c5 19950 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
19951 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
19952 (wince_hostio_last_error): New functions.
19953 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
19954 as hostio_last_error handler.
19955 (win32_target_ops) [!_WIN32_WCE]: Register
19956 hostio_last_error_from_errno as hostio_last_error handler.
19957 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
19958 (hostio-errno.o): New rule.
19959 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
19960 * configure.srv (srv_hostio_err_objs): New variable. Default to
19961 hostio-errno.o.
19962 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
19963 * configure: Regenerate.
19964
2d717e4f
DJ
199652008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19966
19967 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
19968 (linux_kill, linux_detach): Clean up the process list.
19969 * remote-utils.c (remote_open): Improve port number parsing.
19970 (putpkt_binary, input_interrupt): Only send interrupts if the target
19971 is running.
19972 * server.c (extended_protocol): Make static.
19973 (attached): Define earlier.
19974 (exit_requested, response_needed, program_argv): New variables.
19975 (target_running): New.
19976 (start_inferior): Clear attached here.
19977 (attach_inferior): Set attached here.
19978 (require_running): Define.
19979 (handle_query): Use require_running and target_running. Implement
19980 "monitor exit".
19981 (handle_v_attach, handle_v_run): New.
19982 (handle_v_requests): Use require_running. Handle vAttach and vRun.
19983 (gdbserver_usage): Update.
19984 (main): Redo argument parsing. Handle --debug and --multi. Handle
19985 --attach along with other options or after the port. Save
19986 program_argv. Support no initial program. Resynchronize
19987 communication with GDB after an error. Handle "monitor exit".
19988 Use require_running and target_running. Always allow the extended
19989 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
19990 restart in extended mode.
19991 * README: Refer to the GDB manual. Update --attach usage.
19992
7407e2de
AS
199932007-12-20 Andreas Schwab <schwab@suse.de>
19994
19995 * linux-low.c (STACK_SIZE): Define.
19996 (linux_tracefork_child): Use it. Use __clone2 on ia64.
19997 (linux_test_for_tracefork): Likewise.
19998
b65d95c5
DJ
199992007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20000
20001 * linux-low.c (linux_wait_for_event): Update messages. Do not
20002 reinsert auto-delete breakpoints.
20003 * mem-break.c (struct breakpoint): Change return type of handler to
20004 int.
20005 (set_breakpoint_at): Update handler type.
20006 (reinsert_breakpoint_handler): Return 1 instead of calling
20007 delete_breakpoint.
20008 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20009 setting a new one.
20010 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20011 * mem-break.h (set_breakpoint_at): Update handler type.
20012 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20013 * win32-low.c (auto_delete_breakpoint): New.
20014 (get_child_debug_event): Use it.
20015
4e799345
DJ
200162007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20017
20018 * configure.ac: Check for pread and pwrite.
20019 * hostio.c (handle_pread): Fall back to lseek and read.
20020 (handle_pwrite): Fall back to lseek and write.
20021 * config.in, configure: Regenerated.
20022
27524b67
DJ
200232007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20024
20025 * server.c (myresume): Add own_buf argument.
20026 (main): Update calls.
20027
a20d5e98
DJ
200282007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20029
20030 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20031 * remote-utils.c (remote_open): Do not call disable_async_io.
20032 (block_async_io): Delete.
20033 (unblock_async_io): Make static.
20034 (initialize_async_io): New.
20035 * server.c (handle_v_cont): Handle async I/O here.
20036 (myresume): Likewise. Move other common resume tasks here...
20037 (main): ... from here. Call initialize_async_io. Disable async
20038 I/O before the main loop.
20039 * server.h (initialize_async_io): Declare.
20040 (block_async_io, unblock_async_io): Delete prototypes.
20041 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20042
b79d787e
DJ
200432007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20044
20045 * remote-utils.c (readchar): Allow binary data in received messages.
20046
d97903b2
PA
200472007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20048
20049 * win32-low.c (attaching): New global.
20050 (win32_create_inferior): Clear the `attaching' global.
20051 (win32_attach): Set the `attaching' global.
20052 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20053 attaching. Only set a breakpoint at the entry point if not
20054 attaching.
20055
311de423
PA
200562007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20057
20058 * server.c (main): Don't report dll events on the initial
20059 connection on attaches.
20060
6c2d16d2
PA
200612007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20062
20063 * server.c (main): Relax numerical bases supported for the pid of
20064 the --attach command line argument.
20065
5ca906e6
PA
200662007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20067
20068 * win32-low.c (win32_attach): Call OpenProcess before
20069 DebugActiveProcess, not after. Add last error output to error
20070 call.
20071
9c6c8194
PA
200722007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20073
20074 * win32-low.c (win32_get_thread_context)
20075 (win32_set_thread_context): New functions.
20076 (thread_rec): Use win32_get_thread_context.
20077 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20078 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20079 field.
20080
4d5d1aaa
PA
200812007-12-03 Leo Zayas
20082 Pedro Alves <pedro_alves@portugalmail.pt>
20083
20084 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20085 global variables.
20086 (child_add_thread): Minor cleanup.
20087 (child_continue): Resume artificially suspended threads before
20088 calling ContinueDebugEvent.
20089 (suspend_one_thread): New.
20090 (fake_breakpoint_event): New.
20091 (get_child_debug_event): Change return type to int. Check here if
20092 gdb sent an interrupt request. If a soft interrupt was requested,
20093 fake a breakpoint event. Return 0 if there is no event to handle,
20094 and 1 otherwise.
20095 (win32_wait): Don't check here if gdb sent an interrupt request.
20096 Ensure there is a valid event to handle.
20097 (win32_request_interrupt): Add soft interruption method as last
20098 resort.
20099
c436e841
PA
201002007-12-03 Leo Zayas
20101 Pedro Alves <pedro_alves@portugalmail.pt>
20102
20103 * win32-low.h (win32_thread_info): Add descriptions to the
20104 structure members. Replace `suspend_count' counter by a
20105 `suspended' flag.
20106 * win32-low.c (thread_rec): Update condition of when to get the
20107 context from the inferior. Rely on ContextFlags being set if it
20108 has already been retrieved. Only suspend the inferior thread if
20109 we haven't already. Warn if that fails.
20110 (continue_one_thread): s/suspend_count/suspended/. Only call
20111 ResumeThread once. Warn if that fails.
20112
e7b5fa67
PA
201132007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20114
20115 * win32-low.c (win32_wait): Don't read from the inferior when it
20116 has already exited.
20117
a385171d
PA
201182007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20119
20120 * Makefile.in (win32_low_h): New variable.
20121 (win32-low.o): Add dependency on $(win32_low_h).
20122 (win32-arm-low.o, win32-i386-low.o): New rules.
20123
f80c84b3
DJ
201242007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20125
20126 * hostio.c: Correct copyright year.
20127
a6b151f1
DJ
201282007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20129
20130 * Makefile.in (OBS): Add hostio.o.
20131 (hostio.o): New rule.
20132 * server.h (handle_vFile): Declare.
20133 * hostio.c: New file.
20134 * server.c (handle_v_requests): Take packet_len and new_packet_len
20135 for binary packets. Call handle_vFile.
20136 (main): Update call to handle_v_requests.
20137
f9387fc3
DJ
201382007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20139
20140 * linux-low.c: Include <sched.h>.
20141
51c2684e
DJ
201422007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20143
20144 * linux-low.c (linux_tracefork_grandchild): New.
20145 (linux_tracefork_child): Use clone.
20146 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20147
75f83163
JB
201482007-10-31 Joel Brobecker <brobecker@adacore.com>
20149
20150 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20151
da5898ce
DJ
201522007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20153
20154 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20155
24a09b5f
DJ
201562007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20157
20158 * inferiors.c (change_inferior_id): Delete.
20159 (add_pid_to_list, pull_pid_from_list): New.
20160 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20161 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20162 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20163 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20164 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20165 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20166 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20167 (using_threads): Always set to 1.
20168 (handle_extended_wait): New.
20169 (add_process): Do not set TID.
20170 (linux_create_inferior): Set must_set_ptrace_flags.
20171 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20172 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20173 (linux_thread_alive): Rename TID argument to LWPID.
20174 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20175 (linux_wait_for_event): Do not use TID or check using_threads. Update
20176 call to dead_thread_notify. Call handle_extended_wait.
20177 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20178 (send_sigstop): Delete sigstop_sent.
20179 (wait_for_sigstop): Avoid TID.
20180 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20181 (linux_test_for_tracefork): New.
20182 (linux_lookup_signals): Use thread_db_active and
20183 linux_supports_tracefork_flag.
20184 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20185 * linux-low.h (get_process_thread): Avoid TID.
20186 (struct process_ifo): Move thread_known and tid to the end. Remove
20187 sigstop_sent.
20188 (linux_attach_lwp, thread_db_init): Update prototypes.
20189 * server.h (change_inferior_id): Delete prototype.
20190 (add_pid_to_list, pull_pid_from_list): New prototypes.
20191 * thread-db.c (thread_db_use_events): New.
20192 (find_first_thread): Rename to...
20193 (find_one_thread): ...this. Update callers and messages. Do not
20194 call fatal. Check thread_db_use_events. Do not call
20195 change_inferior_id or new_thread_notify.
20196 (maybe_attach_thread): Update. Do not call new_thread_notify.
20197 (thread_db_init): Set thread_db_use_events. Check use_events.
20198 * utils.c (fatal, warning): Correct message prefix.
20199
30ed0a8f
DJ
202002007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20201
20202 * Makefile.in (clean): Remove new files.
20203 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20204 (powerpc-64.o, powerpc-64.c): New rules.
20205 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20206 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20207 with SPE.
20208 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20209 SPE targets.
20210 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20211 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20212 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20213 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20214 (target_regsets): Add AltiVec and SPE register sets.
20215 * configure.ac: Check for AltiVec and SPE.
20216 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20217 (ppc_fill_vrregset, ppc_store_vrregset): New.
20218 (target_regsets): Add AltiVec register set.
20219 * configure: Regenerated.
20220
fd462a61
DJ
202212007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20222
20223 * linux-low.c (O_LARGEFILE): Define.
20224 (linux_read_memory): Use /proc/PID/mem.
20225 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20226 * configure, config.in: Regenerated.
20227
69f223ed
DJ
202282007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20229
20230 * linux-low.c (linux_wait_for_event): Do not pass signals while
20231 single-stepping.
20232
aec18585
PA
202332007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20234
20235 * win32-low.c (create_process): New.
20236 (win32_create_inferior): Use create_process instead of
20237 CreateProcess. If create_process failed retry appending an ".exe"
20238 suffix. Store the GetLastError result immediatelly after
20239 create_process calls and use it on the call to error.
20240
34d86ddd
PA
202412007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20242
20243 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20244
5a0e3bd0
JB
202452007-08-23 Joel Brobecker <brobecker@adacore.com>
20246
20247 * configure.ac: Switch license to GPLv3.
20248
f88c79e6
MS
202492007-08-01 Michael Snyder <msnyder@access-company.com>
20250
20251 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20252
6b3d9b83
PA
202532007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20254
20255 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20256 typedef.
20257 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20258 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20259 CloseToolhelp32Snapshot.
20260 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20261 CloseToolhelp32Snapshot.
20262
c588c53c
MS
202632007-07-27 Michael Snyder <michael.snyder@access-company.com>
20264
20265 * server.c (main): Check for inferior exit before main loop.
20266
aa0403d9
PA
202672007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20268
20269 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20270 instead of on tmp_desc.
20271
255e7678
DJ
202722007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20273 Daniel Jacobowitz <dan@codesourcery.com>
20274
20275 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20276 (add_thread): Minor cleanups.
20277 (clear_inferiors): Move lower in the file. Clear the DLL
20278 list.
20279 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20280 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20281 (xml_escape_text): New.
20282 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20283 for qSupported.
20284 (handle_v_cont): Report errors.
20285 (gdbserver_version): Update.
20286 (main): Correct size of own_buf. Do not report initial DLL events.
20287 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20288 (unloaded_dll, xml_escape_text): New.
20289 * win32-low.c (enum target_waitkind): Update comments.
20290 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20291 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20292 (win32_EnumProcessModules, win32_GetModuleInformation)
20293 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20294 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20295 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20296 (win32_Module32First, win32_Module32Next, load_toolhelp)
20297 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20298 (get_child_debug_event): Handle DLL events.
20299 (win32_wait): Likewise.
20300
0d37add9
DJ
203012007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20302
20303 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20304 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20305
45e2715e
PA
203062007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20307
20308 * win32-low.c (handle_output_debug_string): Ignore event if not
20309 waiting.
20310
c5674cf1
PA
203112007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20312
20313 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20314
2bbe3cc1
DJ
203152007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20316
20317 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20318
ae13219e
DJ
203192007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20320
20321 * inferiors.c (change_inferior_id): Add comment.
20322 * linux-low.c (check_removed_breakpoint): Add an early
20323 prototype. Improve debug output.
20324 (linux_attach): Doc update.
20325 (linux_detach_one_process, linux_detach): Clean up before releasing
20326 each process.
20327 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20328 * linux-low.h (struct process_info): Doc improvement.
20329 * mem-break.c (delete_all_breakpoints): New.
20330 * mem-break.h (delete_all_breakpoints): New prototype.
20331 * thread-db.c (find_first_thread): New.
20332 (thread_db_create_event): Call it instead of
20333 thread_db_find_new_threads. Clean up unused variables.
20334 (maybe_attach_thread): Remove first thread handling.
20335 (thread_db_find_new_threads): Use find_first_thread.
20336 (thread_db_get_tls_address): Likewise.
20337
4105de34
DJ
203382007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20339
20340 * thread-db.c (thread_db_find_new_threads): Add prototype.
20341 (thread_db_create_event): Check for the main thread before adding
20342 a new thread.
20343 (maybe_attach_thread): Only enable event reporting if TID == 0.
20344 (thread_db_get_tls_address): Check for new threads.
20345
2b876972
DJ
203462007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20347
20348 * linux-low.c (linux_create_inferior): Try execv before execvp.
20349 * spu-low.c (spu_create_inferior): Likewise.
20350
7a245884
DJ
203512007-06-13 Mike Frysinger <vapier@gentoo.org>
20352
20353 * linux-low.c (linux_create_inferior): Change execv to execvp.
20354 * spu-low.c (spu_create_inferior): Likewies.
20355
117ce543
DJ
203562007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20357
20358 * Makefile.in (clean): Clean new files instead of deleted ones.
20359 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20360 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20361 rules.
20362 * configure.srv: Specify XML files and new regformats for MIPS and
20363 MIPS64 GNU/Linux.
20364 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20365 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20366 an entry for the restart register.
20367 (mips_cannot_fetch_register, mips_cannot_store_register)
20368 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20369 register names to match the XML descriptions.
20370 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20371 restart register instead of $0.
20372
0e7f50da
UW
203732007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20374 Markus Deuling <deuling@de.ibm.com>
20375
20376 * remote-utils.c (decode_xfer_write): New function.
20377 * server.h (decode_xfer_write): Add prototype.
20378 * server.c (handle_query): Add PACKET_LEN argument. Support
20379 qXfer:spu:read and qXfer:spu:write packets.
20380 (main): Pass packet_len to handle_query.
20381 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20382 * target.h (target_ops): Add qxfer_spu.
20383
374c1d38
UW
203842007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20385
20386 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20387 accessing non-seekable spufs files.
20388
bb63802a
UW
203892007-05-16 Markus Deuling <deuling@de.ibm.com>
20390
889bf7c5 20391 * server.c (handle_query): Add reply for qC packet.
bb63802a 20392
7390519e
PA
203932007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20394 Leo Zayas <lerele@champenstudios@com>
20395
20396 * server.h (check_remote_input_interrupt_request): New function.
20397 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20398 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20399 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20400 (check_remote_input_interrupt_request): New function.
20401 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20402 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20403 winapi_GenerateConsoleCtrlEvent): New typedefs.
20404 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20405 to 250 ms.
20406 (win32_wait): Check for remote interrupt request
20407 with check_remote_input_interrupt_request.
20408 (win32_request_interrupt): New function.
20409 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20410
34b34921
PA
204112007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20412
20413 * win32-low.c (debug_registers_changed,
20414 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20415 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20416 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20417 (thread_rec): Get context using the low target.
20418 (child_add_thread): Call thread_added on the low target,
20419 which does the same thing.
20420 (regptr): Delete.
20421 (do_initial_child_stuff): Remove debug registers references.
20422 Set context using the low target. Resume threads after
20423 setting the contexts.
20424 (child_continue): Remove dead variable. Remove debug
20425 registers references.
20426 (child_fetch_inferior_registers): Go through the low target.
20427 (do_child_store_inferior_registers): Remove.
20428 (child_store_inferior_registers): Go through the low target.
20429 (win32_resume): Remove debug registers references.
20430 Set context using the low target.
20431 (handle_exception): Change return type to void. Don't record
20432 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20433 first chance exception.
889bf7c5 20434 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20435 goto loop. Always return after waiting for debug event.
20436 (win32_wait): Convert to switch statement. Handle spurious
20437 events.
20438
20439 * win32-i386-low.c (debug_registers_changed,
20440 debug_registers_used): New.
20441 (initial_stuff): Rename to ...
20442 (i386_initial_stuff): ... this. Clear debug registers
20443 state variables.
20444 (store_debug_registers): Delete.
20445 (i386_get_thread_context): New.
20446 (load_debug_registers): Delete.
20447 (i386_set_thread_context): New.
20448 (i386_thread_added): New.
20449 (single_step): Rename to ...
20450 (i386_single_step): ... this.
20451 (do_fetch_inferior_registers): Rename to ...
20452 (i386_fetch_inferior_register): ... this.
20453 (i386_store_inferior_register): New.
20454 (the_low_target): Adapt to new interface.
20455
20456 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20457 (arm_get_thread_context): New.
20458 (arm_set_thread_context): New.
20459 (regptr): New.
20460 (do_fetch_inferior_registers): Rename to ...
20461 (arm_fetch_inferior_register): ... this.
20462 (arm_store_inferior_register): New.
20463 (arm_wince_breakpoint): Reimplement as unsigned long.
20464 (arm_wince_breakpoint_len): Define.
20465 (the_low_target): Adapt to new interface.
20466
20467 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20468 load_debug_registers. Add get_thread_context, set_thread_context,
20469 thread_added and store_inferior_register. Rename
20470 fetch_inferior_registers to fetch_inferior_register.
20471 (regptr): Remove declaration.
20472
dd6953e1
PA
204732007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20474
20475 * linux-low.c (linux_detach): Change return type to int. Return 0.
20476 * spu-low.c (spu_detach): Likewise.
20477
444d6139
PA
204782007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20479
20480 * target.h (target_ops): Change return type of detach to int.
20481 Add join.
20482 (join_inferior): New.
20483 * server.c (main): Don't skip detach support on mingw32.
20484 If the inferior doesn't support detaching return error.
20485 Call join_inferior instead of using waitpid.
20486 * linux-low.c (linux_join): New.
20487 (linux_target_op): Add linux_join.
20488 * spu-low.c (spu_join): New.
20489 (spu_target_ops): Add spu_join.
20490 * win32-low.c (win32_detach): Adapt to new interface.
20491 Reopen current_process_handle before detaching. Issue a child
20492 resume before detaching.
20493 (win32_join): New.
20494 (win32_target_op): Add win32_join.
20495
1d5315fe
PA
204962007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20497
20498 * win32-low.c (win32-attach): Fix return value.
20499 * target.h (target_ops): Describe ATTACH return values.
20500
bf914831
PA
205012007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20502
20503 * win32-low.c (GETPROCADDRESS): Define.
20504 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20505 (winapi_DebugSetProcessKillOnExit): Likewise.
20506 (win32_create_inferior): Force usage of ansi CreateProcessA.
20507 (win32_attach): Use GETPROCADDRESS.
20508 (win32_detach): Likewise.
20509
f72f3e60
PA
205102007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20511
20512 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20513
ed50f18f
PA
205142007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20515
20516 * win32-low.c: Commit leftover changes from 2007-03-29.
20517
0c2ead7e
DJ
205182007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20519
20520 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20521 fields short instead of int. Add explicit padding.
20522 (i387_cache_to_fsave): Remove unnecessary casts.
20523 (i387_fsave_to_cache): Doc fix.
20524 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20525
73725ff3
DJ
205262007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20527
20528 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20529 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20530
d99f33d8
PA
205312007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20532
20533 * configure.srv (arm*-*-mingw32ce*): Move near the other
20534 arm targets.
20535
68070c10
PA
205362007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20537
2482afc6 20538 * configure.ac: Add errno checking.
68070c10
PA
20539 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20540 sys/file.h and malloc.h.
20541 (AC_CHECK_DECLS): Add perror.
20542 (srv_mingwce): Handle.
2482afc6 20543 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20544 win32-i386-low.o to srv_tgtobj.
20545 (i[34567]86-*-mingw*): Likewise.
20546 (arm*-*-mingw32ce*): Add case.
20547 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20548 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20549 [__MINGW32CE__] (strerror): New function.
20550 [__MINGW32CE__] (errno): Define to GetLastError.
20551 [__MINGW32CE__] (COUNTOF): New macro.
20552 (remote_open): Remove extra close call.
20553 * mem-break.c (delete_breakpoint_at): New function.
20554 * mem-break.h (delete_breakpoint_at): Declare.
20555 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20556 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20557 [USE_WIN32API] (read, write): Add char* casts.
20558 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20559 * server.h: Include wincecompat.h on Windows CE.
20560 [HAVE_ERRNO_H]: Check.
20561 (perror): Declare if not declared.
20562 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20563 (perror_with_name): Remove errno declaration.
20564 * wincecompat.h: New.
20565 * wincecompat.c: New.
20566 * win32-low.h: New.
20567 * win32-arm-low.c: New.
20568 * win32-i386-low.c: New.
20569 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20570 (OUTMSG2): Make it safe.
20571 (_T): New macro.
20572 (COUNTOF): New macro.
20573 (NUM_REGS): Get it from the low target.
20574 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20575 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20576 (thread_rec): Let low target handle debug registers.
20577 (child_add_thread): Likewise.
20578 (child_init_thread_list): Likewise.
20579 (continue_one_thread): Likewise.
20580 (regptr): New.
20581 (do_child_fetch_inferior_registers): Move to ...
20582 * win32-i386-low.c: ... here, and rename to ...
20583 (do_fetch_inferior_registers): ... this.
889bf7c5 20584 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20585 Go through the low target.
20586 (do_child_store_inferior_registers): Use regptr.
20587 (strwinerror): New function.
20588 (win32_create_inferior): Handle Windows CE.
20589 Use strwinerror instead of strerror on Windows error
20590 codes. Add program to the error output.
20591 Don't close the main thread handle on Windows CE.
20592 (win32_attach): Use coredll.dll on Windows CE.
20593 (win32_kill): Close current process and current
20594 thread handles.
20595 (win32_detach): Use coredll.dll on Windows CE.
20596 (win32_resume): Let low target handle debug registers, and
20597 step request.
20598 (handle_exception): Add/Remove initial breakpoint. Avoid
20599 non-existant WSTOPSIG on Windows CE.
20600 (win32_read_inferior_memory): Cast to remove warning.
20601 (win32_arch_string): Go through the low target.
20602 (initialize_low): Call set_breakpoint_data with the low
20603 target's breakpoint.
20604 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20605 FOP_REGNUM, mappings): Move to ...
20606 * win32-i386-low.c: ... here.
20607 * win32-low.c (win32_thread_info): Move to ...
20608 * win32-low.h: ... here.
20609 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20610 win32-arm-low.c and wincecompat.c.
20611 (all:): Add $EXEEXT.
20612 (install-only:): Likewise.
20613 (gdbserver:): Likewise.
20614 (gdbreplay:): Likewise.
20615 * config.in: Regenerate.
20616 * configure: Regenerate.
20617
41093d81
PA
206182007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20619
20620 * win32-low.c: Rename typedef thread_info to
20621 win32_thread_info throughout.
20622
544afa54
PA
206232007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20624
20625 * win32-i386-low.c: Rename to ...
20626 * win32-low.c: ... this.
20627 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20628 * Makefile.in: Likewise.
20629
bce7165d
PA
206302007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20631
20632 * remote-utils.c (monitor_output): Constify msg parameter.
20633 * server.h (monitor_output): Likewise.
20634 * win32-i386-low.c (handle_output_debug_string): New.
20635 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20636 handle_output_debug_string.
20637 (get_child_debug_event): Likewise.
20638
506c7aa0
DJ
206392007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20640
20641 * server.c (main): Correct strtoul check.
20642
42c81e2a
DJ
206432007-03-27 Jon Ringle <jon@ringle.org>
20644
20645 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20646
9453113a
DJ
206472007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20648
20649 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20650
64a69107
DJ
206512007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20652
20653 * terminal.h: Check HAVE_SGTTY_H.
20654
206552007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
20656
20657 * remote-utils.c (remote_open): Print out the assigned port number.
20658
c74d0ad8
DJ
206592007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20660
20661 * remote-utils.c (monitor_output): New function.
20662 * server.c (debug_threads): Define here.
20663 (monitor_show_help): New function.
20664 (handle_query): Handle qRcmd.
20665 (main): Do not handle 'd' packet.
20666 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20667 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20668 of debug_threads.
20669
de7c3b4a
PA
206702007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20671
20672 * Makefile.in (EXEEXT): New.
20673 (clean): Use $(EXEEXT).
20674
ef57601b
PA
206752007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20676
20677 * target.h (target_ops): Rename send_signal to request_interrupt,
20678 and remove enum target_signal parameter.
20679 * linux-low.c (linux_request_interrupt): Rename from
20680 linux_send_signal, and always send SIGINT.
20681 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20682 and always send SIGINT.
20683 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20684 of send_signal.
20685 (input_interrupt): Likewise.
20686
820f2bda
PA
206872007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20688
20689 * server.c (get_features_xml): Check if target implemented
20690 arch_string.
20691 * win32-i386-low.c (win32_arch_string): New.
20692 (win32_target_ops): Add win32_arch_string as arch_string member.
20693
ab39bf24
UW
206942007-02-22 Markus Deuling <deuling@de.ibm.com>
20695
20696 * spu-low.c (spu_arch_string): New.
20697 (spu_target_ops): Add spu_arch_string.
20698
61ff6e04
DJ
206992007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20700
20701 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20702 * configure.ac: Do not check for terminal.h.
20703 * configure, config.in: Regenerated.
20704
fb1e4ffc
DJ
207052007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20706
20707 * Makefile.in (OBS): Add $(XML_BUILTIN).
20708 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20709 (clean): Update.
20710 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20711 (arm-with-iwmmxt.c): New.
20712 * config.in, configure: Regenerate.
20713 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20714 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20715 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20716 (arm*-*-linux*): Add iWMMXt and regset support.
20717 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20718 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20719 (arm_store_wmmxregset, target_regsets): New.
20720 * server.c (get_features_xml): Take annex argument. Check builtin
20721 XML documents.
20722 (handle_query): Handle multiple annexes.
20723
0f48aa01
DJ
207242007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20725
20726 * remote-utils.c [USE_WIN32API] (read, write): Define.
20727 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20728 write.
20729
23181151
DJ
207302007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20731
20732 * linux-i386-low.c (the_low_target): Set arch_string.
20733 * linux-x86-64-low.c (the_low_target): Likewise.
20734 * linux-low.c (linux_arch_string): New.
20735 (linux_target_ops): Add it.
20736 * linux-low.h (struct linux_target_ops): Add arch_string.
20737 * server.c (write_qxfer_response): Use const void * for DATA.
20738 (get_features_xml): New.
20739 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20740 * target.h (struct target_ops): Add arch_string method.
20741
9d606399
DJ
207422007-01-03 Denis Pilat <denis.pilat@st.com>
20743 Daniel Jacobowitz <dan@codesourcery.com>
20744
20745 * linux-low.c (linux_kill): Handle being called with no threads.
20746 * win32-i386-low.c (win32_kill): Likewise.
20747 (get_child_debug_event): Clear current_process_handle.
20748
207492006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
20750 Daniel Jacobowitz <dan@codesourcery.com>
20751
20752 * remote-utils.c (remote_open): Check the type of specified
20753 serial port devices before opening them.
20754 * server.c (main): Kill the inferior if an error occurs during
20755 the first remote_open.
20756
a5e13d24
DJ
207572006-12-05 Markus Deuling <deuling@de.ibm.com>
20758
20759 * README: Update supported targets.
20760
186947f7
DJ
207612006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20762
20763 * Makefile.in (clean): Remove reg-mips64.c.
20764 (reg-mips64.c, reg-mips64.o): New rules.
20765 * configure.srv: Handle mips64. Include regset support for mips.
20766 * linux-mips-low.c (union mips_register): New.
20767 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20768 (mips_breakpoint, mips_breakpoint_at): Use int.
20769 (mips_collect_register, mips_supply_register)
20770 (mips_collect_register_32bit, mips_supply_register_32bit)
20771 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20772 (mips_store_fpregset, target_regsets): New.
20773 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20774
a13e2c95
UW
207752006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20776
20777 * configure.srv: Add target "spu*-*-*".
20778 * Makefile.in (clean): Remove reg-spu.c.
20779 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20780 * spu-low.c: New file.
20781
cb7283db
DJ
207822006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20783
20784 * configure.ac: Correct td_thr_tls_get_addr test.
20785 * configure: Regenerated.
20786
89be2091
DJ
207872006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20788
20789 * linux-low.c (linux_wait_for_event): Reformat. Use the
20790 pass_signals array.
20791 * remote-utils.c (decode_address_to_semicolon): New.
20792 * server.c (pass_signals, handle_general_set): New.
20793 (handle_query): Mention QPassSignals for qSupported.
20794 (main): Call handle_general_set.
20795 * server.h (pass_signals, decode_address_to_semicolon): New.
20796
000ef4f0
DJ
207972006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20798
20799 * server.c (handle_query): Correct error handling for read_auxv.
20800
b7149293
UW
208012005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20802
20803 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20804 and srv_linux_thread_db to yes.
20805 * linux-s390-low.c (s390_fill_gregset): New function.
20806 (target_regsets): Define data structure.
20807
dae5f5cf
DJ
208082006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20809
20810 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20811 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20812 * config.in, configure: Regenerated.
20813 * inferiors.c (gdb_id_to_thread): New function.
20814 (gdb_id_to_thread_id): Use it.
20815 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20816 * linux-low.h (struct process_info): Add th member.
20817 (thread_db_get_tls_address): New prototype.
20818 * remote-utils.c (decode_address): Make non-static.
20819 * server.c (handle_query): Handle qGetTLSAddr.
20820 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20821 * target.h (struct target_ops): Add get_tls_address.
20822 * thread-db.c (maybe_attach_thread): Save the thread handle.
20823 (thread_db_get_tls_address): New.
20824
32ca6d61
DJ
208252006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20826
20827 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20828 (linux_resume_one_process): Take a siginfo_t *. Update all
20829 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20830 (struct pending_signals): Add a siginfo_t.
20831 (linux_wait_for_process): Always set last_status.
20832 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20833 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20834 * linux-low.h (struct process_info): Add last_status.
20835
5ffff7c1
DJ
208362006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20837
20838 * remote-utils.c (try_rle): New function.
20839 (putpkt_binary): Use it.
20840
8695c747
DJ
208412006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20842
20843 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20844 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20845 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20846 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20847 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20848 point registers.
20849
290fadea
RS
208502006-08-08 Richard Sandiford <richard@codesourcery.com>
20851
20852 * server.c (terminal_fd): New variable.
20853 (old_foreground_pgrp): Likewise.
20854 (restore_old_foreground_pgrp): New function.
20855 (start_inferior): Record the terminal file descriptor in terminal_fd
20856 and its original foreground group in old_foreground_pgrp. Register
20857 restore_old_foreground_pgrp with atexit().
20858
9f2e1e63
DJ
208592006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20860
20861 * server.c (handle_query): Correct qPart to qXfer.
20862
b80864fb
DJ
208632006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20864
20865 * configure.ac: Check for more headers which are missing on
20866 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20867 * configure.srv: Add Cygwin and mingw32.
20868 * remote-utils.c: Don't include headers unconditionally which
20869 are missing on mingw32. Include <winsock.h> for mingw32.
20870 (remote_open): Adjust for mingw32 support. Flush
20871 standard error after writing to it.
20872 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20873 (unblock_async_io, enable_async_io, disable_async_io)
20874 (readchar, getpkt): Update for Winsock support.
20875 (prepare_resume_reply): Expect a protocol signal number.
20876 * server.c: Disable <sys/wait.h> on mingw32.
20877 (start_inferior): Adjust for mingw32 support. Flush
20878 standard error after writing to it.
20879 (attach_inferior): Likewise. Use protocol signal
20880 numbers.
20881 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20882 and names.
20883 * win32-i386-low.c: New file.
20884 * Makefile.in (XM_CLIBS): Set.
20885 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20886 (win32-i386-low.o): New dependency rule.
20887 * linux-low.c (linux_wait): Use target signal numbers.
20888 * target.h (struct target_ops): Doc fix.
20889 * server.h (target_signal_to_name): New prototype.
20890 * gdbreplay.c: Don't include headers unconditionally which
20891 are missing on mingw32. Include <winsock.h> for mingw32.
20892 (remote_close, remote_open): Adjust for Winsock support.
20893 * configure, config.in: Regenerated.
20894
0876f84a
DJ
208952006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20896
20897 * server.c (decode_xfer_read, write_qxfer_response): New.
20898 (handle_query): Take a packet length argument. Handle
20899 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20900 the qSupported response.
20901 (main): Update call to handle_query.
20902
01f9e8fa
DJ
209032006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20904
20905 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20906 (putpkt_binary): Renamed from putpkt and adjusted for binary
20907 data.
20908 (putpkt): New wrapper for putpkt_binary.
20909 (readchar): Don't mask off the high bit.
20910 (decode_X_packet): New function.
20911 * server.c (main): Call putpkt_binary if a handler sets the packet
20912 length. Save the length of the incoming packet. Handle 'X'.
20913 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20914
be2a5f71
DJ
209152006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20916
20917 * server.c (handle_query): Handle qSupported.
20918
ea025f5f
DJ
209192006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20920
20921 * remote-utils.c (all_symbols_looked_up): New variable.
20922 (look_up_one_symbol): Check it.
20923 * server.h (look_up_one_symbol): New declaration.
20924 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
20925
9308fc88
DJ
209262006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20927
20928 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 20929 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
20930 (PTRACE_GET_THREAD_AREA): Define.
20931 (ps_get_thread_area): New function.
20932
52fb6437
NS
209332006-05-09 Nathan Sidwell <nathan@codesourcery.com>
20934
20935 * configure.srv (m68k*-*-uclinux*): New target.
20936 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
20937 (linux_resume_one_process): Remove extraneous cast.
20938 (linux_read_offsets): New.
20939 (linux_target_op): Add linux_read_offsets on mmuless systems.
20940 * server.c (handle_query): Add qOffsets logic.
20941 * target.h (struct target_ops): Add read_offsets.
20942
21b0f40c
DJ
209432006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20944
20945 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
20946 (PTRACE_GET_THREAD_AREA): Define.
20947 (ps_get_thread_area): New function.
20948 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
20949 (linux-x86-64-low.o): Update.
20950
0050a760
DJ
209512006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20952
20953 * configure.ac: Remove checks for prfpregset_t.
20954 * gdb_proc_service.h: New file.
20955 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
20956 new "gdb_proc_service.h".
20957 * proc-service.c: Likewise.
20958 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
20959 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
20960 * Makefile.in (gdb_proc_service_h): Updated.
20961 * configure, config.in: Regenerated.
20962
b92a518e
DJ
209632006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20964
20965 * remote-utils.c (prepare_resume_reply): Move declaration
20966 of gdb_id_from_wait to the top of the block.
20967
545587ee
DJ
209682006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
20969
20970 * linux-low.c (regsets_store_inferior_registers): Read the regset
20971 from the target before filling it.
20972
9db87ebd
DJ
209732006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20974
20975 * server.c (attach_inferior): Return SIGTRAP for a successful
20976 attach.
20977
dd24457d
DJ
209782006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
20979
20980 * Makefile.in (OBS): Add version.o.
20981 (STAGESTUFF): Delete.
20982 (version.o): Add dependencies.
20983 (version.c): Replace rule.
20984 (clean): Remove version.c.
20985 * server.c (gdbserver_version): New.
20986 (gdbserver_usage): Use printf.
20987 (main): Handle --version and --help.
20988 * server.h (version, host_name): Add declarations.
20989
6f0f660e
EZ
209902005-12-23 Eli Zaretskii <eliz@gnu.org>
20991
889bf7c5
PA
20992 * linux-arm-low.c:
20993 * linux-arm-low.c:
20994 * inferiors.c:
20995 * i387-fp.h:
20996 * i387-fp.c:
20997 * gdbreplay.c:
20998 * regcache.c:
20999 * proc-service.c:
21000 * mem-break.h:
21001 * mem-break.c:
21002 * linux-x86-64-low.c:
21003 * linux-sh-low.c:
21004 * linux-s390-low.c:
21005 * linux-ppc64-low.c:
21006 * linux-ppc-low.c:
21007 * linux-mips-low.c:
21008 * linux-m68k-low.c:
21009 * linux-m32r-low.c:
21010 * linux-low.h:
21011 * linux-low.c:
21012 * linux-ia64-low.c:
21013 * linux-i386-low.c:
21014 * linux-crisv32-low.c:
21015 * thread-db.c:
21016 * terminal.h:
21017 * target.h:
21018 * target.c:
21019 * server.h:
21020 * server.c:
21021 * remote-utils.c:
21022 * regcache.h:
21023 * utils.c:
21024 * Makefile.in:
21025 * configure.ac:
6f0f660e
EZ
21026 * gdbserver.1: Add (C) after Copyright. Update the FSF
21027 address.
21028
9d1fb177
DJ
210292005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21030
21031 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21032 (arm_breakpoint_at): Recognize both breakpoints.
21033 (the_low_target): Use the correct breakpoint instruction.
21034
011a70c2
DJ
210352005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21036
21037 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21038 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21039 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21040 (the_low_target): Update.
21041
7fb85e41
AS
210422005-10-25 Andreas Schwab <schwab@suse.de>
21043
21044 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21045
21046 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21047 (ia64_num_regs): Reduce to 462.
21048
3db0444b
DJ
210492005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21050
21051 * acinclude.m4: Correct quoting.
21052 * aclocal.m4: Regenerated.
21053
21054 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21055 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21056 (thread_db_init): Call thread_db_err_str.
21057 * configure.ac: Check for TD_VERSION.
21058 * config.in, configure: Regenerated.
21059
bee0189a
DJ
210602005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21061
21062 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21063
e9d25b98
DJ
210642005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21065
21066 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21067 is not available. Define HAVE_PTRACE_GETREGS if it is.
21068 * config.in, configure: Regenerated.
21069 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21070 * linux-i386-low.c, linux-m68k-low.c: Update to use
21071 HAVE_PTRACE_GETREGS.
21072 * linux-low.c (regsets_fetch_inferior_registers)
21073 (regsets_store_inferior_registers): Only return 0 if we processed
21074 GENERAL_REGS.
21075 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21076 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21077
a06660f7
DJ
210782005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21079
21080 * inferiors.c (struct thread_info): Add gdb_id.
21081 (add_thread): Add gdb_id argument.
21082 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21083 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21084 calls to add_thread.
21085 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21086 * server.c (handle_query): Use thread_to_gdb_id.
21087 (handle_v_cont, main): Use gdb_id_to_thread_id.
21088 * server.h (add_thread): Update prototype.
21089 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21090 prototypes.
21091
5a1f5858
DJ
210922005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21093
21094 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21095 left-padded registers.
21096 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21097 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21098
e122f1f5
SE
210992005-07-01 Steve Ellcey <sje@cup.hp.com>
21100
21101 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21102 * configure: Regenerate.
21103 * config.in: Regenerate.
21104 * server.h (NEED_DECLARATION_STRERROR):
21105 Replace with !HAVE_DECL_STRERROR.
21106
d592fa2f
DJ
211072005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21108
21109 * linux-low.c (linux_wait, linux_send_signal): Don't test
21110 an unsigned long variable for > 0 if it could be MAX_ULONG.
21111 * server.c (myresume): Likewise.
21112 * target.c (set_desired_inferior): Likewise.
21113
ccbd4912
MK
211142005-06-13 Mark Kettenis <kettenis@gnu.org>
21115
21116 * configure.ac: Simplify and improve check for socklen_t.
21117 * configure, config.in: Regenerate.
21118
f450004a
DJ
211192005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21120
21121 * acconfig.h: Remove.
21122 * configure.ac: Add a test for socklen_t. Use three-argument
21123 AC_DEFINE throughout.
21124 * config.in: Regenerated using autoheader 2.59.
21125 * configure: Regenerated.
21126
21127 * gdbreplay.c (socklen_t): Provide a default.
21128 (remote_open): Use socklen_t.
21129 * remote-utils.c (socklen_t): Provide a default.
21130 (remote_open): Use socklen_t.
21131 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21132 unsigned char.
21133
21134 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21135 char for buffers.
21136 * linux-low.c (linux_read_memory, linux_write_memory)
21137 (linux_read_auxv): Likewise.
21138 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21139 (check_mem_write): Likewise.
21140 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21141 Likewise.
21142 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21143 (registers_from_string, register_data): Likewise.
21144 * server.c (handle_query, main): Likewise.
21145 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21146 (decode_M_packet): Likewise.
21147 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21148 * target.h (struct target_ops): Update read_memory, write_memory,
21149 and read_auxv.
21150 (read_inferior_memory, write_inferior_memory): Update.
21151 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21152 to unsigned char *.
21153 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21154 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21155 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21156 linux-s390-low.c, linux-sh-low.c: Update for changes in
21157 read_inferior_memory and the_low_target->breakpoint.
21158
eee84df1
DJ
211592005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21160
21161 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21162 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21163 * configure.srv: Add powerpc64-*-linux*.
21164 * linux-ppc64-low.c: New file.
21165
45b134e5
OF
211662005-05-23 Orjan Friberg <orjanf@axis.com>
21167
21168 * linux-cris-low.c: New file with support for CRIS.
21169 * linux-crisv32-low.c: Ditto for CRISv32.
21170 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21171 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21172 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21173 reg-crisv32.o, and reg-crisv32.c to make rules.
21174 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21175 recognized targets.
21176
48d93c75
UW
211772005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21178
21179 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21180 of sizeof (PTRACE_XFER_TYPE).
21181 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21182
e013ee27
OF
211832005-05-12 Orjan Friberg <orjanf@axis.com>
21184
889bf7c5 21185 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21186 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21187 pointers for hardware watchpoint support.
21188 * linux-low.h (struct linux_target_ops): Ditto.
21189 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21190 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21191 to linux_target_ops.
21192 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21193 reply packet.
21194 * server.c (main): Recognize 'Z' and 'z' packets.
21195
b0ded00b
UW
211962005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21197
21198 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21199 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21200 (the_low_target): Add new members.
21201
8643e2ad
DJ
212022005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21203
21204 * proc-service.c (ps_lgetregs): Search all_processes instead of
21205 all_threads.
21206
fc620387
DJ
212072005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21208
21209 * server.c (start_inferior): Change return type to int.
21210 (attach_inferior): Change sigptr to int *.
21211 (handle_v_cont, handle_v_requests): Change signal to int *.
21212 (main): Change signal to int.
21213
212142005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21215
21216 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21217 * configure.srv: Add m32r*-*-linux*.
21218 * linux-m32r-low.c: New file.
21219
e0e76420
DJ
212202005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21221
21222 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21223
a1928bad
DJ
212242005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21225
21226 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21227 Take unsigned long arguments for PIDs.
21228 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21229 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21230 (wait_for_sigstop, linux_resume_one_process)
21231 (regsets_fetch_inferior_registers, linux_send_signal)
21232 (linux_read_auxv): Likewise. Update the types of variables holding
21233 PIDs. Update format string specifiers.
21234 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21235 * remote-utils.c (prepare_resume_reply): Likewise.
21236 * server.c (cont_thread, general_thread, step_thread)
21237 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21238 unsigned long.
21239 (handle_query): Update format specifiers.
21240 (handle_v_cont, main): Use strtoul for thread IDs.
21241 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21242 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21243 (general_thread, step_thread, thread_from_wait)
21244 (old_thread_from_wait): Update.
21245 * target.h (struct thread_resume): Use unsigned long for THREAD.
21246 (struct target_ops): Use unsigned long for arguments to attach and
21247 thread_alive.
21248
dcdb98d2
DJ
212492005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21250
21251 * acinclude.m4: Include bfd/bfd.m4 directly.
21252 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21253 <agriffis@toolchain.org>.
21254 * aclocal.m4, configure: Regenerated.
21255
bec39cab
AC
212562005-01-07 Andrew Cagney <cagney@gnu.org>
21257
21258 * configure.ac: Rename configure.in, require autoconf 2.59.
21259 * configure: Re-generate.
21260
434c4c77
DJ
212612004-12-08 Daniel Jacobowitz <dan@debian.org>
21262
21263 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21264 LIBS when finished.
21265 * aclocal.m4: Regenerated.
21266 * configure: Regenerated.
21267
db1d3e1b
AS
212682004-11-21 Andreas Schwab <schwab@suse.de>
21269
21270 * linux-m68k-low.c (m68k_num_gregs): Define.
21271 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21272 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21273 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21274 (m68k_breakpoint_at): New. Add to the_low_target.
21275
21276 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21277 srv_linux_thread_db to yes.
21278
43360365
JB
212792004-10-20 Joel Brobecker <brobecker@gnat.com>
21280
21281 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21282 (ARCH_SET_FS): Likewise.
21283 (ARCH_GET_FS): Likewise.
21284 (ARCH_GET_GS): Likewise.
21285
fd500816
DJ
212862004-10-16 Daniel Jacobowitz <dan@debian.org>
21287
21288 * linux-i386-low.c (ps_get_thread_area): New.
21289 * linux-x86-64-low.c (ps_get_thread_area): New.
21290 * linux-low.c: Include <sys/syscall.h>.
21291 (linux_kill_one_process): Don't kill the first thread here.
21292 (linux_kill): Kill the first thread here.
21293 (kill_lwp): New function.
21294 (send_sigstop, linux_send_signal): Use it.
21295 * proc-service.c: Clean up #ifdefs.
21296 (fpregset_info): Delete.
21297 (ps_lgetregs): Update and enable implementation.
21298 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21299 implementations.
21300 * remote-utils.c (struct sym_cache, symbol_cache): New.
21301 (input_interrupt): Print a clearer message.
21302 (async_io_enabled): New variable.
21303 (enable_async_io, disable_async_io): Use it. Update comments.
21304 (look_up_one_symbol): Use the symbol cache.
21305 * thread-db.c (thread_db_look_up_symbols): New function.
21306 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21307
f6de3c42
DJ
213082004-10-16 Daniel Jacobowitz <dan@debian.org>
21309
21310 * configure.in: Test for -rdynamic.
21311 * configure: Regenerated.
21312 * Makefile (INTERNAL_LDFLAGS): New.
21313 (gdbserver, gdbreplay): Use it.
21314
2c0fc042
AC
213152004-09-02 Andrew Cagney <cagney@gnu.org>
21316
21317 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21318
075b3282
DJ
213192004-03-23 Daniel Jacobowitz <drow@mvista.com>
21320
21321 * linux-low.c (linux_wait): Clear all_processes list also.
21322
fa6a77dc
DJ
213232004-03-12 Daniel Jacobowitz <drow@mvista.com>
21324
21325 * linux-low.c: Include <errno.h>. Remove extern declaration of
21326 errno.
21327
6d782a97
DJ
213282004-03-12 Daniel Jacobowitz <drow@mvista.com>
21329
21330 * gdbreplay.c, server.h, utils.c: Update copyright years.
21331
3a7fb99b
DJ
213322004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21333
21334 * server.c (main): Print child status or termination signal from
21335 variable 'signal', not 'sig'.
21336
c3e735a6
DJ
213372004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21338
21339 * linux-low.c (linux_read_memory): Change return type to
21340 int. Check for and return error from ptrace().
21341 * target.c (read_inferior_memory): Change return type to int. Pass
21342 back return status from the_target->read_memory().
21343 * target.h (struct target_ops): Adapt *read_memory() prototype.
21344 Update comment.
21345 (read_inferior_memory): Adapt prototype.
21346 * server.c (main): Return an error packet if
21347 read_inferior_memory() returns an error.
21348
a59d1c82
DJ
213492004-03-04 Daniel Jacobowitz <drow@mvista.com>
21350
21351 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21352 Unify with other clean targets.
21353
dc3f8883
DJ
213542004-02-29 Daniel Jacobowitz <drow@mvista.com>
21355
21356 * server.c (handle_v_cont): Call set_desired_inferior.
21357
89a208da
DJ
213582004-02-29 Daniel Jacobowitz <drow@mvista.com>
21359
21360 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21361
62ea82f5
DJ
213622004-02-29 Daniel Jacobowitz <drow@mvista.com>
21363
21364 * linux-low.c (linux_wait): Unblock async I/O.
21365 (linux_resume): Block and enable async I/O.
21366 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21367 * server.h (block_async_io, unblock_async_io): Add prototypes.
21368
6910d122
DJ
213692004-02-29 Daniel Jacobowitz <drow@mvista.com>
21370
21371 * remote-utils.c (remote_open): Print a status notice after
21372 opening a TCP port.
21373 * server.c (attach_inferior): Print a status notice after
21374 attaching.
21375
213762004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21377
21378 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21379
c89dc5d4
DJ
213802004-02-26 Daniel Jacobowitz <drow@mvista.com>
21381
21382 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21383 error packet.
21384 * server.c, target.h: Update copyright years.
21385
4b8dad4a
RM
213862004-02-25 Roland McGrath <roland@redhat.com>
21387
21388 * target.h (struct target_ops): New member `read_auxv'.
21389 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21390 * linux-low.c (linux_read_auxv): New function.
21391 (linux_target_ops): Initialize `read_auxv' member to that.
21392
d7446758
JB
213932004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21394
21395 Committed by Jim Blandy <jimb@redhat.com>.
21396
21397 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21398 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21399 instead of GPR_SIZE to distiguish s390 and s390x targets.
21400
5544ad89
DJ
214012004-01-31 Daniel Jacobowitz <drow@mvista.com>
21402
21403 * linux-low.c: Update copyright year.
21404 (check_removed_breakpoint): Clear pending_is_breakpoint.
21405 (linux_set_resume_request, linux_queue_one_thread)
21406 (resume_status_pending_p): New functions.
21407 (linux_continue_one_thread): Use process->resume.
21408 (linux_resume): Only resume threads if there are no pending events.
21409 * linux-low.h (struct process_info): Add resume request
21410 pointer.
21411
2a68b70e
DJ
214122004-01-30 Daniel Jacobowitz <drow@mvista.com>
21413
21414 * regcache.c (new_register_cache): Clear the allocated register
21415 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21416
64386c31
DJ
214172003-10-13 Daniel Jacobowitz <drow@mvista.com>
21418
21419 * linux-low.c (linux_resume): Take a struct thread_resume *
21420 argument.
21421 (linux_wait): Update call.
21422 (resume_ptr): New static variable.
21423 (linux_continue_one_thread): Renamed from
21424 linux_continue_one_process. Use resume_ptr.
21425 (linux_resume): Use linux_continue_one_thread.
21426 * server.c (handle_v_cont, handle_v_requests): New functions.
21427 (myresume): New function.
21428 (main): Handle 'v' case.
21429 * target.h (struct thread_resume): New type.
21430 (struct target_ops): Change argument of "resume" to struct
21431 thread_resume *.
21432 (myresume): Delete macro.
21433
c938e9b0
L
214342003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21435
21436 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21437 (uninstall): Support DESTDIR.
21438
7f313d07
BC
21439Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21440
21441 * configure.srv: Add xscale*linux copy of arm*linux entry.
21442
3b2fc2ea
DJ
214432003-07-24 Daniel Jacobowitz <drow@mvista.com>
21444
21445 * linux-arm-low.c (arm_reinsert_addr): New function.
21446 (the_low_target): Add arm_reinsert_addr.
21447
1c0a559e
MK
214482003-07-08 Mark Kettenis <kettenis@gnu.org>
21449
21450 * mem-break.c: Remove whitespace at end of file.
21451
43d5792c
DJ
214522003-06-28 Daniel Jacobowitz <drow@mvista.com>
21453
21454 * configure.in: Check whether we need to prototype strerror.
21455 * server.h: Optionally prototype strerror.
21456 * gdbreplay.c (perror_with_name): Use strerror.
21457 * linux-low.c (linux_attach_lwp): Use strerror.
21458 * utils.c (perror_with_name): Use strerror.
21459 * config.in, configure: Regenerated.
21460
c8a86edf
DJ
214612003-06-28 Daniel Jacobowitz <drow@mvista.com>
21462
21463 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21464 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21465
73d37363
DJ
214662003-06-20 Daniel Jacobowitz <drow@mvista.com>
21467
21468 * Makefile.in (SFILES): Update.
21469 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21470 low-sun3.c: Remove files.
21471
6ad8ae5c
DJ
214722003-06-17 Daniel Jacobowitz <drow@mvista.com>
21473
21474 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21475 (linux_detach_one_process, linux_detach): New functions.
21476 (linux_target_ops): Add linux_detach.
21477 * server.c (main): Handle 'D' packet.
21478 * target.h (struct target_ops): Add "detach" member.
21479 (detach_inferior): Define.
21480
1581182a
MK
214812003-06-13 Mark Kettenis <kettenis@gnu.org>
21482
21483 From Kelley Cook <kelleycook@wideopenwest.com>:
21484 * configure.srv: Accept i[34567]86 variants.
21485
e5379b03
DJ
214862003-06-05 Daniel Jacobowitz <drow@mvista.com>
21487
21488 * linux-low.c (linux_wait_for_event): Correct comment typos.
21489 (linux_resume_one_process): Call check_removed_breakpoint.
21490 (linux_send_signal): New function.
21491 (linux_target_ops): Add linux_send_signal.
21492 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21493 of kill.
21494 * target.h (struct target_ops): Add send_signal.
21495
2ff29de4
JB
214962003-05-29 Jim Blandy <jimb@redhat.com>
21497
21498 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21499 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21500 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21501 away part of the register's value.
21502
254787d4
DJ
215032003-03-26 Daniel Jacobowitz <drow@mvista.com>
21504
21505 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21506 (linux_wait_for_event, linux_init_signals): Likewise.
21507
94e10508
DJ
215082003-03-17 Daniel Jacobowitz <drow@mvista.com>
21509
21510 * configure.in: Check for stdlib.h.
21511 * configure: Regenerated.
21512 * config.in: Regenerated.
21513
4c0711e0
DJ
215142003-01-04 Andreas Schwab <schwab@suse.de>
21515
21516 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21517
ef66e766
AC
215182003-01-02 Andrew Cagney <ac131313@redhat.com>
21519
21520 * Makefile.in: Remove obsolete code.
21521
a1358604
DJ
215222002-11-20 Daniel Jacobowitz <drow@mvista.com>
21523
21524 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21525 defined(PT_FPR0_HI).
21526
23ce3b1c
DJ
215272002-11-17 Stuart Hughes <seh@zee2.com>
21528
21529 * linux-arm-low.c (arm_num_regs): Increase.
21530 (arm_regmap): Include status register.
21531
215322002-11-17 Daniel Jacobowitz <drow@mvista.com>
21533
21534 * linux-low.c (register_addr): Remove incorrect -1 check.
21535
a9fa9f7d
DJ
215362002-08-29 Daniel Jacobowitz <drow@mvista.com>
21537
21538 * linux-low.c (linux_create_inferior): Call setpgid. Return
21539 the new PID.
21540 (unstopped_p, linux_signal_pid): Remove.
21541 (linux_target_ops): Remove linux_signal_pid.
21542 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21543 global instead of target method.
21544 * target.h (struct target_ops): Remove signal_pid. Update comment
21545 for create_inferior.
21546 * server.c (signal_pid): New variable.
21547 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21548 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21549 (attach_inferior): Set signal_pid.
21550
17574093
DJ
215512002-08-23 Daniel Jacobowitz <drow@mvista.com>
21552
21553 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21554
215552002-08-20 Jim Blandy <jimb@redhat.com>
21556
21557 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21558 default for this.
21559
215602002-08-01 Andrew Cagney <cagney@redhat.com>
21561
21562 * Makefile.in: Make chill references obsolete.
21563
215642002-07-24 Kevin Buettner <kevinb@redhat.com>
21565
21566 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21567 * configure: Regenerate.
21568 * config.in: Regenerate.
21569
215702002-07-09 David O'Brien <obrien@FreeBSD.org>
21571
21572 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21573 (perror_with_name, remote_close, remote_open, expect, play): Static.
21574
215752002-07-04 Michal Ludvig <mludvig@suse.cz>
21576
4b8dad4a 21577 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21578 byte offsets instead of an array of indexes.
21579 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21580
215812002-06-13 Daniel Jacobowitz <drow@mvista.com>
21582
21583 * regcache.c: Add comment.
21584
215852002-06-11 Daniel Jacobowitz <drow@mvista.com>
21586
21587 * thread-db.c: New file.
21588 * proc-service.c: New file.
21589 * acinclude.m4: New file.
21590 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21591 proc-service.o, and thread-db.o.
21592 (linux-low.o): Add USE_THREAD_DB.
21593 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21594 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21595 * aclocal.m4: Regenerated.
21596 * config.in: Regenerated.
21597 * configure: Regenerated.
21598 * configure.in: Check for proc_service.h, sys/procfs.h,
21599 thread_db.h, and linux/elf.h headrs.
21600 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21601 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21602 Check for -lthread_db and thread support.
21603 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21604 PowerPC, and SuperH.
21605 * i387-fp.c: Constify arguments.
21606 * i387-fp.h: Likewise.
21607 * inferiors.c: (struct thread_info): Renamed from
21608 `struct inferior_info'. Remove PID member. Use generic inferior
21609 list header. All uses updated.
21610 (inferiors, signal_pid): Removed.
21611 (all_threads): New variable.
21612 (get_thread): Define.
21613 (add_inferior_to_list): New function.
21614 (for_each_inferior): New function.
21615 (change_inferior_id): New function.
21616 (add_inferior): Removed.
21617 (remove_inferior): New function.
21618 (add_thread): New function.
21619 (free_one_thread): New function.
21620 (remove_thread): New function.
21621 (clear_inferiors): Use for_each_inferior and free_one_thread.
21622 (find_inferior): New function.
21623 (find_inferior_id): New function.
21624 (inferior_target_data): Update argument type.
21625 (set_inferior_target_data): Likewise.
21626 (inferior_regcache_data): Likewise.
21627 (set_inferior_regcache_data): Likewise.
21628 * linux-low.c (linux_bp_reinsert): Remove.
21629 (all_processes, stopping_threads, using_thrads)
21630 (struct pending_signals, debug_threads, pid_of): New.
21631 (inferior_pid): Replace with macro.
21632 (struct inferior_linux_data): Remove.
21633 (get_stop_pc, add_process): New functions.
21634 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21635 Use add_process and add_thread.
21636 (linux_attach_lwp): New function, based on old linux_attach. Use
21637 add_process and add_thread. Set stop_expected for new threads.
21638 (linux_attach): New function.
21639 (linux_kill_one_process): New function.
21640 (linux_kill): Kill all LWPs.
21641 (linux_thread_alive): Use find_inferior_id.
21642 (check_removed_breakpoints, status_pending_p): New functions.
21643 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21644 Update. Use WNOHANG. Wait for cloned processes also. Update process
21645 struct for the found process.
21646 (linux_wait_for_event): New function.
21647 (linux_wait): Use it. Support LWPs.
21648 (send_sigstop, wait_for_sigstop, stop_all_processes)
21649 (linux_resume_one_process, linux_continue_one_process): New functions.
21650 (linux_resume): Support LWPs.
21651 (REGISTER_RAW_SIZE): Remove.
21652 (fetch_register): Use register_size instead. Call supply_register.
21653 (usr_store_inferior_registers): Likewise. Call collect_register.
21654 Fix recursive case.
21655 (regsets_fetch_inferior_registers): Improve error message.
21656 (regsets_store_inferior_registers): Add debugging.
21657 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21658 (unstopped_p, linux_signal_pid): New functions.
21659 (linux_target_ops): Add linux_signal_pid.
21660 (linux_init_signals): New function.
21661 (initialize_low): Call it. Initialize using_threads.
21662 * regcache.c (inferior_regcache_data): Add valid
21663 flag.
21664 (get_regcache): Fetch registers lazily. Add fetch argument
21665 and update all callers.
21666 (regcache_invalidate_one, regcache_invalidate): New
21667 functions.
21668 (new_register_cache): Renamed from create_register_cache.
21669 Return the new regcache.
21670 (free_register_cache): Change argument to a void *.
21671 (registers_to_string, registers_from_string): Call get_regcache
21672 with fetch flag set.
21673 (register_data): Make static. Pass fetch flag to get_regcache.
21674 (supply_register): Call get_regcache with fetch flag clear.
21675 (collect_register): Call get_regcache with fetch flag set.
21676 (collect_register_as_string): New function.
21677 * regcache.h: Update.
21678 * remote-utils.c (putpkt): Flush after debug output and use
21679 stderr.
21680 Handle input interrupts while waiting for an ACK.
21681 (input_interrupt): Use signal_pid method.
21682 (getpkt): Flush after debug output and use stderr.
21683 (outreg): Use collect_register_as_string.
21684 (new_thread_notify, dead_thread_notify): New functions.
21685 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21686 and general_thread.
21687 (look_up_one_symbol): Flush after debug output.
21688 * server.c (step_thread, server_waiting): New variables.
21689 (start_inferior): Don't use signal_pid. Update call to mywait.
21690 (attach_inferior): Update call to mywait.
21691 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21692 (main): Don't fetch/store registers explicitly. Use
21693 set_desired_inferior. Support proposed ``Hs'' packet. Update
21694 calls to mywait.
21695 * server.h: Update.
21696 (struct inferior_list, struct_inferior_list_entry): New.
21697 * target.c (set_desired_inferior): New.
21698 (write_inferior_memory): Constify.
21699 (mywait): New function.
21700 * target.h: Update.
21701 (struct target_ops): New signal_pid method.
21702 (mywait): Removed macro, added prototype.
21703
21704 * linux-low.h (regset_func): Removed.
21705 (regset_fill_func, regset_store_func): New.
21706 (enum regset_type): New.
21707 (struct regset_info): Add type field. Use new operation types.
21708 (struct linux_target_ops): stop_pc renamed to get_pc.
21709 Add decr_pc_after_break and breakpoint_at.
21710 (get_process, get_thread_proess, get_process_thread)
21711 (strut process_info, all_processes, linux_attach_lwp)
21712 (thread_db_init): New.
21713
21714 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21715 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21716 (the_low_target): Add new members.
21717 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21718 (i386_store_fpxregset): Constify.
21719 (target_regsets): Add new kind identifier.
21720 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21721 (i386_set_pc): Add debugging.
21722 (i386_breakpoint_at): New function.
21723 (the_low_target): Add new members.
21724 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21725 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21726 (mips_breakpoint_at): New.
21727 (the_low_target): Add new members.
21728 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21729 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21730 (the_low_target): Add new members.
21731 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21732 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21733 (the_low_target): Add new members.
21734 * linux-x86-64-low.c (target_regsets): Add new kind
21735 identifier.
21736
217372002-05-15 Daniel Jacobowitz <drow@mvista.com>
21738
21739 From Martin Pool <mbp@samba.org>:
21740 * server.c (gdbserver_usage): New function.
21741 (main): Call it.
21742
217432002-05-14 Daniel Jacobowitz <drow@mvista.com>
21744
21745 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21746 stop_at -> stop_pc.
21747
217482002-05-04 Andrew Cagney <ac131313@redhat.com>
21749
21750 * Makefile.in: Remove obsolete code.
21751
217522002-04-24 Michal Ludvig <mludvig@suse.cz>
21753
21754 * linux-low.c (regsets_fetch_inferior_registers),
21755 (regsets_store_inferior_registers): Removed cast to int from
21756 ptrace() calls.
21757 * regcache.h: Added declaration of struct inferior_info.
21758
217592002-04-20 Daniel Jacobowitz <drow@mvista.com>
21760
21761 * inferiors.c (struct inferior_info): Add regcache_data.
21762 (add_inferior): Call create_register_cache.
21763 (clear_inferiors): Call free_register_cache.
21764 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21765 * regcache.c (struct inferior_regcache_data): New.
21766 (registers): Remove.
21767 (get_regcache): New function.
21768 (create_register_cache, free_register_cache): New functions.
21769 (set_register_cache): Don't initialize the register cache here.
21770 (registers_to_string, registers_from_string, register_data): Call
21771 get_regcache.
21772 * regcache.h: Add prototypes.
21773 * server.h: Likewise.
21774
217752002-04-20 Daniel Jacobowitz <drow@mvista.com>
21776
21777 * mem-break.c: New file.
21778 * mem-break.h: New file.
21779 * Makefile.in: Add mem-break.o rule; update server.h
21780 dependencies.
21781 * inferiors.c (struct inferior_info): Add target_data
21782 member.
21783 (clear_inferiors): Free target_data member if set.
21784 (inferior_target_data, set_inferior_target_data): New functions.
21785 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21786 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21787 * linux-low.c (linux_bp_reinsert): New variable.
21788 (struct inferior_linux_data): New.
21789 (linux_create_inferior): Use set_inferior_target_data.
21790 (linux_attach): Likewise. Call add_inferior.
21791 (linux_wait_for_one_inferior): New function.
21792 (linux_wait): Call it.
21793 (linux_write_memory): Add const.
21794 (initialize_low): Call set_breakpoint_data.
21795 * linux-low.h (struct linux_target_ops): Add breakpoint
21796 handling members.
21797 * server.c (attach_inferior): Remove extra add_inferior
21798 call.
21799 * server.h: Include mem-break.h. Update inferior.c
21800 prototypes.
21801 * target.c (read_inferior_memory)
21802 (write_inferior_memory): New functions.
21803 * target.h (read_inferior_memory)
21804 (write_inferior_memory): Change macros to prototypes.
21805 (struct target_ops): Update comments. Add const to write_memory
21806 definition.
21807
218082002-04-11 Daniel Jacobowitz <drow@mvista.com>
21809
21810 * linux-low.c (usr_store_inferior_registers): Support
21811 registers which are allowed to fail to store.
21812 * linux-low.h (linux_target_ops): Likewise.
21813 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21814 (ppc_cannot_store_register): FPSCR may not be storable.
21815
218162002-04-09 Daniel Jacobowitz <drow@mvista.com>
21817
21818 * server.h: Include <string.h> if HAVE_STRING_H.
21819 * ChangeLog: Correct paths in last ChangeLog entry.
21820
218212002-04-09 Daniel Jacobowitz <drow@mvista.com>
21822
21823 * linux-low.h: Remove obsolete prototypes.
21824 (struct linux_target_ops): New.
21825 (extern the_low_target): New.
21826 * linux-low.c (num_regs, regmap): Remove declarations.
21827 (register_addr): Use the_low_target explicitly.
21828 (fetch_register): Likewise.
21829 (usr_fetch_inferior_registers): Likewise.
21830 (usr_store_inferior_registers): Likewise.
21831 * linux-arm-low.c (num_regs): Remove.
21832 (arm_num_regs): Define.
21833 (arm_regmap): Renamed from regmap, made static.
21834 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21835 made static.
21836 (arm_cannot_store_register): Renamed from cannot_store_register,
21837 made static.
21838 (the_low_target): New.
21839 * linux-i386-low.c (num_regs): Remove.
21840 (i386_num_regs): Define.
21841 (i386_regmap): Renamed from regmap, made static.
21842 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21843 made static.
21844 (i386_cannot_store_register): Renamed from cannot_store_register,
21845 made static.
21846 (the_low_target): New.
21847 * linux-ia64-low.c (num_regs): Remove.
21848 (ia64_num_regs): Define.
21849 (ia64_regmap): Renamed from regmap, made static.
21850 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21851 made static.
21852 (ia64_cannot_store_register): Renamed from cannot_store_register,
21853 made static.
21854 (the_low_target): New.
21855 * linux-m68k-low.c (num_regs): Remove.
21856 (m68k_num_regs): Define.
21857 (m68k_regmap): Renamed from regmap, made static.
21858 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21859 made static.
21860 (m68k_cannot_store_register): Renamed from cannot_store_register,
21861 made static.
21862 (the_low_target): New.
21863 * linux-mips-low.c (num_regs): Remove.
21864 (mips_num_regs): Define.
21865 (mips_regmap): Renamed from regmap, made static.
21866 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21867 made static.
21868 (mips_cannot_store_register): Renamed from cannot_store_register,
21869 made static.
21870 (the_low_target): New.
21871 * linux-ppc-low.c (num_regs): Remove.
21872 (ppc_num_regs): Define.
21873 (ppc_regmap): Renamed from regmap, made static.
21874 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21875 made static.
21876 (ppc_cannot_store_register): Renamed from cannot_store_register,
21877 made static.
21878 (the_low_target): New.
21879 * linux-s390-low.c (num_regs): Remove.
21880 (s390_num_regs): Define.
21881 (s390_regmap): Renamed from regmap, made static.
21882 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21883 made static.
21884 (s390_cannot_store_register): Renamed from cannot_store_register,
21885 made static.
21886 (the_low_target): New.
21887 * linux-sh-low.c (num_regs): Remove.
21888 (sh_num_regs): Define.
21889 (sh_regmap): Renamed from regmap, made static.
21890 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21891 made static.
21892 (sh_cannot_store_register): Renamed from cannot_store_register,
21893 made static.
21894 (the_low_target): New.
21895 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21896 (the_low_target): New.
21897
218982002-04-09 Daniel Jacobowitz <drow@mvista.com>
21899
21900 * Makefile.in: Add stamp-h target.
21901 * configure.in: Create stamp-h.
21902 * configure: Regenerated.
21903
219042002-04-09 Daniel Jacobowitz <drow@mvista.com>
21905
21906 * inferiors.c: New file.
21907 * target.c: New file.
21908 * target.h: New file.
21909 * Makefile.in: Add target.o and inferiors.o. Update
21910 dependencies.
21911 * linux-low.c (inferior_pid): New static variable,
21912 moved from server.c.
21913 (linux_create_inferior): Renamed from create_inferior.
21914 Call add_inferior. Return 0 on success instead of a PID.
21915 (linux_attach): Renamed from myattach.
21916 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
21917 (linux_thread_alive): Renamed from mythread_alive.
21918 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
21919 child dies.
21920 (linux_resume): Renamed from myresume. Add missing ``return 0''.
21921 (regsets_store_inferior_registers): Correct error message.
21922 Add missing ``return 0''.
21923 (linux_fetch_registers): Renamed from fetch_inferior_registers.
21924 (linux_store_registers): Renamed from store_inferior_registers.
21925 (linux_read_memory): Renamed from read_inferior_memory.
21926 (linux_write_memory): Renamed from write_inferior_memory.
21927 (linux_target_ops): New structure.
21928 (initialize_low): Call set_target_ops ().
21929 * remote-utils.c (unhexify): New function.
21930 (hexify): New function.
21931 (input_interrupt): Send signals to ``signal_pid''.
21932 * server.c (inferior_pid): Remove.
21933 (start_inferior): Update create_inferior call.
21934 (attach_inferior): Call add_inferior.
21935 (handle_query): New function.
21936 (main): Call handle_query for `q' packets.
21937 * server.h: Include "target.h". Remove obsolete prototypes.
21938 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
21939
219402002-04-09 Daniel Jacobowitz <drow@mvista.com>
21941
21942 * Makefile.in: Add WARN_CFLAGS. Update configury
21943 dependencies.
21944 * configure.in: Check for <string.h>
21945 * configure: Regenerate.
21946 * config.in: Regenerate.
21947 * gdbreplay.c: Include needed system headers.
21948 (remote_open): Remove strchr prototype.
21949 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
21950 * regcache.c (supply_register): Change buf argument to const void *.
21951 (supply_register_by_name): Likewise.
21952 (collect_register): Change buf argument to void *.
21953 (collect_register_by_name): Likewise.
21954 * regcache.h: Add missing prototypes.
21955 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
21956 * server.c (handle_query): New function.
21957 (attached): New static variable, moved out of main.
21958 (main): Quiet longjmp clobber warnings.
21959 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
21960 * utils.c (error): Remove NORETURN.
21961 (fatal): Likewise.
This page took 2.40134 seconds and 4 git commands to generate.