gdbserver/linux-low: turn 'supports_range_stepping' into a method
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
9cfd8715
TBA
12020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 Turn the 'supports_range_stepping' linux target op into a method
4 of linux_process_target.
5
6 * linux-low.h (struct linux_target_ops): Remove the op.
7 (class linux_process_target) <low_supports_range_stepping>: Declare.
8 * linux-low.cc (linux_process_target::low_supports_range_stepping):
9 Define.
10 (linux_process_target::supports_range_stepping): Update the call
11 site.
12 * linux-x86-low.cc (class x86_target)
13 <low_supports_range_stepping>: Declare.
14 (x86_supports_range_stepping): Turn into...
15 (x86_target::low_supports_range_stepping): ...this.
16 (the_low_target): Remove the op field.
17 * linux-aarch64-low.cc (class aarch64_target)
18 <low_supports_range_stepping>: Declare.
19 (aarch64_supports_range_stepping): Turn into...
20 (aarch64_target::low_supports_range_stepping): ...this.
21 (the_low_target): Remove the op field.
22 * linux-arm-low.cc (the_low_target): Remove the op field.
23 * linux-bfin-low.cc (the_low_target): Ditto.
24 * linux-crisv32-low.cc (the_low_target): Ditto.
25 * linux-m32r-low.cc (the_low_target): Ditto.
26 * linux-m68k-low.cc (the_low_target): Ditto.
27 * linux-ppc-low.cc (the_low_target): Ditto.
28 * linux-s390-low.cc (the_low_target): Ditto.
29 * linux-sh-low.cc (the_low_target): Ditto.
30 * linux-tic6x-low.cc (the_low_target): Ditto.
31 * linux-tile-low.cc (the_low_target): Ditto.
32 * linux-xtensa-low.cc (the_low_target): Ditto.
33
ab64c999
TBA
342020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
35
36 Remove the 'emit_ops' linux target ops and let the concrete
37 linux target define the op by overriding the declaration of
38 process_stratum_target.
39
40 * linux-low.h (struct linux_target_ops): Remove the op.
41 (class linux_process_target) <emit_ops>: Remove.
42 * linux-low.cc (linux_process_target::emit_ops): Remove.
43 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
44 (x86_emit_ops): Turn into...
45 (x86_target::emit_ops): ...this.
46 (the_low_target): Remove the op field.
47 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
48 (aarch64_emit_ops): Turn into...
49 (aarch64_target::emit_ops): ...this.
50 (the_low_target): Remove the op field.
51 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
52 (ppc_emit_ops): Turn into...
53 (ppc_target::emit_ops): ...this.
54 (the_low_target): Remove the op field.
55 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
56 (s390_emit_ops): Turn into...
57 (s390_target::emit_ops): ...this.
58 (the_low_target): Remove the op field.
59 * linux-arm-low.cc (the_low_target): Remove the op field.
60 * linux-bfin-low.cc (the_low_target): Ditto.
61 * linux-crisv32-low.cc (the_low_target): Ditto.
62 * linux-m32r-low.cc (the_low_target): Ditto.
63 * linux-m68k-low.cc (the_low_target): Ditto.
64 * linux-sh-low.cc (the_low_target): Ditto.
65 * linux-tic6x-low.cc (the_low_target): Ditto.
66 * linux-tile-low.cc (the_low_target): Ditto.
67 * linux-xtensa-low.cc (the_low_target): Ditto.
68
809a0c35
TBA
692020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
70
71 Remove the 'install_fast_tracepoint_jump_pad' and
72 'get_min_fast_tracepoint_insn_len' linux target ops to let the
73 concrete linux target define the ops by overriding the declarations
74 of process_stratum_target.
75
76 * linux-low.h (struct linux_target_ops): Remove the ops.
77 (class linux_process_target) <supports_fast_tracepoints>
78 <install_fast_tracepoint_jump_pad>
79 <get_min_fast_tracepoint_insn_len>: Remove.
80 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
81 (linux_process_target::install_fast_tracepoint_jump_pad)
82 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
83 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
84 <install_fast_tracepoint_jump_pad>
85 <get_min_fast_tracepoint_insn_len>: Declare.
86 (x86_target::supports_fast_tracepoints): Define.
87 (x86_install_fast_tracepoint_jump_pad): Turn into...
88 (x86_target::install_fast_tracepoint_jump_pad): ...this.
89 (x86_get_min_fast_tracepoint_insn_len): Turn into...
90 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
91 (the_low_target): Remove the op fields.
92 * linux-aarch64-low.cc (class aarch64_target)
93 <supports_fast_tracepoints>
94 <install_fast_tracepoint_jump_pad>
95 <get_min_fast_tracepoint_insn_len>: Declare.
96 (aarch64_target::supports_fast_tracepoints): Define.
97 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
98 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
99 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
100 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
101 (the_low_target): Remove the op fields.
102 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
103 <install_fast_tracepoint_jump_pad>
104 <get_min_fast_tracepoint_insn_len>: Declare.
105 (ppc_target::supports_fast_tracepoints): Define.
106 (ppc_install_fast_tracepoint_jump_pad): Turn into...
107 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
108 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
109 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
110 (the_low_target): Remove the op fields.
111 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
112 <install_fast_tracepoint_jump_pad>
113 <get_min_fast_tracepoint_insn_len>: Declare.
114 (s390_target::supports_fast_tracepoints): Define.
115 (s390_install_fast_tracepoint_jump_pad): Turn into...
116 (s390_target::install_fast_tracepoint_jump_pad): ...this.
117 (s390_get_min_fast_tracepoint_insn_len): Turn into...
118 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
119 (the_low_target): Remove the op fields.
120 * linux-arm-low.cc (the_low_target): Remove the op fields.
121 * linux-bfin-low.cc (the_low_target): Ditto.
122 * linux-crisv32-low.cc (the_low_target): Ditto.
123 * linux-m32r-low.cc (the_low_target): Ditto.
124 * linux-m68k-low.cc (the_low_target): Ditto.
125 * linux-sh-low.cc (the_low_target): Ditto.
126 * linux-tic6x-low.cc (the_low_target): Ditto.
127 * linux-tile-low.cc (the_low_target): Ditto.
128 * linux-xtensa-low.cc (the_low_target): Ditto.
129
13e567af
TBA
1302020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
131
132 Turn the 'get_thread_area' linux target op into a method of
133 process_stratum_target.
134
135 * linux-low.h (struct linux_target_ops): Remove the op.
136 (class linux_process_target) <stuck_in_jump_pad>
137 <linux_fast_tracepoint_collecting>
138 <low_get_thread_area>: Declare.
139 * linux-low.cc (supports_fast_tracepoints): Remove.
140 (linux_fast_tracepoint_collecting): Turn into...
141 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
142 (linux_process_target::low_get_thread_area): Define.
143 (stuck_in_jump_pad_callback): Turn into...
144 (linux_process_target::stuck_in_jump_pad): ...this.
145
146 Update the caller below.
147
148 (linux_process_target::stabilize_threads)
149
150 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
151 Declare.
152 (x86_get_thread_area): Turn into...
153 (x86_target::low_get_thread_area): ...this.
154 (the_low_target): Remove the op field.
155 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
156 Declare.
157 (aarch64_get_thread_area): Turn into...
158 (aarch64_target::low_get_thread_area): ...this.
159 (the_low_target): Remove the op field.
160 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
161 Declare.
162 (ppc_get_thread_area): Turn into...
163 (ppc_target::low_get_thread_area): ...this.
164 (the_low_target): Remove the op field.
165 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
166 Declare.
167 (s390_get_thread_area): Turn into...
168 (s390_target::low_get_thread_area): ...this.
169 (the_low_target): Remove the op field.
170 * linux-arm-low.cc (the_low_target): Remove the op field.
171 * linux-bfin-low.cc (the_low_target): Ditto.
172 * linux-crisv32-low.cc (the_low_target): Ditto.
173 * linux-m32r-low.cc (the_low_target): Ditto.
174 * linux-m68k-low.cc (the_low_target): Ditto.
175 * linux-sh-low.cc (the_low_target): Ditto.
176 * linux-tic6x-low.cc (the_low_target): Ditto.
177 * linux-tile-low.cc (the_low_target): Ditto.
178 * linux-xtensa-low.cc (the_low_target): Ditto.
179
47f70aa7
TBA
1802020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
181
182 Remote the 'supports_tracepoints' linux target op and let the
183 concrete linux target define it by overriding the op declared in
184 process_stratum_target.
185
186 * linux-low.h (struct linux_target_ops): Remove the op.
187 (class linux_process_target) <supports_tracepoints>: Remove.
188 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
189 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
190 Declare.
191 (x86_supports_tracepoints): Turn into...
192 (x86_target::supports_tracepoints): ...this.
193 (the_low_target): Remove the op field.
194 * linux-aarch64-low.cc (class aarch64_target)
195 <supports_tracepoints>: Declare.
196 (aarch64_supports_tracepoints): Turn into...
197 (aarch64_target::supports_tracepoints): ...this.
198 (the_low_target): Remove the op field.
199 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
200 Declare.
201 (ppc_supports_tracepoints): Turn into...
202 (ppc_target::supports_tracepoints): ...this.
203 (the_low_target): Remove the op field.
204 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
205 Declare.
206 (s390_supports_tracepoints): Turn into...
207 (s390_target::supports_tracepoints): ...this.
208 (the_low_target): Remove the op field.
209 * linux-arm-low.cc (the_low_target): Remove the op field.
210 * linux-bfin-low.cc (the_low_target): Ditto.
211 * linux-crisv32-low.cc (the_low_target): Ditto.
212 * linux-m32r-low.cc (the_low_target): Ditto.
213 * linux-m68k-low.cc (the_low_target): Ditto.
214 * linux-sh-low.cc (the_low_target): Ditto.
215 * linux-tic6x-low.cc (the_low_target): Ditto.
216 * linux-tile-low.cc (the_low_target): Ditto.
217 * linux-xtensa-low.cc (the_low_target): Ditto.
218
a5b5da92
TBA
2192020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
220
221 Remove the 'process_qsupported' linux target op and let a concrete
222 linux target define the op by overriding the op declaration in
223 process_stratum_target.
224
225 * linux-low.h (struct linux_target_ops): Remove the op.
226 (class linux_process_target) <process_qsupported>: Remove.
227 * linux-low.cc (linux_process_target::process_qsupported): Remove.
228 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
229 (x86_linux_process_qsupported): Turn into...
230 (x86_target::process_qsupported): ...this.
231 (the_low_target): Remove the op field.
232 * linux-aarch64-low.cc (the_low_target): Remove the op
233 field.
234 * linux-arm-low.cc (the_low_target): Ditto.
235 * linux-bfin-low.cc (the_low_target): Ditto.
236 * linux-crisv32-low.cc (the_low_target): Ditto.
237 * linux-m32r-low.cc (the_low_target): Ditto.
238 * linux-m68k-low.cc (the_low_target): Ditto.
239 * linux-ppc-low.cc (the_low_target): Ditto.
240 * linux-s390-low.cc (the_low_target): Ditto.
241 * linux-sh-low.cc (the_low_target): Ditto.
242 * linux-tic6x-low.cc (the_low_target): Ditto.
243 * linux-tile-low.cc (the_low_target): Ditto.
244 * linux-xtensa-low.cc (the_low_target): Ditto.
245
d7599cc0
TBA
2462020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
247
248 Turn the 'prepare_to_resume' linux target op into a method of
249 linux_process_target.
250
251 * linux-low.h (struct linux_target_ops): Remove the op.
252 (class linux_process_target) <low_prepare_to_resume>: Declare.
253 * linux-low.cc (linux_process_target::low_prepare_to_resume):
254 Define.
255
256 Update the callers below:
257
258 (linux_process_target::resume_one_lwp_throw)
259 (linux_process_target::low_prepare_to_resume)
260
261 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
262 Declare.
263 (x86_target::low_prepare_to_resume): Define.
264 (the_low_target): Remove the op field.
265 * linux-aarch64-low.cc (class aarch64_target)
266 <low_prepare_to_resume>: Declare.
267 (aarch64_target::low_prepare_to_resume): Define.
268 (the_low_target): Remove the op field.
269 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
270 Declare.
271 (arm_prepare_to_resume): Turn into...
272 (arm_target::low_prepare_to_resume): ...this.
273 (the_low_target): Remove the op field.
274 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
275 Declare.
276 (mips_linux_prepare_to_resume): Turn into...
277 (mips_target::low_prepare_to_resume): ...this.
278 (the_low_target): Remove the op field.
279 * linux-bfin-low.cc (the_low_target): Remove the op field.
280 * linux-crisv32-low.cc (the_low_target): Ditto.
281 * linux-m32r-low.cc (the_low_target): Ditto.
282 * linux-m68k-low.cc (the_low_target): Ditto.
283 * linux-ppc-low.cc (the_low_target): Ditto.
284 * linux-s390-low.cc (the_low_target): Ditto.
285 * linux-sh-low.cc (the_low_target): Ditto.
286 * linux-tic6x-low.cc (the_low_target): Ditto.
287 * linux-tile-low.cc (the_low_target): Ditto.
288 * linux-xtensa-low.cc (the_low_target): Ditto.
289
fd000fb3
TBA
2902020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
291
292 Turn the 'new_process', 'delete_process', 'new_thread',
293 'delete_thread', and 'new_fork' linux target ops into methods
294 of linux_process_target.
295
296 * linux-low.h (struct linux_target_ops): Remove the ops.
297 (class linux_process_target) <add_linux_process>
298 <add_lwp>
299 <delete_lwp>
300 <attach_lwp>
301 <detach_one_lwp>
302 <check_zombie_leaders>
303 <filter_exit_event>
304 <low_new_process>
305 <low_delete_process>
306 <low_new_thread>
307 <low_delete_thread>
308 <low_new_fork>: Declare.
309 * linux-low.cc (delete_lwp): Turn into...
310 (linux_process_target::delete_lwp): ...this.
311 (linux_process_target::low_delete_thread): Define.
312 (linux_add_process): Turn into...
313 (linux_process_target::add_linux_process): ...this.
314 (linux_process_target::low_new_process): Define.
315 (linux_process_target::low_delete_process): Define.
316 (linux_process_target::low_new_fork): Define.
317 (add_lwp): Turn into...
318 (linux_process_target::add_lwp): ...this.
319 (linux_process_target::low_new_thread): Define.
320 (linux_attach_lwp): Turn into...
321 (linux_process_target::attach_lwp): ...this.
322 (linux_detach_one_lwp): Turn into...
323 (linux_process_target::detach_one_lwp): ...this.
324 (linux_detach_lwp_callback): Remove and inline...
325 (linux_process_target::detach): ...here.
326 (check_zombie_leaders): Turn into...
327 (linux_process_target::check_zombie_leaders): ...this.
328 (filter_exit_event): Turn into...
329 (linux_process_target::filter_exit_event): ...this.
330
331 Update the callers below.
332
333 (linux_process_target::handle_extended_wait)
334 (linux_process_target::create_inferior)
335 (attach_proc_task_lwp_callback)
336 (linux_process_target::attach)
337 (linux_process_target::detach)
338 (linux_process_target::mourn)
339 * thread-db.cc (attach_thread)
340
341 * linux-x86-low.cc (class x86_target) <low_new_process>
342 <low_delete_process>
343 <low_new_thread>
344 <low_delete_thread>
345 <low_new_fork>: Declare.
346 (x86_linux_new_process): Turn into...
347 (x86_target::low_new_process): ...this.
348 (x86_linux_delete_process): Turn into...
349 (x86_target::low_delete_process): ...this.
350 (x86_target::low_new_thread): Define.
351 (x86_target::low_delete_thread): Define.
352 (x86_linux_new_fork): Turn into...
353 (x86_target::low_new_fork): ...this.
354 (the_low_target): Remove the op fields.
355 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
356 <low_delete_process>
357 <low_new_thread>
358 <low_delete_thread>
359 <low_new_fork>: Declare.
360 (aarch64_linux_new_process): Turn into...
361 (aarch64_target::low_new_process): ...this.
362 (aarch64_linux_delete_process): Turn into...
363 (aarch64_target::low_delete_process): ...this.
364 (aarch64_target::low_new_thread): Define.
365 (aarch64_target::low_delete_thread): Define.
366 (aarch64_linux_new_fork): Turn into...
367 (aarch64_target::low_new_fork): ...this.
368 (the_low_target): Remove the op fields.
369 * linux-arm-low.cc (class arm_target) <low_new_process>
370 <low_delete_process>
371 <low_new_thread>
372 <low_delete_thread>
373 <low_new_fork>: Declare.
374 (arm_new_process): Turn into...
375 (arm_target::low_new_process): ...this.
376 (arm_delete_process): Turn into...
377 (arm_target::low_delete_process): ...this.
378 (arm_new_thread): Turn into...
379 (arm_target::low_new_thread): ...this.
380 (arm_delete_thread): Turn into...
381 (arm_target::low_delete_thread): ...this.
382 (arm_new_fork): Turn into...
383 (arm_target::low_new_fork): ...this.
384 (the_low_target): Remove the op fields.
385 * linux-mips-low.cc (class mips_target) <low_new_process>
386 <low_delete_process>
387 <low_new_thread>
388 <low_delete_thread>
389 <low_new_fork>: Declare.
390 (mips_linux_new_process): Turn into...
391 (mips_target::low_new_process): ...this.
392 (mips_linux_delete_process): Turn into...
393 (mips_target::low_delete_process): ...this.
394 (mips_linux_new_thread): Turn into...
395 (mips_target::low_new_thread): ...this.
396 (mips_linux_delete_thread): Turn into...
397 (mips_target::low_delete_thread): ...this.
398 (mips_linux_new_fork): Turn into...
399 (mips_target::low_new_fork): ...this.
400 (the_low_target): Remove the op fields.
401 * linux-bfin-low.cc (the_low_target): Remove the op fields.
402 * linux-crisv32-low.cc (the_low_target): Ditto.
403 * linux-m32r-low.cc (the_low_target): Ditto.
404 * linux-m68k-low.cc (the_low_target): Ditto.
405 * linux-ppc-low.cc (the_low_target): Ditto.
406 * linux-s390-low.cc (the_low_target): Ditto.
407 * linux-sh-low.cc (the_low_target): Ditto.
408 * linux-tic6x-low.cc (the_low_target): Ditto.
409 * linux-tile-low.cc (the_low_target): Ditto.
410 * linux-xtensa-low.cc (the_low_target): Ditto.
411
cb63de7c
TBA
4122020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
413
414 Turn the 'siginfo_fixup' linux target op into a method of
415 linux_process_target.
416
417 * linux-low.h (struct linux_target_ops): Remove the op.
418 (class linux_process_target) <siginfo_fixup>
419 <low_siginfo_fixup>: Declare.
420 * linux-low.cc (siginfo_fixup): Turn into...
421 (linux_process_target::siginfo_fixup): ...this.
422 (linux_process_target::low_siginfo_fixup): Define.
423 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
424 (x86_siginfo_fixup): Turn into...
425 (x86_target::low_siginfo_fixup): ...this.
426 (the_low_target): Remove the op field.
427 * linux-aarch64-low.cc (class aarch64_target):
428 <low_siginfo_fixup>: Declare.
429 (aarch64_linux_siginfo_fixup): Turn into...
430 (aarch64_target::low_siginfo_fixup): ...this.
431 (the_low_target): Remove the op field.
432 * linux-arm-low.cc (the_low_target): Remove the op field.
433 * linux-bfin-low.cc (the_low_target): Ditto.
434 * linux-crisv32-low.cc (the_low_target): Ditto.
435 * linux-m32r-low.cc (the_low_target): Ditto.
436 * linux-m68k-low.cc (the_low_target): Ditto.
437 * linux-mips-low.cc (the_low_target): Ditto.
438 * linux-ppc-low.cc (the_low_target): Ditto.
439 * linux-s390-low.cc (the_low_target): Ditto.
440 * linux-sh-low.cc (the_low_target): Ditto.
441 * linux-tic6x-low.cc (the_low_target): Ditto.
442 * linux-tile-low.cc (the_low_target): Ditto.
443 * linux-xtensa-low.cc (the_low_target): Ditto.
444
b35db733
TBA
4452020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
446
447 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
448 linux target ops into methods of linux_process_target.
449
450 * linux-low.h (struct linux_target_ops): Remove the ops.
451 (class linux_process_target) <low_collect_ptrace_register>
452 <low_store_ptrace_register>: Declare.
453 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
454 (linux_process_target::low_supply_ptrace_register): Define.
455
456 Update the callers below.
457
458 (linux_process_target::fetch_register)
459 (linux_process_target::store_register)
460
461 * linux-x86-low.cc (the_low_target): Remove the op fields.
462 * linux-aarch64-low.cc (the_low_target): Ditto.
463 * linux-arm-low.cc (the_low_target): Ditto.
464 * linux-bfin-low.cc (the_low_target): Ditto.
465 * linux-crisv32-low.cc (the_low_target): Ditto.
466 * linux-m32r-low.cc (the_low_target): Ditto.
467 * linux-m68k-low.cc (the_low_target): Ditto.
468 * linux-sh-low.cc (the_low_target): Ditto.
469 * linux-sparc-low.cc (the_low_target): Ditto.
470 * linux-tic6x-low.cc (the_low_target): Ditto.
471 * linux-tile-low.cc (the_low_target): Ditto.
472 * linux-xtensa-low.cc (the_low_target): Ditto.
473 * linux-mips-low.cc (class mips_target)
474 <low_collect_ptrace_register>
475 <low_supply_ptrace_register>: Declare.
476 (mips_collect_ptrace_register): Turn into ...
477 (mips_target::low_collect_ptrace_register): ...this.
478 (mips_supply_ptrace_register): Turn into...
479 (mips_target::low_supply_ptrace_register): ...this.
480 (the_low_target): Remove the op fields.
481 * linux-ppc-low.cc (class ppc_target)
482 <low_collect_ptrace_register>
483 <low_supply_ptrace_register>: Declare.
484 (ppc_collect_ptrace_register): Turn into ...
485 (ppc_target::low_collect_ptrace_register): ...this.
486 (ppc_supply_ptrace_register): Turn into ...
487 (ppc_target::low_supply_ptrace_register): ...this.
488 (ppc_fill_gregset): Update for the calls to
489 low_collect_ptrace_register.
490 (the_low_target): Remove the op fields.
491 * linux-s390-low.cc (class s390_target)
492 <low_collect_ptrace_register>
493 <low_supply_ptrace_register>: Declare.
494 (s390_collect_ptrace_register): Turn into ...
495 (s390_target::low_collect_ptrace_register): ...this.
496 (s390_supply_ptrace_register): Turn into ...
497 (s390_target::low_supply_ptrace_register): ...this.
498 (s390_fill_gregset): Update for the calls to
499 low_collect_ptrace_register.
500 (the_low_target): Remove the op fields.
501
ac1bbaca
TBA
5022020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
503
504 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
505 target ops into methods of linux_process_target.
506
507 * linux-low.h (struct linux_target_ops): Remove the ops.
508 (class linux_process_target) <check_stopped_by_watchpoint>
509 <low_stopped_by_watchpoint>
510 <low_stopped_data_address>: Declare.
511 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
512 (linux_process_target::check_stopped_by_watchpoint): ...this.
513 (linux_process_target::low_stopped_by_watchpoint): Define.
514 (linux_process_target::low_stopped_data_address): Define.
515 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
516 <low_stopped_data_address>: Declare.
517 (x86_stopped_by_watchpoint): Turn into...
518 (x86_target::low_stopped_by_watchpoint): ...this.
519 (x86_stopped_data_address): Turn into...
520 (x86_target::low_stopped_data_address): ...this.
521 (the_low_target): Remove the op fields.
522 * linux-aarch64-low.cc (class aarch64_target)
523 <low_stopped_by_watchpoint>
524 <low_stopped_data_address>: Declare.
525 (aarch64_stopped_by_watchpoint): Turn into...
526 (aarch64_target::low_stopped_by_watchpoint): ...this.
527 (aarch64_stopped_data_address): Turn into...
528 (aarch64_target::low_stopped_data_address): ...this.
529 (the_low_target): Remove the op fields.
530 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
531 <low_stopped_data_address>: Declare.
532 (arm_stopped_by_watchpoint): Turn into...
533 (arm_target::low_stopped_by_watchpoint): ...this.
534 (arm_stopped_data_address): Turn into...
535 (arm_target::low_stopped_data_address): ...this.
536 (the_low_target): Remove the op fields.
537 * linux-crisv32-low.cc (class crisv32_target)
538 <low_stopped_by_watchpoint>
539 <low_stopped_data_address>: Declare.
540 (cris_stopped_by_watchpoint): Turn into...
541 (crisv32_target::low_stopped_by_watchpoint): ...this.
542 (cris_stopped_data_address): Turn into...
543 (crisv32_target::low_stopped_data_address): ...this.
544 (the_low_target): Remove the op fields.
545 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
546 <low_stopped_data_address>: Declare.
547 (mips_stopped_by_watchpoint): Turn into...
548 (mips_target::low_stopped_by_watchpoint): ...this.
549 (mips_stopped_data_address): Turn into...
550 (mips_target::low_stopped_data_address): ...this.
551 (the_low_target): Remove the op fields.
552 * linux-bfin-low.cc (the_low_target): Remove the op fields.
553 * linux-m32r-low.cc (the_low_target): Ditto.
554 * linux-m68k-low.cc (the_low_target): Ditto.
555 * linux-ppc-low.cc (the_low_target): Ditto.
556 * linux-s390-low.cc (the_low_target): Ditto.
557 * linux-sh-low.cc (the_low_target): Ditto.
558 * linux-sparc-low.cc (the_low_target): Ditto.
559 * linux-tic6x-low.cc (the_low_target): Ditto.
560 * linux-tile-low.cc (the_low_target): Ditto.
561 * linux-xtensa-low.cc (the_low_target): Ditto.
562
9db9aa23
TBA
5632020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
564
565 Turn the 'insert_point' and 'remove_point' linux target ops into
566 methods of linux_process_target.
567
568 * linux-low.h (struct linux_target_ops): Remove the ops.
569 (class linux_process_target) <low_insert_point>
570 <low_remove_point>: Declare.
571 * linux-low.cc (linux_process_target::low_insert_point)
572 (linux_process_target::low_remove_point): Define.
573 (linux_process_target::insert_point)
574 (linux_process_target::remove_point): Update for calls to
575 low_insert_point and low_remove_point.
576 * linux-x86-low.cc (class x86_target) <low_insert_point>
577 <low_remove_point>: Declare.
578 (x86_insert_point): Turn into...
579 (x86_target::low_insert_point): ...this.
580 (x86_remove_point): Turn into...
581 (x86_target::low_remove_point): ...this.
582 (the_low_target): Remove the op fields.
583 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
584 <low_remove_point>: Declare.
585 (aarch64_insert_point): Turn into...
586 (aarch64_target::low_insert_point): ...this.
587 (aarch64_remove_point): Turn into...
588 (aarch64_target::low_remove_point): ...this.
589 (the_low_target): Remove the op fields.
590 * linux-arm-low.cc (class arm_target) <low_insert_point>
591 <low_remove_point>: Declare.
592 (arm_insert_point): Turn into...
593 (arm_target::low_insert_point): ...this.
594 (arm_remove_point): Turn into...
595 (arm_target::low_remove_point): ...this.
596 (the_low_target): Remove the op fields.
597 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
598 <low_remove_point>: Declare.
599 (crisv32_insert_point): Turn into...
600 (crisv32_target::low_insert_point): ...this.
601 (crisv32_remove_point): Turn into...
602 (crisv32_target::low_remove_point): ...this.
603 (the_low_target): Remove the op fields.
604 * linux-mips-low.cc (class mips_target) <low_insert_point>
605 <low_remove_point>: Declare.
606 (mips_insert_point): Turn into...
607 (mips_target::low_insert_point): ...this.
608 (mips_remove_point): Turn into...
609 (mips_target::low_remove_point): ...this.
610 (the_low_target): Remove the op fields.
611 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
612 <low_remove_point>: Declare.
613 (ppc_insert_point): Turn into...
614 (ppc_target::low_insert_point): ...this.
615 (ppc_remove_point): Turn into...
616 (ppc_target::low_remove_point): ...this.
617 (the_low_target): Remove the op fields.
618 * linux-bfin-low.cc (the_low_target): Remove the op fields.
619 * linux-m32r-low.cc (the_low_target): Ditto.
620 * linux-m68k-low.cc (the_low_target): Ditto.
621 * linux-s390-low.cc (the_low_target): Ditto.
622 * linux-sh-low.cc (the_low_target): Ditto.
623 * linux-sparc-low.cc (the_low_target): Ditto.
624 * linux-tic6x-low.cc (the_low_target): Ditto.
625 * linux-tile-low.cc (the_low_target): Ditto.
626 * linux-xtensa-low.cc (the_low_target): Ditto.
627
007c9b97
TBA
6282020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
629
630 Remove the 'supports_z_point_type' linux target op and let the
631 concrete linux target define it by overriding the op declared in
632 process_stratum_target.
633
634 * linux-low.cc (linux_process_target::supports_z_point_type):
635 Remove.
636 * linux-low.h (struct linux_target_ops): Remove the op.
637 (class linux_process_target) <supports_z_point_type>: Remove.
638 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
639 Declare.
640 (x86_supports_z_point_type): Turn into...
641 (x86_target::supports_z_point_type): ...this.
642 (the_low_target): Remove the op field.
643 * linux-aarch64-low.cc (class aarch64_target)
644 <supports_z_point_type>: Declare.
645 (aarch64_supports_z_point_type): Turn into...
646 (aarch64_target::supports_z_point_type): ...this.
647 (the_low_target): Remove the op field.
648 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
649 Declare.
650 (arm_supports_z_point_type): Turn into...
651 (arm_target::supports_z_point_type): ...this.
652 (the_low_target): Remove the op field.
653 * linux-crisv32-low.cc (class crisv32_target)
654 <supports_z_point_type>: Declare.
655 (cris_supports_z_point_type): Turn into...
656 (crisv32_target::supports_z_point_type): ...this.
657 (the_low_target): Remove the op field.
658 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
659 Declare.
660 (mips_supports_z_point_type): Turn into...
661 (mips_target::supports_z_point_type): ...this.
662 (the_low_target): Remove the op field.
663 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
664 Declare.
665 (ppc_supports_z_point_type): Turn into...
666 (ppc_target::supports_z_point_type): ...this.
667 (the_low_target): Remove the op field.
668 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
669 Declare.
670 (s390_supports_z_point_type): Turn into...
671 (s390_target::supports_z_point_type): ...this.
672 (the_low_target): Remove the op field.
673 * linux-bfin-low.cc (the_low_target): Remove the op field.
674 * linux-m32r-low.cc (the_low_target): Ditto.
675 * linux-m68k-low.cc (the_low_target): Ditto.
676 * linux-sh-low.cc (the_low_target): Ditto.
677 * linux-sparc-low.cc (the_low_target): Ditto.
678 * linux-tic6x-low.cc (the_low_target): Ditto.
679 * linux-tile-low.cc (the_low_target): Ditto.
680 * linux-xtensa-low.cc (the_low_target): Ditto.
681
d7146cda
TBA
6822020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
683
684 Turn the 'breakpoint_at' linux target op into a method of
685 linux_process_target.
686
687 * linux-low.h (struct linux_target_ops): Remove the op.
688 (class linux_process_target) <low_breakpoint_at>: Declare.
689
690 Update the callers below:
691
692 * linux-low.cc (linux_process_target::save_stop_reason)
693 (linux_process_target::thread_still_has_status_pending)
694 (linux_process_target::wait_1)
695
696 * linux-x86-low.cc (class x86_target)
697 <low_breakpoint_at>: Declare.
698 (x86_breakpoint_at): Turn into...
699 (x86_target::low_breakpoint_at): ...this.
700 (the_low_target): Remove the op field.
701 * linux-aarch64-low.cc (class aarch64_target)
702 <low_breakpoint_at>: Declare.
703 (aarch64_breakpoint_at): Turn into...
704 (aarch64_target::low_breakpoint_at): ...this.
705 (the_low_target): Remove the op field.
706 * linux-arm-low.cc (class arm_target)
707 <low_breakpoint_at>: Declare.
708 (arm_target::low_breakpoint_at): Define.
709 (the_low_target): Remove the op field.
710 * linux-bfin-low.cc (class bfin_target)
711 <low_breakpoint_at>: Declare.
712 (bfin_breakpoint_at): Turn into...
713 (bfin_target::low_breakpoint_at): ...this.
714 (the_low_target): Remove the op field.
715 * linux-cris-low.cc (class cris_target)
716 <low_breakpoint_at>: Declare.
717 (cris_breakpoint_at): Turn into...
718 (cris_target::low_breakpoint_at): ...this.
719 (the_low_target): Remove the op field.
720 * linux-crisv32-low.cc (class crisv32_target)
721 <low_breakpoint_at>: Declare.
722 (crisv32_breakpoint_at): Turn into...
723 (crisv32_target::low_breakpoint_at): ...this.
724 (the_low_target): Remove the op field.
725 * linux-ia64-low.cc (class ia64_target)
726 <low_breakpoint_at>: Declare.
727 (ia64_target::low_breakpoint_at): Define.
728 * linux-m32r-low.cc (class m32r_target)
729 <low_breakpoint_at>: Declare.
730 (m32r_breakpoint_at): Turn into...
731 (m32r_target::low_breakpoint_at): ...this.
732 (the_low_target): Remove the op field.
733 * linux-m68k-low.cc (class m68k_target)
734 <low_breakpoint_at>: Declare.
735 (m68k_breakpoint_at): Turn into...
736 (m68k_target::low_breakpoint_at): ...this.
737 (the_low_target): Remove the op field.
738 * linux-mips-low.cc (class mips_target)
739 <low_breakpoint_at>: Declare.
740 (mips_breakpoint_at): Turn into...
741 (mips_target::low_breakpoint_at): ...this.
742 (the_low_target): Remove the op field.
743 * linux-nios2-low.cc (class nios2_target)
744 <low_breakpoint_at>: Declare.
745 (nios2_breakpoint_at): Turn into...
746 (nios2_target::low_breakpoint_at): ...this.
747 (the_low_target): Remove the op field.
748 * linux-ppc-low.cc (class ppc_target)
749 <low_breakpoint_at>: Declare.
750 (ppc_breakpoint_at): Turn into...
751 (ppc_target::low_breakpoint_at): ...this.
752 (the_low_target): Remove the op field.
753 * linux-riscv-low.cc (class riscv_target)
754 <low_breakpoint_at>: Declare.
755 (riscv_breakpoint_at): Turn into...
756 (riscv_target::low_breakpoint_at): ...this.
757 (the_low_target): Remove the op field.
758 * linux-s390-low.cc (class s390_target)
759 <low_breakpoint_at>: Declare.
760 (s390_breakpoint_at): Turn into...
761 (s390_target::low_breakpoint_at): ...this.
762 (the_low_target): Remove the op field.
763 * linux-sh-low.cc (class sh_target)
764 <low_breakpoint_at>: Declare.
765 (sh_breakpoint_at): Turn into...
766 (sh_target::low_breakpoint_at): ...this.
767 (the_low_target): Remove the op field.
768 * linux-sparc-low.cc (class sparc_target)
769 <low_breakpoint_at>: Declare.
770 (sparc_breakpoint_at): Turn into...
771 (sparc_target::low_breakpoint_at): ...this.
772 (the_low_target): Remove the op field.
773 * linux-tic6x-low.cc (class tic6x_target)
774 <low_breakpoint_at>: Declare.
775 (tic6x_breakpoint_at): Turn into...
776 (tic6x_target::low_breakpoint_at): ...this.
777 (the_low_target): Remove the op field.
778 * linux-tile-low.cc (class tile_target)
779 <low_breakpoint_at>: Declare.
780 (tile_breakpoint_at): Turn into...
781 (tile_target::low_breakpoint_at): ...this.
782 (the_low_target): Remove the op field.
783 * linux-xtensa-low.cc (class xtensa_target)
784 <low_breakpoint_at>: Declare.
785 (xtensa_breakpoint_at): Turn into...
786 (xtensa_target::low_breakpoint_at): ...this.
787 (the_low_target): Remove the op field.
788
d4807ea2
TBA
7892020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
790
791 Turn the 'decr_pc_after_break' linux_target_ops field into
792 a method of linux_process_target.
793
794 * linux-low.h (struct linux_target_ops)
795 <decr_pc_after_break>: Remove.
796 (class linux_process_target) <low_decr_pc_after_break>: New method
797 declaration.
798 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
799 New method implementation.
800
801 Update the users below.
802
803 (linux_process_target::save_stop_reason)
804 (linux_process_target::wait_1)
805 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
806 New declaration.
807 (x86_target::low_decr_pc_after_break): New method implementation.
808 (the_low_target): Remove the field.
809 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
810 New declaration.
811 (bfin_target::low_decr_pc_after_break): New method implementation.
812 (the_low_target): Remove the field.
813 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
814 New declaration.
815 (m68k_target::low_decr_pc_after_break): New method implementation.
816 (the_low_target): Remove the field.
817 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
818 New declaration.
819 (s390_target::low_decr_pc_after_break): New method implementation.
820 (the_low_target): Remove the field.
821 * linux-aarch64-low.cc (the_low_target): Remove the field.
822 * linux-arm-low.cc (the_low_target): Remove the field.
823 * linux-cris-low.cc (the_low_target): Remove the field.
824 * linux-crisv32-low.cc (the_low_target): Remove the field.
825 * linux-m32r-low.cc (the_low_target): Remove the field.
826 * linux-mips-low.cc (the_low_target): Remove the field.
827 * linux-nios2-low.cc (the_low_target): Remove the field.
828 * linux-ppc-low.cc (the_low_target): Remove the field.
829 * linux-riscv-low.cc (the_low_target): Remove the field.
830 * linux-sh-low.cc (the_low_target): Remove the field.
831 * linux-sparc-low.cc (the_low_target): Remove the field.
832 * linux-tic6x-low.cc (the_low_target): Remove the field.
833 * linux-tile-low.cc (the_low_target): Remove the field.
834 * linux-xtensa-low.cc (the_low_target): Remove the field.
835
7582c77c
TBA
8362020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
837
838 Remove the 'supports_software_single_step' linux target op and let
839 the concrete linux target define it by overriding the op in
840 process_stratum_target.
841 Turn the 'get_next_pcs' linux target op into a method of
842 linux_process_target.
843
844 * linux-low.h (struct linux_target_ops): Remove the ops.
845 (class linux_process_target) <supports_software_single_step>:
846 Remove.
847 <low_get_next_pcs>: Declare.
848 * linux-low.cc (can_software_single_step): Remove.
849 (linux_process_target::low_get_next_pcs): Define.
850 (linux_process_target::supports_software_single_step): Remove.
851
852 Update the callers below.
853
854 (linux_process_target::handle_extended_wait)
855 (linux_process_target::wait_1)
856 (linux_process_target::install_software_single_step_breakpoints)
857 (linux_process_target::single_step)
858 (linux_process_target::thread_needs_step_over)
859 (linux_process_target::proceed_one_lwp)
860 (linux_process_target::supports_range_stepping)
861
862 * linux-x86-low.cc (the_low_target): Remove the op field.
863 * linux-aarch64-low.cc (the_low_target): Ditto.
864 * linux-bfin-low.cc (the_low_target): Ditto.
865 * linux-cris-low.cc (the_low_target): Ditto.
866 * linux-crisv32-low.cc (the_low_target): Ditto.
867 * linux-m32r-low.cc (the_low_target): Ditto.
868 * linux-m68k-low.cc (the_low_target): Ditto.
869 * linux-mips-low.cc (the_low_target): Ditto.
870 * linux-nios2-low.cc (the_low_target): Ditto.
871 * linux-ppc-low.cc (the_low_target): Ditto.
872 * linux-riscv-low.cc (the_low_target): Ditto.
873 * linux-s390-low.cc (the_low_target): Ditto.
874 * linux-sh-low.cc (the_low_target): Ditto.
875 * linux-sparc-low.cc (the_low_target): Ditto.
876 * linux-tic6x-low.cc (the_low_target): Ditto.
877 * linux-tile-low.cc (the_low_target): Ditto.
878 * linux-xtensa-low.cc (the_low_target): Ditto.
879 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
880 <supports_software_single_step>: Declare.
881 (arm_target::supports_software_single_step): Define.
882 (arm_gdbserver_get_next_pcs): Turn into...
883 (arm_target::low_get_next_pcs): ...this.
884 (the_low_target): Remove the op field.
885
3ca4edb6
TBA
8862020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
887
888 Remove the 'sw_breakpoint_from_kind' linux target op, and let
889 the concrete linux target define it by overriding the op
890 in process_stratum_target.
891
892 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
893 Remove.
894 * linux-low.h (struct linux_target_ops): Remove the op.
895 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
896 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
897 Declare.
898 (x86_sw_breakpoint_from_kind): Turn into...
899 (x86_target::sw_breakpoint_from_kind): ...this.
900 (the_low_target): Remove the op field.
901 * linux-aarch64-low.cc (class aarch64_target)
902 <sw_breakpoint_from_kind>: Declare.
903 (aarch64_sw_breakpoint_from_kind): Turn into...
904 (aarch64_target::sw_breakpoint_from_kind): ...this.
905 (the_low_target): Remove the op field.
906 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
907 Declare.
908 (arm_target::sw_breakpoint_from_kind): Define.
909 (the_low_target): Remove the op field.
910 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
911 Declare.
912 (bfin_sw_breakpoint_from_kind): Turn into...
913 (bfin_target::sw_breakpoint_from_kind): ...this.
914 (the_low_target): Remove the op field.
915 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
916 Declare.
917 (cris_sw_breakpoint_from_kind): Turn into...
918 (cris_target::sw_breakpoint_from_kind): ...this.
919 (the_low_target): Remove the op field.
920 * linux-crisv32-low.cc (class crisv32_target)
921 <sw_breakpoint_from_kind>: Declare.
922 (cris_sw_breakpoint_from_kind): Turn into...
923 (crisv32_target::sw_breakpoint_from_kind): ...this.
924 (the_low_target): Remove the op field.
925 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
926 Declare.
927 (ia64_target::sw_breakpoint_from_kind): Define.
928 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
929 Declare.
930 (m32r_sw_breakpoint_from_kind): Turn into...
931 (m32r_target::sw_breakpoint_from_kind): ...this.
932 (the_low_target): Remove the op field.
933 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
934 Declare.
935 (m68k_sw_breakpoint_from_kind): Turn into...
936 (m68k_target::sw_breakpoint_from_kind): ...this.
937 (the_low_target): Remove the op field.
938 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
939 Declare.
940 (mips_sw_breakpoint_from_kind): Turn into...
941 (mips_target::sw_breakpoint_from_kind): ...this.
942 (the_low_target): Remove the op field.
943 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
944 Declare.
945 (nios2_sw_breakpoint_from_kind): Turn into...
946 (nios2_target::sw_breakpoint_from_kind): ...this.
947 (the_low_target): Remove the op field.
948 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
949 Declare.
950 (ppc_sw_breakpoint_from_kind): Turn into...
951 (ppc_target::sw_breakpoint_from_kind): ...this.
952 (the_low_target): Remove the op field.
953 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
954 Declare.
955 (riscv_sw_breakpoint_from_kind): Turn into...
956 (riscv_target::sw_breakpoint_from_kind): ...this.
957 (the_low_target): Remove the op field.
958 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
959 Declare.
960 (s390_sw_breakpoint_from_kind): Turn into...
961 (s390_target::sw_breakpoint_from_kind): ...this.
962 (the_low_target): Remove the op field.
963 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
964 Declare.
965 (sh_sw_breakpoint_from_kind): Turn into...
966 (sh_target::sw_breakpoint_from_kind): ...this.
967 (the_low_target): Remove the op field.
968 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
969 Declare.
970 (sparc_sw_breakpoint_from_kind): Turn into...
971 (sparc_target::sw_breakpoint_from_kind): ...this.
972 (the_low_target): Remove the op field.
973 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
974 Declare.
975 (tic6x_sw_breakpoint_from_kind): Turn into...
976 (tic6x_target::sw_breakpoint_from_kind): ...this.
977 (the_low_target): Remove the op field.
978 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
979 Declare.
980 (tile_sw_breakpoint_from_kind): Turn into...
981 (tile_target::sw_breakpoint_from_kind): ...this.
982 (the_low_target): Remove the op field.
983 * linux-xtensa-low.cc (class xtensa_target)
984 <sw_breakpoint_from_kind>: Declare.
985 (xtensa_sw_breakpoint_from_kind): Turn into...
986 (xtensa_target::sw_breakpoint_from_kind): ...this.
987 (the_low_target): Remove the op field.
988
06250e4e
TBA
9892020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
990
991 Remove the 'breakpoint_kind_from_pc' and
992 'breakpoint_kind_from_current_state' linux target ops, and let the
993 concrete linux target define them by overriding the ops of
994 process_stratum_target.
995
996 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
997 Remove.
998 (linux_process_target::breakpoint_kind_from_current_state): Remove.
999 * linux-low.h (struct linux_target_ops): Remove ops.
1000 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1001 <breakpoint_kind_from_current_state>: Remove.
1002 * linux-x86-low.cc (the_low_target): Remove the op fields.
1003 * linux-bfin-low.cc (the_low_target): Ditto.
1004 * linux-cris-low.cc (the_low_target): Ditto.
1005 * linux-crisv32-low.cc (the_low_target): Ditto.
1006 * linux-m32r-low.cc (the_low_target): Ditto.
1007 * linux-m68k-low.cc (the_low_target): Ditto.
1008 * linux-mips-low.cc (the_low_target): Ditto.
1009 * linux-nios2-low.cc (the_low_target): Ditto.
1010 * linux-ppc-low.cc (the_low_target): Ditto.
1011 * linux-s390-low.cc (the_low_target): Ditto.
1012 * linux-sh-low.cc (the_low_target): Ditto.
1013 * linux-sparc-low.cc (the_low_target): Ditto.
1014 * linux-tic6x-low.cc (the_low_target): Ditto.
1015 * linux-tile-low.cc (the_low_target): Ditto.
1016 * linux-xtensa-low.cc (the_low_target): Ditto.
1017 * linux-aarch64-low.cc (class aarch64_target)
1018 <breakpoint_kind_from_pc>
1019 <breakpoint_kind_from_current_state>: Declare.
1020 (aarch64_breakpoint_kind_from_pc): Turn into...
1021 (aarch64_target::breakpoint_kind_from_pc): ...this.
1022 (aarch64_breakpoint_kind_from_current_state): Turn into...
1023 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1024 (the_low_target): Remove the op fields.
1025 * linux-arm-low.cc (class arm_target):
1026 <breakpoint_kind_from_pc>
1027 <breakpoint_kind_from_current_state>: Declare.
1028 (arm_target::breakpoint_kind_from_pc): Define.
1029 (arm_target::breakpoint_kind_from_current_state): Define.
1030 (the_low_target): Remove the op fields.
1031 * linux-riscv-low.cc (class riscv_target):
1032 <breakpoint_kind_from_pc>: Declare.
1033 (riscv_breakpoint_kind_from_pc): Turn into...
1034 (riscv_target::breakpoint_kind_from_pc): ...this.
1035 (the_low_target): Remove the op fields.
1036
bf9ae9d8
TBA
10372020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1038
1039 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1040 of linux_process_target.
1041
1042 * linux-low.h (struct linux_target_ops): Remove the ops.
1043 (class linux_process_target) <low_supports_breakpoints>
1044 <low_get_pc>
1045 <low_set_pc>: Declare.
1046 * linux-low.cc (supports_breakpoints): Turn into...
1047 (linux_process_target::low_supports_breakpoints): ...this.
1048 (linux_process_target::low_get_pc): Define.
1049 (linux_process_target::low_set_pc): Define.
1050
1051 Update the callers below.
1052
1053 (linux_process_target::get_pc)
1054 (linux_process_target::save_stop_reason)
1055 (linux_process_target::maybe_move_out_of_jump_pad)
1056 (linux_process_target::wait_1)
1057 (linux_process_target::resume_one_lwp_throw)
1058 (linux_process_target::resume)
1059 (linux_process_target::proceed_all_lwps)
1060 (linux_process_target::read_pc)
1061 (linux_process_target::write_pc)
1062
1063 * linux-x86-low.cc (class linux_process_target)
1064 <low_supports_breakpoints>
1065 <low_get_pc>
1066 <low_set_pc>: Declare.
1067 (x86_target::low_supports_breakpoints): Define.
1068 (x86_get_pc): Turn into...
1069 (x86_target::low_get_pc): ...this.
1070 (x86_set_pc): Turn into...
1071 (x86_target::low_set_pc): ...this.
1072 (the_low_target): Remove the op fields.
1073 * linux-arm-low.cc (class arm_target)
1074 <low_supports_breakpoints>
1075 <low_get_pc>
1076 <low_set_pc>: Declare.
1077 (arm_target::low_supports_breakpoints)
1078 (arm_target::low_get_pc)
1079 (arm_target::low_set_pc): Define.
1080 (the_low_target): Remove the op fields.
1081 * linux-bfin-low.cc (class bfin_target)
1082 <low_supports_breakpoints>
1083 <low_get_pc>
1084 <low_set_pc>: Declare.
1085 (bfin_target::low_supports_breakpoints)
1086 (bfin_target::low_get_pc)
1087 (bfin_target::low_set_pc): Define.
1088 (the_low_target): Remove the op fields.
1089 * linux-cris-low.cc (class cris_target)
1090 <low_supports_breakpoints>
1091 <low_get_pc>
1092 <low_set_pc>: Declare.
1093 (cris_target::low_supports_breakpoints)
1094 (cris_target::low_get_pc)
1095 (cris_target::low_set_pc): Define.
1096 (the_low_target): Remove the op fields.
1097 * linux-crisv32-low.cc (class crisv32_target)
1098 <low_supports_breakpoints>
1099 <low_get_pc>
1100 <low_set_pc>: Declare.
1101 (crisv32_target::low_supports_breakpoints)
1102 (crisv32_target::low_get_pc)
1103 (crisv32_target::low_set_pc): Define.
1104 (the_low_target): Remove the op fields.
1105 * linux-m32r-low.cc (class m32r_target)
1106 <low_supports_breakpoints>
1107 <low_get_pc>
1108 <low_set_pc>: Declare.
1109 (m32r_target::low_supports_breakpoints)
1110 (m32r_target::low_get_pc)
1111 (m32r_target::low_set_pc): Define.
1112 (the_low_target): Remove the op fields.
1113 * linux-m68k-low.cc (class m68k_target)
1114 <low_supports_breakpoints>
1115 <low_get_pc>
1116 <low_set_pc>: Declare.
1117 (m68k_target::low_supports_breakpoints)
1118 (m68k_target::low_get_pc)
1119 (m68k_target::low_set_pc): Define.
1120 (the_low_target): Remove the op fields.
1121 * linux-nios2-low.cc (class nios2_target)
1122 <low_supports_breakpoints>
1123 <low_get_pc>
1124 <low_set_pc>: Declare.
1125 (nios2_target::low_supports_breakpoints)
1126 (nios2_target::low_get_pc)
1127 (nios2_target::low_set_pc): Define.
1128 (the_low_target): Remove the op fields.
1129 * linux-sh-low.cc (class sh_target)
1130 <low_supports_breakpoints>
1131 <low_get_pc>
1132 <low_set_pc>: Declare.
1133 (sh_target::low_supports_breakpoints)
1134 (sh_target::low_get_pc)
1135 (sh_target::low_set_pc): Define.
1136 (the_low_target): Remove the op fields.
1137 * linux-xtensa-low.cc (class xtensa_target)
1138 <low_supports_breakpoints>
1139 <low_get_pc>
1140 <low_set_pc>: Declare.
1141 (xtensa_target::low_supports_breakpoints)
1142 (xtensa_target::low_get_pc)
1143 (xtensa_target::low_set_pc): Define.
1144 (the_low_target): Remove the op fields.
1145 * linux-sparc-low.cc (class sparc_target)
1146 <low_supports_breakpoints>
1147 <low_get_pc>: Declare.
1148 (sparc_target::low_supports_breakpoints)
1149 (sparc_target::low_get_pc): Define.
1150 (the_low_target): Remove the op fields.
1151 * linux-tile-low.cc (class tile_target)
1152 <low_supports_breakpoints>
1153 <low_get_pc>
1154 <low_set_pc>: Declare.
1155 (tile_target::low_supports_breakpoints)
1156 (tile_target::low_get_pc)
1157 (tile_target::low_set_pc): Define.
1158 (the_low_target): Remove the op fields.
1159 * linux-aarch64-low.cc (class aarch64_target)
1160 <low_supports_breakpoints>
1161 <low_get_pc>
1162 <low_set_pc>: Declare.
1163 (aarch64_target::low_supports_breakpoints): Define.
1164 (aarch64_get_pc): Turn into...
1165 (aarch64_target::low_get_pc): ...this.
1166 (aarch64_set_pc): Turn into...
1167 (aarch64_target::low_set_pc): ...this.
1168 (the_low_target): Remove the op fields.
1169 * linux-mips-low.cc (class mips_target)
1170 <low_supports_breakpoints>
1171 <low_get_pc>
1172 <low_set_pc>: Declare.
1173 (mips_target::low_supports_breakpoints): Define.
1174 (mips_get_pc): Turn into...
1175 (mips_target::low_get_pc): ...this.
1176 (mips_set_pc): Turn into...
1177 (mips_target::low_set_pc): ...this.
1178 (the_low_target): Remove the op fields.
1179 * linux-ppc-low.cc (class ppc_target)
1180 <low_supports_breakpoints>
1181 <low_get_pc>
1182 <low_set_pc>: Declare.
1183 (ppc_target::low_supports_breakpoints): Define.
1184 (ppc_get_pc): Turn into...
1185 (ppc_target::low_get_pc): ...this.
1186 (ppc_set_pc): Turn into...
1187 (ppc_target::low_set_pc): ...this.
1188 (the_low_target): Remove the op fields.
1189 * linux-riscv-low.cc (class riscv_target)
1190 <low_supports_breakpoints>
1191 <low_get_pc>
1192 <low_set_pc>: Declare.
1193 (riscv_target::low_supports_breakpoints): Define.
1194 (riscv_get_pc): Turn into...
1195 (riscv_target::low_get_pc): ...this.
1196 (riscv_set_pc): Turn into...
1197 (riscv_target::low_set_pc): ...this.
1198 (the_low_target): Remove the op fields.
1199 * linux-s390-low.cc (class s390_target)
1200 <low_supports_breakpoints>
1201 <low_get_pc>
1202 <low_set_pc>: Declare.
1203 (s390_target::low_supports_breakpoints): Define.
1204 (s390_get_pc): Turn into...
1205 (s390_target::low_get_pc): ...this.
1206 (s390_set_pc): Turn into...
1207 (s390_target::low_set_pc): ...this.
1208 (the_low_target): Remove the op fields.
1209 * linux-tic6x-low.cc (class tic6x_target)
1210 <low_supports_breakpoints>
1211 <low_get_pc>
1212 <low_set_pc>: Declare.
1213 (tic6x_target::low_supports_breakpoints): Define.
1214 (tic6x_get_pc): Turn into...
1215 (tic6x_target::low_get_pc): ...this.
1216 (tic6x_set_pc): Turn into...
1217 (tic6x_target::low_set_pc): ...this.
1218 (the_low_target): Remove the op fields.
1219
df95181f
TBA
12202020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1221
1222 Turn some more static methods in linux-low into private methods
1223 of linux_process_target.
1224
1225 * linux-low.cc (get_pc): Turn into...
1226 (linux_process_target::get_pc): ...this.
1227 (save_stop_reason): Turn into...
1228 (linux_process_target::save_stop_reason): ...this.
1229 (thread_still_has_status_pending_p): Turn into...
1230 (linux_process_target::thread_still_has_status_pending): ...this.
1231 (status_pending_p_callback): Turn into...
1232 (linux_process_target::status_pending_p_callback): ...this.
1233 (resume_stopped_resumed_lwps): Turn into...
1234 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1235 (install_software_single_step_breakpoints): Turn into...
1236 (linux_process_target::install_software_single_step_breakpoints):
1237 ...this.
1238 (single_step): Turn into...
1239 (linux_process_target::single_step): ...this.
1240 (linux_resume_one_lwp_throw): Turn into...
1241 (linux_process_target::resume_one_lwp_throw): ...this.
1242 (linux_resume_one_lwp): Turn into...
1243 (linux_process_target::resume_one_lwp): ...this.
1244 (resume_status_pending_p): Turn into...
1245 (linux_process_target::resume_status_pending): ...this.
1246 (need_step_over_p): Turn into...
1247 (linux_process_target::thread_needs_step_over): ...this.
1248 (linux_resume_one_thread): Turn into...
1249 (linux_process_target::resume_one_thread): ...this.
1250 (proceed_one_lwp): Turn into...
1251 (linux_process_target::proceed_one_lwp): ...this.
1252 (unsuspend_and_proceed_one_lwp): Turn into...
1253 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1254
1255 Update the calls/references to the above functions below.
1256
1257 (linux_process_target::handle_extended_wait)
1258 (linux_process_target::filter_event)
1259 (linux_process_target::wait_for_event_filtered)
1260 (linux_process_target::wait_1)
1261 (linux_process_target::move_out_of_jump_pad)
1262 (linux_process_target::start_step_over)
1263 (linux_process_target::resume)
1264 (linux_process_target::proceed_all_lwps)
1265 (regsets_store_inferior_registers)
1266 (linux_process_target::store_register)
1267
1268 * linux-low.h (class linux_process_target)
1269 <get_pc>
1270 <save_stop_reason>
1271 <thread_still_has_status_pending>
1272 <status_pending_p_callback>
1273 <resume_stopped_resumed_lwps>
1274 <install_software_single_step_breakpoints>
1275 <single_step>
1276 <resume_one_lwp_throw>
1277 <resume_one_lwp>
1278 <resume_status_pending>
1279 <thread_needs_step_over>
1280 <resume_one_thread>
1281 <proceed_one_lwp>
1282 <unsuspend_and_proceed_one_lwp>: Declare.
1283
bd70b1f2
TBA
12842020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1285
1286 Turn the 'fetch_register' linux target op into a method of
1287 linux_process_target.
1288
1289 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1290 (class linux_process_target) <low_fetch_register>: Declare.
1291 * linux-x86-low.cc (the_low_target)
1292 * linux-aarch64-low.cc (the_low_target)
1293 * linux-arm-low.cc (the_low_target)
1294 * linux-bfin-low.cc (the_low_target)
1295 * linux-cris-low.cc (the_low_target)
1296 * linux-crisv32-low.cc (the_low_target)
1297 * linux-m32r-low.cc (the_low_target)
1298 * linux-m68k-low.cc (the_low_target)
1299 * linux-nios2-low.cc (the_low_target)
1300 * linux-ppc-low.cc (the_low_target)
1301 * linux-s390-low.cc (the_low_target)
1302 * linux-sh-low.cc (the_low_target)
1303 * linux-sparc-low.cc (the_low_target)
1304 * linux-tic6x-low.cc (the_low_target)
1305 * linux-tile-low.cc (the_low_target)
1306 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1307 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1308 Declare.
1309 (ia64_fetch_register): Turn into...
1310 (ia64_target::low_fetch_register): ...this.
1311 (the_low_target): Remove the op field.
1312 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1313 Declare.
1314 (mips_fetch_register): Turn into...
1315 (mips_target::low_fetch_register): ...this.
1316 (the_low_target): Remove the op field.
1317 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1318 Declare.
1319 (riscv_fetch_register): Turn into...
1320 (riscv_target::low_fetch_register): ...this.
1321 (the_low_target): Remove the op field.
1322
1323 Update the callers below.
1324
1325 * linux-low.cc (linux_process_target::fetch_registers)
1326 (linux_process_target::low_fetch_register)
1327
daca57a7
TBA
13282020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1329
1330 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1331 linux target ops into methods of linux_process_target.
1332
1333 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1334 (class linux_process_target) <fetch_register>
1335 <store_register>
1336 <usr_fetch_inferior_registers>
1337 <usr_store_inferior_registers>
1338 <low_cannot_fetch_register>
1339 <low_cannot_fetch_register> Declare.
1340 * linux-low.cc (fetch_register): Turn into...
1341 (linux_process_target::fetch_register): ...this.
1342 (store_register): Turn into ...
1343 (linux_process_target::store_register): ...this.
1344 (usr_fetch_inferior_registers): Turn into...
1345 (linux_process_target::usr_fetch_inferior_registers): ...this.
1346 (usr_store_inferior_registers): Turn into...
1347 (linux_process_target::usr_store_inferior_registers): ...this.
1348 * linux-x86-low.cc (class x86_target)
1349 <low_cannot_fetch_register>
1350 <low_cannot_store_register>: Declare.
1351 (x86_cannot_store_register): Turn into...
1352 (x86_target::low_cannot_store_register): ...this.
1353 (x86_cannot_fetch_register): Turn into...
1354 (x86_target::low_cannot_fetch_register): ...this.
1355 (the_low_target): Remove the target op fields.
1356 * linux-aarch64-low.cc (class aarch64_target)
1357 <low_cannot_fetch_register>
1358 <low_cannot_store_register>: Declare.
1359 (aarch64_target::low_cannot_fetch_register)
1360 (aarch64_target::low_cannot_store_register): Define.
1361 (the_low_target): Remove the op fields.
1362 * linux-arm-low.cc (class arm_target)
1363 <low_cannot_fetch_register>
1364 <low_cannot_store_register>: Declare.
1365 (arm_cannot_fetch_register): Turn into...
1366 (arm_target::low_cannot_fetch_register): ...this.
1367 (arm_cannot_store_register): Turn into...
1368 (arm_target::low_cannot_store_register): ...this.
1369 (the_low_target): Remove the op fields.
1370 * linux-bfin-low.cc (class bfin_target)
1371 <low_cannot_fetch_register>
1372 <low_cannot_store_register>: Declare.
1373 (bfin_cannot_fetch_register): Turn into...
1374 (bfin_target::low_cannot_fetch_register): ...this.
1375 (bfin_cannot_store_register): Turn into...
1376 (bfin_target::low_cannot_store_register): ...this.
1377 (the_low_target): Remove the op fields.
1378 * linux-cris-low.cc (class cris_target)
1379 <low_cannot_fetch_register>
1380 <low_cannot_store_register>: Declare.
1381 (cris_cannot_fetch_register): Turn into...
1382 (cris_target::low_cannot_fetch_register): ...this.
1383 (cris_cannot_store_register): Turn into...
1384 (cris_target::low_cannot_store_register): ...this.
1385 (the_low_target): Remove the op fields.
1386 * linux-crisv32-low.cc (class crisv32_target)
1387 <low_cannot_fetch_register>
1388 <low_cannot_store_register>: Declare.
1389 (crisv32_target::low_cannot_fetch_register)
1390 (crisv32_target::low_cannot_store_register): Define.
1391 (the_low_target): Remove the op fields.
1392 * linux-ia64-low.cc (class ia64_target)
1393 <low_cannot_fetch_register>
1394 <low_cannot_store_register>: Declare.
1395 (ia64_cannot_fetch_register): Turn into...
1396 (ia64_target::low_cannot_fetch_register): ...this.
1397 (ia64_cannot_store_register): Turn into...
1398 (ia64_target::low_cannot_store_register): ...this.
1399 (the_low_target): Remove the op fields.
1400 * linux-m32r-low.cc (class m32r_target)
1401 <low_cannot_fetch_register>
1402 <low_cannot_store_register>: Declare.
1403 (m32r_cannot_fetch_register): Turn into...
1404 (m32r_target::low_cannot_fetch_register): ...this.
1405 (m32r_cannot_store_register): Turn into...
1406 (m32r_target::low_cannot_store_register): ...this.
1407 (the_low_target): Remove the op fields.
1408 * linux-m68k-low.cc (class m68k_target)
1409 <low_cannot_fetch_register>
1410 <low_cannot_store_register>: Declare.
1411 (m68k_cannot_fetch_register): Turn into...
1412 (m68k_target::low_cannot_fetch_register): ...this.
1413 (m68k_cannot_store_register): Turn into...
1414 (m68k_target::low_cannot_store_register): ...this.
1415 (the_low_target): Remove the op fields.
1416 * linux-mips-low.cc (class mips_target)
1417 <low_cannot_fetch_register>
1418 <low_cannot_store_register>: Declare.
1419 (mips_cannot_fetch_register): Turn into...
1420 (mips_target::low_cannot_fetch_register): ...this.
1421 (mips_cannot_store_register): Turn into...
1422 (mips_target::low_cannot_store_register): ...this.
1423 (get_usrregs_info): Inline at the call sites in
1424 low_cannot_fetch_register and low_cannot_store_register,
1425 and remove.
1426 (the_low_target): Remove the op fields.
1427 * linux-nios2-low.cc (class nios2_target)
1428 <low_cannot_fetch_register>
1429 <low_cannot_store_register>: Declare.
1430 (nios2_cannot_fetch_register): Turn into...
1431 (nios2_target::low_cannot_fetch_register): ...this.
1432 (nios2_cannot_store_register): Turn into...
1433 (nios2_target::low_cannot_store_register): ...this.
1434 (the_low_target): Remove the op fields.
1435 * linux-ppc-low.cc (class ppc_target)
1436 <low_cannot_fetch_register>
1437 <low_cannot_store_register>: Declare.
1438 (ppc_cannot_fetch_register): Turn into...
1439 (ppc_target::low_cannot_fetch_register): ...this.
1440 (ppc_cannot_store_register): Turn into...
1441 (ppc_target::low_cannot_store_register): ...this.
1442 (the_low_target): Remove the op fields.
1443 * linux-riscv-low.cc (class riscv_target)
1444 <low_cannot_fetch_register>
1445 <low_cannot_store_register>: Declare.
1446 (riscv_target::low_cannot_fetch_register)
1447 (riscv_target::low_cannot_store_register): Define.
1448 (the_low_target): Remove the op fields.
1449 * linux-s390-low.cc (class s390_target)
1450 <low_cannot_fetch_register>
1451 <low_cannot_store_register>: Declare.
1452 (s390_cannot_fetch_register): Turn into...
1453 (s390_target::low_cannot_fetch_register): ...this.
1454 (s390_cannot_store_register): Turn into...
1455 (s390_target::low_cannot_store_register): ...this.
1456 (the_low_target): Remove the op fields.
1457 * linux-sh-low.cc (class sh_target)
1458 <low_cannot_fetch_register>
1459 <low_cannot_store_register>: Declare.
1460 (sh_cannot_fetch_register): Turn into...
1461 (sh_target::low_cannot_fetch_register): ...this.
1462 (sh_cannot_store_register): Turn into...
1463 (sh_target::low_cannot_store_register): ...this.
1464 (the_low_target): Remove the op fields.
1465 * linux-sparc-low.cc (class sparc_target)
1466 <low_cannot_fetch_register>
1467 <low_cannot_store_register>: Declare.
1468 (sparc_cannot_fetch_register): Turn into...
1469 (sparc_target::low_cannot_fetch_register): ...this.
1470 (sparc_cannot_store_register): Turn into...
1471 (sparc_target::low_cannot_store_register): ...this.
1472 (the_low_target): Remove the op fields.
1473 * linux-tic6x-low.cc (class tic6x_target)
1474 <low_cannot_fetch_register>
1475 <low_cannot_store_register>: Declare.
1476 (tic6x_cannot_fetch_register): Turn into...
1477 (tic6x_target::low_cannot_fetch_register): ...this.
1478 (tic6x_cannot_store_register): Turn into...
1479 (tic6x_target::low_cannot_store_register): ...this.
1480 (the_low_target): Remove the op fields.
1481 * linux-tile-low.cc (class tile_target)
1482 <low_cannot_fetch_register>
1483 <low_cannot_store_register>: Declare.
1484 (tile_cannot_fetch_register): Turn into...
1485 (tile_target::low_cannot_fetch_register): ...this.
1486 (tile_cannot_store_register): Turn into...
1487 (tile_target::low_cannot_store_register): ...this.
1488 (the_low_target): Remove the op fields.
1489 * linux-xtensa-low.cc (class xtensa_target)
1490 <low_cannot_fetch_register>
1491 <low_cannot_store_register>: Declare.
1492 (xtensa_target::low_cannot_fetch_register)
1493 (xtensa_target::low_cannot_store_register): Define.
1494 (the_low_target): Remove the op fields.
1495
aa8d21c9
TBA
14962020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1497
1498 Turn the 'regs_info' linux target op into a method of
1499 linux_process_target.
1500
1501 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1502 (class linux_process_target) <get_regs_info>: Define.
1503
1504 Update the callers below.
1505
1506 * linux-low.cc (linux_process_target::fetch_registers)
1507 (linux_process_target::store_registers)
1508 * proc-service.cc (gregset_info)
1509
1510 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1511 (x86_linux_regs_info): Turn into ...
1512 (x86_target::get_regs_info): ...this.
1513 (the_low_target): Remove the op field.
1514 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1515 Declare.
1516 (aarch64_regs_info): Turn into ...
1517 (aarch64_target::get_regs_info): ...this.
1518 (the_low_target): Remove the op field.
1519 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1520 (arm_regs_info): Turn into ...
1521 (arm_target::get_regs_info): ...this.
1522 (the_low_target): Remove the op field.
1523 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1524 (bfin_regs_info): Turn into ...
1525 (bfin_target::get_regs_info): ...this.
1526 (the_low_target): Remove the op field.
1527 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1528 (cris_regs_info): Turn into ...
1529 (cris_target::get_regs_info): ...this.
1530 (the_low_target): Remove the op field.
1531 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1532 Declare.
1533 (crisv32_regs_info): Turn into ...
1534 (crisv32_target::get_regs_info): ...this.
1535 (the_low_target): Remove the op field.
1536 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1537 (ia64_regs_info): Turn into ...
1538 (ia64_target::get_regs_info): ...this.
1539 (the_low_target): Remove the op field.
1540 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1541 (m32r_regs_info): Turn into ...
1542 (m32r_target::get_regs_info): ...this.
1543 (the_low_target): Remove the op field.
1544 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1545 (m68k_regs_info): Turn into ...
1546 (m68k_target::get_regs_info): ...this.
1547 (the_low_target): Remove the op field.
1548 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1549 (mips_regs_info): Turn into ...
1550 (mips_target::get_regs_info): ...this.
1551 (the_low_target): Remove the op field.
1552 (get_usrregs_info): Update the call to the op.
1553 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1554 (nios2_regs_info): Turn into ...
1555 (nios2_target::get_regs_info): ...this.
1556 (the_low_target): Remove the op field.
1557 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1558 (ppc_regs_info): Turn into ...
1559 (ppc_target::get_regs_info): ...this.
1560 (the_low_target): Remove the op field.
1561 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1562 (riscv_regs_info): Turn into ...
1563 (riscv_target::get_regs_info): ...this.
1564 (the_low_target): Remove the op field.
1565 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1566 (s390_regs_info): Turn into ...
1567 (s390_target::get_regs_info): ...this.
1568 (the_low_target): Remove the op field.
1569 (s390_collect_ptrace_register)
1570 (s390_supply_ptrace_register)
1571 (s390_fill_gregset): Update the call to the op.
1572 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1573 (sh_regs_info): Turn into ...
1574 (sh_target::get_regs_info): ...this.
1575 (the_low_target): Remove the op field.
1576 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1577 (sparc_regs_info): Turn into ...
1578 (sparc_target::get_regs_info): ...this.
1579 (the_low_target): Remove the op field.
1580 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1581 (tic6x_regs_info): Turn into ...
1582 (tic6x_target::get_regs_info): ...this.
1583 (the_low_target): Remove the op field.
1584 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1585 (tile_regs_info): Turn into ...
1586 (tile_target::get_regs_info): ...this.
1587 (the_low_target): Remove the op field.
1588 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1589 Declare.
1590 (xtensa_regs_info): Turn into ...
1591 (xtensa_target::get_regs_info): ...this.
1592 (the_low_target): Remove the op field.
1593
797bcff5
TBA
15942020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1595
1596 Turn the 'arch_setup' linux target op into a method of
1597 linux_process_target.
1598
1599 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1600 (class linux_process_target) <arch_setup_thread>
1601 <low_arch_setup>: New declarations.
1602 * linux-low.cc (linux_arch_setup): Delete.
1603 (linux_arch_setup_thread): Turn into...
1604 (linux_process_target::arch_setup_thread): ... this.
1605
1606 Update the callers below.
1607
1608 (linux_process_target::handle_extended_wait)
1609 (linux_process_target::post_create_inferior)
1610 (linux_process_target::filter_event)
1611
1612 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1613 declaration.
1614 (x86_linux_update_xmltarget): Turn into...
1615 (x86_target::update_xmltarget): ...this.
1616 (x86_linux_process_qsupported): Update the call to
1617 x86_linux_update_xmltarget.
1618 (x86_arch_setup): Turn into ...
1619 (x86_target::low_arch_setup): ...this.
1620 (the_low_target): Remove the op field.
1621 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1622 declaration.
1623 (aarch64_arch_setup): Turn into ...
1624 (aarch64_target::low_arch_setup): ...this.
1625 (the_low_target): Remove the op field.
1626 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1627 declaration.
1628 (arm_arch_setup): Turn into ...
1629 (arm_target::low_arch_setup): ...this.
1630 (the_low_target): Remove the op field.
1631 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1632 declaration.
1633 (bfin_arch_setup): Turn into ...
1634 (bfin_target::low_arch_setup): ...this.
1635 (the_low_target): Remove the op field.
1636 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1637 declaration.
1638 (cris_arch_setup): Turn into ...
1639 (cris_target::low_arch_setup): ...this.
1640 (the_low_target): Remove the op field.
1641 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1642 declaration.
1643 (crisv32_arch_setup): Turn into ...
1644 (crisv32_target::low_arch_setup): ...this.
1645 (the_low_target): Remove the op field.
1646 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1647 declaration.
1648 (ia64_arch_setup): Turn into ...
1649 (ia64_target::low_arch_setup): ...this.
1650 (the_low_target): Remove the op field.
1651 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1652 declaration.
1653 (m32r_arch_setup): Turn into ...
1654 (m32r_target::low_arch_setup): ...this.
1655 (the_low_target): Remove the op field.
1656 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1657 declaration.
1658 (m68k_arch_setup): Turn into ...
1659 (m68k_target::low_arch_setup): ...this.
1660 (the_low_target): Remove the op field.
1661 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1662 declaration.
1663 (mips_arch_setup): Turn into ...
1664 (mips_target::low_arch_setup): ...this.
1665 (the_low_target): Remove the op field.
1666 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1667 declaration.
1668 (nios2_arch_setup): Turn into ...
1669 (nios2_target::low_arch_setup): ...this.
1670 (the_low_target): Remove the op field.
1671 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1672 declaration.
1673 (ppc_arch_setup): Turn into ...
1674 (ppc_target::low_arch_setup): ...this.
1675 (the_low_target): Remove the op field.
1676 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1677 declaration.
1678 (riscv_arch_setup): Turn into ...
1679 (riscv_target::low_arch_setup): ...this.
1680 (the_low_target): Remove the op field.
1681 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1682 declaration.
1683 (s390_arch_setup): Turn into ...
1684 (s390_target::low_arch_setup): ...this.
1685 (the_low_target): Remove the op field.
1686 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1687 declaration.
1688 (sh_arch_setup): Turn into ...
1689 (sh_target::low_arch_setup): ...this.
1690 (the_low_target): Remove the op field.
1691 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1692 declaration.
1693 (sparc_arch_setup): Turn into ...
1694 (sparc_target::low_arch_setup): ...this.
1695 (the_low_target): Remove the op field.
1696 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1697 declaration.
1698 (tic6x_arch_setup): Turn into ...
1699 (tic6x_target::low_arch_setup): ...this.
1700 (the_low_target): Remove the op field.
1701 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1702 declaration.
1703 (tile_arch_setup): Turn into ...
1704 (tile_target::low_arch_setup): ...this.
1705 (the_low_target): Remove the op field.
1706 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1707 declaration.
1708 (xtensa_arch_setup): Turn into ...
1709 (xtensa_target::low_arch_setup): ...this.
1710 (the_low_target): Remove the op field.
1711
ef0478f6
TBA
17122020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1713
1714 * linux-low.h (the_linux_target): New extern declaration.
1715 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
1716 'the_target'.
1717 (the_linux_target): Remove.
1718 * linux-x86-low.cc (class x86_target): New class.
1719 (the_x86_target): New static object.
1720 (the_linux_target): Define as pointer to the_x86_target.
1721 * linux-aarch64-low.cc (class aarch64_target): New class.
1722 (the_aarch64_target): New static object.
1723 (the_linux_target): Define as pointer to the_aarch64_target.
1724 * linux-arm-low.cc (class arm_target): New class.
1725 (the_arm_target): New static object.
1726 (the_linux_target): Define as pointer to the_arm_target.
1727 * linux-bfin-low.cc (class bfin_target): New class.
1728 (the_bfin_target): New static object.
1729 (the_linux_target): Define as pointer to the_bfin_target.
1730 * linux-cris-low.cc (class cris_target): New class.
1731 (the_cris_target): New static object.
1732 (the_linux_target): Define as pointer to the_cris_target.
1733 * linux-crisv32-low.cc (class crisv32_target): New class.
1734 (the_crisv32_target): New static object.
1735 (the_linux_target): Define as pointer to the_crisv32_target.
1736 * linux-ia64-low.cc (class ia64_target): New class.
1737 (the_ia64_target): New static object.
1738 (the_linux_target): Define as pointer to the_ia64_target.
1739 * linux-m32r-low.cc (class m32r_target): New class.
1740 (the_m32r_target): New static object.
1741 (the_linux_target): Define as pointer to the_m32r_target.
1742 * linux-m68k-low.cc (class m68k_target): New class.
1743 (the_m68k_target): New static object.
1744 (the_linux_target): Define as pointer to the_m68k_target.
1745 * linux-mips-low.cc (class mips_target): New class.
1746 (the_mips_target): New static object.
1747 (the_linux_target): Define as pointer to the_mips_target.
1748 * linux-nios2-low.cc (class nios2_target): New class.
1749 (the_nios2_target): New static object.
1750 (the_linux_target): Define as pointer to the_nios2_target.
1751 * linux-ppc-low.cc (class ppc_target): New class.
1752 (the_ppc_target): New static object.
1753 (the_linux_target): Define as pointer to the_ppc_target.
1754 * linux-riscv-low.cc (class riscv_target): New class.
1755 (the_riscv_target): New static object.
1756 (the_linux_target): Define as pointer to the_riscv_target.
1757 * linux-s390-low.cc (class s390_target): New class.
1758 (the_s390_target): New static object.
1759 (the_linux_target): Define as pointer to the_s390_target.
1760 * linux-sh-low.cc (class sh_target): New class.
1761 (the_sh_target): New static object.
1762 (the_linux_target): Define as pointer to the_sh_target.
1763 * linux-sparc-low.cc (class sparc_target): New class.
1764 (the_sparc_target): New static object.
1765 (the_linux_target): Define as pointer to the_sparc_target.
1766 * linux-tic6x-low.cc (class tic6x_target): New class.
1767 (the_tic6x_target): New static object.
1768 (the_linux_target): Define as pointer to the_tic6x_target.
1769 * linux-tile-low.cc (class tile_target): New class.
1770 (the_tile_target): New static object.
1771 (the_linux_target): Define as pointer to the_tile_target.
1772 * linux-xtensa-low.cc (class xtensa_target): New class.
1773 (the_xtensa_target): New static object.
1774 (the_linux_target): Define as pointer to the_xtensa_target.
1775
d16f3f6c
TBA
17762020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1777
1778 Turn some static functions in linux-low.cc into private methods of
1779 linux_process_target.
1780
1781 * linux-low.cc (handle_extended_wait): Turn into ...
1782 (linux_process_target::handle_extended_wait): ...this. Call
1783 'mourn' on 'this' object instead of 'the_target'.
1784 (maybe_move_out_of_jump_pad): Turn into...
1785 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
1786 (linux_low_filter_event): Turn into...
1787 (linux_process_target::filter_event): ...this.
1788 (linux_wait_for_event_filtered): Turn into...
1789 (linux_process_target::wait_for_event_filtered): ...this.
1790 (linux_wait_for_event): Turn into...
1791 (linux_process_target::wait_for_event): ...this.
1792 (linux_wait_1): Turn into...
1793 (linux_process_target::wait_1): ...this.
1794 (wait_for_sigstop): Turn into...
1795 (linux_process_target::wait_for_sigstop): ...this.
1796 (move_out_of_jump_pad_callback): Turn into...
1797 (linux_process_target::move_out_of_jump_pad): ...this.
1798 (stop_all_lwps): Turn into...
1799 (linux_process_target::stop_all_lwps): ...this.
1800 (start_step_over): Turn into...
1801 (linux_process_target::start_step_over): ...this.
1802 (complete_ongoing_step_over): Turn into...
1803 (linux_process_target::complete_ongoing_step_over): ...this.
1804 (proceed_all_lwps): Turn into...
1805 (linux_process_target::proceed_all_lwps): ...this.
1806 (unstop_all_lwps): Turn into...
1807 (linux_process_target::unstop_all_lwps): ...this.
1808
1809 * linux-low.h (class linux_process_target)
1810 <handle_extended_wait>
1811 <maybe_move_out_of_jump_pad>
1812 filter_event>
1813 <wait_for_event_filtered>
1814 <wait_for_event>
1815 <wait_1>
1816 <wait_for_sigstop>
1817 <move_out_of_jump_pad>
1818 <stop_all_lwps>
1819 <start_step_over>
1820 <complete_ongoing_step_over>
1821 <proceed_all_lwps>
1822 <unstop_all_lwps>: Declare.
1823
1824 Update the callers below.
1825
1826 * linux-low.cc (linux_process_target::attach): Update.
1827 (linux_process_target::stabilize_threads): Ditto.
1828 (linux_process_target::wait): Ditto.
1829
a5863204
TBA
18302020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1831
1832 * linux-low.h (struct linux_target_ops): Update the comment for
1833 'cannot_store_register' to return 0 or 1.
1834 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
1835 of 2.
1836
c884cc46
SM
18372020-03-20 Simon Marchi <simon.marchi@efficios.com>
1838
1839 * config.in: Re-generate.
1840 * configure: Re-generate.
1841
5a82b8a1
KR
18422020-03-17 Kamil Rytarowski <n54@gmx.com>
1843
1844 * regcache.cc (find_register_by_number): Update.
1845 * tdesc.cc (init_target_desc): Likewise.
1846 * tdesc.h (target_desc::reg_defs): Likewise.
1847
4635ff97
TT
18482020-03-12 Tom Tromey <tom@tromey.com>
1849
1850 * configure: Rebuild.
1851 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
1852 (WIN32APILIBS): New subst.
1853 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
1854 gdbsupport files.
1855 (gdbsupport/%.o): Remove target.
1856 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
1857 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
1858 (WIN32APILIBS): New variable.
1859 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
1860 (gdbreplay$(EXEEXT)): Likewise.
1861
9a665d62
TT
18622020-03-12 Tom Tromey <tom@tromey.com>
1863
1864 * config.in, configure: Rebuild.
1865 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
1866 * acinclude.m4: Include gettext-sister.m4.
1867 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
1868 variables.
1869 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
1870 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
1871
272cd5a3
SM
18722020-03-12 Simon Marchi <simon.marchi@efficios.com>
1873
1874 * acinclude.m4: Update path to selftest.m4.
1875
db6878ac
SM
18762020-03-12 Simon Marchi <simon.marchi@efficios.com>
1877
1878 * configure.ac: Don't source bfd/development.sh, move
1879 GDB_AC_COMMON higher.
1880 * configure: Re-generate.
1881
4d696a5c
SM
18822020-03-12 Simon Marchi <simon.marchi@efficios.com>
1883
1884 * configure: Re-generate.
1885
a0761e34
SM
18862020-03-11 Simon Marchi <simon.marchi@efficios.com>
1887
1888 * configure: Re-generate.
1889
20ea4a60
AB
18902020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1891
1892 * .dir-locals.el: New file.
1893
842806cb
TBA
18942020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1895
1896 * .gitattributes: New file.
1897
442131c1
AB
18982020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
1899
1900 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
1901 reply into an S reply.
1902 * server.cc (disable_packet_T): New global.
1903 (captured_main): Set new global when appropriate.
1904 * server.h (disable_packet_T): Declare.
1905
dda42c0b
TT
19062020-02-21 Tom Tromey <tom@tromey.com>
1907
1908 * Makefile.in (mostlyclean): New target.
1909
52405d85
TBA
19102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1911
1912 * target.h (struct process_stratum_target): Remove.
1913 (class process_target): Rename to ...
1914 (class process_stratum_target): ... this.
1915 * linux-low.h (class linux_process_target): Derive from
1916 'process_stratum_target'.
1917 * linux-low.cc (linux_target_ops): Remove.
1918 (initialize_low): Set the_target to the singleton instance of
1919 linux_process_target.
1920 * lynx-low.h (class lynx_process_target): Derive from
1921 'process_stratum_target'.
1922 * lynx-low.cc (lynx_target_ops): Remove.
1923 (initialize_low): Set the_target to the singleton instance of
1924 lynx_process_target.
1925 * nto-low.h (class nto_process_target): Derive from
1926 'process_stratum_target'.
1927 * nto-low.cc (nto_target_ops): Remove.
1928 (initialize_low): Set the_target to the singleton instance of
1929 nto_process_target.
1930 * win32-low.h (class win32_process_target): Derive from
1931 'process_stratum_target'.
1932 * win32-low.cc (win32_target_ops): Remove.
1933 (initialize_low): Set the_target to the singleton instance of
1934 win32_process_target.
1935
1936 Replace 'the_target->pt' with 'the_target' in the uses below.
1937
1938 * hostio.cc (hostio_error)
1939 (handle_setfs)
1940 (handle_open)
1941 (handle_unlink)
1942 (handle_readlink)
1943 * linux-aarch32-low.cc (arm_breakpoint_at)
1944 * linux-aarch64-low.cc (aarch64_breakpoint_at)
1945 * linux-arm-low.cc (arm_sigreturn_next_pc)
1946 (arm_get_hwcap)
1947 (arm_get_syscall_trapinfo)
1948 * linux-cris-low.cc (cris_breakpoint_at)
1949 * linux-crisv32-low.cc (cris_breakpoint_at)
1950 * linux-low.cc (handle_extended_wait)
1951 (linux_wait_1)
1952 (linux_read_memory)
1953 (linux_process_target::breakpoint_kind_from_pc)
1954 (linux_get_auxv)
1955 * linux-m32r-low.cc (m32r_breakpoint_at)
1956 * linux-mips-low.cc (mips_breakpoint_at)
1957 * linux-nios2-low.cc (nios2_breakpoint_at)
1958 * linux-ppc-low.cc (ppc_breakpoint_at)
1959 * linux-s390-low.cc (s390_get_hwcap)
1960 * linux-sh-low.cc (sh_breakpoint_at)
1961 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
1962 (sparc_store_gregset_from_stack)
1963 (sparc_breakpoint_at)
1964 * linux-tic6x-low.cc (tic6x_breakpoint_at)
1965 * linux-tile-low.cc (tile_breakpoint_at)
1966 * linux-x86-low.cc (x86_breakpoint_at)
1967 * linux-xtensa-low.cc (xtensa_breakpoint_at)
1968 * mem-break.cc (bp_size)
1969 (bp_opcode)
1970 (insert_memory_breakpoint)
1971 (set_raw_breakpoint_at)
1972 (delete_raw_breakpoint)
1973 (z_type_supported)
1974 (uninsert_raw_breakpoint)
1975 (reinsert_raw_breakpoint)
1976 (validate_inserted_breakpoint)
1977 * regcache.cc (regcache_read_pc)
1978 (regcache_write_pc)
1979 * remote-utils.cc (putpkt_binary_1)
1980 (input_interrupt)
1981 (getpkt)
1982 (prepare_resume_reply)
1983 * server.cc (handle_general_set)
1984 (handle_detach)
1985 (handle_qxfer_auxv)
1986 (handle_qxfer_exec_file)
1987 (handle_qxfer_libraries_svr4)
1988 (handle_qxfer_osdata)
1989 (handle_qxfer_siginfo)
1990 (handle_qxfer_fdpic)
1991 (handle_query)
1992 (resume)
1993 (handle_v_requests)
1994 (queue_stop_reply_callback)
1995 (captured_main)
1996 * target.cc (prepare_to_access_memory)
1997 (done_accessing_memory)
1998 (read_inferior_memory)
1999 (target_write_memory)
2000 (target_stop_and_wait)
2001 (target_wait)
2002 (target_mourn_inferior)
2003 (target_continue_no_signal)
2004 (target_continue)
2005 (target_supports_multi_process)
2006 (kill_inferior)
2007 * target.h
2008 (target_create_inferior)
2009 (target_post_create_inferior)
2010 (myattach)
2011 (target_supports_fork_events)
2012 (target_supports_vfork_events)
2013 (target_supports_exec_events)
2014 (target_handle_new_gdb_connection)
2015 (detach_inferior)
2016 (mythread_alive)
2017 (fetch_inferior_registers)
2018 (store_inferior_registers)
2019 (join_inferior)
2020 (target_supports_non_stop)
2021 (target_async)
2022 (target_process_qsupported)
2023 (target_supports_catch_syscall)
2024 (target_get_ipa_tdesc_idx)
2025 (target_supports_tracepoints)
2026 (target_supports_fast_tracepoints)
2027 (target_get_min_fast_tracepoint_insn_len)
2028 (target_thread_stopped)
2029 (target_pause_all)
2030 (target_unpause_all)
2031 (target_stabilize_threads)
2032 (target_install_fast_tracepoint_jump_pad)
2033 (target_emit_ops)
2034 (target_supports_disable_randomization)
2035 (target_supports_agent)
2036 (target_enable_btrace)
2037 (target_disable_btrace)
2038 (target_read_btrace)
2039 (target_read_btrace_conf)
2040 (target_supports_range_stepping)
2041 (target_supports_stopped_by_sw_breakpoint)
2042 (target_stopped_by_sw_breakpoint)
2043 (target_supports_stopped_by_hw_breakpoint)
2044 (target_supports_hardware_single_step)
2045 (target_stopped_by_hw_breakpoint)
2046 (target_breakpoint_kind_from_pc)
2047 (target_breakpoint_kind_from_current_state)
2048 (target_supports_software_single_step)
2049 (target_core_of_thread)
2050 (target_thread_name)
2051 (target_thread_handle)
2052 * win32-low.cc (do_initial_child_stuff)
2053
2054 Rename target op default definitions listed below.
2055
2056 * target.cc (process_target::post_create_inferior): Rename as ...
2057 (process_stratum_target::post_create_inferior): ... this.
2058 (process_target::prepare_to_access_memory): Rename as ...
2059 (process_stratum_target::prepare_to_access_memory): ... this.
2060 (process_target::done_accessing_memory): Rename as ...
2061 (process_stratum_target::done_accessing_memory): ... this.
2062 (process_target::look_up_symbols): Rename as ...
2063 (process_stratum_target::look_up_symbols): ... this.
2064 (process_target::supports_read_auxv): Rename as ...
2065 (process_stratum_target::supports_read_auxv): ... this.
2066 (process_target::read_auxv): Rename as ...
2067 (process_stratum_target::read_auxv): ... this.
2068 (process_target::supports_z_point_type): Rename as ...
2069 (process_stratum_target::supports_z_point_type): ... this.
2070 (process_target::insert_point): Rename as ...
2071 (process_stratum_target::insert_point): ... this.
2072 (process_target::remove_point): Rename as ...
2073 (process_stratum_target::remove_point): ... this.
2074 (process_target::stopped_by_sw_breakpoint): Rename as ...
2075 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2076 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2077 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2078 (process_target::stopped_by_hw_breakpoint): Rename as ...
2079 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2080 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2081 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2082 (process_target::supports_hardware_single_step): Rename as ...
2083 (process_stratum_target::supports_hardware_single_step): ... this.
2084 (process_target::stopped_by_watchpoint): Rename as ...
2085 (process_stratum_target::stopped_by_watchpoint): ... this.
2086 (process_target::stopped_data_address): Rename as ...
2087 (process_stratum_target::stopped_data_address): ... this.
2088 (process_target::supports_read_offsets): Rename as ...
2089 (process_stratum_target::supports_read_offsets): ... this.
2090 (process_target::read_offsets): Rename as ...
2091 (process_stratum_target::read_offsets): ... this.
2092 (process_target::supports_get_tls_address): Rename as ...
2093 (process_stratum_target::supports_get_tls_address): ... this.
2094 (process_target::get_tls_address): Rename as ...
2095 (process_stratum_target::get_tls_address): ... this.
2096 (process_target::hostio_last_error): Rename as ...
2097 (process_stratum_target::hostio_last_error): ... this.
2098 (process_target::supports_qxfer_osdata): Rename as ...
2099 (process_stratum_target::supports_qxfer_osdata): ... this.
2100 (process_target::qxfer_osdata): Rename as ...
2101 (process_stratum_target::qxfer_osdata): ... this.
2102 (process_target::supports_qxfer_siginfo): Rename as ...
2103 (process_stratum_target::supports_qxfer_siginfo): ... this.
2104 (process_target::qxfer_siginfo): Rename as ...
2105 (process_stratum_target::qxfer_siginfo): ... this.
2106 (process_target::supports_non_stop): Rename as ...
2107 (process_stratum_target::supports_non_stop): ... this.
2108 (process_target::async): Rename as ...
2109 (process_stratum_target::async): ... this.
2110 (process_target::start_non_stop): Rename as ...
2111 (process_stratum_target::start_non_stop): ... this.
2112 (process_target::supports_multi_process): Rename as ...
2113 (process_stratum_target::supports_multi_process): ... this.
2114 (process_target::supports_fork_events): Rename as ...
2115 (process_stratum_target::supports_fork_events): ... this.
2116 (process_target::supports_vfork_events): Rename as ...
2117 (process_stratum_target::supports_vfork_events): ... this.
2118 (process_target::supports_exec_events): Rename as ...
2119 (process_stratum_target::supports_exec_events): ... this.
2120 (process_target::handle_new_gdb_connection): Rename as ...
2121 (process_stratum_target::handle_new_gdb_connection): ... this.
2122 (process_target::handle_monitor_command): Rename as ...
2123 (process_stratum_target::handle_monitor_command): ... this.
2124 (process_target::core_of_thread): Rename as ...
2125 (process_stratum_target::core_of_thread): ... this.
2126 (process_target::supports_read_loadmap): Rename as ...
2127 (process_stratum_target::supports_read_loadmap): ... this.
2128 (process_target::read_loadmap): Rename as ...
2129 (process_stratum_target::read_loadmap): ... this.
2130 (process_target::process_qsupported): Rename as ...
2131 (process_stratum_target::process_qsupported): ... this.
2132 (process_target::supports_tracepoints): Rename as ...
2133 (process_stratum_target::supports_tracepoints): ... this.
2134 (process_target::read_pc): Rename as ...
2135 (process_stratum_target::read_pc): ... this.
2136 (process_target::write_pc): Rename as ...
2137 (process_stratum_target::write_pc): ... this.
2138 (process_target::supports_thread_stopped): Rename as ...
2139 (process_stratum_target::supports_thread_stopped): ... this.
2140 (process_target::thread_stopped): Rename as ...
2141 (process_stratum_target::thread_stopped): ... this.
2142 (process_target::supports_get_tib_address): Rename as ...
2143 (process_stratum_target::supports_get_tib_address): ... this.
2144 (process_target::get_tib_address): Rename as ...
2145 (process_stratum_target::get_tib_address): ... this.
2146 (process_target::pause_all): Rename as ...
2147 (process_stratum_target::pause_all): ... this.
2148 (process_target::unpause_all): Rename as ...
2149 (process_stratum_target::unpause_all): ... this.
2150 (process_target::stabilize_threads): Rename as ...
2151 (process_stratum_target::stabilize_threads): ... this.
2152 (process_target::supports_fast_tracepoints): Rename as ...
2153 (process_stratum_target::supports_fast_tracepoints): ... this.
2154 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2155 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2156 (process_target::emit_ops): Rename as ...
2157 (process_stratum_target::emit_ops): ... this.
2158 (process_target::supports_disable_randomization): Rename as ...
2159 (process_stratum_target::supports_disable_randomization): ... this.
2160 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2161 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2162 (process_target::qxfer_libraries_svr4): Rename as ...
2163 (process_stratum_target::qxfer_libraries_svr4): ... this.
2164 (process_target::supports_agent): Rename as ...
2165 (process_stratum_target::supports_agent): ... this.
2166 (process_target::enable_btrace): Rename as ...
2167 (process_stratum_target::enable_btrace): ... this.
2168 (process_target::disable_btrace): Rename as ...
2169 (process_stratum_target::disable_btrace): ... this.
2170 (process_target::read_btrace): Rename as ...
2171 (process_stratum_target::read_btrace): ... this.
2172 (process_target::read_btrace_conf): Rename as ...
2173 (process_stratum_target::read_btrace_conf): ... this.
2174 (process_target::supports_range_stepping): Rename as ...
2175 (process_stratum_target::supports_range_stepping): ... this.
2176 (process_target::supports_pid_to_exec_file): Rename as ...
2177 (process_stratum_target::supports_pid_to_exec_file): ... this.
2178 (process_target::pid_to_exec_file): Rename as ...
2179 (process_stratum_target::pid_to_exec_file): ... this.
2180 (process_target::supports_multifs): Rename as ...
2181 (process_stratum_target::supports_multifs): ... this.
2182 (process_target::multifs_open): Rename as ...
2183 (process_stratum_target::multifs_open): ... this.
2184 (process_target::multifs_unlink): Rename as ...
2185 (process_stratum_target::multifs_unlink): ... this.
2186 (process_target::multifs_readlink): Rename as ...
2187 (process_stratum_target::multifs_readlink): ... this.
2188 (process_target::breakpoint_kind_from_pc): Rename as ...
2189 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2190 (process_target::breakpoint_kind_from_current_state): Rename as ...
2191 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2192 (process_target::thread_name): Rename as ...
2193 (process_stratum_target::thread_name): ... this.
2194 (process_target::thread_handle): Rename as ...
2195 (process_stratum_target::thread_handle): ... this.
2196 (process_target::supports_software_single_step): Rename as ...
2197 (process_stratum_target::supports_software_single_step): ... this.
2198 (process_target::supports_catch_syscall): Rename as ...
2199 (process_stratum_target::supports_catch_syscall): ... this.
2200 (process_target::get_ipa_tdesc_idx): Rename as ...
2201 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2202
478f9adf
PA
22032020-02-20 Pedro Alves <palves@redhat.com>
2204
2205 * target.cc (set_target_ops): Simply copy the given target pointer
2206 instead of creating a copy of the pointed object.
2207
d633e831
TBA
22082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2209
2210 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2211 of process_target.
2212
2213 * target.h (struct process_stratum_target): Remove the target op.
2214 (class process_target): Add the target op.
2215 (target_get_ipa_tdesc_idx): Update the macro.
2216 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2217
2218 Update the derived classes and callers below.
2219
2220 * linux-low.cc (linux_target_ops): Update.
2221 (linux_get_ipa_tdesc_idx): Turn into ...
2222 (linux_process_target::get_ipa_tdesc_idx): ... this.
2223 * linux-low.h (class linux_process_target): Update.
2224 * lynx-low.cc (lynx_target_ops): Update.
2225 * nto-low.cc (nto_target_ops): Update.
2226 * win32-low.cc (win32_target_ops): Update.
2227
bc8d3ae4
TBA
22282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2229
2230 Turn process_stratum_target's supports_catch_syscall op into a
2231 method of process_target.
2232
2233 * target.h (struct process_stratum_target): Remove the target op.
2234 (class process_target): Add the target op.
2235 (target_supports_catch_syscall): Update the macro.
2236 * target.cc (process_target::supports_catch_syscall): Define.
2237
2238 Update the derived classes and callers below.
2239
2240 * linux-low.cc (linux_target_ops): Update.
2241 (linux_supports_catch_syscall): Turn into ...
2242 (linux_process_target::supports_catch_syscall): ... this.
2243 * linux-low.h (class linux_process_target): Update.
2244 * lynx-low.cc (lynx_target_ops): Update.
2245 * nto-low.cc (nto_target_ops): Update.
2246 * win32-low.cc (win32_target_ops): Update.
2247
5303a34f
TBA
22482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2249
2250 Turn process_stratum_target's supports_software_single_step op
2251 into a method of process_target.
2252
2253 * target.h (struct process_stratum_target): Remove the target op.
2254 (class process_target): Add the target op.
2255 (target_supports_software_single_step): Update the macro.
2256 * target.cc (process_target::supports_software_single_step): Define.
2257
2258 Update the derived classes and callers below.
2259
2260 * linux-low.cc (linux_target_ops): Update.
2261 (linux_supports_software_single_step): Turn into ...
2262 (linux_process_target::supports_software_single_step): ... this.
2263 * linux-low.h (class linux_process_target): Update.
2264 * lynx-low.cc (lynx_target_ops): Update.
2265 * nto-low.cc (nto_target_ops): Update.
2266 * win32-low.cc (win32_target_ops): Update.
2267
7f63b89b
TBA
22682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2269
2270 Turn process_stratum_target's thread_name and thread_handle ops
2271 into methods of process_target.
2272
2273 * target.h (struct process_stratum_target): Remove the target ops.
2274 (class process_target): Add the target ops.
2275 (target_thread_name): Update the macro.
2276 (target_thread_handle): Update the macro.
2277 * target.cc (process_target::thread_name): Define.
2278 (process_target::thread_handle): Define.
2279
2280 Update the derived classes and callers below.
2281
2282 * linux-low.cc (linux_target_ops): Update.
2283 (linux_process_target::thread_name): Define.
2284 (linux_process_target::thread_handle): Define.
2285 * linux-low.h (class linux_process_target): Update.
2286 * lynx-low.cc (lynx_target_ops): Update.
2287 * nto-low.cc (nto_target_ops): Update.
2288 * win32-low.cc (win32_target_ops): Update.
2289
d367006f
TBA
22902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2291
2292 Turn process_stratum_target's breakpoint_kind_from_pc,
2293 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2294 ops into methods of process_target.
2295
2296 * target.h (struct process_stratum_target): Remove the target op.
2297 (class process_target): Add the target op.
2298 (target_breakpoint_kind_from_pc): Update the macro.
2299 (target_breakpoint_kind_from_current_state): Update the macro.
2300 (default_breakpoint_kind_from_pc): Remove declaration.
2301 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2302 (process_target::breakpoint_kind_from_pc): ... this.
2303 (process_target::breakpoint_kind_from_current_state): Define.
2304
2305 Update the derived classes and callers below.
2306
2307 * mem-break.cc (bp_size): Update.
2308 (bp_opcode): Update.
2309 * linux-low.cc (linux_target_ops): Update.
2310 (linux_wait_1): Update.
2311 (linux_breakpoint_kind_from_pc): Turn into ...
2312 (linux_process_target::breakpoint_kind_from_pc): ... this.
2313 (linux_sw_breakpoint_from_kind): Turn into ...
2314 (linux_process_target::sw_breakpoint_from_kind): ... this.
2315 (linux_breakpoint_kind_from_current_state): Turn into ...
2316 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2317 * linux-low.h (class linux_process_target): Update.
2318 * lynx-low.cc (lynx_target_ops): Update.
2319 (lynx_process_target::sw_breakpoint_from_kind): Define.
2320 * lynx-low.h (class lynx_process_target): Update.
2321 * nto-low.cc (nto_target_ops): Update.
2322 (nto_sw_breakpoint_from_kind): Turn into ...
2323 (nto_process_target::sw_breakpoint_from_kind): ... this.
2324 * nto-low.h (class nto_process_target): Update.
2325 * win32-low.cc (win32_target_ops): Update.
2326 (win32_sw_breakpoint_from_kind): Turn into ...
2327 (win32_process_target::sw_breakpoint_from_kind): ... this.
2328 * win32-low.h (class win32_process_target): Update.
2329
c9b7b804
TBA
23302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2331
2332 Turn process_stratum_target's multifs_open, multifs_readlink,
2333 multifs_unlink ops into methods of process_target.
2334
2335 * target.h (struct process_stratum_target): Remove the target ops.
2336 (class process_target): Add the target ops. Also add
2337 'supports_multifs'.
2338 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2339 "sys/stat.h".
2340 (process_target::supports_multifs): Define.
2341 (process_target::multifs_open): Define.
2342 (process_target::multifs_readlink): Define.
2343 (process_target::multifs_unlink): Define.
2344
2345 Update the derived classes and callers below.
2346
2347 * hostio.cc (handle_setfs): Update.
2348 (handle_open): Update.
2349 (handle_unlink): Update.
2350 (handle_readlink): Update.
2351 * linux-low.cc (linux_target_ops): Update.
2352 (linux_process_target::supports_multifs): Define.
2353 (linux_process_target::multifs_open): Define.
2354 (linux_process_target::multifs_readlink): Define.
2355 (linux_process_target::multifs_unlink): Define.
2356 * linux-low.h (class linux_process_target): Update.
2357 * lynx-low.cc (lynx_target_ops): Update.
2358 * nto-low.cc (nto_target_ops): Update.
2359 * win32-low.cc (win32_target_ops): Update.
2360
8247b823
TBA
23612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2362
2363 Turn process_stratum_target's pid_to_exec_file op into a method
2364 of process_target.
2365
2366 * target.h (struct process_stratum_target): Remove the target op.
2367 (class process_target): Add the target op. Also add
2368 'supports_pid_to_exec_file'.
2369 * target.cc (process_target::pid_to_exec_file): Define.
2370 (process_target::supports_pid_to_exec_file): Define.
2371
2372 Update the derived classes and callers below.
2373
2374 * server.cc (handle_qxfer_exec_file): Update.
2375 (handle_query): Update.
2376 * linux-low.cc (linux_target_ops): Update.
2377 (linux_process_target::supports_pid_to_exec_file): Define.
2378 (linux_process_target::pid_to_exec_file): Define.
2379 * linux-low.h (class linux_process_target): Update.
2380 * lynx-low.cc (lynx_target_ops): Update.
2381 * nto-low.cc (nto_target_ops): Update.
2382 * win32-low.cc (win32_target_ops): Update.
2383
2526e0cd
TBA
23842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2385
2386 Turn process_stratum_target's supports_range_stepping op into a
2387 method of process_target.
2388
2389 * target.h (struct process_stratum_target): Remove the target op.
2390 (class process_target): Add the target op.
2391 (target_supports_range_stepping): Update the macro.
2392 * target.cc (process_target::supports_range_stepping): Define.
2393
2394 Update the derived classes and callers below.
2395
2396 * linux-low.cc (linux_target_ops): Update.
2397 (linux_supports_range_stepping): Turn into ...
2398 (linux_process_target::supports_range_stepping): ... this.
2399 * linux-low.h (class linux_process_target): Update.
2400 * lynx-low.cc (lynx_target_ops): Update.
2401 * nto-low.cc (nto_target_ops): Update.
2402 * win32-low.cc (win32_target_ops): Update.
2403
79597bdd
TBA
24042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2405
2406 Turn process_stratum_target's btrace-related ops (enable_btrace,
2407 disable_btrace, read_btrace, read_btrace_conf) into methods of
2408 process_target.
2409
2410 * target.h (struct process_stratum_target): Remove the target ops.
2411 (class process_target): Add the target ops.
2412 (target_enable_btrace): Update.
2413 (target_disable_btrace): Update.
2414 (target_read_btrace): Update.
2415 (target_read_btrace_conf): Update.
2416 * target.cc (process_target::enable_btrace): Define.
2417 (process_target::disable_btrace): Define.
2418 (process_target::read_btrace): Define.
2419 (process_target::read_btrace_conf): Define.
2420
2421 Update the derived classes and callers below.
2422
2423 * linux-low.cc (linux_target_ops): Update.
2424 (linux_process_target:enable_btrace): Define as a wrapper around
2425 linux_enable_btrace.
2426 (linux_low_disable_btrace): Turn into ...
2427 (linux_process_target::disable_btrace): ... this.
2428 (linux_low_read_btrace): Turn into ...
2429 (linux_process_target::read_btrace): ... this.
2430 (linux_low_btrace_conf): Turn into ...
2431 (linux_process_target::read_btrace_conf): ... this.
2432 * linux-low.h (class linux_process_target): Update.
2433 * lynx-low.cc (lynx_target_ops): Update.
2434 * nto-low.cc (nto_target_ops): Update.
2435 * win32-low.cc (win32_target_ops): Update.
2436
c0245cb9
TBA
24372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2438
2439 Turn process_stratum_target's supports_agent op into a method of
2440 process_target.
2441
2442 * target.h (struct process_stratum_target): Remove the target op.
2443 (class process_target): Add the target op.
2444 (target_supports_agent): Update the macro.
2445 * target.cc (process_target::supports_agent): Define.
2446
2447 Update the derived classes and callers below.
2448
2449 * linux-low.cc (linux_target_ops): Update.
2450 (linux_supports_agent): Turn into ...
2451 (linux_process_target::supports_agent): ... this.
2452 * linux-low.h (class linux_process_target): Update.
2453 * lynx-low.cc (lynx_target_ops): Update.
2454 * nto-low.cc (nto_target_ops): Update.
2455 * win32-low.cc (win32_target_ops): Update.
2456
974387bb
TBA
24572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2458
2459 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2460 method of process_target.
2461
2462 * target.h (struct process_stratum_target): Remove the target op.
2463 (class process_target): Add the target op. Also add
2464 'supports_qxfer_libraries_svr4'.
2465 * target.cc (process_target::qxfer_libraries_svr4): Define.
2466 (process_target::supports_qxfer_libraries_svr4): Define.
2467
2468 Update the derived classes and callers below.
2469
2470 * server.cc (handle_qxfer_libraries_svr4): Update.
2471 (handle_query): Update.
2472 * linux-low.cc (linux_target_ops): Update.
2473 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2474 (linux_qxfer_libraries_svr4): Turn into ...
2475 (linux_process_target::qxfer_libraries_svr4): ... this.
2476 * linux-low.h (class linux_process_target): Update.
2477 * lynx-low.cc (lynx_target_ops): Update.
2478 * nto-low.cc (nto_target_ops): Update.
2479 * win32-low.cc (win32_target_ops): Update.
2480
c756403b
TBA
24812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2482
2483 Turn process_stratum_target's supports_disable_randomization op
2484 into a method of process_target.
2485
2486 * target.h (struct process_stratum_target): Remove the target op.
2487 (class process_target): Add the target op.
2488 (target_supports_disable_randomization): Update the macro.
2489 * target.cc (process_target::supports_disable_randomization): Define.
2490
2491 Update the derived classes and callers below.
2492
2493 * linux-low.cc (linux_target_ops): Update.
2494 (linux_supports_disable_randomization): Turn into ...
2495 (linux_process_target::supports_disable_randomization): ... this.
2496 * linux-low.h (class linux_process_target): Update.
2497 * lynx-low.cc (lynx_target_ops): Update.
2498 * nto-low.cc (nto_target_ops): Update.
2499 * win32-low.cc (win32_target_ops): Update.
2500
345dafad
TBA
25012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2502
2503 Turn process_stratum_target's emit_ops op into a method of
2504 process_target.
2505
2506 * target.h (struct process_stratum_target): Remove the target op.
2507 (class process_target): Add the target op.
2508 (target_emit_ops): Update the macro.
2509 * target.cc (process_target::emit_ops): Define.
2510
2511 Update the derived classes and callers below.
2512
2513 * linux-low.cc (linux_target_ops): Update.
2514 (linux_emit_ops): Turn into ...
2515 (linux_process_target::emit_ops): ... this.
2516 * linux-low.h (class linux_process_target): Update.
2517 * lynx-low.cc (lynx_target_ops): Update.
2518 * nto-low.cc (nto_target_ops): Update.
2519 * win32-low.cc (win32_target_ops): Update.
2520
c23c9391
TBA
25212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2522
2523 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2524 and get_min_fast_tracepoint_insn_len ops into methods of
2525 process_target.
2526
2527 * target.h (struct process_stratum_target): Remove the target ops.
2528 (class process_target): Add the target ops. Also add
2529 'supports_fast_tracepoints'.
2530 (target_supports_fast_tracepoints): Update the macro.
2531 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2532 (install_fast_tracepoint_jump_pad): Update and rename the macro
2533 to ...
2534 (target_install_fast_tracepoint_jump_pad): ... this.
2535 * target.cc (process_target::supports_fast_tracepoints): Define.
2536 (process_target::install_fast_tracepoint_jump_pad): Define.
2537 (process_target::get_min_fast_tracepoint_insn_len): Define.
2538
2539 Update the derived classes and callers below.
2540
2541 * tracepoint.cc (install_fast_tracepoint): Update.
2542 * linux-low.cc (linux_target_ops): Update.
2543 (linux_process_target::supports_fast_tracepoints): Define.
2544 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2545 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2546 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2547 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2548 * linux-low.h (class linux_process_target): Update.
2549 * lynx-low.cc (lynx_target_ops): Update.
2550 * nto-low.cc (nto_target_ops): Update.
2551 * win32-low.cc (win32_target_ops): Update.
2552
5c9eb2f2
TBA
25532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2554
2555 Turn process_stratum_target's stabilize_threads op into a
2556 method of process_target.
2557
2558 * target.h (struct process_stratum_target): Remove the target op.
2559 (class process_target): Add the target op.
2560 (target_stabilize_threads): Update the macro.
2561 * target.cc (process_target::stabilize_threads): Define.
2562
2563 Update the derived classes and callers below.
2564
2565 * server.cc (handle_status): Update.
2566 * tracepoint.cc (cmd_qtdp): Update.
2567 (cmd_qtstart): Update.
2568 * linux-low.cc (linux_target_ops): Update.
2569 (linux_stabilize_threads): Turn into ...
2570 (linux_process_target::stabilize_threads): ... this.
2571 (linux_wait_1): Update.
2572 * linux-low.h (class linux_process_target): Update.
2573 * lynx-low.cc (lynx_target_ops): Update.
2574 * nto-low.cc (nto_target_ops): Update.
2575 * win32-low.cc (win32_target_ops): Update.
2576
29e8dc09
TBA
25772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2578
2579 Turn process_stratum_target's pause_all and unpause_all ops
2580 into methods of process_target.
2581
2582 * target.h (struct process_stratum_target): Remove the target ops.
2583 (class process_target): Add the target ops.
2584 (pause_all): Update the macro and rename to...
2585 (target_pause_all): ... this.
2586 (unpause_all): Update the macro and rename to...
2587 (target_unpause_all): ... this.
2588 * target.cc (process_target::pause_all): Define.
2589 (process_target::unpause_all): Define.
2590
2591 Update the derived classes and callers below.
2592
2593 * server.cc (handle_status): Update.
2594 * tracepoint.cc (clear_installed_tracepoints): Update.
2595 (cmd_qtdp): Update.
2596 (cmd_qtstart): Update.
2597 (stop_tracing): Update.
2598 (cmd_qtstatus): Update.
2599 (upload_fast_traceframes): Update.
2600 (run_inferior_command): Update.
2601 * linux-low.cc (linux_target_ops): Update.
2602 (linux_pause_all): Turn into ...
2603 (linux_process_target::pause_all): ... this.
2604 (linux_unpause_all): Turn into ...
2605 (linux_process_target::unpause_all): ... this.
2606 (linux_process_target::prepare_to_access_memory): Update.
2607 (linux_process_target::done_accessing_memory): Update.
2608 * linux-low.h (class linux_process_target): Update.
2609 * lynx-low.cc (lynx_target_ops): Update.
2610 * nto-low.cc (nto_target_ops): Update.
2611 * win32-low.cc (win32_target_ops): Update.
2612
4e2e869c
TBA
26132020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2614
2615 Turn process_stratum_target's get_tib_address op into a method of
2616 process_target.
2617
2618 * target.h (struct process_stratum_target): Remove the target op.
2619 (class process_target): Add the target op. Also add
2620 'supports_get_tib_address'.
2621 * target.cc (process_target::get_tib_address): Define.
2622 (process_target::supports_get_tib_address): Define.
2623
2624 Update the derived classes and callers below.
2625
2626 * server.cc (handle_query): Update.
2627 * linux-low.cc (win32_target_ops): Update.
2628 * lynx-low.cc (lynx_target_ops): Update.
2629 * nto-low.cc (nto_target_ops): Update.
2630 * win32-low.cc (win32_target_ops): Update.
2631 (win32_process_target::supports_get_tib_address): Define.
2632 (win32_get_tib_address): Turn into ...
2633 (win32_process_target::get_tib_address): ... this.
2634 * win32-low.h (class win32_process_target): Update.
2635
68119632
TBA
26362020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2637
2638 Turn process_stratum_target's thread_stopped op into a method of
2639 process_target.
2640
2641 * target.h (struct process_stratum_target): Remove the target op.
2642 (class process_target): Add the target op. Also add
2643 'supports_thread_stopped'.
2644 (target_thread_stopped): Update the macro.
2645 * target.cc (process_target::thread_stopped): Define.
2646 (process_target::supports_thread_stopped): Define.
2647 (prepare_to_access_memory): Update.
2648
2649 Update the derived classes and callers below.
2650
2651 * server.cc (queue_stop_reply_callback): Update.
2652 * linux-low.cc (linux_target_ops): Update.
2653 (linux_process_target::supports_thread_stopped): Define.
2654 (linux_thread_stopped): Turn into ...
2655 (linux_process_target::thread_stopped): ... this.
2656 * linux-low.h (class linux_process_target): Update.
2657 * lynx-low.cc (lynx_target_ops): Update.
2658 * nto-low.cc (nto_target_ops): Update.
2659 * win32-low.cc (win32_target_ops): Update.
2660
770d8f6a
TBA
26612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2662
2663 Turn process_stratum_target's read_pc and write_pc ops into
2664 methods of process_target.
2665
2666 * target.h (struct process_stratum_target): Remove the target ops.
2667 (class process_target): Add the target ops.
2668 * target.cc (process_target::read_pc): Define.
2669 (process_target::write_pc): Define.
2670
2671 Update the derived classes and callers below.
2672
2673 * regcache.cc (regcache_read_pc): Update.
2674 (regcache_write_pc): Update.
2675 * linux-low.cc (linux_target_ops): Update.
2676 (linux_read_pc): Turn into ...
2677 (linux_process_target::read_pc): ... this.
2678 (linux_write_pc): Turn into ...
2679 (linux_process_target::write_pc): ... this.
2680 * linux-low.h (class linux_process_target): Update.
2681 * lynx-low.cc (lynx_target_ops): Update.
2682 * nto-low.cc (nto_target_ops): Update.
2683 * win32-low.cc (win32_target_ops): Update.
2684
290732bf
TBA
26852020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2686
2687 Turn process_stratum_target's supports_tracepoints op into a
2688 method of process_target.
2689
2690 * target.h (struct process_stratum_target): Remove the target op.
2691 (class process_target): Add the target op.
2692 (target_supports_tracepoints): Update the macro.
2693 * target.cc (process_target::supports_tracepoints): Define.
2694
2695 Update the derived classes and callers below.
2696
2697 * linux-low.cc (linux_target_ops): Update.
2698 (linux_supports_tracepoints): Turn into ...
2699 (linux_process_target::supports_tracepoints): ... this.
2700 * linux-low.h (class linux_process_target): Update.
2701 * lynx-low.cc (lynx_target_ops): Update.
2702 * nto-low.cc (nto_target_ops): Update.
2703 * win32-low.cc (win32_target_ops): Update.
2704
0df28b1b
TBA
27052020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2706
2707 Turn process_stratum_target's process_qsupported op into a method
2708 of process_target.
2709
2710 * target.h (struct process_stratum_target): Remove the target op.
2711 (class process_target): Add the target op.
2712 (target_process_qsupported): Update the macro.
2713 * target.cc (process_target::process_qsupported): Define.
2714
2715 Update the derived classes and callers below.
2716
2717 * linux-low.cc (linux_target_ops): Update.
2718 (linux_process_qsupported): Turn into ...
2719 (linux_process_target::process_qsupported): ... this.
2720 * linux-low.h (class linux_process_target): Update.
2721 * lynx-low.cc (lynx_target_ops): Update.
2722 * nto-low.cc (nto_target_ops): Update.
2723 * win32-low.cc (win32_target_ops): Update.
2724
9da41fda
TBA
27252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2726
2727 Turn process_stratum_target's read_loadmap op into a method of
2728 process_target.
2729
2730 * target.h (struct process_stratum_target): Remove the target op.
2731 (class process_target): Add the target op. Also add
2732 'supports_read_loadmap'.
2733 * target.cc (process_target::read_loadmap): Define.
2734 (process_target::supports_read_loadmap): Define.
2735
2736 Update the derived classes and callers below.
2737
2738 * server.cc (handle_qxfer_fdpic): Update.
2739 (handle_query): Update.
2740 * linux-low.cc (linux_target_ops): Update.
2741 (linux_process_target::supports_read_loadmap): Define.
2742 (linux_read_loadmap): Turn into ...
2743 (linux_process_target::read_loadmap): ... this.
2744 * linux-low.h (class linux_process_target): Update.
2745 * lynx-low.cc (lynx_target_ops): Update.
2746 * nto-low.cc (nto_target_ops): Update.
2747 * win32-low.cc (win32_target_ops): Update.
2748
95a45fc1
TBA
27492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2750
2751 Turn process_stratum_target's core_of_thread op into a method of
2752 process_target.
2753
2754 * target.h (struct process_stratum_target): Remove the target op.
2755 (class process_target): Add the target op.
2756 (target_core_of_thread): Update the macro.
2757 * target.cc (process_target::core_of_thread): Define.
2758
2759 Update the derived classes and callers below.
2760
2761 * linux-low.cc (linux_target_ops): Update.
2762 (linux_process_target::core_of_thread): Define.
2763 * linux-low.h (class linux_process_target): Update.
2764 * lynx-low.cc (lynx_target_ops): Update.
2765 * nto-low.cc (nto_target_ops): Update.
2766 * win32-low.cc (win32_target_ops): Update.
2767
55cf3021
TBA
27682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2769
2770 Turn process_stratum_target's handle_monitor_command op into a
2771 method of process_target.
2772
2773 * target.h (struct process_stratum_target): Remove the target op.
2774 (class process_target): Add the target op.
2775 (target_handle_monitor_command): Update the macro.
2776 * target.cc (process_target::handle_monitor_command): Define.
2777
2778 Update the derived classes and callers below.
2779
2780 * server.cc (handle_query): Update.
2781 * linux-low.cc (linux_target_ops): Update.
2782 (linux_process_target::handle_monitor_command): Define.
2783 * linux-low.h (class linux_process_target): Update.
2784 * lynx-low.cc (lynx_target_ops): Update.
2785 * nto-low.cc (nto_target_ops): Update.
2786 * win32-low.cc (win32_target_ops): Update.
2787
fb00dfce
TBA
27882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2789
2790 Turn process_stratum_target's handle_new_gdb_connection op into a
2791 method of process_target.
2792
2793 * target.h (struct process_stratum_target): Remove the target op.
2794 (class process_target): Add the target op.
2795 (target_handle_new_gdb_connection): Update the macro.
2796 * target.cc (process_target::handle_new_gdb_connection): Define.
2797
2798 Update the derived classes and callers below.
2799
2800 * linux-low.cc (linux_target_ops): Update.
2801 (linux_handle_new_gdb_connection): Turn into ...
2802 (linux_process_target::handle_new_gdb_connection): ... this.
2803 * linux-low.h (class linux_process_target): Update.
2804 * lynx-low.cc (lynx_target_ops): Update.
2805 * nto-low.cc (nto_target_ops): Update.
2806 * win32-low.cc (win32_target_ops): Update.
2807
9690a72a
TBA
28082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2809
2810 Turn process_stratum_target's supports_fork_events,
2811 supports_vfork_events, and supports_exec_events ops into methods
2812 of process_target.
2813
2814 * target.h (struct process_stratum_target): Remove the target ops.
2815 (class process_target): Add the target ops.
2816 (target_supports_fork_events): Update the macro.
2817 (target_supports_vfork_events): Update the macro.
2818 (target_supports_exec_events): Update the macro.
2819 * target.cc (process_target::supports_fork_events): Define.
2820 (process_target::supports_vfork_events): Define.
2821 (process_target::supports_exec_events): Define.
2822
2823 Update the derived classes and callers below.
2824
2825 * linux-low.cc (linux_target_ops): Update.
2826 (linux_supports_fork_events): Turn into ...
2827 (linux_process_target::supports_fork_events): ... this.
2828 (linux_supports_vfork_events): Turn into ...
2829 (linux_process_target::supports_vfork_events): ... this.
2830 (linux_supports_exec_events): Turn into ...
2831 (linux_process_target::supports_exec_events): ... this.
2832 * linux-low.h (class linux_process_target): Update.
2833 * lynx-low.cc (lynx_target_ops): Update.
2834 * nto-low.cc (nto_target_ops): Update.
2835 * win32-low.cc (win32_target_ops): Update.
2836
652aef77
TBA
28372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2838
2839 Turn process_stratum_target's supports_multi_process op into a
2840 method of process_target.
2841
2842 * target.h (struct process_stratum_target): Remove the target op.
2843 (class process_target): Add the target op.
2844 * target.cc (process_target::supports_multi_process): Define.
2845 (target_supports_multi_process): Update.
2846
2847 Update the derived classes and callers below.
2848
2849 * linux-low.cc (linux_target_ops): Update.
2850 (linux_supports_multi_process): Turn into ...
2851 (linux_process_target::supports_multi_process): ... this.
2852 * linux-low.h (class linux_process_target): Update.
2853 * lynx-low.cc (lynx_target_ops): Update.
2854 * nto-low.cc (nto_target_ops): Update.
2855 * win32-low.cc (win32_target_ops): Update.
2856
0dc587d4
TBA
28572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2858
2859 Turn process_stratum_target's supports_non_stop, async, and
2860 start_non_stop ops into methods of process_target.
2861
2862 * target.h (struct process_stratum_target): Remove the target ops.
2863 (class process_target): Add the target ops.
2864 (target_supports_non_stop): Update the macro.
2865 (target_async): Update the macro.
2866 (start_non_stop): Remove declaration.
2867 * target.cc (process_target::supports_non_stop): Define.
2868 (process_target::async): Define.
2869 (process_target::start_non_stop): Define.
2870 (start_non_stop): Remove.
2871
2872 Update the derived classes and callers below.
2873
2874 * server.cc (handle_qxfer_siginfo): Update.
2875 (handle_query): Update.
2876 * linux-low.cc (linux_target_ops): Update.
2877 (linux_supports_non_stop): Turn into ...
2878 (linux_process_target::supports_non_stop): ... this.
2879 (linux_async): Turn into ...
2880 (linux_process_target::async): ... this.
2881 (linux_start_non_stop): Turn into ...
2882 (linux_process_target::start_non_stop): ... this.
2883 * linux-low.h (class linux_process_target): Update.
2884 * lynx-low.cc (lynx_target_ops): Update.
2885 * nto-low.cc (nto_target_ops): Update.
2886 (nto_supports_non_stop): Remove; rely on the default behavior
2887 instead.
2888 * win32-low.cc (win32_target_ops): Update.
2889
d7abedf7
TBA
28902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2891
2892 Turn process_stratum_target's qxfer_siginfo op into a method of
2893 process_target.
2894
2895 * target.h (struct process_stratum_target): Remove the target op.
2896 (class process_target): Add the target op. Also add
2897 'supports_qxfer_siginfo'.
2898 * target.cc (process_target::qxfer_siginfo): Define.
2899 (process_target::supports_qxfer_siginfo): Define.
2900
2901 Update the derived classes and callers below.
2902
2903 * server.cc (handle_qxfer_siginfo): Update.
2904 (handle_query): Update.
2905 * linux-low.cc (linux_target_ops): Update.
2906 (linux_process_target::supports_qxfer_siginfo): Define.
2907 (linux_xfer_siginfo): Turn into ...
2908 (linux_process_target::qxfer_siginfo): ... this.
2909 * linux-low.h (class linux_process_target): Update.
2910 * lynx-low.cc (lynx_target_ops): Update.
2911 * nto-low.cc (nto_target_ops): Update.
2912 * win32-low.cc (win32_target_ops): Update.
2913
2d0795ee
TBA
29142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2915
2916 Turn process_stratum_target's qxfer_osdata op into a method of
2917 process_target.
2918
2919 * target.h (struct process_stratum_target): Remove the target op.
2920 (class process_target): Add the target op. Also add
2921 'supports_qxfer_osdata'.
2922 * target.cc (process_target::qxfer_osdata): Define.
2923 (process_target::supports_qxfer_osdata): Define.
2924
2925 Update the derived classes and callers below.
2926
2927 * server.cc (handle_qxfer_osdata): Update.
2928 (handle_query): Update.
2929 * linux-low.cc (linux_target_ops): Update.
2930 (linux_process_target::supports_qxfer_osdata): Define.
2931 (linux_qxfer_osdata): Turn into ...
2932 (linux_process_target::qxfer_osdata): ... this.
2933 * linux-low.h (class linux_process_target): Update.
2934 * lynx-low.cc (lynx_target_ops): Update.
2935 * nto-low.cc (nto_target_ops): Update.
2936 * win32-low.cc (win32_target_ops): Update.
2937
ea06bbaa
TBA
29382020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2939
2940 Turn process_stratum_target's hostio_last_error op into a
2941 method of process_target.
2942
2943 * target.h (struct process_stratum_target): Remove the target op.
2944 (class process_target): Add the target op.
2945 * target.cc: Add "hostio.h" to includes.
2946 (process_target::hostio_last_error): Define.
2947
2948 Update the derived classes and callers below.
2949
2950 * hostio.cc (hostio_error): Update.
2951 * linux-low.cc: Remove "hostio.h" from includes.
2952 (linux_target_ops): Update.
2953 * lynx-low.cc (lynx_target_ops): Update.
2954 * nto-low.cc (nto_target_ops): Update.
2955 * win32-low.h (class win32_process_target): Update.
2956 * win32-low.cc (win32_target_ops): Update.
2957 (wince_hostio_last_error): Turn into ...
2958 (win32_process_target::hostio_last_error): ... this.
2959
6e3fd7e9
TBA
29602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2961
2962 Turn process_stratum_target's get_tls_address op into a method of
2963 process_target.
2964
2965 * target.h (struct process_stratum_target): Remove the target op.
2966 (class process_target): Add the target op. Also add
2967 'supports_get_tls_address'.
2968 * target.cc (process_target::get_tls_address): Define.
2969 (process_target::supports_get_tls_address): Define.
2970
2971 Update the derived classes and callers below.
2972
2973 * server.cc (handle_query): Update.
2974 * linux-low.cc (linux_target_ops): Update.
2975 (linux_process_target::supports_get_tls_address): Define.
2976 (linux_process_target::get_tls_address): Define.
2977 * linux-low.h (class linux_process_target): Update.
2978 * lynx-low.cc (lynx_target_ops): Update.
2979 * nto-low.cc (nto_target_ops): Update.
2980 * win32-low.cc (win32_target_ops): Update.
2981
5203ae1e
TBA
29822020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2983
2984 Turn process_stratum_target's read_offsets op into a method of
2985 process_target.
2986
2987 * target.h (struct process_stratum_target): Remove the target op.
2988 (class process_target): Add the target op. Also add
2989 'supports_read_offsets'.
2990 * target.cc (process_target::read_offsets): Define.
2991 (process_target::supports_read_offsets): Define.
2992
2993 Update the derived classes and callers below.
2994
2995 * server.cc (handle_query): Update.
2996 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
2997 (linux_target_ops): Update.
2998 (linux_process_target::supports_read_offsets): Define.
2999 (linux_read_offsets): Turn into ...
3000 (linux_process_target::read_offsets): ... this.
3001 * linux-low.h (class linux_process_target): Update.
3002 * lynx-low.cc (lynx_target_ops): Update.
3003 * nto-low.cc (nto_target_ops): Update.
3004 * win32-low.cc (win32_target_ops): Update.
3005
6eeb5c55
TBA
30062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3007
3008 Turn process_stratum_target's stopped_by_watchpoint and
3009 stopped_data_address ops into methods of process_target.
3010
3011 * target.h (struct process_stratum_target): Remove the target ops.
3012 (class process_target): Add the target ops.
3013 * target.cc (process_target::stopped_by_watchpoint): Define.
3014 (process_target::stopped_data_address): Define.
3015
3016 Update the derived classes and callers below.
3017
3018 * remote-utils.cc (prepare_resume_reply): Update.
3019 * linux-low.cc (linux_target_ops): Update.
3020 (linux_stopped_by_watchpoint): Turn into ...
3021 (linux_process_target::stopped_by_watchpoint): ... this.
3022 (linux_stopped_data_address): Turn into ...
3023 (linux_process_target::stopped_data_address): ... this.
3024 * linux-low.h (class linux_process_target): Update.
3025 * lynx-low.cc (lynx_target_ops): Update.
3026 * nto-low.cc (nto_target_ops): Update.
3027 (nto_stopped_by_watchpoint): Turn into ...
3028 (nto_process_target::stopped_by_watchpoint): ... this.
3029 (nto_stopped_data_address): Turn into ...
3030 (nto_process_target::stopped_data_address): ... this.
3031 * nto-low.h (class nto_process_target): Update.
3032 * win32-low.cc (win32_target_ops): Update.
3033 (win32_stopped_by_watchpoint): Turn into ...
3034 (win32_process_target::stopped_by_watchpoint): ... this.
3035 (win32_stopped_data_address): Turn into ...
3036 (win32_process_target::stopped_data_address): ... this.
3037 * win32-low.h (class win32_process_target): Update.
3038
22aa6223
TBA
30392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3040
3041 Turn process_stratum_target's supports_hardware_single_step op into
3042 a method of process_target.
3043
3044 * target.h (struct process_stratum_target): Remove the target op.
3045 (class process_target): Add the target op.
3046 (target_supports_hardware_single_step): Update the macro.
3047 (target_can_do_hardware_single_step): Remove declaration.
3048 * target.cc (process_target::supports_hardware_single_step): Define.
3049 (target_can_do_hardware_single_step): Remove.
3050
3051 Update the derived classes and callers below.
3052
3053 * linux-low.h (class linux_process_target): Update.
3054 * linux-low.cc (linux_target_ops): Update.
3055 (linux_supports_hardware_single_step): Turn into ...
3056 (linux_process_target::supports_hardware_single_step): ... this.
3057 * lynx-low.h (class lynx_process_target): Update.
3058 * lynx-low.cc (lynx_target_ops): Update.
3059 (lynx_process_target::supports_hardware_single_step): Define.
3060 * nto-low.h (class nto_process_target): Update.
3061 * nto-low.cc (nto_target_ops): Update.
3062 (nto_process_target::supports_hardware_single_step): Define.
3063 * win32-low.h (class win32_process_target): Update.
3064 * win32-low.cc (win32_target_ops): Update.
3065 (win32_process_target::supports_hardware_single_step): Define.
3066
93fe88b2
TBA
30672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3068
3069 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3070 ops into methods of process_target.
3071
3072 * target.h (struct process_stratum_target): Remove the target ops.
3073 (class process_target): Add the target ops.
3074 (target_stopped_by_hw_breakpoint): Update the macro.
3075 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3076 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3077 (process_target::supports_stopped_by_hw_breakpoint): Define.
3078
3079 Update the derived classes and callers below.
3080
3081 * linux-low.cc (linux_target_ops): Update.
3082 (linux_stopped_by_hw_breakpoint): Turn into ...
3083 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3084 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3085 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3086 * linux-low.h (class linux_process_target): Update.
3087 * lynx-low.cc (lynx_target_ops): Update.
3088 * nto-low.cc (nto_target_ops): Update.
3089 * win32-low.cc (win32_target_ops): Update.
3090
84320c4e
TBA
30912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3092
3093 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3094 ops into methods of process_target.
3095
3096 * target.h (struct process_stratum_target): Remove the target ops.
3097 (class process_target): Add the target ops.
3098 (target_stopped_by_sw_breakpoint): Update the macro.
3099 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3100 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3101 (process_target::supports_stopped_by_sw_breakpoint): Define.
3102
3103 Update the derived classes and callers below.
3104
3105 * linux-low.cc (linux_target_ops): Update.
3106 (linux_stopped_by_sw_breakpoint): Turn into ...
3107 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3108 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3109 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3110 * linux-low.h (class linux_process_target): Update.
3111 * lynx-low.cc (lynx_target_ops): Update.
3112 * nto-low.cc (nto_target_ops): Update.
3113 * win32-low.cc (win32_target_ops): Update.
3114
7e0bde70
TBA
31152020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3116
3117 Turn process_stratum_target's insert_point and remove_point ops
3118 into methods of process_target.
3119
3120 * target.h (struct process_stratum_target): Remove the target ops.
3121 (class process_target): Add the target ops.
3122 * target.cc (process_target::insert_point): Define.
3123 (process_target::remove_point): Define.
3124
3125 Update the derived classes and callers below.
3126
3127 * mem-break.cc (set_raw_breakpoint_at): Update.
3128 (delete_raw_breakpoint): Update.
3129 (uninsert_raw_breakpoint): Update.
3130 (reinsert_raw_breakpoint): Update.
3131 * linux-low.cc (linux_target_ops): Update.
3132 (linux_insert_point): Turn into ...
3133 (linux_process_target::insert_point): ... this.
3134 (linux_remove_point): Turn into ...
3135 (linux_process_target::remove_point): ... this.
3136 * linux-low.h (class linux_process_target): Update.
3137 * lynx-low.cc (lynx_target_ops): Update.
3138 * nto-low.cc (nto_target_ops): Update.
3139 (nto_insert_point): Turn into ...
3140 (nto_process_target::insert_point): ... this.
3141 (nto_remove_point): Turn into ...
3142 (nto_process_target::remove_point): ... this.
3143 * nto-low.h (class nto_process_target): Update.
3144 * win32-low.cc (win32_target_ops): Update.
3145 (win32_insert_point): Turn into ...
3146 (win32_process_target::insert_point): ... this.
3147 (win32_remove_point): Turn into ...
3148 (win32_process_target::remove_point): ... this.
3149 * win32-low.h (class win32_process_target): Update.
3150
a2b2297a
TBA
31512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3152
3153 Turn process_stratum_target's supports_z_point_type op into a
3154 method of process_target.
3155
3156 * target.h (struct process_stratum_target): Remove the target op.
3157 (class process_target): Add the target op.
3158 * target.cc (process_target::supports_z_point_type): Define.
3159
3160 Update the derived classes and callers below.
3161
3162 * mem-break.cc (z_type_supported): Update.
3163 * linux-low.cc (linux_target_ops): Update.
3164 (linux_supports_z_point_type): Turn into ...
3165 (linux_process_target::supports_z_point_type): ... this.
3166 * linux-low.h (class linux_process_target): Update.
3167 * lynx-low.cc (lynx_target_ops): Update.
3168 * nto-low.cc (nto_target_ops): Update.
3169 (nto_supports_z_point_type): Turn into ...
3170 (nto_process_target::supports_z_point_type): ... this.
3171 * nto-low.h (class nto_process_target): Update.
3172 * win32-low.cc (win32_target_ops): Update.
3173 (win32_supports_z_point_type): Turn into ...
3174 (win32_process_target::supports_z_point_type): ... this.
3175 * win32-low.h (class win32_process_target): Update.
3176
eac215cc
TBA
31772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3178
3179 Turn process_stratum_target's read_auxv op into a method of
3180 process_target.
3181
3182 * target.h (class process_stratum_target): Remove the target op.
3183 (struct process_target): Add the target op. Also add
3184 'supports_read_auxv'.
3185 * target.cc (process_target::read_auxv): Define.
3186 (process_target::supports_read_auxv): Define.
3187
3188 Update the derived classes and callers below.
3189
3190 * server.cc (handle_qxfer_auxv): Update.
3191 (handle_query): Update.
3192 * linux-low.cc (linux_target_ops): Update.
3193 (linux_process_target::supports_read_auxv): Define.
3194 (linux_read_auxv): Turn into ...
3195 (linux_process_target::read_auxv): ... this.
3196 * linux-low.h (class linux_process_target): Update.
3197 * lynx-low.cc (lynx_target_ops): Update.
3198 * nto-low.cc (nto_target_ops): Update.
3199 (nto_process_target::supports_read_auxv): Define.
3200 (nto_read_auxv): Turn into ...
3201 (nto_process_target::read_auxv): ... this.
3202 * nto-low.h (class nto_process_target): Update.
3203 * win32-low.cc (win32_target_ops): Update.
3204
eb497a2a
TBA
32052020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3206
3207 Turn process_stratum_target's request_interrupt op into a method of
3208 process_target.
3209
3210 * target.h (struct process_stratum_target): Remove the target op.
3211 (class process_target): Add the target op.
3212
3213 Update the derived classes and callers below.
3214
3215 * remote-utils.cc (putpkt_binary_1): Update.
3216 (input_interrupt): Update.
3217 (getpkt): Update.
3218 * server.cc (handle_v_requests): Update.
3219 * linux-low.cc (linux_target_ops): Update.
3220 (linux_request_interrupt): Turn into ...
3221 (linux_process_target::request_interrupt): ... this.
3222 * linux-low.h (class linux_process_target): Update.
3223 * lynx-low.cc (lynx_target_ops): Update.
3224 (lynx_request_interrupt): Turn into ...
3225 (lynx_process_target::request_interrupt): ... this.
3226 * lynx-low.h (class lynx_process_target): Update.
3227 * nto-low.cc (nto_target_ops): Update.
3228 (nto_request_interrupt): Turn into ...
3229 (nto_process_target::request_interrupt): ... this.
3230 * nto-low.h (class nto_process_target): Update.
3231 * win32-low.cc (win32_target_ops): Update.
3232 (win32_request_interrupt): Turn into ...
3233 (win32_process_target::request_interrupt): ... this.
3234 * win32-low.h (class win32_process_target): Update.
3235
2a31c7aa
TBA
32362020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3237
3238 Turn process_stratum_target's look_up_symbols op into a method of
3239 process_target.
3240
3241 * target.h (struct process_stratum_target): Remove the target op.
3242 (class process_target): Add the target op.
3243 * target.cc (process_target::look_up_symbols): Define.
3244
3245 Update the derived classes and callers below.
3246
3247 * server.cc (handle_query): Update.
3248 * linux-low.cc (linux_target_ops): Update.
3249 (linux_look_up_symbols): Turn into ...
3250 (linux_process_target::look_up_symbols): ... this.
3251 * linux-low.h (class linux_process_target): Update.
3252 * lynx-low.cc (lynx_target_ops): Update.
3253 * nto-low.cc (nto_target_ops): Update.
3254 * win32-low.cc (win32_target_ops): Update.
3255
e2558df3
TBA
32562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3257
3258 Turn process_stratum_target's read_memory and write_memory
3259 ops into methods of process_target.
3260
3261 * target.h (struct process_stratum_target): Remove the target ops.
3262 (class process_target): Add the target ops.
3263
3264 Update the derived classes and callers below.
3265
3266 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3267 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3268 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3269 (arm_get_syscall_trapinfo): Update.
3270 * linux-cris-low.cc (cris_breakpoint_at): Update.
3271 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3272 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3273 * linux-mips-low.cc (mips_breakpoint_at): Update.
3274 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3275 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3276 * linux-sh-low.cc (sh_breakpoint_at): Update.
3277 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3278 (sparc_store_gregset_from_stack): Update.
3279 (sparc_breakpoint_at): Update.
3280 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3281 * linux-tile-low.cc (tile_breakpoint_at): Update.
3282 * linux-x86-low.cc (x86_breakpoint_at): Update.
3283 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3284 * mem-brea.cc (insert_memory_breakpoint): Update.
3285 (validate_inserted_breakpoint): Update.
3286 * target.cc (read_inferior_memory): Update.
3287 (target_write_memory): Update.
3288 * linux-low.cc (linux_target_ops): Update.
3289 (linux_read_memory): Make a wrapper around the read_memory target
3290 op call.
3291 (linux_process_target::read_memory): Rename from linux_read_memory.
3292 (linux_write_memory): Turn into ...
3293 (linux_process_target::write_memory): ... this.
3294 * linux-low.h (class linux_process_target): Update.
3295 * lynx-low.cc (lynx_target_ops): Update.
3296 (lynx_read_memory): Turn into ...
3297 (lynx_process_target::read_memory): ... this.
3298 (lynx_write_memory): Turn into ...
3299 (lynx_process_target::write_memory): ... this.
3300 * lynx-low.h (class lynx_process_target): Update.
3301 * nto-low.cc (nto_target_ops): Update.
3302 (nto_read_memory): Turn into ...
3303 (nto_process_target::read_memory): ... this.
3304 (nto_write_memory): Turn into ...
3305 (nto_process_target::write_memory): ... this.
3306 * nto-low.h (class nto_process_target): Update.
3307 * win32-low.cc (win32_target_ops): Update.
3308 (win32_read_inferior_memory): Turn into ...
3309 (win32_process_target::read_memory): ... this.
3310 (win32_write_inferior_memory): Turn into ...
3311 (win32_process_target::write_memory): ... this.
3312 * win32-low.h (class win32_process_target): Update.
3313
79b44087
TBA
33142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3315
3316 Turn process_stratum_target's prepare_to_access_memory and
3317 done_accessing_memory ops into methods of process_target.
3318
3319 * target.h (struct process_stratum_target): Remove the target ops.
3320 (class process_target): Add the target ops.
3321 * target.cc (process_target::prepare_to_access_memory): Define.
3322 (process_target::done_accessing_memory): Define.
3323 (prepare_to_access_memory): Update.
3324 (done_accessing_memory): Update.
3325
3326 Update the derived classes and callers below.
3327
3328 * linux-low.cc (linux_target_ops): Update.
3329 (linux_prepare_to_access_memory): Turn into ...
3330 (linux_process_target::prepare_to_access_memory): ... this.
3331 (linux_done_accessing_memory): Turn into ...
3332 (linux_process_target::done_accessing_memory): ... this.
3333 * linux-low.h (class linux_process_target): Update.
3334 * lynx-low.cc (lynx_target_ops): Update.
3335 * nto-low.cc (nto_target_ops): Update.
3336 * win32-low.cc (win32_target_ops): Update.
3337
a5a4d4cd
TBA
33382020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3339
3340 Turn process_stratum_target's fetch_registers and store_registers
3341 ops into methods of process_target.
3342
3343 * target.h (struct process_stratum_target): Remove the target ops.
3344 (class process_target): Add the target ops.
3345 (fetch_inferior_registers): Update the macro.
3346 (store_inferior_registers): Update the macro.
3347
3348 Update the derived classes and callers below.
3349
3350 * linux-low.cc (linux_target_ops): Update.
3351 (linux_fetch_registers): Turn into ...
3352 (linux_process_target::fetch_registers): ... this.
3353 (linux_store_registers): Turn into ...
3354 (linux_process_target::store_registers): ... this.
3355 * linux-low.h (class linux_process_target): Update.
3356 * lynx-low.cc (lynx_target_ops): Update.
3357 (lynx_fetch_registers): Turn into ...
3358 (lynx_process_target::fetch_registers): ... this.
3359 (lynx_store_registers): Turn into ...
3360 (lynx_process_target::store_registers): ... this.
3361 * lynx-low.h (class lynx_process_target): Update.
3362 * nto-low.cc (nto_target_ops): Update.
3363 (nto_fetch_registers): Turn into ...
3364 (nto_process_target::fetch_registers): ... this.
3365 (nto_store_registers): Turn into ...
3366 (nto_process_target::store_registers): ... this.
3367 * nto-low.h (class nto_process_target): Update.
3368 * win32-low.cc (win32_target_ops): Update.
3369 (win32_fetch_inferior_registers): Turn into ...
3370 (win32_process_target::fetch_registers): ... this.
3371 (win32_store_inferior_registers): Turn into ...
3372 (win32_process_target::store_registers): ... this.
3373 * win32-low.h (class win32_process_target): Update.
3374
6532e7e3
TBA
33752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3376
3377 Turn process_stratum_target's wait op into a method of
3378 process_target.
3379
3380 * target.h (struct process_stratum_target): Remove the target op.
3381 (class process_target): Add the target op.
3382
3383 Update the derived classes and callers below.
3384
3385 * target.cc (target_wait): Update.
3386 * linux-low.cc (linux_target_ops): Update.
3387 (linux_wait): Turn into ...
3388 (linux_process_target::wait): ... this.
3389 * linux-low.h (class linux_process_target): Update.
3390 * lynx-low.cc (lynx_target_ops): Update.
3391 (lynx_wait): Turn into ...
3392 (lynx_process_target::wait): ... this.
3393 * lynx-low.h (class lynx_process_target): Update.
3394 * nto-low.cc (nto_target_ops): Update.
3395 (nto_wait): Turn into ...
3396 (nto_process_target::wait): ... this.
3397 * nto-low.h (class nto_process_target): Update.
3398 * win32-low.cc (win32_target_ops): Update.
3399 (win32_wait): Turn into ...
3400 (win32_process_target::wait): ... this.
3401 (do_initial_child_stuff): Update.
3402 * win32-low.h (class win32_process_target): Update.
3403
0e4d7e35
TBA
34042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3405
3406 Turn process_stratum_target's resume op into a method of
3407 process_target.
3408
3409 * target.h (struct process_stratum_target): Remove the target op.
3410 (class process_target): Add the target op.
3411
3412 Update the derived classes and callers below.
3413
3414 * server.cc (resume): Update.
3415 * target.cc (target_stop_and_wait): Update.
3416 (target_continue_no_signal): Update.
3417 (target_continue): Update.
3418 * linux-low.cc (linux_target_ops): Update.
3419 (linux_resume): Turn into ...
3420 (linux_process_target::resume): ... this.
3421 * linux-low.h (class linux_process_target): Update.
3422 * lynx-low.cc (lynx_target_ops): Update.
3423 (lynx_resume): Turn into ...
3424 (lynx_process_target::resume): ... this.
3425 * lynx-low.h (class lynx_process_target): Update.
3426 * nto-low.cc (nto_target_ops): Update.
3427 (nto_resume): Turn into ...
3428 (nto_process_target::resume): ... this.
3429 * nto-low.h (class nto_process_target): Update.
3430 * win32-low.cc (win32_target_ops): Update.
3431 (win32_resume): Turn into ...
3432 (win32_process_target::resume): ... this.
3433 (win32_process_target::detach): Update.
3434 (do_initial_child_stuff): Update.
3435 * win32-low.h (class win32_process_target): Update.
3436
13d3d99b
TBA
34372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3438
3439 Turn process_stratum_target's thread_alive op into a method of
3440 process_target.
3441
3442 * target.h (struct process_stratum_target): Remove the target op.
3443 (class process_target): Add the target op.
3444 (mythread_alive): Update the macro.
3445
3446 Update the derived classes and callers below.
3447
3448 * linux-low.cc (linux_target_ops): Update.
3449 (linux_thread_alive): Turn into ...
3450 (linux_process_target::thread_alive): ... this.
3451 (wait_for_sigstop): Update.
3452 * linux-low.h (class linux_process_target): Update.
3453 * lynx-low.cc (lynx_target_ops): Update.
3454 (lynx_thread_alive): Turn into ...
3455 (lynx_process_target::thread_alive): ... this.
3456 * lynx-low.h (class lynx_process_target): Update.
3457 * nto-low.cc (nto_target_ops): Update.
3458 (nto_thread_alive): Turn into ...
3459 (nto_process_target::thread_alive): ... this.
3460 * nto-low.h (class nto_process_target): Update.
3461 * win32-low.cc (win32_target_ops): Update.
3462 (win32_thread_alive): Turn into ...
3463 (win32_process_target::thread_alive): ... this.
3464 * win32-low.h (class win32_process_target): Update.
3465
95a49a39
TBA
34662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3467
3468 Turn process_stratum_target's join op into a method of
3469 process_target.
3470
3471 * target.h (struct process_stratum_target): Remove the target op.
3472 (class process_target): Add the target op.
3473 (join_inferior): Update the macro.
3474
3475 Update the derived classes and callers below.
3476
3477 * linux-low.cc (linux_target_ops): Update.
3478 (linux_join): Turn into ...
3479 (linux_process_target::join): ... this.
3480 * linux-low.h (class linux_process_target): Update.
3481 * lynx-low.cc (lynx_target_ops): Update.
3482 (lynx_join): Turn into ...
3483 (lynx_process_target::join): ... this.
3484 * lynx-low.h (class lynx_process_target): Update.
3485 * nto-low.cc (nto_target_ops): Update.
3486 (nto_process_target::join): Define.
3487 * nto-low.h (class nto_process_target): Update.
3488 * win32-low.cc (win32_target_ops): Update.
3489 (win32_join): Turn into ...
3490 (win32_process_target::join): ... this.
3491 * win32-low.h (class win32_process_target): Update.
3492
8adb37b9
TBA
34932020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3494
3495 Turn process_stratum_target's mourn op into a method of
3496 process_target.
3497
3498 * target.h (struct process_stratum_target): Remove the target op.
3499 (class process_target): Add the target op.
3500
3501 Update the derived classes and callers below.
3502
3503 * target.cc (target_mourn_inferior): Update.
3504 * linux-low.cc (linux_target_ops): Update.
3505 (linux_mourn): Turn into ...
3506 (linux_process_target::mourn): ... this.
3507 (handle_extended_wait): Update.
3508 (linux_process_target::kill): Update.
3509 (linux_process_target::detach): Update.
3510 * linux-low.h (class linux_process_target): Update.
3511 * lynx-low.cc (lynx_target_ops): Update.
3512 (lynx_mourn): Turn into ...
3513 (lynx_process_target::mourn): ... this.
3514 * lynx-low.h (class lynx_process_target): Update.
3515 * nto-low.cc (nto_target_ops): Update.
3516 (nto_mourn): Turn into ...
3517 (nto_process_target::mourn): ... this.
3518 * nto-low.h (class nto_process_target): Update.
3519 * win32-low.cc (win32_target_ops): Update.
3520 (win32_mourn): Turn into ...
3521 (win32_process_target::mourn): ... this.
3522 * win32-low.h (class win32_process_target): Update.
3523
9061c9cf
TBA
35242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3525
3526 Turn process_stratum_target's detach op into a method of
3527 process_target.
3528
3529 * target.h (struct process_stratum_target): Remove the target op.
3530 (class process_target): Add the target op.
3531 (detach_inferior): Update the macro.
3532
3533 Update the derived classes and callers below.
3534
3535 * linux-low.cc (linux_target_ops): Update.
3536 (linux_detach): Turn into ...
3537 (linux_process_target::detach): ... this.
3538 * linux-low.h (class linux_process_target): Update.
3539 * lynx-low.cc (lynx_target_ops): Update.
3540 (lynx_detach): Turn into ...
3541 (lynx_process_target::detach): ... this.
3542 * lynx-low.h (class lynx_process_target): Update.
3543 * nto-low.cc (nto_target_ops): Update.
3544 (nto_detach): Turn into ...
3545 (nto_process_target::detach): ... this.
3546 * nto-low.h (class nto_process_target): Update.
3547 * win32-low.cc (win32_target_ops): Update.
3548 (win32_detach): Turn into ...
3549 (win32_process_target::detach): ... this.
3550 * win32-low.h (class win32_process_target): Update.
3551
c6885a57
TBA
35522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3553
3554 Turn process_stratum_target's kill op into a method of
3555 process_target.
3556
3557 * target.h (struct process_stratum_target): Remove the target op.
3558 (class process_target): Add the target op.
3559
3560 Update the derived classes and callers below.
3561
3562 * target.cc (kill_inferior): Update.
3563 * linux-low.cc (linux_target_ops): Update.
3564 (linux_kill): Turn into ...
3565 (linux_process_target::kill): ... this.
3566 * linux-low.h (class linux_process_target): Update.
3567 * lynx-low.cc (lynx_target_ops): Update.
3568 (lynx_kill): Turn into ...
3569 (lynx_process_target::kill): ... this.
3570 * lynx-low.h (class lynx_process_target): Update.
3571 * nto-low.cc (nto_target_ops): Update.
3572 (nto_kill): Turn into ...
3573 (nto_process_target::kill): ... this.
3574 * nto-low.h (class nto_process_target): Update.
3575 * win32-low.cc (win32_target_ops): Update.
3576 (win32_kill): Turn into ...
3577 (win32_process_target::kill): ... this.
3578 * win32-low.h (class win32_process_target): Update.
3579
ef03dad8
TBA
35802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3581
3582 Turn process_stratum_target's attach op into a method of
3583 process_target.
3584
3585 * target.h (struct process_stratum_target): Remove the target op.
3586 (class process_target): Add the target op.
3587 (myattach): Update the macro.
3588
3589 Update the derived classes and callers below.
3590
3591 * linux-low.cc (linux_target_ops): Update.
3592 (linux_attach): Turn into ...
3593 (linux_process_target::attach): ... this.
3594 * linux-low.h (class linux_process_target): Update.
3595 * lynx-low.cc (lynx_target_ops): Update.
3596 (lynx_attach): Turn into ...
3597 (lynx_process_target::attach): ... this.
3598 * lynx-low.h (class lynx_process_target): Update.
3599 * nto-low.cc (nto_target_ops): Update.
3600 (nto_attach): Turn into ...
3601 (nto_process_target::attach): ... this.
3602 * nto-low.h (class nto_process_target): Update.
3603 * win32-low.cc (win32_target_ops): Update.
3604 (win32_attach): Turn into ...
3605 (win32_process_target::attach): ... this.
3606 * win32-low.h (class win32_process_target): Update.
3607
6dee9afb
TBA
36082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3609
3610 Turn process_stratum_target's post_create_inferior op into a method
3611 of process_target.
3612
3613 * target.h (struct process_stratum_target): Remove the target op.
3614 (class process_target): Add the target op.
3615 (target_post_create_inferior): Update the macro.
3616 * target.cc (process_target::post_create_inferior): Define.
3617
3618 Update the derived classes and callers below.
3619
3620 * linux-low.cc (linux_target_ops): Update.
3621 (linux_post_create_inferior): Turn into ...
3622 (linux_process_target::post_create_inferior): ... this.
3623 * linux-low.h (class linux_process_target): Update.
3624 * lynx-low.cc (lynx_target_ops): Update.
3625 * nto-low.cc (nto_target_ops): Update.
3626 * win32-low.cc (win32_target_ops): Update.
3627
15295543
TBA
36282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3629
3630 Turn process_stratum_target's create_inferior op into a method of
3631 process_target.
3632
3633 * target.h (struct process_stratum_target): Remove the target op.
3634 (class process_target): Add the target op.
3635 (create_inferior): Rename the macro to ...
3636 (target_create_inferior): ... this.
3637
3638 Update the derived classes and callers below.
3639
3640 * server.cc (handle_v_run): Update.
3641 (captured_main): Update.
3642 (process_serial_event): Update.
3643 * linux-low.cc (linux_target_ops): Update.
3644 (linux_create_inferior): Turn into ...
3645 (linux_process_target::create_inferior): ... this.
3646 * linux-low.h (class linux_process_target): Update.
3647 * lynx-low.cc (lynx_target_ops): Update.
3648 (lynx_create_inferior): Turn into ...
3649 (lynx_process_target::create_inferior): ... this.
3650 * lynx-low.h (class lynx_process_target): Update.
3651 * nto-low.cc (nto_target_ops): Update.
3652 (nto_create_inferior): Turn into ...
3653 (nto_process_target::create_inferior): ... this.
3654 * nto-low.h (class nto_process_target): Update.
3655 * win32-low.cc (win32_target_ops): Update.
3656 (win32_create_inferior): Turn into ...
3657 (win32_process_target::create_inferior): ... this.
3658 * win32-low.h (class win32_process_target): Update.
3659
5ef9273d
TBA
36602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3661
3662 * target.h (class process_target): New class definition.
3663 (struct process_stratum_target) <pt>: New field with type
3664 'process_target*'.
3665 * linux-low.h (class linux_process_target): Define as a derived
3666 class of 'process_target'.
3667 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3668 as the 'pt' field.
3669 * lynx-low.h (class lynx_process_target): Define as a derived
3670 class of 'process_target'.
3671 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3672 as the 'pt' field.
3673 * nto-low.h (class nto_process_target): Define as a derived
3674 class of 'process_target'.
3675 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3676 as the 'pt' field.
3677 * win32-low.h (class win32_process_target): Define as a derived
3678 class of 'process_target'.
3679 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3680 as the 'pt' field.
3681
9f1528a1
AB
36822020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3683
3684 * configure: Regenerate.
3685
bf84f706
MR
36862020-02-19 Maciej W. Rozycki <macro@wdc.com>
3687 Andrew Burgess <andrew.burgess@embecosm.com>
3688
3689 * linux-riscv-low.cc: New file.
3690 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3691 and nat/riscv-linux-tdesc.c.
3692 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3693 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3694 Define.
3695
1a627e7e
TT
36962020-02-14 Tom Tromey <tom@tromey.com>
3697
3698 * acinclude.m4: Don't include acx_configure_dir.m4.
3699 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3700 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3701 (all, install-only, uninstall, clean-info, clean)
3702 (maintainer-clean): Don't recurse.
3703 (subdir_do, all-lib): Remove.
3704 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3705 (GNULIB_H): Remove.
3706 (generated_files): Update.
3707 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3708 * configure: Rebuild.
3709 * configure.ac: Don't configure gnulib or libiberty.
3710 (GNULIB): Update.
3711
a9b34532
EZ
37122020-02-14 Eli Zaretskii <eliz@gnu.org>
3713
3714 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
3715 preparing the command line for CreateProcess.
3716 (win32_create_inferior): Reflect the program name in debugging
3717 output that shows the process and its command line.
3718
feacfcac
SM
37192020-02-13 Simon Marchi <simon.marchi@efficios.com>
3720
3721 * Makefile.in: Rename source files from .c to .cc.
3722 * %.c: Rename to %.cc.
3723 * configure.ac: Rename server.c to server.cc.
3724 * configure: Re-generate.
3725
06b3c5bd
SM
37262020-02-13 Simon Marchi <simon.marchi@efficios.com>
3727
3728 * Makefile.in: Rename gdbsupport source files from .c to .cc.
3729
052793ad
HD
37302020-02-12 Hannes Domani <ssbssa@yahoo.de>
3731
3732 * win32-low.c (win32_create_inferior): Set signal_pid.
3733
f20e3e82
MR
37342020-02-12 Maciej W. Rozycki <macro@wdc.com>
3735 Pedro Alves <palves@redhat.com>
3736
3737 Skip building gdbserver in a cross-configuration.
3738 * configure.srv: Set $gdbserver_host depending on whether $target
3739 is $host. Use $gdbserver_host instead of $host.
3740
8ddd8e0e
SM
37412020-02-11 Simon Marchi <simon.marchi@efficios.com>
3742
3743 * configure: Re-generate.
3744
898e7f60
SM
37452020-02-11 Simon Marchi <simon.marchi@efficios.com>
3746
3747 * configure: Re-generate.
3748
58df732b
SM
37492020-02-11 Simon Marchi <simon.marchi@efficios.com>
3750
3751 * acinclude.m4: Update warning.m4 path.
3752
7928d571
HD
37532020-02-09 Hannes Domani <ssbssa@yahoo.de>
3754
3755 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
3756 (handle_exception): Set siginfo_er.
3757 (win32_xfer_siginfo): New function.
3758
919adfe8
TT
37592020-02-07 Tom Tromey <tom@tromey.com>
3760 Pedro Alves <palves@redhat.com>
3761
3762 * README: Update build documentation.
3763 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
3764 host, not target.
3765 * configure.ac: Update paths.
3766 * configure: Rebuild.
3767 * acinclude.m4: Update paths.
3768 * Makefile.in: Update include paths.
3769 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
3770 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
3771 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
3772 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
3773 (%-generated.c): Update paths.
3774 * Move entire directory from ../gdb/gdbserver.
3775
287c844a
MR
37762020-01-29 Maciej W. Rozycki <macro@wdc.com>
3777
3778 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
3779
548a204f
PFC
37802020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3781
3782 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
3783 assignment instead of srv_linux_obj.
3784
a2236a08
HD
37852020-01-28 Hannes Domani <ssbssa@yahoo.de>
3786
3787 * server.c (handle_qxfer_libraries): Write segment-address with
3788 paddress.
3789
bdaed379
HD
37902020-01-24 Hannes Domani <ssbssa@yahoo.de>
3791
3792 * Makefile.in (install-strip): New target.
3793 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
3794 * aclocal.m4: Regenerate.
3795 * configure: Regenerate.
3796 * configure.ac: Add AM_PROG_INSTALL_STRIP.
3797
42cd72aa
MR
37982020-01-24 Maciej W. Rozycki <macro@wdc.com>
3799
3800 * Makefile.in (SFILES): Adjust paths to point to real files.
3801 (OBS): Move waitstatus.o to target/waitstatus.o.
3802 (TAGS): Transform paths appropriately.
3803 (%.o): Rename to...
3804 (nat/%.o): ... this pattern rule.
3805 (%.o): Rename to...
3806 (target/%.o): ... this pattern rule.
3807 * configure.srv: Adjust paths throughout to include nat/ prefix
3808 with the revant files.
3809 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
3810 * configure: Regenerate.
3811
42ba50ec
MR
38122020-01-24 Maciej W. Rozycki <macro@wdc.com>
3813
3814 * Makefile.in (TAGS): Remove config files from the recipe.
3815
05ea2a05
TT
38162020-01-14 Tom Tromey <tom@tromey.com>
3817
3818 * configure: Rebuild.
3819 * configure.ac: Remove any checks that were added to common.m4.
3820 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
3821 lib-link.m4.
3822
01027315
TT
38232020-01-14 Tom Tromey <tom@tromey.com>
3824
3825 * server.h: Include config.h.
3826 * gdbreplay.c: Include config.h.
3827 * configure: Rebuild.
3828 * configure.ac: Don't source common.host.
3829 * acinclude.m4: Update path.
3830 * Makefile.in (INCSUPPORT): New variable.
3831 (INCLUDE_CFLAGS): Add INCSUPPORT.
3832 (SFILES): Update paths.
3833 (version-generated.c): Update path to create-version.sh.
3834 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
3835
b2ceabe8
TT
38362020-01-14 Tom Tromey <tom@tromey.com>
3837
3838 * configure.ac (LIBS): Use WIN32APILIBS.
3839 (USE_WIN32API): Don't define.
3840 * configure: Rebuild.
3841
25c51f71
TT
38422020-01-14 Tom Tromey <tom@tromey.com>
3843
3844 * configure: Rebuild.
3845
c0bd321d
SM
38462020-01-13 Simon Marchi <simon.marchi@efficios.com>
3847
3848 * Makefile.in (%-generated.c): Remove rule for files from
3849 regformats/i386.
3850
bb564c58
SM
38512020-01-13 Simon Marchi <simon.marchi@efficios.com>
3852
3853 * configure: Re-generate.
3854
6e37c371
SM
38552020-01-13 Simon Marchi <simon.marchi@efficios.com>
3856
3857 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
3858 Define to static.
3859 * tracepoint.c (stop_tracing, flush_trace_buffer,
3860 about_to_request_buffer_space, get_trace_state_variable_value,
3861 set_trace_state_variable_value, gdb_collect): Add declaration.
3862
df4a0200
SM
38632020-01-13 Simon Marchi <simon.marchi@efficios.com>
3864
3865 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
3866 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
3867 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
3868 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
3869 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
3870 static.
3871
89e94ec9
SM
38722020-01-13 Simon Marchi <simon.marchi@efficios.com>
3873
3874 * inferiors.c: Include gdbsupport/common-inferior.h.
3875
2552728a
SM
38762020-01-13 Simon Marchi <simon.marchi@efficios.com>
3877
3878 * hostio-errno.c: Include hostio.h.
3879
4025fa09
SM
38802020-01-13 Simon Marchi <simon.marchi@efficios.com>
3881
3882 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
3883 prerequisite.
3884
c0b0a142
SM
38852020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3886
3887 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
3888 * linux-arm-tdesc.h: Include arch/arm.h.
3889
bb1183e2
SM
38902020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3891
3892 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
3893
f5df0b5f
SM
38942020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3895
3896 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
3897 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
3898
5b6d1e4f
PA
38992020-01-10 Pedro Alves <palves@redhat.com>
3900
3901 * fork-child.c (post_fork_inferior): Pass target down to
3902 startup_inferior.
3903 * inferiors.c (switch_to_thread): Add process_stratum_target
3904 parameter.
3905 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
3906 * nto-low.c (nto_target_ops): Now a process_stratum_target.
3907 * linux-low.c (linux_target_ops): Now a process_stratum_target.
3908 * remote-utils.c (prepare_resume_reply): Pass the target to
3909 switch_to_thread.
3910 * target.c (the_target): Now a process_stratum_target.
3911 (done_accessing_memory): Pass the target to switch_to_thread.
3912 (set_target_ops): Ajust to use process_stratum_target.
3913 * target.h (struct target_ops): Rename to ...
3914 (struct process_stratum_target): ... this.
3915 (the_target, set_target_ops): Adjust.
3916 (prepare_to_access_memory): Adjust comment.
3917 * win32-low.c (child_xfer_memory): Adjust to use
3918 process_stratum_target.
3919 (win32_target_ops): Now a process_stratum_target.
3920
559e7e50
EZ
39212020-01-06 Eli Zaretskii <eliz@gnu.org>
3922 Pedro Alves <palves@redhat.com>
3923
3924 * win32-low.c (get_child_debug_event): Extract the fatal exception
3925 from the exit status and convert to the equivalent Posix signal
3926 number.
3927 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
3928 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
3929
48189bec
HD
39302020-01-01 Hannes Domani <ssbssa@yahoo.de>
3931
3932 * Makefile.in: Use INSTALL_PROGRAM_ENV.
3933
5dd8bf88
JB
39342020-01-01 Joel Brobecker <brobecker@adacore.com>
3935
3936 * server.c (gdbserver_version): Change copyright year to 2020.
3937 * gdbreplay.c (gdbreplay_version): Likewise.
3938
0ad6b8ee
CB
39392019-12-19 Christian Biesinger <cbiesinger@google.com>
3940
3941 * configure: Regenerate.
3942 * configure.ac: Quote variable arguments of test.
3943
1ee7b812
BE
39442019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
3945
3946 * Makefile.in: Fix build with GNU Make 3.81
3947
d9fa87f4
TT
39482019-12-16 Tom Tromey <tromey@adacore.com>
3949
3950 * server.c (get_exec_file): Constify result.
3951
ab7d13f0
CB
39522019-12-10 Christian Biesinger <cbiesinger@google.com>
3953
3954 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
3955 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
3956 * config.in: Regenerate.
3957 * configure: Regenerate.
3958 * configure.ac: Don't check for strerror.
3959 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
3960 Call safe_strerror instead of strerror.
3961 * server.h (strerror): Remove this now-unnecessary declaration.
3962 * tracepoint.c (init_named_socket): Call safe_strerror instead of
3963 strerror.
3964 (gdb_agent_helper_thread): Likewise.
3965 * utils.c (perror_with_name): Likewise.
3966
4da8c3a8
TT
39672019-11-26 Tom Tromey <tom@tromey.com>
3968
3969 * configure, config.in: Rebuild.
3970
21987b9c
TT
39712019-11-26 Tom Tromey <tom@tromey.com>
3972
3973 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
3974 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
3975 gdb_sigmask.
3976 * configure, config.in: Rebuild.
3977
5e030278
TT
39782019-11-26 Tom Tromey <tom@tromey.com>
3979
3980 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
3981 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
3982 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
3983 * acinclude.m4: Include ax_pthread.m4.
3984 * config.in, configure: Rebuild.
3985
6d91ce9a
CB
39862019-11-26 Christian Biesinger <cbiesinger@google.com>
3987
3988 * debug.c (debug_set_output): Call safe_strerror instead of
3989 strerror.
3990 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
3991 (linux_kill_one_lwp): Likewise.
3992 (linux_detach_one_lwp): Likewise.
3993 (linux_wait_for_event_filtered): Likewise.
3994 (store_register): Likewise.
3995 * lynx-low.c (lynx_attach): Likewise.
3996 * mem-break.c (insert_memory_breakpoint): Likewise.
3997 (remove_memory_breakpoint): Likewise.
3998 (delete_fast_tracepoint_jump): Likewise.
3999 (set_fast_tracepoint_jump): Likewise.
4000 (uninsert_fast_tracepoint_jumps_at): Likewise.
4001 (reinsert_fast_tracepoint_jumps_at): Likewise.
4002 * nto-low.c (nto_xfer_memory): Likewise.
4003 (nto_resume): Likewise.
4004
6cdd651f
LM
40052019-11-20 Luis Machado <luis.machado@linaro.org>
4006
4007 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4008 instead of register count.
4009 * tdesc.c (tdesc_contains_feature): New function.
4010 * tdesc.h (tdesc_contains_feature): New prototype.
4011
cd850b40
CB
40122019-11-15 Christian Biesinger <cbiesinger@google.com>
4013
4014 * Makefile.in: Add safe-strerror.c.
4015 * configure: Regenerate.
4016 * configure.ac: Don't source common.host.
4017
5abebf3c
CB
40182019-11-15 Christian Biesinger <cbiesinger@google.com>
4019
4020 * config.in: Regenerate.
4021 * configure: Regenerate.
4022
e06f3d6e
AB
40232019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4024
4025 * ax.c (ax_printf): Handle size_t_arg.
4026
ca3a04f6
CB
40272019-11-06 Christian Biesinger <cbiesinger@google.com>
4028
4029 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4030 * mi/mi-main.c (output_cores): Likewise.
4031 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4032 (linux_xfer_osdata_modules): Likewise.
4033 * remote.c (register_remote_support_xml): Likewise.
4034 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4035 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4036
e48f6033
CB
40372019-11-01 Christian Biesinger <cbiesinger@google.com>
4038
4039 * configure: Regenerate.
4040 * configure.ac: Remove check for strerror_r.
4041
e7e97a2e
CB
40422019-10-31 Christian Biesinger <cbiesinger@google.com>
4043
4044 * config.in: Regenerate.
4045 * configure: Regenerate.
4046 * configure.ac: Also check for strerror_r.
4047
75cafaa6
CB
40482019-10-31 Christian Biesinger <cbiesinger@google.com>
4049
4050 * ax.h (debug_agent): Remove duplicate declaration.
4051
30baf67b
TV
40522019-10-26 Tom de Vries <tdevries@suse.de>
4053
4054 * linux-aarch64-low.c: Fix typos in comments.
4055 * linux-arm-low.c: Same.
4056 * linux-low.c: Same.
4057 * linux-ppc-low.c: Same.
4058 * proc-service.c: Same.
4059 * regcache.h: Same.
4060 * server.c: Same.
4061 * tracepoint.c: Same.
4062 * win32-low.c: Same.
4063
52c64cf7
TT
40642019-10-25 Tom Tromey <tromey@adacore.com>
4065
4066 * utils.c (xstrdup): Remove.
4067
c12d372d
TT
40682019-10-23 Tom Tromey <tom@tromey.com>
4069
4070 * configure, config.in: Rebuild.
4071
4d0b984b
TT
40722019-10-23 Tom Tromey <tom@tromey.com>
4073
4074 * configure: Rebuild.
4075 * acinclude.m4: Use m4_include, not sinclude.
4076
c5adaa19
TT
40772019-10-17 Tom Tromey <tromey@adacore.com>
4078
4079 * configure: Rebuild.
4080 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4081 in AC_CONFIG_FILES invocation.
4082 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4083 invocation.
4084
fec4e896
CB
40852019-10-16 Christian Biesinger <cbiesinger@google.com>
4086
4087 * server.c: Include xml-builtin.h.
4088 (get_xml_features): Don't declare xml_builtins here.
4089
00975ff6
AB
40902019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4091
4092 * Makefile.in: Remove references to vec-ipa.o.
4093
0dc32745
AB
40942019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4095
4096 * Makefile.in: Remove references to vec.c.
4097
3e6ec53a
CB
40982019-10-02 Christian Biesinger <cbiesinger@google.com>
4099
4100 * server.c (server_waiting): Change to bool.
4101 (extended_protocol): Likewise.
4102 (response_needed): Likewise.
4103 (exit_requested): Likewise.
4104 (run_once): Likewise.
4105 (report_no_resumed): Likewise.
4106 (non_stop): Likewise.
4107 (disable_packet_vCont): Likewise.
4108 (disable_packet_Tthread): Likewise.
4109 (disable_packet_qC): Likewise.
4110 (disable_packet_qfThreadInfo): Likewise.
4111 (handle_general_set): Update.
4112 (handle_detach): Update.
4113 (handle_monitor_command): Update.
4114 (handle_query): Update.
4115 (captured_main): Update.
4116 (process_serial_event): Update.
4117 * server.h (server_waiting): Change to bool.
4118 (disable_packet_vCont): Likewise.
4119 (disable_packet_Tthread): Likewise.
4120 (disable_packet_qC): Likewise.
4121 (disable_packet_qfThreadInfo): Likewise.
4122 (run_once): Likewise.
4123 (non_stop): Likewise.
4124 * target.c (target_stop_and_wait): Update.
4125
80fd2826
TT
41262019-10-02 Tom Tromey <tromey@adacore.com>
4127
4128 * Makefile.in (SFILES): Add common-inferior.c.
4129 (OBS): Add common-inferior.o.
4130 * server.c (startup_with_shell): Don't define.
4131
46f29a9a
AB
41322019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4133
4134 * linux-low.c (linux_low_read_btrace): Update for change to
4135 std::vector.
4136
f9d949fb
CB
41372019-09-20 Christian Biesinger <cbiesinger@google.com>
4138
4139 * debug.c (debug_threads): Remove comment in favor of the header.
4140 * debug.h (using_threads): Add declaration.
4141 (debug_threads): Add comment.
4142 * linux-aarch64-low.c: Include debug.h and remove declaration of
4143 debug_threads.
4144 * nto-low.c: Likewise.
4145 * remote-utils.c: Likewise.
4146 * thread-db.c: Likewise.
4147
abf516c6
UW
41482019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4149
4150 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4151 and powerpc-cell64l-ipa.o.
4152 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4153 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4154 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4155 (spu*-*-*): Remove.
4156
4157 * spu-low.c: Remove file.
4158
4159 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4160 (parse_spufs_run): Remove.
4161 (ppc_get_pc): Remove Cell/B.E. support.
4162 (ppc_set_pc): Likewise.
4163 (ppc_breakpoint_at): Likewise.
4164 (ppc_arch_setup): Likewise.
4165 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4166 tdesc_powerpc_cell32l.
4167 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4168 or init_registers_powerpc_cell32l.
4169 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4170 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4171 or init_registers_powerpc_cell32l.
4172 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4173 (init_registers_powerpc_cell32l): Remove prototype.
4174 (init_registers_powerpc_cell64l): Likewise.
4175
4176 * target.h (struct target_ops): Remove qxfer_spu member.
4177 * server.c (handle_qxfer_spu): Remove.
4178 (qxfer_packets): Remove entry for "spu".
4179 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4180 * linux-low.c (SPUFS_MAGIC): Remove.
4181 (spu_enumerate_spu_ids): Remove.
4182 (linux_qxfer_spu): Remove.
4183 (linux_target_ops): Remove qxfer_spu member.
4184 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4185 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4186 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4187
2d41fa11
SDJ
41882019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4189
4190 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4191 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4192 * config.in: Regenerate.
4193 * configure: Regenerate.
4194
d59b55f0
TT
41952019-08-15 Tom Tromey <tromey@adacore.com>
4196
4197 * target.c (target_write_memory): Use gdb::byte_vector.
4198
4196ab2a
TT
41992019-08-15 Tom Tromey <tromey@adacore.com>
4200
4201 * tracepoint.c (write_inferior_data_pointer)
4202 (write_inferior_integer, write_inferior_int8)
4203 (write_inferior_uinteger, m_tracepoint_action_download)
4204 (r_tracepoint_action_download, x_tracepoint_action_download)
4205 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4206 (download_agent_expr, download_tracepoint_1)
4207 (download_trace_state_variables, upload_fast_traceframes): Update.
4208 * server.c (gdb_write_memory): Update.
4209 * remote-utils.c (relocate_instruction): Update.
4210 * proc-service.c (ps_pdwrite): Update.
4211 * mem-break.c (remove_memory_breakpoint)
4212 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4213 (uninsert_fast_tracepoint_jumps_at)
4214 (reinsert_fast_tracepoint_jumps_at): Update.
4215 * linux-x86-low.c (append_insns)
4216 (i386_install_fast_tracepoint_jump_pad)
4217 (amd64_write_goto_address, i386_write_goto_address): Update.
4218 * linux-s390-low.c (append_insns, s390_write_goto_address):
4219 Update.
4220 * linux-ppc-low.c (ppc_relocate_instruction)
4221 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4222 (ppc_write_goto_address): Update.
4223 * linux-aarch64-low.c (append_insns): Update.
4224 * target.h (struct target_ops): Update.
4225 (write_inferior_memory): Don't declare.
4226 * target.c (target_write_memory): Rename from
4227 write_inferior_memory. Remove old target_write_memory.
4228
c6778d00
TT
42292019-08-15 Tom Tromey <tromey@adacore.com>
4230
4231 * target.c (write_inferior_memory): Use std::vector.
4232
404f2902
FCE
42332019-08-06 Frank Ch. Eigler <fche@redhat.com>
4234
4235 PR build/24886
4236 * configure.ac: Drop enable-libmcheck support.
4237 * configure, config.in: Rebuild.
4238 * acinclude.m4: Don't include it.
4239
4c5aa8e0
AH
42402019-07-19 Alan Hayward <alan.hayward@arm.com>
4241
4242 * configure.srv: Remove Arm xml files.
4243
7cc17433
AH
42442019-07-19 Alan Hayward <alan.hayward@arm.com>
4245
4246 * configure.srv: Add new files. Remove xml generated files.
4247 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4248 registers.
4249 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4250 * linux-aarch32-tdesc.c: New file.
4251 * linux-aarch32-tdesc.h: New file.
4252 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4253 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4254 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4255 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4256 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4257 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4258 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4259 (arm_read_description): Call arm_linux_read_description.
4260 (initialize_low_arch): Don't init registers.
4261 * linux-arm-tdesc.c: New file.
4262 * linux-arm-tdesc.h: New file.
4263
166a82be
AH
42642019-07-10 Alan Hayward <alan.hayward@arm.com>
4265
4266 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4267 Move counter inside for.
4268 (arm_read_description): Check ptrace earlier.
4269 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4270
268a13a5
TT
42712019-07-09 Tom Tromey <tom@tromey.com>
4272
4273 * configure: Rebuild.
4274 * configure.ac: Change common to gdbsupport.
4275 * acinclude.m4: Change common to gdbsupport.
4276 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4277 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4278 common to gdbsupport.
4279 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4280 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4281 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4282 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4283 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4284 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4285 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4286 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4287 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4288 common to gdbsupport.
4289
350fab54
AH
42902019-07-04 Alan Hayward <alan.hayward@arm.com>
4291
4292 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4293 defines.
4294 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4295
2b40fda7
AH
42962019-07-04 Alan Hayward <alan.hayward@arm.com>
4297
4298 * configure.srv: Remove legacy xml.
4299 * linux-aarch64-low.c (initialize_low_arch): Remove
4300 initialize_low_tdesc call.
4301 * linux-aarch64-tdesc-selftest.c: Remove file.
4302 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4303 * linux-x86-low.c (initialize_low_arch): Remove
4304 initialize_low_tdesc call.
4305 * linux-x86-tdesc-selftest.c: Remove file.
4306 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4307
7d10623d
TV
43082019-06-20 Tom de Vries <tdevries@suse.de>
4309
4310 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4311 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4312
8d6a48df
TV
43132019-06-19 Tom de Vries <tdevries@suse.de>
4314
4315 * debug.h (debug_write): Change return type to ssize_t.
4316 * debug.c (debug_write): Same.
4317
73cc7272
TT
43182019-06-14 Tom Tromey <tom@tromey.com>
4319
4320 * configure.ac: Use new path to gnulib.
4321 * configure: Rebuild.
4322 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4323 to gnulib.
4324
08f10e02
TT
43252019-06-11 Tom Tromey <tom@tromey.com>
4326
4327 * Makefile.in (SFILES): Add alloc.c.
4328 (OBS): Add alloc.o.
4329 (IPA_OBJS): Add alloc-ipa.o.
4330 (alloc-ipa.o): New target.
4331 (%.o: ../%.c): New pattern rule.
4332
422186a9
TT
43332019-06-10 Tom Tromey <tromey@adacore.com>
4334
4335 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4336 end warning with a newline.
4337 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4338 newline.
4339 * thread-db.c (attach_thread): Don't end warning with a newline.
4340 (thread_db_notice_clone): Likewise.
4341 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4342 newline.
4343 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4344 end warning with a newline.
4345
b02f78f9
PA
43462019-06-04 Pedro Alves <palves@redhat.com>
4347
4348 * server.c (captured_main): Use make_unique_xstrdup.
4349
88ed7edb
TT
43502019-06-02 Tom Tromey <tom@tromey.com>
4351
4352 * gdbreplay.c (fromhex): Remove.
4353 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4354
33a6bc35
TT
43552019-05-29 Tom Tromey <tromey@adacore.com>
4356
4357 * configure: Rebuild.
4358
e90a813d
KB
43592019-05-06 Kevin Buettner <kevinb@redhat.com>
4360
4361 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4362 sign extension code on 32-bit builds.
4363
353ea2d1
EZ
43642019-05-03 Eli Zaretskii <eliz@gnu.org>
4365
4366 * remote-utils.c:
4367 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4368
b494cdff
TT
43692019-04-19 Tom Tromey <tom@tromey.com>
4370
4371 * server.c (struct vstop_notif): Derive from notif_event.
4372 <base>: Remove.
4373 (queue_stop_reply): Update.
4374 (remove_all_on_match_ptid): Change type. Rewrite.
4375 (discard_queued_stop_replies): Rewrite.
4376 (in_queued_stop_replies_ptid): Change type.
4377 (in_queued_stop_replies): Rewrite.
4378 (notif_stop): Update.
4379 (queue_stop_reply_callback): Update.
4380 (captured_main): Don't call initialize_notif.
4381 (push_stop_notification): Update.
4382 * notif.c (notif_write_event, handle_notif_ack)
4383 (notif_event_enque, notif_push): Update.
4384 (notif_event_xfree, initialize_notif): Remove.
4385 * notif.h (struct notif_event): Include <list>, not
4386 "common/queue.h".
4387 (struct notif_server) <queue>: Now a std::list.
4388 (notif_event_p): Remove typedef.
4389 (initialize_notif): Don't declare.
4390 (struct notif_event): Add virtual destructor.
4391
a7e559cc
AH
43922019-04-17 Alan Hayward <alan.hayward@arm.com>
4393
4394 * ax.c (ax_vdebug): Call debug_printf.
4395 * debug.c (debug_write): New function.
4396 * debug.h (debug_write): New declaration.
4397 * linux-low.c (sigchld_handler): Call debug_write.
4398
aeb2e706
AH
43992019-04-17 Alan Hayward <alan.hayward@arm.com>
4400
4401 * debug.c (debug_set_output): New function.
4402 (debug_vprintf): Send output to debug_file.
4403 (debug_flush): Likewise.
4404 * debug.h (debug_set_output): New declaration.
4405 * server.c (handle_monitor_command): Add debug-file option.
4406 (captured_main): Likewise.
4407
c1bc0935
AH
44082019-04-17 Alan Hayward <alan.hayward@arm.com>
4409
4410 * debug.c (remote_debug): Add definition.
4411 * debug.h (remote_debug): Add declaration.
4412 * hostio.c (remote_debug): Remove declaration.
4413 * remote-utils.c (struct ui_file): Likewise.
4414 (remote_debug): Likewise.
4415 * remote-utils.h (remote_debug): Likewise,
4416 * server.c (remote_debug): Remove definition.
4417
3f52fdbc
KB
44182019-04-10 Kevin Buettner <kevinb@redhat.com>
4419
4420 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4421 when using a 64-bit gdbserver.
4422
b0319eaa
TT
44232019-04-09 Tom Tromey <tromey@adacore.com>
4424
4425 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4426
eedc3f4f
TT
44272019-04-08 Tom Tromey <tom@tromey.com>
4428
4429 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4430 throw.
4431 (linux_resume_one_lwp): Likewise.
4432
230d2906
TT
44332019-04-08 Tom Tromey <tom@tromey.com>
4434
4435 * gdbreplay.c: Update.
4436 * linux-low.c: Update.
4437 * server.c: Update.
4438
a70b8144
TT
44392019-04-08 Tom Tromey <tom@tromey.com>
4440
4441 * server.c: Use C++ exception handling.
4442 * linux-low.c: Use C++ exception handling.
4443 * gdbreplay.c: Use C++ exception handling.
4444
3d6e9d23
TT
44452019-04-08 Tom Tromey <tom@tromey.com>
4446
4447 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4448 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4449 (captured_main, main): Update.
4450 * gdbreplay.c (main): Update.
4451
0570503d
PFC
44522019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4453
4454 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4455 value in argument pointer, return 1 if the entry is found and 0
4456 otherwise. Move comment.
4457 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4458 * linux-low.h (linux_get_auxv): Declare.
4459 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4460
227a9e65
TT
44612019-04-05 Tom Tromey <tromey@adacore.com>
4462
4463 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4464 variables.
4465
69f4c9cc
AH
44662019-03-28 Alan Hayward <alan.hayward@arm.com>
4467
4468 * linux-low.c (AT_HWCAP2): Add define if not already included.
4469
974c89e0
AH
44702019-03-26 Alan Hayward <alan.hayward@arm.com>
4471
4472 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4473 (aarch64_arch_setup): Call linux_get_hwcap.
4474 * linux-arm-low.c (arm_get_hwcap): Remove function.
4475 (arm_read_description): Call linux_get_hwcap.
4476 * linux-low.c (linux_get_auxv): New function.
4477 (linux_get_hwcap): Likewise.
4478 (linux_get_hwcap2): Likewise.
4479 * linux-low.h (linux_get_hwcap): New declaration.
4480 (linux_get_hwcap2): Likewise.
4481 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4482 (ppc_arch_setup): Call linux_get_hwcap.
4483 * linux-s390-low.c (s390_get_hwcap): Remove function.
4484 (s390_arch_setup): Call linux_get_hwcap.
4485
1ef53e6b
AH
44862019-03-22 Alan Hayward <alan.hayward@arm.com>
4487 Jiong Wang <jiong.wang@arm.com>
4488
4489 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4490 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4491 to fail.
4492 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4493
ee4fbcfa
AH
44942019-03-22 Alan Hayward <alan.hayward@arm.com>
4495 Jiong Wang <jiong.wang@arm.com>
4496
4497 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4498 (aarch64_get_hwcap): New function.
4499 (aarch64_arch_setup): Read APIA hwcap.
4500
6dc0ebde
AH
45012019-03-22 Alan Hayward <alan.hayward@arm.com>
4502 Jiong Wang <jiong.wang@arm.com>
4503
4504 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4505 (initialize_low_tracepoint): Likewise.
4506 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4507 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4508 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4509 (aarch64_linux_read_description): Likewise.
4510 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4511
1163a4b7
JB
45122019-03-12 John Baldwin <jhb@FreeBSD.org>
4513
4514 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4515 i386_create_target_description for 'segments' parameter.
4516 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4517 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4518 * win32-i386-low.c (i386_arch_setup): Likewise.
4519
d3a70e03
TT
45202019-03-12 Tom Tromey <tromey@adacore.com>
4521
4522 * linux-low.c (iterate_over_lwps): Update.
4523
37991b4f
TT
45242019-03-06 Tom Tromey <tom@tromey.com>
4525
4526 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4527 (captured_main): Use SCOPE_EXIT.
4528
45950eb6
SDJ
45292019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4530
4531 * configure.srv: Use '$enable_unittest' instead of '$development'
4532 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4533 case.
4534
43ac54fc
TT
45352019-02-27 Tom Tromey <tromey@adacore.com>
4536
4537 * gdbreplay.c (logchar): Handle \r\n.
4538
df0da8a2
AH
45392019-02-07 Alan Hayward <alan.hayward@arm.com>
4540
4541 * linux-low.c (linux_attach): Add process before lwp.
4542 * server.c (attach_inferior): Check if already attached.
4543
1a5c2598
TT
45442019-02-07 Tom Tromey <tom@tromey.com>
4545
4546 * x86-tdesc.h: Rename include guard.
4547 * x86-low.h: Add include guard.
4548 * wincecompat.h: Rename include guard.
4549 * win32-low.h: Add include guard.
4550 * utils.h: Rename include guard.
4551 * tracepoint.h: Rename include guard.
4552 * tdesc.h: Rename include guard.
4553 * target.h: Rename include guard.
4554 * server.h: Rename include guard.
4555 * remote-utils.h: Rename include guard.
4556 * regcache.h: Rename include guard.
4557 * nto-low.h: Rename include guard.
4558 * notif.h: Add include guard.
4559 * mem-break.h: Rename include guard.
4560 * lynx-low.h: Add include guard.
4561 * linux-x86-tdesc.h: Add include guard.
4562 * linux-s390-tdesc.h: Add include guard.
4563 * linux-ppc-tdesc-init.h: Add include guard.
4564 * linux-low.h: Add include guard.
4565 * linux-aarch64-tdesc.h: Add include guard.
4566 * linux-aarch32-low.h: Add include guard.
4567 * inferiors.h: Rename include guard.
4568 * i387-fp.h: Rename include guard.
4569 * hostio.h: Rename include guard.
4570 * gdbthread.h: Rename include guard.
4571 * gdb_proc_service.h: Rename include guard.
4572 * event-loop.h: Rename include guard.
4573 * dll.h: Rename include guard.
4574 * debug.h: Rename include guard.
4575 * ax.h: Rename include guard.
4576
956cc47c
SN
45772018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4578
4579 PR gdb/23985
4580 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4581 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4582
a0707f3c
TT
45832019-01-25 Tom Tromey <tom@tromey.com>
4584
4585 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4586
0747795c
TT
45872019-01-25 Tom Tromey <tom@tromey.com>
4588
4589 * win32-low.c: Fix common/ includes.
4590 * win32-i386-low.c: Fix common/ includes.
4591 * tracepoint.c: Fix common/ includes.
4592 * thread-db.c: Fix common/ includes.
4593 * target.h: Fix common/ includes.
4594 * symbol.c: Fix common/ includes.
4595 * spu-low.c: Fix common/ includes.
4596 * server.h: Fix common/ includes.
4597 * server.c: Fix common/ includes.
4598 * remote-utils.c: Fix common/ includes.
4599 * regcache.h: Fix common/ includes.
4600 * regcache.c: Fix common/ includes.
4601 * nto-x86-low.c: Fix common/ includes.
4602 * notif.h: Fix common/ includes.
4603 * mem-break.h: Fix common/ includes.
4604 * lynx-low.c: Fix common/ includes.
4605 * lynx-i386-low.c: Fix common/ includes.
4606 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4607 * linux-x86-low.c: Fix common/ includes.
4608 * linux-low.c: Fix common/ includes.
4609 * inferiors.h: Fix common/ includes.
4610 * i387-fp.c: Fix common/ includes.
4611 * hostio.c: Fix common/ includes.
4612 * hostio-errno.c: Fix common/ includes.
4613 * gdbthread.h: Fix common/ includes.
4614 * gdbreplay.c: Fix common/ includes.
4615 * fork-child.c: Fix common/ includes.
4616 * event-loop.c: Fix common/ includes.
4617 * ax.c:
4618 (enum gdb_agent_op): Fix common/ includes.
4619
be6d4f74
TT
46202019-01-21 Tom Tromey <tom@tromey.com>
4621
4622 * tracepoint.c: Fix includes.
4623 * remote-utils.c: Fix includes.
4624 * linux-x86-low.c: Fix includes.
4625
66d91b39
JB
46262019-01-01 Joel Brobecker <brobecker@adacore.com>
4627
4628 * gdbreplay.c (gdbreplay_version): Update copyright year in
4629 version message.
4630 * server.c (gdbserver_version): Likewise.
4631
754e3168
AH
46322018-12-05 Alan Hayward <alan.hayward@arm.com>
4633
4634 * linux-low.c (add_lwp): Switch ordering.
4635
d105de22
TT
46362018-11-29 Tom Tromey <tom@tromey.com>
4637
4638 * win32-low.c (win32_join): Take pid, not process.
4639 * target.h (struct target_ops) <join>: Change argument type.
4640 (join_inferior): Change argument name.
4641 * spu-low.c (spu_join): Take pid, not process.
4642 * server.c (handle_detach): Preserve pid before destroying
4643 process.
4644 * lynx-low.c (lynx_join): Take pid, not process.
4645 * linux-low.c (linux_join): Take pid, not process.
4646
50138245
AH
46472018-11-23 Alan Hayward <alan.hayward@arm.com>
4648
4649 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4650 (aarch64_cannot_fetch_register): Likewise.
4651 (struct linux_target_ops): Update references.
4652
64f57f3d
PFC
46532018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4654
4655 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4656
8d619c01
EBM
46572018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4658
4659 * configure.srv (ipa_ppc_linux_regobj): Add
4660 powerpc-isa207-htm-vsx32l-ipa.o and
4661 powerpc-isa207-htm-vsx64l-ipa.o.
4662 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4663 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4664 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4665 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4666 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4667 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4668 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4669 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4670 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4671 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4672 (init_registers_powerpc_isa207_htm_vsx32l)
4673 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4674 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4675 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4676 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4677 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4678 (ppc_store_tm_ctarregset): New functions.
4679 (ppc_regsets): Add entries for HTM regsets.
4680 (ppc_arch_setup): Set htm in features struct when needed. Set
4681 sizes for the HTM regsets.
4682 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4683 (initialize_low_arch): Call
4684 init_registers_powerpc_isa207_htm_vsx32l and
4685 init_registers_powerpc_isa207_htm_vsx64l.
4686 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4687 PPC_TDESC_ISA207_HTM_VSX.
4688 (initialize_low_tracepoint): Call
4689 init_registers_powerpc_isa207_htm_vsx32l and
4690 init_registers_powerpc_isa207_htm_vsx64l.
4691
232bfb86
EBM
46922018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4693
4694 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4695 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4696 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4697 (ppc_store_pmuregset): New functions.
4698 (ppc_regsets): Add entries for ebb and pmu regsets.
4699 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4700 pmu regsets are available. Set sizes for these regsets.
4701
f2cf6173
EBM
47022018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4703
4704 * configure.srv (ipa_ppc_linux_regobj): Add
4705 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4706 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4707 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4708 rs6000/powerpc-isa207-vsx32l.xml, and
4709 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
4710 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4711 <PPC_TDESC_ISA207_VSX>: New enum value.
4712 (init_registers_powerpc_isa207_vsx32l): Declare.
4713 (init_registers_powerpc_isa207_vsx64l): Declare.
4714 * linux-ppc-low.c (ppc_fill_tarregset): New function.
4715 (ppc_store_tarregset): New function.
4716 (ppc_regsets): Add entry for the TAR regset.
4717 (ppc_arch_setup): Set isa207 in features struct when needed. Set
4718 size for the TAR regsets.
4719 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
4720 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
4721 and init_registers_powerpc_isa207_vsx64l.
4722 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
4723 (initialize_low_tracepoint): Call
4724 init_registers_powerpc_isa207_vsx32l and
4725 init_registers_powerpc_isa207_vsx64l.
4726
7ca18ed6
EBM
47272018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4728 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4729
4730 * configure.srv (ipa_ppc_linux_regobj): Add
4731 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
4732 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
4733 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
4734 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
4735 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
4736 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
4737 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
4738 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4739 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
4740 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
4741 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
4742 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
4743 (ppc_hwcap): Add comment.
4744 (ppc_hwcap2): New global.
4745 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
4746 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
4747 (ppc_regsets): Add entries for the DSCR and PPR regsets.
4748 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
4749 when needed. Set sizes for the the DSCR and PPR regsets.
4750 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
4751 (initialize_low_arch): Call
4752 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4753 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4754 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4755 PPC_TDESC_ISA205_PPR_DSCR_VSX.
4756 (initialize_low_tracepoint): Call
4757 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4758 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4759
5c849b22
PFC
47602018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4761
4762 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
4763
8ecfd7bd
SDJ
47642018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
4765 Simon Marchi <simark@simark.ca>
4766
4767 * acinclude.m4: Include "../selftest.m4".
4768 * configure: Regenerate.
4769 * configure.ac: Use "GDB_AC_SELFTEST".
4770 * configure.srv: Use "$enable_unittests" instead of
4771 "$development" when checking whether unit tests have been
4772 enabled.
4773 * server.c (captured_main): Update message informing that
4774 selftests have been disabled.
4775
96643e35
TT
47762018-10-04 Tom Tromey <tom@tromey.com>
4777
4778 * configure: Rebuild.
4779
da4ae14a
TT
47802018-10-04 Tom Tromey <tom@tromey.com>
4781
4782 * server.c (handle_status): Rename inner "thread".
4783 (process_serial_event): Declare "res" in 'm' case.
4784 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
4785 (iterate_over_lwps): Rename inner "thread".
4786 (linux_qxfer_libraries_svr4): Rename inner "len".
4787 * gdbthread.h (find_thread_in_random): Rename inner "thread".
4788
7c619dbd
GB
47892018-10-01 Gary Benson <gbenson@redhat.com>
4790
4791 * gdb_proc_service.h: Moved common code to
4792 common/gdb_proc_service.h.
4793
3795e814
GB
47942018-10-01 Gary Benson <gbenson@redhat.com>
4795
4796 * gdb_proc_service.h: Synchronize comments and whitespace with
4797 GDB's version of this file.
4798
49b036f1
TT
47992018-09-25 Tom Tromey <tom@tromey.com>
4800
4801 * configure: Rebuild.
4802 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
4803
8ff03f0b
SM
48042018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4805
4806 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
4807 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
4808 ($(IPA_LIB)): Sort IPA_OBJS.
4809
a1cd91dc
SM
48102018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4811
4812 * Makefile.in: Remove references to $(ADD_DEPS).
4813
752312ba
TT
48142018-09-16 Tom Tromey <tom@tromey.com>
4815
4816 * remote-utils.c (remote_open): Use GNU style for metasyntactic
4817 variables.
4818 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
4819 variables.
4820
f1628857
TT
48212018-09-05 Tom Tromey <tom@tromey.com>
4822
4823 * configure: Rebuild.
4824
ad202fcc
SM
48252018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
4826
4827 PR build/23399
4828 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
4829
d3d8724a
TT
48302018-08-27 Tom Tromey <tom@tromey.com>
4831
4832 PR build/23087:
4833 * configure: Rebuild.
4834
b4f183d2
TT
48352018-08-27 Tom Tromey <tom@tromey.com>
4836
4837 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
4838 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
4839 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
4840 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
4841 (s390x_emit_stack_adjust): Add casts to unsigned char.
4842
4e2aa472
SM
48432018-08-22 Simon Marchi <simon.marchi@ericsson.com>
4844
4845 PR gdb/23374
4846 PR gdb/23375
4847 * server.h (struct client_state) <disable_randomization>:
4848 Initialize to 1.
4849
cf4088a9
SM
48502018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4851
4852 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
4853 variable.
4854 (mips_supply_ptrace_register): Likewise.
4855
a0de763e
TT
48562018-07-22 Tom Tromey <tom@tromey.com>
4857
4858 * configure: Rebuild.
4859
b0a7723d
TT
48602018-07-22 Tom Tromey <tom@tromey.com>
4861
4862 * win32-low.c (win32_create_inferior): Remove unused variables.
4863 * gdbreplay.c (remote_open): Remove unused variable.
4864 * remote-utils.c (remote_prepare): Remove unused variable.
4865 * x86-tdesc.h (X86_TDESC_H): Define.
4866 (amd64_expedite_regs): Define conditionally.
4867 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
4868 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
4869 * remote-utils.c (readchar): Remove unused variable.
4870
a780ef4f
PA
48712018-07-13 Pedro Alves <palves@redhat.com>
4872
4873 * linux-low.c (linux_kill): Change parameter to process_info
4874 pointer instead of pid. Adjust.
4875 * lynx-low.c (lynx_kill): Likewise.
4876 * nto-low.c (nto_kill): Likewise.
4877 * spu-low.c (spu_kill): Likewise.
4878 * win32-low.c (win32_kill): Likewise.
4879 * server.c (handle_v_kill, kill_inferior_callback)
4880 (detach_or_kill_for_exit): Adjust.
4881 * target.c (kill_inferior): Change parameter to process_info
4882 pointer instead of pid. Adjust.
4883 * target.h (struct target_ops) <kill>: Change parameter to
4884 process_info pointer instead of pid. Adjust all implementations
4885 and callers.
4886 (kill_inferior): Likewise.
4887
ef2ddb33
PA
48882018-07-13 Pedro Alves <palves@redhat.com>
4889
4890 * linux-low.c (linux_detach, linux_join): Change parameter to
4891 process_info pointer instead of pid. Adjust.
4892 * lynx-low.c (lynx_detach, lynx_join): Likewise.
4893 * nto-low.c (nto_detach): Likewise.
4894 * spu-low.c (spu_detach, spu_join): Likewise.
4895 * win32-low.c (win32_detach, win32_join): Likewise.
4896 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
4897 * target.h (struct target_ops) <detach, join>: Change parameter to
4898 process_info pointer instead of pid. Adjust all implementations
4899 and callers.
4900 (detach_inferior, join_inferior): Rename 'pid' parameter to
4901 'proc'.
4902
c7ab0aef
SDJ
49032018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4904 Jan Kratochvil <jan.kratochvil@redhat.com>
4905 Paul Fertser <fercerpav@gmail.com>
4906 Tsutomu Seki <sekiriki@gmail.com>
4907
4908 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
4909 (OBS): Add 'common/netstuff.o'.
4910 (GDBREPLAY_OBS): Likewise.
4911 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
4912 (remote_open): Implement support for IPv6
4913 connections.
4914 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
4915 and 'wspiapi.h'.
4916 (handle_accept_event): Accept connections from IPv6 sources.
4917 (remote_prepare): Handle IPv6-style hostnames; implement
4918 support for IPv6 connections.
4919 (remote_open): Implement support for printing connections from
4920 IPv6 sources.
4921
31445d10
PA
49222018-07-11 Pedro Alves <palves@redhat.com>
4923
4924 PR gdb/23377
4925 * mem-break.c (any_persistent_commands): Add process_info
4926 parameter and use it instead of relying on the current process.
4927 Change return type to bool.
4928 * mem-break.h (any_persistent_commands): Add process_info
4929 parameter and change return type to bool.
4930 * server.c (handle_detach): Remove require_running_or_return call.
4931 Look up the process_info for the process we're about to detach.
4932 If not found, return back error to GDB. Adjust
4933 any_persistent_commands call to pass down a process pointer.
4934
cb197132
PA
49352018-07-11 Pedro Alves <palves@redhat.com>
4936
4937 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
4938 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
4939 instead of collect_register_by_name.
4940 * regcache.c (regcache_raw_get_unsigned_by_name): New.
4941 * regcache.h (regcache_raw_get_unsigned_by_name): New.
4942
1b919490
VB
49432018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4944 Pedro Alves <palves@redhat.com>
4945
4946 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
4947
d7e15655
TT
49482018-07-03 Tom Tromey <tom@tromey.com>
4949
4950 * linux-low.c: Update.
4951 * lynx-low.c: Update.
4952 * mem-break.c: Update.
4953 * nto-low.c: Update.
4954 * remote-utils.c: Update.
4955 * server.c: Update.
4956 * spu-low.c: Update.
4957 * target.c: Update.
4958 * win32-low.c: Update.
4959
26a57c92
TT
49602018-07-03 Tom Tromey <tom@tromey.com>
4961
4962 * server.c: Update.
4963
0e998d96
TT
49642018-07-03 Tom Tromey <tom@tromey.com>
4965
4966 * linux-low.c: Update.
4967
cc6bcb54
TT
49682018-07-03 Tom Tromey <tom@tromey.com>
4969
4970 * target.c: Update.
4971
e38504b3
TT
49722018-07-03 Tom Tromey <tom@tromey.com>
4973
4974 * linux-low.c: Update.
4975 * linux-mips-low.c: Update.
4976 * lynx-low.c: Update.
4977 * nto-low.c: Update.
4978 * remote-utils.c: Update.
4979 * server.c: Update.
4980 * spu-low.c: Update.
4981 * target.c: Update.
4982 * thread-db.c: Update.
4983
e99b03dc
TT
49842018-07-03 Tom Tromey <tom@tromey.com>
4985
4986 * linux-low.c: Update.
4987 * linux-mips-low.c: Update.
4988 * lynx-low.c: Update.
4989 * mem-break.c: Update.
4990 * nto-low.c: Update.
4991 * remote-utils.c: Update.
4992 * server.c: Update.
4993 * spu-low.c: Update.
4994 * target.c: Update.
4995 * tracepoint.c: Update.
4996
f2907e49
TT
49972018-07-03 Tom Tromey <tom@tromey.com>
4998
4999 * linux-low.c: Update.
5000 * linux-ppc-low.c: Update.
5001 * linux-x86-low.c: Update.
5002 * proc-service.c: Update.
5003 * server.c: Update.
5004 * spu-low.c: Update.
5005 * thread-db.c: Update.
5006 * win32-low.c: Update.
5007
fd79271b
TT
50082018-07-03 Tom Tromey <tom@tromey.com>
5009
5010 * linux-low.c: Update.
5011 * lynx-low.c: Update.
5012 * nto-low.c: Update.
5013 * remote-utils.c: Update.
5014 * spu-low.c: Update.
5015 * thread-db.c: Update.
5016 * win32-low.c: Update.
5017
c0867626
SDJ
50182018-06-29 Joel Brobecker <brobecker@adacore.com>
5019
5020 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5021 parameter in call to 'amd64_create_target_description'.
5022
2512d7ef
JK
50232018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5024
5025 * x86-tdesc.h: Remove executable permission flag.
5026
d0ac1c44
SM
50272018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5028
5029 * configure.ac: Remove AC_PREREQ, add missing quoting.
5030 * configure: Re-generate.
5031 * config.in: Re-generate.
5032 * aclocal.m4: Re-generate.
5033
c4eb05ff
SM
50342018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5035
5036 * tracepoint.h (current_traceframe): Remove declaration.
5037
02895270
AH
50382018-06-18 Alan Hayward <alan.hayward@arm.com>
5039
5040 * linux-aarch64-low.c (is_sve_tdesc): New function.
5041 (aarch64_sve_regs_copy_to_regcache): Likewise.
5042 (aarch64_sve_regs_copy_from_regcache): Likewise.
5043 (aarch64_regs_info): Add SVE checks.
5044 (initialize_low_arch): Initialize SVE.
5045
e9902bfc
AH
50462018-06-18 Alan Hayward <alan.hayward@arm.com>
5047
5048 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5049
fefa175e
AH
50502018-06-11 Alan Hayward <alan.hayward@arm.com>
5051
5052 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5053 (initialize_low_tracepoint): Likewise
5054 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5055 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5056 param.
5057 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5058 checks.
5059 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5060
b91ad3ff
AH
50612018-06-11 Alan Hayward <alan.hayward@arm.com>
5062
5063 * server.h (PBUFSIZ): Increase size
5064
f868386e
AH
50652018-06-11 Alan Hayward <alan.hayward@arm.com>
5066
5067 * regcache.c (regcache::raw_compare): New function.
5068 * regcache.h (regcache::raw_compare): New declaration.
5069
9c861883
AH
50702018-06-11 Alan Hayward <alan.hayward@arm.com>
5071
5072 * regcache.c (new_register_cache): Use new.
5073 (free_register_cache): Use delete.
5074 (register_data): Use const.
5075 (supply_register): Move body inside regcache.
5076 (regcache::raw_supply): New override function.
5077 (collect_register): Move body inside regcache.
5078 (regcache::raw_collect): New override function.
5079 (regcache::get_register_status): New override function.
5080 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5081
40591844
TT
50822018-06-09 Tom Tromey <tom@tromey.com>
5083
5084 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5085 declare queue.
5086 (event_queue): Use std::queue.
5087 (gdb_event_xfree): Remove.
5088 (initialize_event_loop, process_event, wait_for_event): Update.
5089
6341380d
SC
50902018-06-08 Stan Cox <scox@redhat.com>
5091
5092 * win32-low.c (win32_create_inferior): last_ptid and last_status
5093 moved to client_state.
5094
03349c93
PA
50952018-06-08 Pedro Alves <palves@redhat.com>
5096
5097 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5098 common/common-exceptions.o, common/common-utils.o,
5099 common/errors.o, common/print-utils.o and utils.o.
5100 * gdbreplay.c: Include "common-defs.h" instead of the two
5101 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5102 string.h or alloca.h.
5103 (perror_with_name): Delete.
5104 (remote_open): Use xstrdup instead of strdup.
5105 (main): Rename to ...
5106 (captured_main): ... this.
5107 (main): New.
5108
8dcc53b3
TT
51092018-06-08 Tom Tromey <tom@tromey.com>
5110
5111 * linux-low.c (linux_low_read_btrace): Update.
5112
c12a5089
SC
51132018-06-04 Stan Cox <scox@redhat.com>
5114
5115 * server.h (struct client_state): New.
5116 * server.c (cont_thread, general_thread, multi_process)
5117 (report_fork_events, report_vfork_events, report_exec_events)
5118 (report_thread_events, swbreak_feature, hwbreak_feature)
5119 (vCont_supported, disable_randomization, pass_signals)
5120 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5121 Moved to client_state.
5122 * remote-utils.c (remote_debug, noack_mode)
5123 (transport_is_reliable): Moved to client_state.
5124 * tracepoint.c (current_traceframe): Moved to client_state.
5125
5126 Update all callers.
5127 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5128 linux-low.c, remote-utils.h, target.c: Use client_state.
5129
122394f1
AH
51302018-05-31 Alan Hayward <alan.hayward@arm.com>
5131
5132 * configure.srv: Add new c/h file.
5133
95228a0d
AH
51342018-05-31 Alan Hayward <alan.hayward@arm.com>
5135
5136 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5137 null VQ.
5138
d8dab6c3
MR
51392018-05-25 Maciej W. Rozycki <macro@mips.com>
5140
5141 * gdb.arch/mips-fpregset-core.exp: New test.
5142 * gdb.arch/mips-fpregset-core.c: New test source.
5143
81e25b7c
EK
51442018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5145
5146 PR server/23198
5147 * hostio.c (require_int): Do not report overflow for integers
5148 between 0xfffffff and 0x7fffffff.
5149
7e947ad3
MR
51502018-05-22 Maciej W. Rozycki <macro@mips.com>
5151
5152 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5153 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5154 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5155 functions.
5156 (the_low_target): Wire them.
5157
1d75a658
PFC
51582018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5159
5160 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5161 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5162 mode. Call collect_register_by_name with vscr using
5163 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5164 (ppc_store_vrregset): Add and set vscr_offset variable as in
5165 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5166 vscr_offset.
5167
d078308a
PFC
51682018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5169
5170 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5171 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5172 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5173
7273b5fc
PFC
51742018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5175
5176 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5177 (ppc_store_vsxregset): Likewise.
5178 (ppc_fill_vrregset): Likewise.
5179 (ppc_store_vrregset): Likewise.
5180 (ppc_fill_evrregset): Likewise.
5181 (ppc_store_evrregset): Likewise.
5182 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5183 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5184 needed.
5185
2e077f5e
PFC
51862018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5187
5188 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5189 wordsize of the inferior. Call ppc_linux_target_wordsize.
5190
bd64614e
PFC
51912018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5192
5193 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5194 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5195 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5196 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5197 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5198 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5199 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5200 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5201 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5202 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5203 (tdesc_powerpc_e500l): Remove.
5204 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5205 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5206 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5207 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5208 linux-ppc-tdesc.h.
5209 (ppc_arch_setup): Remove target description matching code. Fill a
5210 ppc_linux_features struct and call ppc_linux_match_description
5211 with it.
5212
75d74cca
MR
52132018-05-22 Maciej W. Rozycki <macro@mips.com>
5214
5215 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5216 width of the requested register exceeds the width of the
5217 `ptrace' data type.
5218 (mips_cannot_store_register): Likewise.
5219
e4439e43
MR
52202018-05-21 Maciej W. Rozycki <macro@mips.com>
5221
5222 * linux-mips-low.c (mips_fetch_register): New function. Update
5223 preceding comment.
5224 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5225 (the_low_target): Wire `mips_fetch_register'.
5226
55271bf9
JB
52272018-05-10 Joel Brobecker <brobecker@adacore.com>
5228
5229 * lynx-i386-low.c (LYNXOS_178): New macro.
5230 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5231 the layout on LynxOS-178.
5232 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5233 handle floating point registers that are not supported by
5234 LynxOS-178.
5235
1a34f210
TT
52362018-05-10 Tom Tromey <tom@tromey.com>
5237
5238 * configure: Rebuild.
5239
190852c8
JB
52402018-05-10 Joel Brobecker <brobecker@adacore.com>
5241
5242 PR server/23158:
5243 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5244 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5245 Use it to set the expedite_regs field in the given tdesc.
5246 * x86-tdesc.h: New file.
5247 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5248 Adjust following the addition of the new expedite_regs parameter
5249 to init_target_desc.
5250 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5251 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5252 (i386_linux_read_description, amd64_linux_read_description):
5253 Adjust following the addition of the new expedite_regs parameter
5254 to init_target_desc.
5255 * lynx-i386-low.c: #include "x86-tdesc.h".
5256 (lynx_i386_arch_setup): Adjust following the addition of the new
5257 expedite_regs parameter to init_target_desc.
5258 * nto-x86-low.c: #include "x86-tdesc.h".
5259 (nto_x86_arch_setup): Adjust following the addition of the new
5260 expedite_regs parameter to init_target_desc.
5261 * win32-i386-low.c: #include "x86-tdesc.h".
5262 (i386_arch_setup): Adjust following the addition of the new
5263 expedite_regs parameter to init_target_desc.
5264
7dbac825
JB
52652018-05-10 Joel Brobecker <brobecker@adacore.com>
5266
5267 PR server/23158:
5268 * win32-low.c (win32_create_inferior): Add call to my_wait
5269 setting last_status global.
5270
906994d9
JB
52712018-05-10 Joel Brobecker <brobecker@adacore.com>
5272
5273 PR server/23158:
5274 * win32-low.c (create_process): Only call gdb_tilde_expand if
5275 inferior_cwd is not NULL.
5276
8ee22052
AB
52772018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5278
5279 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5280 registers to the cache if their values have changed.
5281 (i387_xsave_to_cache): Provide default values for x87 control
5282 registers when these features are available, but disabled.
5283 * regcache.c (supply_register_by_name_zeroed): New function.
5284 * regcache.h (supply_register_by_name_zeroed): Declare new
5285 function.
5286
aff689d3
TT
52872018-05-07 Tom Tromey <tom@tromey.com>
5288
5289 * configure: Rebuild.
5290
85e26832
TT
52912018-05-04 Tom Tromey <tom@tromey.com>
5292
5293 * configure: Rebuild.
5294
a3b60e45
JK
52952018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5296 Pedro Alves <palves@redhat.com>
5297
5298 * linux-aarch64-low.c (aarch64_stopped_data_address):
5299 Likewise.
5300
632e107b
TT
53012018-04-27 Tom Tromey <tom@tromey.com>
5302
5303 * configure: Rebuild.
5304
458412c3
TT
53052018-04-23 Tom Tromey <tom@tromey.com>
5306
5307 * configure: Rebuild.
5308
f31c089e
SM
53092018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5310
5311 * Makefile.in (depcomp): Add "..".
5312 (all_deps_files): New and use it.
5313
b319b098
AH
53142018-04-18 Alan Hayward <alan.hayward@arm.com>
5315
5316 * configure.srv (aarch64*-*-linux*): Don't include xml.
5317 (i[34567]86-*-cygwin*): Likewise.
5318 (i[34567]86-*-linux*): Likewise.
5319 (i[34567]86-*-lynxos*): Likewise.
5320 (i[34567]86-*-mingw32ce*): Likewise.
5321 (i[34567]86-*-mingw*): Likewise.
5322 (i[34567]86-*-nto*): Likewise.
5323 (tic6x-*-uclinux): Likewise.
5324 (x86_64-*-linux*): Likewise.
5325 (x86_64-*-mingw*): Likewise.
5326 (x86_64-*-cygwin*): Likewise.
5327
3b74854b
AH
53282018-04-18 Alan Hayward <alan.hayward@arm.com>
5329
5330 * tdesc.c: Remove xml parameter.
5331
e98577a9
AH
53322018-04-18 Alan Hayward <alan.hayward@arm.com>
5333
5334 * server.c (get_features_xml): Remove cast.
5335 * tdesc.c (void target_desc::accept): Fill in function.
5336 (tdesc_get_features_xml): Remove old xml creation.
5337 (print_xml_feature::visit_pre): Add xml vistor.
5338 * tdesc.h (struct target_desc): Make xmltarget mutable.
5339 (tdesc_get_features_xml): Remove declaration.
5340
d278f585
AH
53412018-04-18 Alan Hayward <alan.hayward@arm.com>
5342
5343 * tdesc.c (tdesc_architecture_name): Add new function.
5344 (tdesc_osabi_name): Likewise.
5345 (tdesc_get_features_xml): Use new functions.
5346
eee8a18d
AH
53472018-04-18 Alan Hayward <alan.hayward@arm.com>
5348
5349 * tdesc.c (tdesc_create_flags): Remove.
5350 (tdesc_add_flag): Likewise.
5351 (tdesc_named_type): Likewise.
5352 (tdesc_create_union): Likewise.
5353 (tdesc_create_struct): Likewise.
5354 (tdesc_create_vector): Likewise.
5355 (tdesc_add_bitfield): Likewise.
5356 (tdesc_add_field): Likewise.
5357 (tdesc_set_struct_size): Likewise.
5358
82ec9bc7
AH
53592018-04-18 Alan Hayward <alan.hayward@arm.com>
5360
5361 * tdesc.c (~target_desc): Remove implictly deleted items.
5362 (init_target_desc): Iterate all features.
5363 (tdesc_get_features_xml): Use vector.
5364 (tdesc_create_feature): Create feature.
5365 * tdesc.h (tdesc_feature) Remove
5366 (target_desc): Add features.
5367
ea3e7d71
AH
53682018-04-18 Alan Hayward <alan.hayward@arm.com>
5369
5370 * Makefile.in: Add common/tdesc.c
5371 * tdesc.c (init_target_desc): init all reg_defs from register
5372 vector.
5373 (tdesc_create_reg): Create tdesc_reg.
5374 * tdesc.h (tdesc_feature): Add register vector.
5375
17d08cd4
SM
53762018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5377
5378 * tdesc.h (struct target_desc) <features>: Change type to
5379 std::vector<std::string>.
5380 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5381 changes.
5382 (tdesc_get_features_xml): Likewise.
5383 (tdesc_create_feature): Likewise.
5384
5cd3e386
AH
53852018-03-26 Alan Hayward <alan.hayward@arm.com>
5386
5387 * regcache.c (find_register_by_number): Return a ref.
5388 (find_regno): Use references.
5389 (register_size): Likewise.
5390 (register_data): Likewise.
5391 * tdesc.c (target_desc::~target_desc): Remove free calls.
5392 (target_desc::operator==): Use std::vector compare.
5393 (init_target_desc): Use reference.
5394 (tdesc_create_reg): Use reg constructors.
5395 * tdesc.h (struct target_desc): Replace pointer with object.
5396
dff7492c
AH
53972018-03-23 Alan Hayward <alan.hayward@arm.com>
5398
5399 * regcache.c (find_register_by_number): Make static.
5400 (find_regno): Use find_register_by_number
5401 * regcache.h (struct reg): Remove declaration.
5402
d80e5242
AH
54032018-03-23 Alan Hayward <alan.hayward@arm.com>
5404
5405 * tdesc.c (target_desc::~target_desc): Move to here.
5406 (target_desc::operator==): Likewise.
5407 * tdesc.h (target_desc::~target_desc): Move from here.
5408 (target_desc::operator==): Likewise.
5409
f69c5afb
AA
54102018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5411
5412 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5413
ce29f843
AA
54142018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5415
5416 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5417 S390_TDESC_GS.
5418 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5419 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5420 and init_registers_s390_gs_linux64.
5421
c49bd90b
AA
54222018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5423
5424 * linux-s390-low.c (s390_fill_gs): Remove function.
5425 (s390_fill_gsbc): Remove function.
5426 (s390_regsets): Set fill functions for the guarded storage regsets
5427 to NULL.
5428
7edb9bd3
AA
54292018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5430
5431 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5432 the word size. Add comment.
5433 (s390_get_wordsize): New function.
5434 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5435 pswm with it. Instead, use s390_get_wordsize to determine the
5436 word size first and derive the correct tdesc from that directly.
5437
39be3c7e
SM
54382018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5439
5440 * Makefile.in: Include silent-rules.mk.
5441 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5442 (COMPILE): Add ECHO_CXX.
5443 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5444 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5445 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5446 (version-generated.c): Add ECHO_GEN.
5447 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5448 (IPAGENT_COMPILE): Add ECHO_CXX.
5449 (%-generated.c): Add ECHO_REGDAT.
5450
3ae9ce5d
TT
54512018-03-14 Tom Tromey <tom@tromey.com>
5452
5453 PR cli/14977:
5454 * ax.c (ax_printf): Special case for NULL.
5455
e6a58aa8
SM
54562018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5457
5458 * linux-low.c (linux_qxfer_libraries_svr4): Use
5459 xml_escape_text_append.
5460
f6e8a41e
SM
54612018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5462
5463 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5464
b9671caf
SM
54652018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5466
5467 * server.c (handle_general_set): Remove unnecessary xstrdup.
5468
e80aaf61
SM
54692018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5470
5471 * server.c (parse_debug_format_options): Adjust to
5472 delim_string_to_char_ptr_vec changes.
5473 * thread-db.c (thread_db_load_search): Adjust to
5474 dirnames_to_char_ptr_vec changes.
5475
b1223e78
MM
54762018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5477
5478 * target.h (target_enable_btrace, target_disable_btrace)
5479 (target_read_btrace, target_read_btrace_conf): Turn macro into
5480 inline function. Throw error if target method is not defined.
5481 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5482 check for btrace target method. Be prepared to handle exceptions
5483 from btrace target methods.
5484
81561546
SDJ
54852018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5486
5487 * server.c (captured_main): Change order of error message printed
5488 when the current working directory cannot be found.
5489
25e3c82c
SDJ
54902018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5491
5492 * server.c: Include "filenames.h" and "pathstuff.h".
5493 (program_name): Delete variable.
5494 (program_path): New anonymous class.
5495 (get_exec_wrapper): Use "program_path" instead of
5496 "program_name".
5497 (handle_v_run): Likewise.
5498 (captured_main): Likewise.
5499 (process_serial_event): Likewise.
5500
b4987c95
SDJ
55012018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5502
5503 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5504 (OBJS): Add "pathstuff.o".
5505 * server.c (current_directory): New global variable.
5506 (captured_main): Initialize "current_directory".
5507
f46cd62a
AH
55082018-02-26 Alan Hayward <alan.hayward@arm.com>
5509
5510 * tdesc.c: Use common/tdesc.h.
5511 * tdesc.h: Likewise.
5512
a543c5ca
AH
55132018-02-20 Alan Hayward <alan.hayward@arm.com>
5514 Simon Marchi <simon.marchi@ericsson.com>
5515
5516 * Makefile.in: Switch order of make rules.
5517
b5884fa7
AH
55182018-02-19 Alan Hayward <alan.hayward@arm.com>
5519
5520 * Makefile.in: Add common directory in build.
5521 * configure.ac: Add common reference.
5522 * configure: Regenerate.
5523
de6242d3
MM
55242018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5525
5526 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5527 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5528 * spu-low.c (spu_target_ops): Likewise.
5529 * win32-low.c (win32_target_ops): Likewise.
5530 * server.c (supported_btrace_packets): Report packets unconditionally.
5531 * target.h (target_ops) <supports_btrace>: Remove.
5532 (target_supports_btrace): Remove.
5533
9ee23a85
MM
55342018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5535
5536 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5537 (handle_btrace_disable): Change return type to void. Use exceptions
5538 to report errors.
5539 (handle_btrace_general_set): Catch exception and copy message to
5540 return message.
5541
8ce47547
TT
55422018-02-08 Tom Tromey <tom@tromey.com>
5543
5544 * linux-low.c (install_software_single_step_breakpoints): Use
5545 make_scoped_restore.
5546 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5547 (do_restore_current_thread_cleanup): Remove.
5548 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5549 declare.
5550
45dd3607
TT
55512018-02-08 Tom Tromey <tom@tromey.com>
5552
5553 * mem-break.c (set_raw_breakpoint_at): Use
5554 gdb::unique_xmalloc_ptr.
5555
e671cd59
PA
55562018-01-30 Pedro Alves <palves@redhat.com>
5557
5558 PR gdb/13211
5559 * target.c (target_terminal::terminal_state): Rename to ...
5560 (target_terminal::m_terminal_state): ... this.
5561
a0aad537
JC
55622018-01-19 James Clarke <jrtc27@jrtc27.com>
5563
5564 * linux-low.c (handle_extended_wait): Surround call to
5565 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5566
4d9b86e1
SM
55672018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5568
5569 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5570 linux_ptrace_attach_fail_reason_string now returning an
5571 std::string.
5572 (linux_attach): Likewise.
5573 * thread-db.c (attach_thread): Likewise.
5574
f517c180
EA
55752018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5576
5577 PR gdb/21559
5578 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5579 checking for fs_base/gs_base fields in struct user_regs_struct.
5580 * configure: Regenerate.
5581
9a70f35c
YQ
55822018-01-16 Yao Qi <yao.qi@linaro.org>
5583
5584 PR gdb/18749
5585 * linux-low.c (fetch_register): Call supply_register instead of
5586 error.
5587
605fd3c6
YQ
55882018-01-08 Yao Qi <yao.qi@linaro.org>
5589 Simon Marchi <simon.marchi@ericsson.com>
5590
5591 * Makefile.in (OBS): Remove selftest.o.
5592 * configure.ac: Set srv_selftest_objs if $development is true.
5593 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5594 * configure: Re-generated.
5595 * server.c (captured_main): Wrap variable selftest_filter with
5596 GDB_SELF_TEST.
5597
2cc05030
SM
55982018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5599
5600 * server.c (parse_debug_format_options): Return std::string.
5601 (handle_monitor_command, captured_main): Adjust.
5602
e379cee6
PA
56032018-01-05 Pedro Alves <palves@redhat.com>
5604
5605 PR gdb/18653
5606 * server.c (captured_main): Pass quiet=false to
5607 save_original_signals_state.
5608
82e1e79a
JB
56092018-01-01 Joel Brobecker <brobecker@adacore.com>
5610
5611 * gdbreplay.c (gdbreplay_version): Update copyright year in
5612 version message.
5613 * server.c (gdbserver_version): Likewise.
5614
8e481c3b
TT
56152017-12-08 Tom Tromey <tom@tromey.com>
5616
5617 * ax.c (ax_printf): Update.
5618
a8806230
YQ
56192017-12-07 Yao Qi <yao.qi@linaro.org>
5620
5621 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5622 aarch64_linux_read_description.
5623 * linux-amd64-ipa.c (idx2mask): New array.
5624 (get_ipa_tdesc): Move idx2mask out.
5625 (initialize_low_tracepoint): Initialize target descriptions.
5626 * linux-i386-ipa.c (idx2mask): New array.
5627 (get_ipa_tdesc): Move idx2mask out.
5628 (initialize_low_tracepoint): Initialize target descriptions.
5629
d4a0e8b5
SM
56302017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5631
5632 * tdesc.c (struct tdesc_type): Change return type.
5633 (tdesc_add_flag): Change parameter type.
5634 (tdesc_add_bitfield): Likewise.
5635 (tdesc_add_field): Likewise.
5636 (tdesc_set_struct_size): Likewise.
5637
798a7429
SM
56382017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5639
5640 * regcache.c (registers_to_string): Remove unused variable.
5641
c0e15c9b
SM
56422017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5643
5644 * inferiors.c (for_each_inferior_with_data): Remove.
5645 * inferiors.h (for_each_inferior_with_data): Remove.
5646 * server.c (handle_qxfer_threads_worker): Change parameter type.
5647 (handle_qxfer_threads_proper): Use for_each_thread.
5648
f0045347
SM
56492017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5650
5651 * inferiors.c (for_each_inferior): Remove.
5652 (clear_inferiors): Use for_each_thread.
5653 * inferiors.h (for_each_inferior): Remove.
5654 * linux-low.c (linux_wait_for_event_filtered): Use
5655 for_each_thread.
5656 (linux_stabilize_threads): Likewise.
5657 * regcache.c (regcache_release): Likewise.
5658 * server.c (gdb_wants_all_threads_stopped): Likewise.
5659 (clear_pending_status_callback): Remove.
5660 (handle_status): Use for_each_thread.
5661 (captured_main): Likewise.
5662 * win32-low.c (child_init_thread_list): Likewise.
5663 (win32_clear_inferiors): Likewise.
5664 (fake_breakpoint_event): Likewise.
5665
9521758b
SM
56662017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5667
5668 * inferiors.h (find_inferior): Remove.
5669 * inferiors.c (find_inferior): Remove.
5670
8f86d7aa
SM
56712017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5672
5673 * linux-low.c (resume_status_pending_p): Update comment.
5674 (need_step_over_p): Update comment.
5675
e2b44075
SM
56762017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5677
5678 * linux-low.c (proceed_one_lwp): Return void, change parameter
5679 type.
5680 (unsuspend_and_proceed_one_lwp): Likewise.
5681 (proceed_all_lwps): Use for_each_thread.
5682 (unstop_all_lwps): Likewise.
5683
c80825ff
SM
56842017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5685
5686 * linux-low.c (linux_resume_one_thread): Return void, take
5687 parameter directly.
5688 (linux_resume): Use for_each_thread.
5689
df3e4dbe
SM
56902017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5691
5692 * linux-low.c (send_sigstop_callback): Return void, change
5693 parameter type. Rename to...
5694 (send_sigstop): ... this.
5695 (suspend_and_send_sigstop_callback): Return void, change parameter
5696 type. Rename to...
5697 (suspend_and_send_sigstop): ... this.
5698 (stop_all_lwps): Use for_each_thread.
5699
5a6b0a41
SM
57002017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5701
5702 * linux-low.c (lwp_running): Return bool, remove unused
5703 argument.
5704 (linux_stabilize_threads): Use find_thread.
5705
39a64da5
SM
57062017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5707
5708 * linux-low.c (select_singlestep_lwp_callback): Remove.
5709 (count_events_callback): Remove.
5710 (select_event_lwp_callback): Remove.
5711 (select_event_lwp): Use find_thread/for_each_thread.
5712
a1385b7b
SM
57132017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5714
5715 * linux-low.c (not_stopped_callback): Return bool, take filter
5716 argument directly.
5717 (linux_wait_for_event_filtered): Use find_thread.
5718 (linux_wait_1): Likewise.
5719
454296a2
SM
57202017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5721
5722 * linux-low.c (same_lwp): Remove.
5723 (find_lwp_pid): Use find_thread.
5724
6b2a85da
SM
57252017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5726
5727 * linux-low.c (delete_lwp_callback): Remove.
5728 (linux_mourn): Use for_each_thread.
5729
798a38e8
SM
57302017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5731
5732 * linux-low.c (linux_detach_lwp_callback): Return void, remove
5733 args parameter, don't check for pid.
5734 (linux_detach): Use for_each_thread.
5735
e4eb0dec
SM
57362017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5737
5738 * linux-low.c (struct counter): Remove.
5739 (second_thread_of_pid_p): Remove.
5740 (last_thread_of_process_p): Use find_thread.
5741
83e1b6c1
SM
57422017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5743
5744 * inferiors.c (find_inferior_in_random): Remove.
5745 * inferiors.h (find_inferior_in_random): Remove.
5746 * linux-low.c (status_pending_p_callback): Return bool, accept
5747 parameter ptid directly.
5748 (linux_wait_for_event_filtered): Use find_thread_in_random.
5749 (linux_wait_1): Likewise.
5750
8dc7b443
SM
57512017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5752
5753 * inferiors.c (find_inferior_id): Remove.
5754 (find_thread_ptid): Move implemention from find_inferior_id to
5755 here.
5756 * inferiors.h (find_inferior_id): Remove.
5757 * server.c (handle_status): Use find_thread_ptid.
5758 (process_serial_event): Likewise.
5759 * thread-db.c (find_one_thread): Likewise.
5760 (thread_db_thread_handle): Likewise.
5761 * win32-low.c (thread_rec): Likewise.
5762 (child_delete_thread): Likewise.
5763 (win32_thread_alive): Likewise.
5764 (get_child_debug_event): Likewise.
5765
da25033c
SM
57662017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5767
5768 * linux-mips-low.c (update_watch_registers_callback): Return
5769 void, remove pid_p parameter, don't check for pid.
5770 (mips_insert_point, mips_remove_point): Use for_each_thread.
5771
c91bb56b
SM
57722017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5773
5774 * lynx.low (lynx_delete_thread_callback): Remove.
5775 (lynx_mourn): Use for_each_thread.
5776
634a3254
SM
57772017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5778
5779 * regcache.c (regcache_invalidate_one): Remove.
5780 (regcache_invalidate_pid): use for_each_thread.
5781
41272101
TT
57822017-11-26 Tom Tromey <tom@tromey.com>
5783
5784 * linux-low.c (linux_create_inferior): Update.
5785
f5291a6f
UW
57862017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
5787
5788 * spu-low.c (spu_create_inferior): Fix typo in argument name.
5789
6654d750
AH
57902017-11-24 Alan Hayward <alan.hayward@arm.com>
5791
5792 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
5793 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5794 * linux-aarch64-tdesc-selftest.c: New file.
5795 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5796
57972017-11-24 Alan Hayward <alan.hayward@arm.com>
5798
5799 * configure.srv: Add new file.
5800 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5801 * linux-aarch64-tdesc-selftest.c: New file.
5802 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5803
49bdb7ee
AH
58042017-11-24 Alan Hayward <alan.hayward@arm.com>
5805
5806 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
5807 * linux-aarch64-low.c (initialize_low_arch): Remove init.
5808 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
5809
d6d7ce56
AH
58102017-11-24 Alan Hayward <alan.hayward@arm.com>
5811
5812 * configure.srv: Add new files.
5813 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
5814 aarch64_linux_read_description.
5815 * linux-aarch64-low.c (aarch64_linux_read_description):
5816 Merge with aarch64_arch_setup.
5817 (aarch64_arch_setup): Call aarch64_linux_read_description.
5818 * linux-aarch64-tdesc.c: New file.
5819 * linux-aarch64-tdesc.h: New file.
5820
506fe5f4
YQ
58212017-11-24 Yao Qi <yao.qi@linaro.org>
5822
5823 * configure.srv: Set $srv_regobj for tic6x-linux.
5824 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
5825 (tic6x_read_description): Move some code to tic6x_arch_setup.
5826 (tic6x_tdesc_test): New function.
5827 (initialize_low_arch): Call selftests::register_test.
5828
29f9a567
YQ
58292017-11-22 Yao Qi <yao.qi@linaro.org>
5830
5831 * remote-utils.c (prepare_resume_reply): Use memcpy.
5832
578290ec
SM
58332017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5834
5835 * linux-low.c (kill_one_lwp_callback): Return void, take
5836 argument directly, don't filter on pid.
5837 (linux_kill): Use for_each_thread.
5838
eca55aec
SM
58392017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5840
5841 * linux-low.c (need_step_over_p): Return bool, remove dummy
5842 argument.
5843 (linux_resume, proceed_all_lwps): Use find_thread.
5844
25c28b4d
SM
58452017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5846
5847 * linux-low.c (resume_status_pending_p): Return bool, remove
5848 flag_p argument.
5849 (linux_resume): Use find_thread.
5850
5fdda392
SM
58512017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5852
5853 * linux-low.c (struct thread_resume_array): Remove.
5854 (linux_set_resume_request): Return void, take arguments
5855 directly.
5856 (linux_resume): Use for_each_thread.
5857
fcb056a5
SM
58582017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5859
5860 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
5861 return bool, remove data argument.
5862 (linux_stabilize_threads): Use find_thread.
5863
139720c5
SM
58642017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5865
5866 * linux-low.c (unsuspend_one_lwp): Remove.
5867 (unsuspend_all_lwps): Use for_each_thread, inline code from
5868 unsuspend_one_lwp.
5869
6d1e5673
SM
58702017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5871
5872 * gdbthread.h (find_thread): Add overload with ptid_t filter.
5873 * linux-low.c (struct iterate_over_lwps_args): Remove.
5874 (iterate_over_lwps_filter): Remove.
5875 (iterate_over_lwps): Use find_thread.
5876
bbf550d5
SM
58772017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5878
5879 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
5880 (linux_handle_new_gdb_connection): Use for_each_thread, inline
5881 code from reset_lwp_ptrace_options_callback.
5882
00192f77
SM
58832017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5884
5885 * linux-arm-low.c (struct update_registers_data): Remove.
5886 (update_registers_callback): Return void, take arguments
5887 directly, don't check thread's pid.
5888 (arm_insert_point, arm_remove_point): Use for_each_thread.
5889
2bee2b6c
SM
58902017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5891
5892 * win32-low.c (continue_one_thread): Return void, take argument
5893 directly.
5894 (child_continue): Use for_each_thread.
5895
0b360f19
SM
58962017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5897
5898 * win32-i386-low.c (update_debug_registers_callback): Rename
5899 to ...
5900 (update_debug_registers): ... this, return void, remove pid_p arg.
5901 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
5902
f27866ba
SM
59032017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5904
5905 * inferiors.h (struct process_info): Add constructor, initialize
5906 fields..
5907 <syscalls_to_catch>: Change type to std::vector<int>.
5908 * inferiors.c (add_process): Allocate process_info with new.
5909 (remove_process): Free process_info with delete.
5910 * linux-low.c (handle_extended_wait): Adjust.
5911 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
5912 * server.c (handle_general_set): Adjust.
5913
e849ea89
PA
59142017-11-16 Pedro Alves <palves@redhat.com>
5915
5916 * remote-utils.c (remote_close): Block SIGIO signals instead of
5917 uninstalling the SIGIO handler.
5918
1d0aa65c
AH
59192017-11-16 Alan Hayward <alan.hayward@arm.com>
5920
5921 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
5922
3491a34c
YQ
59232017-11-16 Yao Qi <yao.qi@linaro.org>
5924
5925 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
5926 (tic6x_store_gregset): Likewise.
5927 (tic6x_usrregs_info): Move it up.
5928
a602f924
AH
59292017-11-15 Alan Hayward <alan.hayward@arm.com>
5930
5931 * Makefile.in: Update arch rules.
5932 * configure.srv: Explicitly mark arch/ files.
5933
5616b6c3
AS
59342017-11-13 Andreas Schwab <schwab@suse.de>
5935
5936 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
5937 function.
5938 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5939
d1928160
PA
59402017-11-06 Pedro Alves <palves@redhat.com>
5941
5942 * config.in, configure: Regenerate.
5943
bac608e7
SM
59442017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5945
5946 * target.c (struct thread_search): Remove.
5947 (thread_search_callback): Remove.
5948 (prepare_to_access_memory): Use for_each_thread instead of
5949 find_inferior. Inline code from thread_search_callback.
5950
eaddb425
SM
59512017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5952
5953 * server.c (struct visit_actioned_threads_data): Remove.
5954 (visit_actioned_threads): Change prototype to take arguments
5955 directly.
5956 (resume): Use find_thread instead of find_inferior.
5957
99078d34
SM
59582017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5959
5960 * server.c (queue_stop_reply_callback): Change prototype, return
5961 void.
5962 (find_status_pending_thread_callback): Remove.
5963 (handle_status): Replace find_inferior with find_thread and
5964 for_each_thread.
5965
cc628f3d
AH
59662017-10-25 Alan Hayward <alan.hayward@arm.com>
5967
5968 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
5969 with REGNO.
5970 (aarch64_store_gregset): Likewise.
5971 (aarch64_fill_fpregset): Likewise.
5972 (aarch64_store_fpregset): Likewise.
5973
4d3bb80e
SM
59742017-10-21 Simon Marchi <simon.marchi@ericsson.com>
5975
5976 * gdbthread.h (find_thread, for_each_thread): New functions.
5977 * inferiors.c (thread_of_pid): Remove.
5978 (find_any_thread_of_pid): Use find_thread.
5979 * linux-low.c (num_lwps): Use for_each_thread.
5980
7a7cdfa0
YQ
59812017-10-17 Yao Qi <yao.qi@linaro.org>
5982
5983 * Makefile.in: Remove one rule.
5984 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
5985
e675d170
YQ
59862017-10-17 Yao Qi <yao.qi@linaro.org>
5987
5988 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
5989 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
5990
7eb4e0f9
YQ
59912017-10-17 Yao Qi <yao.qi@linaro.org>
5992
5993 * configure.srv: Rename arm.o with arch/arm.o.
5994
60d6cfc9
YQ
59952017-10-17 Yao Qi <yao.qi@linaro.org>
5996
5997 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
5998 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
5999 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6000 (arch-i386.o, arch-amd64.o): Remove rules.
6001 (arch/%.o): New rule.
6002 Update POSTCOMPILE and COMPILE.pre.
6003 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6004 * configure: Re-generated.
6005 * configure.srv: Replace arch-i386.o with arch/i386.o.
6006 Replace arch-amd64.o with arch/amd64.o.
6007
5bfda255
YQ
60082017-10-16 Yao Qi <yao.qi@linaro.org>
6009
6010 * configure: Regenerated.
6011
9c80ecd6
SM
60122017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6013
6014 * inferiors.h: (struct inferior_list): Remove.
6015 (struct inferior_list_entry); Remove.
6016 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6017 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6018 get_first_inferior): Remove.
6019 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6020 find_inferior_id, find_inferior_in_random): Change signature.
6021 * inferiors.c (all_threads): Change type to
6022 std::list<thread_info *>.
6023 (get_thread): Remove macro.
6024 (find_inferior, find_inferior_id): Change signature, implement
6025 using find_thread.
6026 (find_inferior_in_random): Change signature, implement using
6027 find_thread_in_random.
6028 (for_each_inferior, for_each_inferior_with_data): Change
6029 signature, implement using for_each_thread.
6030 (add_inferior_to_list, remove_inferior): Remove.
6031 (add_thread, get_first_thread, thread_of_pid,
6032 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6033 (get_first_inferior, one_inferior_p, clear_inferior_list):
6034 Remove.
6035 (clear_inferiors, get_thread_process): Update.
6036 * gdbthread.h: Include <list>.
6037 (struct thread_info) <entry>: Remove field.
6038 <id>: New field.
6039 (all_threads): Change type to std::list<thread_info *>.
6040 (get_first_inferior): Add doc.
6041 (find_thread, for_each_thread, find_thread_in_random): New
6042 functions.
6043 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6044 * linux-arm-low.c (update_registers_callback): Update.
6045 * linux-low.c (second_thread_of_pid_p): Update.
6046 (kill_one_lwp_callback, linux_detach_lwp_callback,
6047 delete_lwp_callback, status_pending_p_callback, same_lwp,
6048 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6049 iterate_over_lwps, not_stopped_callback,
6050 resume_stopped_resumed_lwps, count_events_callback,
6051 select_singlestep_lwp_callback, select_event_lwp_callback,
6052 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6053 suspend_and_send_sigstop_callback, wait_for_sigstop,
6054 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6055 lwp_running, linux_set_resume_request, resume_status_pending_p,
6056 need_step_over_p, start_step_over, linux_resume_one_thread,
6057 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6058 reset_lwp_ptrace_options_callback): Update.
6059 * linux-mips-low.c (update_watch_registers_callback): Update.
6060 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6061 Update.
6062 (free_register_cache_thread_one): Remove.
6063 (regcache_release): Update.
6064 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6065 handle_qxfer_threads_worker): Update.
6066 (handle_query): Update, use list iterator.
6067 (visit_actioned_threads, handle_pending_status,
6068 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6069 clear_pending_status_callback, set_pending_status_callback,
6070 find_status_pending_thread_callback, handle_status,
6071 process_serial_event): Update.
6072 * target.c (thread_search_callback): Update.
6073 * thread-db.c (thread_db_get_tls_address): Update.
6074 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6075 Update.
6076 * win32-i386-low.c (update_debug_registers_callback): Update.
6077 * win32-low.c (delete_thread_info, child_delete_thread,
6078 continue_one_thread, suspend_one_thread,
6079 get_child_debug_event): Adjust.
6080
9179355e
SM
60812017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6082
6083 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6084 * inferiors.h: Include <list>.
6085 (struct process_info) <entry>: Remove field.
6086 <pid>: New field.
6087 (pid_of): Change macro to function.
6088 (ptid_of, lwpid_of): Remove macro.
6089 (all_processes): Change type to std::list<process_info *>.
6090 (ALL_PROCESSES): Remove macro.
6091 (for_each_process, find_process): New function.
6092 * inferiors.c (all_processes): Change type to
6093 std::list<process_info *>.
6094 (find_thread_process): Adjust.
6095 (add_process): Likewise.
6096 (remove_process): Likewise.
6097 (find_process_pid): Likewise.
6098 (get_first_process): Likewise.
6099 (started_inferior_callback): Remove.
6100 (have_started_inferiors_p): Adjust.
6101 (attached_inferior_callback): Remove.
6102 (have_attached_inferiors_p): Adjust.
6103 * linux-low.c (check_zombie_leaders): Likewise.
6104 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6105 (x86_linux_update_xmltarget): Adjust.
6106 * server.c (handle_query): Likewise.
6107 (gdb_reattached_process): Remove.
6108 (handle_status): Adjust.
6109 (kill_inferior_callback): Likewise.
6110 (detach_or_kill_inferior): Remove.
6111 (print_started_pid): Likewise.
6112 (print_attached_pid): Likewise.
6113 (detach_or_kill_for_exit): Update.
6114 (process_serial_event): Likewise.
6115 * linux-arm-low.c (arm_new_fork): Likewise.
6116
c9cb8905
SM
61172017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6118
6119 * dll.h: Include <list>.
6120 (struct dll_info): Add constructor.
6121 <entry>: Remove field.
6122 (all_dlls): Change type to std::list<dll_info>.
6123 * dll.c: Include <algorithm>.
6124 (get_dll): Remove macro.
6125 (all_dlls): Change type to std::list<dll_info *>.
6126 (free_one_dll): Remove.
6127 (match_dll): Likewise.
6128 (loaded_dll): Adjust.
6129 (unloaded_dll): Adjust to all_dlls type change, use
6130 std::find_if. Inline code from match_dll.
6131 (clear_dlls): Adjust to all_dlls type change.
6132 * server.c (emit_dll_description): Remove.
6133 (handle_qxfer_libraries): Adjust to all_dlls type change,
6134 integrate emit_dll_description's functionality.
6135
04ec7890
SM
61362017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6137
6138 * linux-low.h (struct linux_target_ops) <delete_process>: New
6139 field.
6140 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6141 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6142 (struct linux_target_ops): Add delete_process callback.
6143 * linux-arm-low.c (arm_delete_process): New.
6144 (struct linux_target_ops): Add delete_process callback.
6145 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6146 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6147 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6148 * linux-mips-low.c (mips_linux_delete_process): New.
6149 (struct linux_target_ops): Add delete_process callback.
6150 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6151 * linux-s390-low.c (struct linux_target_ops): Likewise.
6152 * linux-sh-low.c (struct linux_target_ops): Likewise.
6153 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6154 * linux-tile-low.c (struct linux_target_ops): Likewise.
6155 * linux-x86-low.c (x86_linux_delete_process): New.
6156 (struct linux_target_ops): Add delete_process callback.
6157 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6158
466eecee
SM
61592017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6160
6161 * linux-aarch64-low.c (the_low_target): Add thread delete
6162 callback.
6163 * linux-arm-low.c (arm_delete_thread): New function.
6164 (the_low_target): Add thread delete callback.
6165 * linux-bfin-low.c (the_low_target): Likewise.
6166 * linux-crisv32-low.c (the_low_target): Likewise.
6167 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6168 set.
6169 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6170 field.
6171 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6172 * linux-mips-low.c (mips_linux_delete_thread): New function.
6173 (the_low_target): Add thread delete callback.
6174 * linux-ppc-low.c (the_low_target): Likewise.
6175 * linux-s390-low.c (the_low_target): Likewise.
6176 * linux-sh-low.c (the_low_target): Likewise.
6177 * linux-tic6x-low.c (the_low_target): Likewise.
6178 * linux-tile-low.c (the_low_target): Likewise.
6179 * linux-x86-low.c (the_low_target): Likewise.
6180 * linux-xtensa-low.c (the_low_target): Likewise.
6181
b79f7801
YZ
61822017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6183
6184 * win32-low.c: Include "common-inferior.h".
6185
bc3b087d
SDJ
61862017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6187
6188 * inferiors.c (set_inferior_cwd): New function.
6189 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6190 (handle_query): Inform that QSetWorkingDir is supported.
6191 * win32-low.c (create_process): Pass the inferior's cwd to
6192 CreateProcess.
6193
d092c5a2
SDJ
61942017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6195
6196 * inferiors.c (current_inferior_cwd): New global variable.
6197 (get_inferior_cwd): New function.
6198 * inferiors.h (struct process_info) <cwd>: New field.
6199
7da0a886
SDJ
62002017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6201
6202 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6203 (OBS): Add gdb_tilde_expand.o.
6204
289a6840
SM
62052017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6206
6207 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6208 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6209
256642e8
PA
62102017-09-29 Pedro Alves <palves@redhat.com>
6211
6212 * ax.c (gdb_parse_agent_expr): Constify.
6213 * ax.h (gdb_parse_agent_expr): Constify.
6214 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6215 Constify.
6216 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6217 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6218 * remote-utils.h (read_ptid): Constify.
6219 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6220 (process_point_options, process_serial_event): Constify.
6221 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6222 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6223 (cmd_qtbuffer): Constify.
6224
5b9ca4d4
PA
62252017-09-29 Pedro Alves <palves@redhat.com>
6226
6227 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6228 fails.
6229
94c207e0
PA
62302017-09-29 Pedro Alves <palves@redhat.com>
6231
6232 * linux-low.c (handle_extended_wait): Pass parent thread instead
6233 of process to thread_db_notice_clone.
6234 * linux-low.h (thread_db_notice_clone): Replace parent process
6235 parameter with parent thread parameter.
6236 * thread-db.c (find_one_thread): Add comment.
6237 (thread_db_notice_clone): Replace parent process parameter with
6238 parent thread parameter. Temporarily switch to the parent thread.
6239
75352e28
SDJ
62402017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6241
6242 * gdbthread.h: Include "common-gdbthread.h".
6243 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6244 "if" when validating the ptid.
6245 * remote-utils.c: Include "gdbthread.h".
6246 (prepare_resume_reply): Use "switch_to_thread".
6247 * target.c (done_accessing_memory): Likewise.
6248
ad339634
AA
62492017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6250
6251 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6252 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6253 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6254 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6255 s390x-gs-linux64-ipa.o to ipa_obj.
6256 * linux-s390-low.c (HWCAP_S390_GS): New define.
6257 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6258 New functions.
6259 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6260 (s390_arch_setup): Check for guarded-storage support and choose
6261 appropriate tdesc.
6262 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6263 init_registers_s390x_gs_linux64.
6264 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6265 enum value.
6266 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6267 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6268
cc4d742f
SM
62692017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6270
6271 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6272
f6327dcb
KB
62732017-09-21 Kevin Buettner <kevinb@redhat.com>
6274
6275 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6276 (thread_db_thread_handle): Declare.
6277 * linux-low.c (linux_target_ops): Initialize thread_handle.
6278 * server.c (handle_qxfer_threads_worker): Add support for
6279 "handle" attribute.
6280 * target.h (struct target_ops): Add new function pointer,
6281 thread_handle.
6282 (target_thread_handle): Define.
6283 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6284 field in lwp.
6285 (thread_db_thread_handle): New function.
6286
86299109
KB
62872017-09-21 Kevin Buettner <kevinb@redhat.com>
6288
6289 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6290 * linux-low.h (thread_db_notice_clone): Declare.
6291 * thread-db.c (thread_db_notice_clone): New function.
6292
f557a88a
PA
62932017-09-21 Pedro Alves <palves@redhat.com>
6294
6295 * server.c (gdb_read_memory, handle_status, process_serial_event)
6296 (handle_serial_event, handle_target_event): Adjust to
6297 set_desired_thread prototype change.
6298 * target.c (set_desired_thread): Remove 'use_general' parameter
6299 and adjust.
6300 * target.h (set_desired_thread): Remove 'use_general' parameter.
6301
223ffa71
TT
63022017-09-20 Tom Tromey <tom@tromey.com>
6303
6304 * target.c (target_terminal::terminal_state): Define.
6305 (target_terminal::init): Rename from target_terminal_init.
6306 (target_terminal::inferior): Rename from
6307 target_terminal_inferior.
6308 (target_terminal::ours): Rename from target_terminal_ours.
6309 (target_terminal::ours_for_output, target_terminal::info): New.
6310
04fd3ba9
SM
63112017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6312
6313 * server.c (accumulate_file_name_length): Remove.
6314 (emit_dll_description): Adjust to std::string change.
6315 (handle_qxfer_libraries): Use std::string to hold document.
6316
5e187554
SM
63172017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6318
6319 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6320 return type of xml_escape_text.
6321 * server.c (emit_dll_description): Likewise.
6322
1526853e
SM
63232017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6324
6325 * server.c (captured_main): Accept argument for --selftest.
6326 Update run_tests call.
6327 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6328 when registering selftests.
6329
c4dfafab
SDJ
63302017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6331
6332 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6333 instead of "VEC" for "target_desc.reg_defs".
6334 (regcache_cpy): Likewise.
6335 (registers_to_string): Likewise.
6336 (registers_from_string): Likewise.
6337 (find_regno): Likewise.
6338 (supply_regblock): Likewise.
6339 (regcache_raw_read_unsigned): Likewise.
6340 * tdesc.c (init_target_desc): Likewise.
6341 (tdesc_create_reg): Likewise.
6342 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6343 (struct target_desc) <reg_defs>: Convert to "std::vector".
6344 (target_desc): Do not initialize "reg_defs".
6345 (~target_desc): Update code to use "std::vector" instead of "VEC"
6346 for "target_desc.reg_defs".
6347 (operator==): Likewise.
6348
124aceb4
SM
63492017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6350
6351 * inferiors.h (thread_to_gdb_id): Remove.
6352 * inferiors.c (thread_to_gdb_id): Remove.
6353 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6354 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6355 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6356 Likewise.
6357 * nto-low.c (nto_fetch_registers, nto_store_registers,
6358 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6359
96cde54f
SM
63602017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6361
6362 * inferiors.h (gdb_id_to_thread_id): Remove.
6363 * inferiors.c (gdb_id_to_thread_id): Remove.
6364 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6365 removal. Move pid declaration closer to where it's used.
6366
e8ca139e
SM
63672017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6368
6369 * server.c (handle_detach): New function.
6370 (process_serial_event): Move code out, call handle_detach.
6371
f8a4e119
SM
63722017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6373
6374 * server.c (require_running): Rename to ...
6375 (require_running_or_return): ... this ...
6376 (require_running_or_break): ... and this.
6377 (handle_query, process_serial_event): Adjust.
6378
0eb0a407
SM
63792017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6380
6381 * linux-low.c (linux_set_resume_request): Remove unused
6382 variables.
6383
785922a5
SM
63842017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6385
6386 * server.c (first_thread_of): Remove.
6387 (process_serial_event): Replace usage of first_thread_of with
6388 find_any_thread_of_pid.
6389 * tracepoint.c (same_process_p): Remove.
6390 (gdb_agent_about_to_close): Replace usage of same_process_p with
6391 find_any_thread_of_pid.
6392 * linux-x86-low.c (same_process_callback): Remove.
6393 (x86_arch_setup_process_callback): Replace usage of
6394 same_process_callback with find_any_thread_of_pid.
6395 * thread-db.c (any_thread_of): Remove.
6396 (switch_to_process): Replace usage of any_thread_of with
6397 find_any_thread_of_pid.
6398 * inferiors.c (thread_pid_matches_callback): Remove.
6399 (find_thread_process): Adjust to use find_any_thread_of_pid.
6400
a059f00c
SDJ
64012017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6402
6403 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6404 with "!VEC_empty".
a059f00c 6405
cc397f3a
SDJ
64062017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6407
6408 * linux-low.c (handle_extended_wait): Use
6409 "allocate_target_description" instead of "XNEW".
6410 * linux-x86-low.c (initialize_low_arch): Likewise.
6411
22916b07
YQ
64122017-09-05 Yao Qi <yao.qi@linaro.org>
6413
6414 * configure.srv (srv_i386_regobj): Remove.
6415 (srv_amd64_regobj): Remove.
6416 (srv_regobj): Set it to "" for x86 non-linux targets.
6417 * linux-x86-tdesc.c (i386_linux_read_description):
6418 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6419 (init_registers_i386): Remove the declaration.
6420 (tdesc_i386): Remove the declaration.
6421 (lynx_i386_arch_setup): Call i386_create_target_description.
6422 * nto-x86-low.c: Likewise.
6423 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6424 [!__x86_64__]: include arch/i386.h.
6425 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6426
38602d55
YQ
64272017-09-05 Yao Qi <yao.qi@linaro.org>
6428
6429 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6430 i386/amd64-XXX-linux from it.
6431
44b886ff
YQ
64322017-09-05 Yao Qi <yao.qi@linaro.org>
6433
6434 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6435 false.
6436 (ipa_amd64_linux_regobj): Remove.
6437 (ipa_x32_linux_regobj): Remove.
6438
b4570e4b
YQ
64392017-09-05 Yao Qi <yao.qi@linaro.org>
6440
6441 * Makefile.in (arch-amd64.o): New rule.
6442 * configure.srv: Append arch-amd64.o.
6443 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6444 (get_ipa_tdesc): Call amd64_linux_read_description.
6445 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6446 and init_registers_amd64_XXX.
6447 * linux-x86-low.c (x86_linux_read_description): Call
6448 amd64_linux_read_description.
6449 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6450 (initialize_low_arch): Don't call init_registers_x32_XXX and
6451 init_registers_amd64_XXX.
6452 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6453 and tdesc_amd64_XXX.
6454 [__x86_64__] (amd64_tdesc_test): New function.
6455 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6456 and init_registers_amd64_XXX.
6457 * linux-x86-tdesc.c: Include arch/amd64.h.
6458 (xcr0_to_tdesc_idx): New function.
6459 (i386_linux_read_description): New function.
6460 (amd64_get_ipa_tdesc_idx): New function.
6461 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6462 (amd64_get_ipa_tdesc): Declare.
6463
d1f28ea2
YQ
64642017-09-05 Yao Qi <yao.qi@linaro.org>
6465
6466 * configure.srv (srv_i386_linux_xmlfiles): Remove
6467 i386/i386-XXX-linux.xml from it.
6468
25a93583
YQ
64692017-09-05 Yao Qi <yao.qi@linaro.org>
6470
6471 * configure.srv: Set srv_i386_linux_regobj empty if $development
6472 is false.
6473 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6474 initialize_low_tdesc.
6475 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6476 with #if initialize_low_tdesc.
6477 * linux-x86-tdesc-selftest.c: New file.
6478 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6479
5f035c07
YQ
64802017-09-05 Yao Qi <yao.qi@linaro.org>
6481
6482 * Makefile.in (arch-i386.o): New rule.
6483 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6484 (x86_64-*-linux*): Likewise.
6485 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6486 include arch/i386.h.
6487 (i386_linux_read_description): Remove code and call
6488 i386_create_target_description.
6489 * tdesc.c (allocate_target_description): New function.
6490 * tdesc.h (set_tdesc_architecture): Remove declaration.
6491 (set_tdesc_osabi): Likewise.
6492
0abe8a89
YQ
64932017-09-05 Yao Qi <yao.qi@linaro.org>
6494
6495 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6496 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6497 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6498 .xmltarget.
6499 * server.c (get_features_xml): Call tdesc_get_features_xml.
6500 * tdesc.c (set_tdesc_architecture): New function.
6501 (set_tdesc_osabi): New function.
6502 (tdesc_get_features_xml): New function.
6503 (tdesc_create_feature): Add an argument.
6504 * tdesc.h (struct target_desc) <features>: New field.
6505 <arch, osabi>: New field.
6506 (~target_desc): xfree features, arch, and osabi.
6507 (target_desc::oerator==): Don't compare .xmltarget.
6508 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6509 (set_tdesc_osabi): Likewise.
6510 (tdesc_get_features_xml): Likewise.
6511
0a188386
YQ
65122017-09-05 Yao Qi <yao.qi@linaro.org>
6513
6514 * linux-x86-tdesc.c: Include selftest.h.
6515 (i386_tdesc_test): New function.
6516 (initialize_low_tdesc): Call selftests::register_test.
6517 * tdesc.h: Include regdef.h.
6518 (target_desc): Override operator == and !=.
6519
f49ff000
YQ
65202017-09-05 Yao Qi <yao.qi@linaro.org>
6521
6522 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6523 (ipa_obj): Likewise.
6524 * linux-i386-ipa.c: Include common/x86-xstate.h
6525 (get_ipa_tdesc): Call i386_linux_read_description.
6526 (initialize_low_tracepoint): Don't call init_registers_XXX
6527 functions, call initialize_low_tdesc instead.
6528 * linux-x86-low.c (x86_linux_read_description): Call
6529 i386_linux_read_description.
6530 (initialize_low_arch): Don't call init_registers_i386_XXX
6531 functions, call initialize_low_tdesc.
6532 * linux-x86-tdesc.c: New file.
6533 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6534 (i386_get_ipa_tdesc_idx): Declare.
6535 (i386_get_ipa_tdesc): Declare.
6536 (initialize_low_tdesc): Declare.
6537
2b68ef2f
YQ
65382017-09-05 Yao Qi <yao.qi@linaro.org>
6539
6540 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6541 instead of 0.
6542
f7000548
YQ
65432017-09-05 Yao Qi <yao.qi@linaro.org>
6544
6545 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6546 * regcache.c (get_thread_regcache): Use VEC_length.
6547 (init_register_cache): Likewise.
6548 (regcache_cpy): Likewise.
6549 (registers_to_string): Iterate reg_defs via VEC_iterate.
6550 (find_regno): Likewise.
6551 (find_register_by_number): Use VEC_index.
6552 (register_size): Call find_register_by_number.
6553 (register_data): Call find_register_by_number.
6554 (supply_regblock): Use VEC_length.
6555 (regcache_raw_read_unsigned): Likewise.
6556 * tdesc.c (init_target_desc): Iterate reg_defs via
6557 VEC_iterate.
6558 (default_description): Update initializer.
6559 (copy_target_description): Don't update field num_registers.
6560 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6561 <num_registers>: Remove.
6562
50a421ac
SM
65632017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6564
6565 * Makefile.in (.SECONDARY): Define target.
6566
23fdd69e
SM
65672017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6568
6569 * linux-low.c (linux_wait_1): Adjust.
6570 * server.c (queue_stop_reply_callback): Adjust.
6571
0a2dde4a
SDJ
65722017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6573
6574 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6575 QEnvironmentUnset and QEnvironmentReset packets.
6576 (handle_query): Inform remote that QEnvironmentHexEncoded,
6577 QEnvironmentUnset and QEnvironmentReset are supported.
6578
6afd337d
SM
65792017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6580
6581 * inferiors.h (inferior_target_data): Rename to ...
6582 (thread_target_data): ... this.
6583 (inferior_regcache_data): Rename to ...
6584 (thread_regcache_data): ... this.
6585 (set_inferior_regcache_data): Rename to ...
6586 (set_thread_regcache_data): ... this.
6587 * inferiors.c (inferior_target_data): Rename to ...
6588 (thread_target_data): ... this.
6589 (inferior_regcache_data): Rename to ...
6590 (thread_regcache_data): ... this.
6591 (set_inferior_regcache_data): Rename to ...
6592 (set_thread_regcache_data): ... this.
6593 (free_one_thread): Update.
6594 * linux-low.h (get_thread_lwp): Update.
6595 * regcache.c (get_thread_regcache): Update.
6596 (regcache_invalidate_thread): Update.
6597 (free_register_cache_thread): Update.
6598 * win32-i386-low.c (update_debug_registers_callback): Update.
6599 (win32_get_current_dr): Update.
6600 * win32-low.c (thread_rec): Update.
6601 (delete_thread_info): Update.
6602 (continue_one_thread): Update.
6603 (suspend_one_thread): Update.
6604
a160cc46
SM
66052017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6606
6607 * inferiors.c (set_inferior_target_data): Remove.
6608 * inferiors.h (set_inferior_target_data): Remove.
6609
6d580b63
YQ
66102017-08-18 Yao Qi <yao.qi@linaro.org>
6611
6612 * Makefile.in (OBS): Add selftest.o.
6613 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6614 * configure, config.in: Re-generated.
6615 * server.c: Include common/sefltest.h.
6616 (captured_main): Handle option --selftest.
6617
f5a29eb0
YQ
66182017-08-09 Yao Qi <yao.qi@linaro.org>
6619
6620 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6621 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6622 i386-avx-mpx.o and i386-mmx.o.
6623 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6624 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6625 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6626 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6627 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6628 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6629 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6630 i386/amd64-avx-mpx.xml.
6631
57757c2f
YQ
66322017-08-09 Yao Qi <yao.qi@linaro.org>
6633
6634 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6635 and x32-avx-avx512.o.
6636 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6637 i386/x32-avx-avx512.xml.
6638
229d26fc
SM
66392017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6640
6641 * tracepoint.h (enum class fast_tpoint_collect_result): New
6642 enumeration.
6643 (fast_tracepoint_collecting): Change return type to
6644 fast_tpoint_collect_result.
6645 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6646 * linux-low.h: Include tracepoint.h.
6647 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6648 fast_tpoint_collect_result.
6649 * linux-low.c (handle_tracepoints): Adjust.
6650 (linux_fast_tracepoint_collecting): Change return type to
6651 fast_tpoint_collect_result.
6652 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6653 linux_wait_1, stuck_in_jump_pad_callback,
6654 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6655 proceed_one_lwp): Adjust to type change.
6656
2e1e43e1
YQ
66572017-07-10 Yao Qi <yao.qi@linaro.org>
6658
6659 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6660
adc764e7
YQ
66612017-06-29 Yao Qi <yao.qi@linaro.org>
6662
6663 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6664 Remove.
6665 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6666
a206891a
SM
66672017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6668
6669 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6670
9a6c7d9c
SDJ
66712017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6672
6673 * linux-low.c (linux_create_inferior): Adjust code to access the
6674 environment information via 'gdb_environ' class.
6675 * lynx-low.c (lynx_create_inferior): Likewise.
6676 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6677 (get_environ): Return a pointer to 'our_environ'.
6678 (captured_main): Initialize 'our_environ'.
6679 * server.h (get_environ): Adjust prototype.
6680 * spu-low.c (spu_create_inferior): Adjust code to access the
6681 environment information via 'gdb_environ' class.
6682
ae3e2ccf
SM
66832017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6684
6685 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6686 usage of "register" keyword.
6687
3e019bdc
SM
66882017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6689
6690 * configure: Re-generate.
6691
8465943a
SM
66922017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6693
6694 * configure: Re-generate.
6695
cf0dd6f0
SM
66962017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6697
6698 * Makefile.in (COMPILE.pre): Add "-x c++".
6699
9845682b
SDJ
67002017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6701
6702 * fork-child.c: Conditionally include <signal.h>.
6703
aefd8b33
SDJ
67042017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6705
6706 * server.c (handle_general_set): Handle new packet
6707 "QStartupWithShell".
6708 (handle_query): Add "QStartupWithShell" to the list of supported
6709 packets.
6710 (gdbserver_usage): Add help text explaining the
6711 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6712 options.
6713 (captured_main): Recognize and act upon the presence of the new
6714 CLI options.
6715
2090129c
SDJ
67162017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6717 Pedro Alves <palves@redhat.com>
6718
6719 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
6720 * configure: Regenerate.
6721 * configure.srv (srv_linux_obj): Add "fork-child.o" and
6722 "fork-inferior.o".
6723 (i[34567]86-*-lynxos*): Likewise.
6724 (spu*-*-*): Likewise.
6725 * fork-child.c: New file.
6726 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
6727 and "environ.h".
6728 (linux_ptrace_fun): New function.
6729 (linux_create_inferior): Adjust function prototype to reflect
6730 change on "target.h". Adjust function code to use
6731 "fork_inferior".
6732 (linux_request_interrupt): Delete "signal_pid".
6733 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6734 (lynx_ptrace_fun): New function.
6735 (lynx_create_inferior): Adjust function prototype to reflect
6736 change on "target.h". Adjust function code to use
6737 "fork_inferior".
6738 * nto-low.c (nto_create_inferior): Adjust function prototype and
6739 code to reflect change on "target.h". Update comments.
6740 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
6741 "common-terminal.h" and "environ.h".
6742 (terminal_fd): Moved to fork-child.c.
6743 (old_foreground_pgrp): Likewise.
6744 (restore_old_foreground_pgrp): Likewise.
6745 (last_status): Make it global.
6746 (last_ptid): Likewise.
6747 (our_environ): New variable.
6748 (startup_with_shell): Likewise.
6749 (program_name): Likewise.
6750 (program_argv): Rename to...
6751 (program_args): ...this.
6752 (wrapper_argv): New variable.
6753 (start_inferior): Delete function.
6754 (get_exec_wrapper): New function.
6755 (get_exec_file): Likewise.
6756 (get_environ): Likewise.
6757 (prefork_hook): Likewise.
6758 (post_fork_inferior): Likewise.
6759 (postfork_hook): Likewise.
6760 (postfork_child_hook): Likewise.
6761 (handle_v_run): Update code to deal with arguments coming from the
6762 remote host. Update calls from "start_inferior" to
6763 "create_inferior".
6764 (captured_main): Likewise. Initialize environment variable. Call
6765 "have_job_control".
6766 * server.h (post_fork_inferior): New prototype.
6767 (get_environ): Likewise.
6768 (last_status): Declare.
6769 (last_ptid): Likewise.
6770 (signal_pid): Likewise.
6771 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6772 (spu_ptrace_fun): New function.
6773 (spu_create_inferior): Adjust function prototype to reflect change
6774 on "target.h". Adjust function code to use "fork_inferior".
6775 * target.c (target_terminal_init): New function.
6776 (target_terminal_inferior): Likewise.
6777 (target_terminal_ours): Likewise.
6778 * target.h: Include <vector>.
6779 (struct target_ops) <create_inferior>: Update prototype.
6780 (create_inferior): Update macro.
6781 * utils.c (gdb_flush_out_err): New function.
6782 * win32-low.c (win32_create_inferior): Adjust function prototype
6783 and code to reflect change on "target.h".
6784
043a4934
SDJ
67852017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6786
6787 * inferiors.c (switch_to_thread): New function.
6788
15652511
SDJ
67892017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6790
6791 * Makefile.in (SFILE): Add "common/job-control.c".
6792 (OBS): Add "job-control.o".
6793
21ea5acd
SDJ
67942017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6795
6796 * Makefile: Remove "@host_makefile_frag@".
6797
e13cb306
PA
67982017-05-05 Pedro Alves <palves@redhat.com>
6799
6800 * configure: Regenerate.
6801
c94fee56
SDJ
68022017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6803
6804 * configure: Regenerate.
6805
a0ff9e1a
SM
68062017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6807
6808 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
6809 software_single_step change of return type to
6810 std::vector<CORE_ADDR>.
6811 * linux-low.c (install_software_single_step_breakpoints):
6812 Likewise.
6813 * linux-low.h (install_software_single_step_breakpoints):
6814 Likewise.
6815
be628ab8
SDJ
68162017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6817
6818 * remote-utils.c: Include "gdb_termios.h" instead of
6819 "terminal.h".
6820 * terminal.h: Delete file.
6821
7c5ded6a
SDJ
68222017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6823
6824 * server.c: Include <vector>.
6825 <program_argv, wrapper_argv>: Convert to std::vector.
6826 (start_inferior): Rewrite function to use C++.
6827 (handle_v_run): Likewise. Update code that calculates the argv
6828 based on the vRun packet; use C++.
6829 (captured_main): Likewise.
6830
436252de
SM
68312017-04-06 Simon Marchi <simon.marchi@ericsson.com>
6832
6833 * server.c (handle_v_cont): Initialize thread_resume::thread
6834 with null_ptid.
6835
9bf2a700
PA
68362017-04-05 Pedro Alves <palves@redhat.com>
6837
6838 * configure: Regenerate.
6839
a121b7c1
PA
68402017-04-05 Pedro Alves <palves@redhat.com>
6841
6842 * gdbreplay.c (sync_error): Constify.
6843 * linux-x86-low.c (push_opcode): Constify.
6844
21c8a587
PA
68452017-04-05 Pedro Alves <palves@redhat.com>
6846
6847 * win32-low.c (get_child_debug_event)
6848 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
6849 Report TARGET_WAITKIND_SPURIOUS instead.
6850
fb32b4f7
PA
68512017-04-05 Pedro Alves <palves@redhat.com>
6852
e79be6e5
SM
6853 * remote-utils.c (remote_prepare, remote_open): Constify.
6854 * remote-utils.h (remote_prepare, remote_open): Constify.
6855 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 6856
65dd1e59
SM
68572017-04-04 Simon Marchi <simon.marchi@ericsson.com>
6858
6859 * Makefile.in (clean): Clear .deps.
6860
8fa5b777
SM
68612017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
6862
6863 * .gitignore: Remove generated files, replace with wildcard.
6864 * (clean): Replace removal of generated files with wildcard.
6865 (version.c): Replace with...
6866 (version-generated.c): ...this.
6867 (xml-builtin.c): Replace with...
6868 (xml-builtin-generated.c): ...this.
6869 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
6870 (%.c: *regformats*): Replace with...
6871 (%-generated.c: *regformats*): ...this.
6872
a12e714b
MF
68732017-03-27 Max Filippov <jcmvbkbc@gmail.com>
6874
6875 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
6876 (xtensa_fill_gregset): Call collect_register_by_name for
6877 threadptr register.
6878 (xtensa_store_gregset): Call supply_register_by_name for
6879 threadptr register.
6880
1a09b50a
MF
68812017-03-27 Max Filippov <jcmvbkbc@gmail.com>
6882
6883 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
6884 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
6885 (xtensa_store_gregset): Call supply_register for all registers in
6886 a0_regnum..a0_regnum + C0_NREGS range.
6887
1a01e7c6
SM
68882017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6889
6890 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
6891 (ax-ipa.o: ax.c): Remove.
6892 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
6893 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
6894 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
6895 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
6896 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
6897
36bc18a8
SM
68982017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6899
6900 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
6901 (print-utils-ipa.o: ../common/print-utils.c): Remove.
6902 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
6903 (errors-ipa.o: ../common/errors.c): Remove.
6904 (format-ipa.o: ../common/format.c): Remove.
6905 (common-utils-ipa.o: ../common/common-utils.c): Remove.
6906
a8ebe3d5
SM
69072017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6908
6909 * Makefile.in (%-ipa.o: %.c): New rule.
6910 (tracepoint-ipa.o: tracepoint.c): Remove.
6911 (utils-ipa.o: utils.c): Remove.
6912 (remote-utils-ipa.o: remote-utils.c): Remove.
6913 (regcache-ipa.o: regcache.c): Remove.
6914 (i386-linux-ipa.o: i386-linux.c): Remove.
6915 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
6916 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
6917 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
6918 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
6919 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
6920 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
6921 (amd64-linux-ipa.o: amd64-linux.c): Remove.
6922 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
6923 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
6924 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
6925 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
6926 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
6927 (aarch64-ipa.o: aarch64.c): Remove.
6928 (s390-linux32-ipa.o: s390-linux32.c): Remove.
6929 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
6930 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
6931 (s390-linux64-ipa.o: s390-linux64.c): Remove.
6932 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
6933 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
6934 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
6935 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
6936 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
6937 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
6938 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
6939 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
6940 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
6941 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
6942 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
6943 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
6944 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
6945 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
6946 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
6947 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
6948 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
6949 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
6950 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
6951 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
6952 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
6953 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
6954 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
6955 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
6956 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
6957 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
6958 (tdesc-ipa.o: tdesc.c): Remove.
6959 (x32-linux-ipa.o: x32-linux.c): Remove.
6960 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
6961 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
6962
50cfacb7
SM
69632017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6964
6965 * Makefile.in (%.o: ../arch/%.c): New rule.
6966 (arm.o: ../arch/arm.c): Remove.
6967 (arm-linux.o: ../arch/arm-linux.c): Remove.
6968 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
6969 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
6970
c5a22423
SM
69712017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6972
6973 * Makefile.in (%.o: ../nat/%.c): New rule.
6974 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
6975 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
6976 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
6977 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
6978 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
6979 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
6980 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
6981 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
6982 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
6983 (linux-personality.o: ../nat/linux-personality.c): Remove.
6984 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
6985 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
6986 (x86-linux.o: ../nat/x86-linux.c): Remove.
6987 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
6988 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
6989
6bda016b
SM
69902017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6991
6992 * Makefile.in (%.o: ../common/%.c): New rule.
6993 (signals.o: ../common/signals.c): Remove.
6994 (print-utils.o: ../common/print-utils.c): Remove.
6995 (rsp-low.o: ../common/rsp-low.c): Remove.
6996 (common-utils.o: ../common/common-utils.c): Remove.
6997 (posix-strerror.o: ../common/posix-strerror.c): Remove.
6998 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
6999 (vec.o: ../common/vec.c): Remove.
7000 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7001 (xml-utils.o: ../common/xml-utils.c): Remove.
7002 (ptid.o: ../common/ptid.c): Remove.
7003 (buffer.o: ../common/buffer.c): Remove.
7004 (format.o: ../common/format.c): Remove.
7005 (filestuff.o: ../common/filestuff.c): Remove.
7006 (agent.o: ../common/agent.c): Remove.
7007 (errors.o: ../common/errors.c): Remove.
7008 (environ.o: ../common/environ.c): Remove.
7009 (common-debug.o: ../common/common-debug.c): Remove.
7010 (cleanups.o: ../common/cleanups.c): Remove.
7011 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7012 (fileio.o: ../common/fileio.c): Remove.
7013 (common-regcache.o: ../common/common-regcache.c): Remove.
7014 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7015 (new-op.o: ../common/new-op.c): Remove.
7016 (btrace-common.o: ../common/btrace-common.c): Remove.
7017
21122961
SM
70182017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7019
7020 * Makefile.in (%.o: ../target/%.c): New rule.
7021 (waitstatus.o: ../target/waitstatus.c): Remove.
7022
c362e621
SM
70232017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7024
7025 * Makefile.in
7026 (%.c: ../regformats/%.dat,
7027 (%.c: ../regformats/arm/%.dat,
7028 (%.c: ../regformats/i386/%.dat,
7029 (%.c: ../regformats/rs6000/%.dat): New rules.
7030 (aarch64.c): Remove.
7031 (reg-arm.c): Remove.
7032 (arm-with-iwmmxt.c): Remove.
7033 (arm-with-vfpv2.c): Remove.
7034 (arm-with-vfpv3.c): Remove.
7035 (arm-with-neon.c): Remove.
7036 (reg-bfin.c): Remove.
7037 (reg-cris.c): Remove.
7038 (reg-crisv32.c): Remove.
7039 (i386.c): Remove.
7040 (i386-linux.c): Remove.
7041 (i386-avx.c): Remove.
7042 (i386-avx-linux.c): Remove.
7043 (i386-avx-avx512.c): Remove.
7044 (i386-avx-avx512-linux.c): Remove.
7045 (i386-mpx.c): Remove.
7046 (i386-mpx-linux.c): Remove.
7047 (i386-avx-mpx-avx512-pku.c): Remove.
7048 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7049 (i386-avx-mpx.c): Remove.
7050 (i386-avx-mpx-linux.c): Remove.
7051 (i386-mmx.c): Remove.
7052 (i386-mmx-linux.c): Remove.
7053 (reg-ia64.c): Remove.
7054 (reg-m32r.c): Remove.
7055 (reg-m68k.c): Remove.
7056 (reg-cf.c): Remove.
7057 (mips-linux.c): Remove.
7058 (mips-dsp-linux.c): Remove.
7059 (mips64-linux.c): Remove.
7060 (mips64-dsp-linux.c): Remove.
7061 (nios2-linux.c): Remove.
7062 (powerpc-32.c): Remove.
7063 (powerpc-32l.c): Remove.
7064 (powerpc-altivec32l.c): Remove.
7065 (powerpc-cell32l.c): Remove.
7066 (powerpc-vsx32l.c): Remove.
7067 (powerpc-isa205-32l.c): Remove.
7068 (powerpc-isa205-altivec32l.c): Remove.
7069 (powerpc-isa205-vsx32l.c): Remove.
7070 (powerpc-e500l.c): Remove.
7071 (powerpc-64l.c): Remove.
7072 (powerpc-altivec64l.c): Remove.
7073 (powerpc-cell64l.c): Remove.
7074 (powerpc-vsx64l.c): Remove.
7075 (powerpc-isa205-64l.c): Remove.
7076 (powerpc-isa205-altivec64l.c): Remove.
7077 (powerpc-isa205-vsx64l.c): Remove.
7078 (s390-linux32.c): Remove.
7079 (s390-linux32v1.c): Remove.
7080 (s390-linux32v2.c): Remove.
7081 (s390-linux64.c): Remove.
7082 (s390-linux64v1.c): Remove.
7083 (s390-linux64v2.c): Remove.
7084 (s390-te-linux64.c): Remove.
7085 (s390-vx-linux64.c): Remove.
7086 (s390-tevx-linux64.c): Remove.
7087 (s390x-linux64.c): Remove.
7088 (s390x-linux64v1.c): Remove.
7089 (s390x-linux64v2.c): Remove.
7090 (s390x-te-linux64.c): Remove.
7091 (s390x-vx-linux64.c): Remove.
7092 (s390x-tevx-linux64.c): Remove.
7093 (tic6x-c64xp-linux.c): Remove.
7094 (tic6x-c64x-linux.c): Remove.
7095 (tic6x-c62x-linux.c): Remove.
7096 (reg-sh.c): Remove.
7097 (reg-sparc64.c): Remove.
7098 (reg-spu.c): Remove.
7099 (amd64.c): Remove.
7100 (amd64-linux.c): Remove.
7101 (amd64-avx.c): Remove.
7102 (amd64-avx-linux.c): Remove.
7103 (amd64-avx-avx512.c): Remove.
7104 (amd64-avx-avx512-linux.c): Remove.
7105 (amd64-mpx.c): Remove.
7106 (amd64-mpx-linux.c): Remove.
7107 (amd64-avx-mpx-avx512-pku.c): Remove.
7108 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7109 (amd64-avx-mpx.c): Remove.
7110 (amd64-avx-mpx-linux.c): Remove.
7111 (x32.c): Remove.
7112 (x32-linux.c): Remove.
7113 (x32-avx.c): Remove.
7114 (x32-avx-linux.c): Remove.
7115 (x32-avx-avx512.c): Remove.
7116 (x32-avx-avx512-linux.c): Remove.
7117 (reg-xtensa.c): Remove.
7118 (reg-tilegx.c): Remove.
7119 (reg-tilegx32.c): Remove.
7120
1672e0d9
SDJ
71212017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7122
7123 * Makefile.in (SFILES): Add "common/environ.c".
7124 (OBJS): Add "common/environ.h".
7125
239b6d10
WT
71262017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7127
7128 * configure.ac: Check if the fs_base and gs_base members of
7129 `struct user_regs_struct' exist.
7130 * config.in: Regenerated.
7131 * configure: Likewise.
7132
694b382c
AT
71332017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7134
7135 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7136 target_read_memory.
7137 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7138 (get_next_pcs_syscall_next_pc): Likewise.
7139
7dc53023
LM
71402016-12-23 Luis Machado <lgustavo@codesourcery.com>
7141
7142 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7143 * nto-x86-low.c: Likewise.
7144
ad02e4fe
SM
71452016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7146
7147 * Makefile.in: Include disable-implicit-rules.mk.
7148
dcb07cfa
PA
71492016-11-23 Pedro Alves <palves@redhat.com>
7150
7151 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7152 (debug_vprintf): Use std::chrono::steady_clock instead of
7153 gettimeofday. Use '.' instead of ':'.
7154 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7155 (get_timestamp): Use std::chrono::steady_clock instead of
7156 gettimeofday.
7157
8629c02c
SM
71582016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7159
7160 * Makefile.in: Fix whitespace formatting.
7161
b593ecca
SM
71622016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7163
7164 * Makefile.in (SFILES, OBS): Flatten list and order
7165 alphabetically.
7166
9986ba08
PA
71672016-11-23 Pedro Alves <palves@redhat.com>
7168
7169 * event-loop.c (handle_file_event): Use warning.
7170 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7171 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7172 Use warning.
7173
4eefa7bc
PA
71742016-11-23 Pedro Alves <palves@redhat.com>
7175
7176 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7177 output.
7178 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7179 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7180 debug_printf and debug_flush for debug output.
7181 * server.c (handle_general_set): Likewise.
7182 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7183 output.
7184
5443506e
SM
71852016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7186
7187 * Makefile.in (.c.o): Replace rule with ...
7188 (%.o: %.c): ... this one.
7189
3b165252
SM
71902016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7191
7192 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7193 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7194 make.
7195 * configure.ac: Remove checks for the make program.
7196 * configure: Re-generate.
7197
0bcda685
PA
71982016-10-28 Pedro Alves <palves@redhat.com>
7199
7200 * Makefile.in (CXX_DIALECT): Get from configure.
7201 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7202 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7203 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7204 * config.in: Regenerate.
7205 * configure: Regenerate.
7206
c3805894
YQ
72072016-10-27 Yao Qi <yao.qi@linaro.org>
7208
7209 * linux-low.c (linux_supports_range_stepping): Return true if
7210 can_software_single_step return true.
7211
89342618
YQ
72122016-10-27 Yao Qi <yao.qi@linaro.org>
7213
7214 * inferiors.c (find_inferior_in_random): New function.
7215 * inferiors.h (find_inferior_in_random): Declare.
7216 * linux-low.c (linux_wait_for_event_filtered): Call
7217 find_inferior_in_random instead of find_inferior.
7218
e3652c84
YQ
72192016-10-27 Yao Qi <yao.qi@linaro.org>
7220
7221 * linux-low.c (linux_wait_1): If single-step breakpoints are
7222 inserted, remove them.
7223
5a04c4cf
PA
72242016-10-26 Pedro Alves <palves@redhat.com>
7225
7226 * linux-low.c (handle_extended_wait): Link parent/child fork
7227 threads.
7228 (linux_wait_1): Unlink them.
7229 (linux_set_resume_request): Ignore resume requests for
7230 already-resumed and unhandled fork child threads.
7231 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7232 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7233 New functions.
7234 (handle_v_requests) <vCont>: Don't call require_running.
7235 * server.h (in_queued_stop_replies): New declaration.
7236
cb93dc7f
YQ
72372016-10-24 Yao Qi <yao.qi@linaro.org>
7238
7239 PR server/20733
7240 * linux-aarch64-low.c (append_insns): Cast the return value to
7241 'uint32_t *'.
7242
a1078bea
YQ
72432016-10-10 Yao Qi <yao.qi@linaro.org>
7244
7245 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7246
1fb77080
SDJ
72472016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7248
7249 * target.c (target_supports_multi_process): New function, moved
7250 from...
7251 * target.h (target_supports_multi_process): ... here. Remove
7252 macro.
7253
39b5a3b9
TT
72542016-10-05 Tom Tromey <tom@tromey.com>
7255
7256 PR remote/20655:
7257 * tracepoint.c (handle_tracepoint_bkpts): Check
7258 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7259
c1d0b70a
YQ
72602016-10-05 Yao Qi <yao.qi@linaro.org>
7261
7262 * configure.srv: Update the path of arm-*.xml files.
7263
0a69eedb
YQ
72642016-10-05 Terry Guo <terry.guo@arm.com>
7265 Yao Qi <yao.qi@linaro.org>
7266
7267 * Makefile.in: Adjust the path of rules.
7268 * configure.srv: Update the path of xml files.
7269 * regformats/arm-with-iwmmxt.dat: Regenerated.
7270 * regformats/arm-with-neon.dat: Likewise.
7271 * regformats/arm-with-vfpv2.dat: Likewise.
7272 * regformats/arm-with-vfpv3.dat Likewise.
7273
17e16485
YQ
72742016-09-30 Yao Qi <yao.qi@linaro.org>
7275
7276 PR gdbserver/20627
7277 * target.c (target_stop_and_wait): Don't call
7278 target_continue_no_signal, use resume_stop instead.
7279
edeeb602
YQ
72802016-09-26 Yao Qi <yao.qi@linaro.org>
7281
7282 * linux-low.c (linux_wait_1): Call debug_exit.
7283
503b1c39
PA
72842016-09-23 Pedro Alves <palves@redhat.com>
7285
7286 * Makefile.in (SFILES): Add common/new-op.c.
7287 (OBS): Add common/new-op.o.
7288 (new-op.o): New rule.
7289
74172ecf
SM
72902016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7291
7292 * .gitinore: Ignore more files.
7293
fc6cda2e
YQ
72942016-09-21 Yao Qi <yao.qi@linaro.org>
7295
7296 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7297 23.
7298
bc1e6c81
SDJ
72992016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7300
7301 * server.c (start_inferior): Call target_mourn_inferior instead of
7302 mourn_inferior; pass ptid_t argument to it.
7303 (resume): Likewise.
7304 (handle_target_event): Likewise.
7305 * target.c (target_mourn_inferior): New function.
7306 * target.h (mourn_inferior): Delete macro.
7307
0e00e962
AA
73082016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7309
7310 * linux-low.c (lwp_is_stepping): New function.
7311
1d8cb77d
CL
73122016-09-06 Carl Love <cel@us.ibm.com>
7313
7314 * server.c (start_inferior): Fixed comment, requested comment change
7315 didn't get updated correctly. Removed reference to ptrace () call as
7316 it is only true on Linux systems.
7317
7313bced
CL
73182016-09-06 Carl Love <cel@us.ibm.com>
7319
7320 * server.c (start_inferior): Do not call
7321 function target_post_create_inferior () if the
7322 inferior process has already exited.
7323
cf6de44d
PA
73242016-09-05 Pedro Alves <palves@redhat.com>
7325
7326 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7327 (COMPILE.pre, CC_LD): Use CXX directly.
7328 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7329 * acinclude.m4: Don't include build-with-cxx.m4.
7330 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7331 * configure: Regenerate.
7332
c1da6748
AT
73332016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7334
7335 PR gdb/19495
7336 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7337 call writing data to own_buf.
7338
f2b9e3df
SDJ
73392016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7340
7341 * target.c (mywait): Call target_wait instead of
7342 the_target->wait.
7343 (target_wait): New function.
7344
049a8570
SDJ
73452016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7346
7347 * server.c (start_inferior): New variable 'ptid'. Replace calls
7348 to the_target->resume by target_continue{,_no_signal}, depending
7349 on the case.
7350 * target.c (target_stop_and_wait): Call target_continue_no_signal
7351 instead of the_target->resume.
7352 (target_continue): New function.
7353
3aa5cfa0
AT
73542016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7355
7356 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7357
754653a7
AZ
73582016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7359
7360 PR server/20491
7361 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7362 ps_prochandle.
7363 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7364 * linux-arm-low.c (ps_get_thread_area): Likewise.
7365 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7366 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7367 * linux-mips-low.c (ps_get_thread_area): Likewise.
7368 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7369 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7370 * linux-x86-low.c (ps_get_thread_area): Likewise.
7371 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7372
ed036b40
PA
73732016-08-19 Pedro Alves <palves@redhat.com>
7374
7375 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7376
c8ef42ee
PA
73772016-08-19 Pedro Alves <palves@redhat.com>
7378
7379 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7380 comment. Use memcpy instead of casting through unsigned long.
7381
9c235a72
PA
73822016-08-19 Pedro Alves <palves@redhat.com>
7383
7384 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7385 allocating around 0x80000000.
7386
201506da
PA
73872016-08-19 Pedro Alves <palves@redhat.com>
7388
7389 PR gdb/20415
7390 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7391 (x32-avx512-linux-ipa.o): New rules.
7392 * configure.ac (x86_64-*-linux*): New x32 check.
7393 * configure.srv (ipa_x32_linux_regobj): New.
7394 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7395 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7396 descriptions.
7397 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7398 descriptions.
7399 * configure: Regenerate.
7400
f348d89a
PA
74012016-08-09 Pedro Alves <palves@redhat.com>
7402
7403 PR gdb/18653
7404 * Makefile.in (OBS): Add signals-state-save-restore.o.
7405 (signals-state-save-restore.o): New rule.
7406 * config.in: Regenerate.
7407 * configure: Regenerate.
7408 * linux-low.c: Include "signals-state-save-restore.h".
7409 (linux_create_inferior): Call
7410 restore_original_signals_state.
7411 * server.c: Include "dispositions-save-restore.h".
7412 (captured_main): Call save_original_signals_state.
7413
1baf5149
PA
74142016-08-05 Pedro Alves <palves@redhat.com>
7415
7416 * configure: Regenerate.
7417
fcd4a73d
YQ
74182016-08-04 Yao Qi <yao.qi@linaro.org>
7419
7420 * linux-low.c (regsets_fetch_inferior_registers): Check
7421 errno is ESRCH or not.
7422
979659d0
YQ
74232016-08-02 Yao Qi <yao.qi@linaro.org>
7424
7425 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7426 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7427 (thread_db_load_search): Update.
7428 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7429 td_ta_set_event and td_ta_event_getmsg.
7430
6598661d
PA
74312016-07-26 Pedro Alves <palves@redhat.com>
7432
7433 PR server/20414
7434 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7435 of unsigned long for 64-bit registers and use uint32_t instead of
7436 unsigned int for 32-bit registers.
7437
9cf12d57
PA
74382016-07-26 Pedro Alves <palves@redhat.com>
7439
7440 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7441 to 'ptrace'.
7442
305450ed
TT
74432016-07-21 Tom Tromey <tom@tromey.com>
7444
7445 * configure: Rebuild.
7446
2583da7c
YQ
74472016-07-21 Yao Qi <yao.qi@linaro.org>
7448
7449 * mem-break.c (find_gdb_breakpoint): Cast bp to
7450 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7451
21536b36
YQ
74522016-07-21 Yao Qi <yao.qi@linaro.org>
7453
7454 * server.c (handle_v_requests): Support s and S actions
7455 if target_supports_software_single_step return true.
7456
8901d193
YQ
74572016-07-21 Yao Qi <yao.qi@linaro.org>
7458
7459 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7460 is resume_step, call maybe_hw_step.
7461 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7462 and unstop them.
7463 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7464 breakpoints or not.
7465 (proceed_one_lwp): If resume request is resume_step, install
7466 reinsert breakpoints and call maybe_hw_step.
7467
0e9a339e
YQ
74682016-07-21 Yao Qi <yao.qi@linaro.org>
7469
7470 * linux-low.c (proceed_one_lwp): Declare.
7471 (linux_resume_one_thread): Remove local variable 'step'.
7472 Lift code enqueue signal. Call proceed_one_lwp instead of
7473 linux_resume_one_lwp.
7474
4281b351
YQ
74752016-07-21 Yao Qi <yao.qi@linaro.org>
7476
7477 * linux-low.c (linux_resume_one_thread): Call
7478 enqueue_pending_signal.
7479
984a2c04
YQ
74802016-07-21 Yao Qi <yao.qi@linaro.org>
7481
7482 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7483 * inferiors.c (do_restore_current_thread_cleanup): New function.
7484 (make_cleanup_restore_current_thread): Likewise.
7485 * linux-low.c (install_software_single_step_breakpoints): Call
7486 make_cleanup_restore_current_thread. Switch current_thread to
7487 thread.
7488
bec903c9
YQ
74892016-07-21 Yao Qi <yao.qi@linaro.org>
7490
7491 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7492 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7493 (clone_one_breakpoint): Likewise.
7494 (delete_reinsert_breakpoints): Change parameter to thread.
7495 Callers updated.
7496 (has_reinsert_breakpoints): Likewise.
7497 (uninsert_reinsert_breakpoints): Likewise.
7498 (reinsert_reinsert_breakpoints): Likewise.
7499 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7500 (delete_reinsert_breakpoints): Likewise.
7501 (reinsert_reinsert_breakpoints): Likewise.
7502 (uninsert_reinsert_breakpoints): Likewise.
7503 (has_reinsert_breakpoints): Likewise.
7504
63c40ec7
YQ
75052016-07-21 Yao Qi <yao.qi@linaro.org>
7506
7507 * inferiors.c (get_thread_process): Make parameter const.
7508 * inferiors.h (get_thread_process): Update declaration.
7509 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7510 Add new parameters child_thread and parent_thread. Callers
7511 updated.
7512 * mem-break.h (clone_all_breakpoints): Update declaration.
7513
9aa76cd0
YQ
75142016-07-21 Yao Qi <yao.qi@linaro.org>
7515
7516 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7517 <command_list, handler>: Remove.
7518 (struct gdb_breakpoint): New.
7519 (struct other_breakpoint): New.
7520 (struct reinsert_breakpoint): New.
7521 (is_gdb_breakpoint): New function.
7522 (any_persistent_commands): Update command_list if
7523 is_gdb_breakpoint returns true.
7524 (set_breakpoint): Create breakpoints according to their types.
7525 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7526 (set_gdb_breakpoint_1): Likewise.
7527 (set_gdb_breakpoint): Likewise.
7528 (clear_breakpoint_conditions): Change parameter type to
7529 'struct gdb_breakpoint *'.
7530 (clear_breakpoint_commands): Likewise.
7531 (clear_breakpoint_conditions_and_commands): Likewise.
7532 (add_condition_to_breakpoint): Likewise.
7533 (add_breakpoint_condition): Likewise.
7534 (add_commands_to_breakpoint): Likewise.
7535 (check_breakpoints): Check other_breakpoint.
7536 (clone_one_breakpoint): Clone breakpopint according to its type.
7537 * mem-break.h (struct gdb_breakpoint): Declare.
7538 (set_gdb_breakpoint): Update declaration.
7539 (clear_breakpoint_conditions_and_commands): Likewise.
7540 (add_breakpoint_condition): Likewise.
7541 (add_breakpoint_commands): Likewise.
7542 * server.c (process_point_options): Change parameter type to
7543 'struct gdb_breakpoint *'.
7544
811f8301
YQ
75452016-07-21 Yao Qi <yao.qi@linaro.org>
7546
7547 * mem-break.c (set_breakpoint_at): Rename it to ...
7548 (set_breakpoint_type_at): ... it.
7549 (set_breakpoint_at): Call set_breakpoint_type_at.
7550 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7551 * mem-break.h (set_breakpoint_at): Update comments.
7552
b1c51e36
CLT
75532016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7554
7555 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7556 to buf parameter.
7557 (nios2_store_gregset): Likewise.
7558
ced2dffb
PA
75592016-07-01 Pedro Alves <palves@redhat.com>
7560 Antoine Tremblay <antoine.tremblay@ericsson.com>
7561
7562 * linux-low.c: Change interface to take the target lwp_info
7563 pointer directly and return void. Handle detaching from a zombie
7564 thread.
7565 (linux_detach_lwp_callback): New function.
7566 (linux_detach): Detach from the leader thread after detaching from
7567 the clone threads.
7568
2ac09a5b
YQ
75692016-06-28 Yao Qi <yao.qi@linaro.org>
7570
7571 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7572 for variable new_offset.
7573 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7574 (aarch64_ftrace_insn_reloc_cb): Likewise.
7575 (aarch64_ftrace_insn_reloc_tb): Likewise.
7576 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7577 PRIx64 instead of PRIx32.
7578
79e7fd4f
YQ
75792016-06-28 Yao Qi <yao.qi@linaro.org>
7580
7581 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7582 (the_low_target): Install arm_get_syscall_trapinfo.
7583
061fc021
YQ
75842016-06-28 Yao Qi <yao.qi@linaro.org>
7585
7586 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7587 function.
7588 (the_low_target): Install aarch64_get_syscall_trapinfo.
7589
4cc32bec
YQ
75902016-06-28 Yao Qi <yao.qi@linaro.org>
7591
7592 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7593 Callers updated.
7594 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7595 Remove parameter sysno.
7596 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7597 sysret.
7598
782c1122
AA
75992016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7600
7601 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7602 (s390_emit_ne_goto): Likewise.
7603 (s390_emit_lt_goto): Likewise.
7604 (s390_emit_le_goto): Likewise.
7605 (s390_emit_gt_goto): Likewise.
7606 (s390_emit_ge_goto): Likewise.
7607 (s390x_emit_eq_goto): Likewise.
7608 (s390x_emit_ne_goto): Likewise.
7609 (s390x_emit_lt_goto): Likewise.
7610 (s390x_emit_le_goto): Likewise.
7611 (s390x_emit_gt_goto): Likewise.
7612 (s390x_emit_ge_goto): Likewise.
7613 (s390_emit_ops_impl): Mark variable static.
7614 (s390x_emit_ops): Likewise.
7615
2e7b624b
YQ
76162016-06-17 Yao Qi <yao.qi@linaro.org>
7617
7618 * linux-low.c (handle_extended_wait): Call
7619 uninsert_reinsert_breakpoints for the parent process. Remove
7620 reinsert breakpoints from the child process. Reinsert them to
7621 the parent process when vfork is done.
7622 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7623 (reinsert_reinsert_breakpoints): New function.
7624 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7625 (reinsert_reinsert_breakpoints): Declare.
7626
8a81c5d7
YQ
76272016-06-17 Yao Qi <yao.qi@linaro.org>
7628
7629 * linux-low.c (handle_extended_wait): If the parent is doing
7630 step-over, remove the reinsert breakpoints from the forked child.
7631
f50bf8e5
YQ
76322016-06-17 Yao Qi <yao.qi@linaro.org>
7633
7634 * linux-low.c (unsuspend_all_lwps): Declare.
7635 (linux_low_filter_event): If thread exited, call finish_step_over.
7636 If step-over is finished, unsuspend other threads.
7637
8376a3cb
YQ
76382016-06-17 Yao Qi <yao.qi@linaro.org>
7639
7640 * linux-low.c (linux_resume_one_lwp_throw): Assert
7641 has_reinsert_breakpoints returns false.
7642 * mem-break.c (delete_disabled_breakpoints): Assert
7643 bp type isn't reinsert_breakpoint.
7644
f79b145d
YQ
76452016-06-17 Yao Qi <yao.qi@linaro.org>
7646
7647 * linux-low.c (maybe_hw_step): New function.
7648 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7649 (finish_step_over): Switch current_thread to lwp temporarily,
7650 and assert has_reinsert_breakpoints returns true.
7651 (proceed_one_lwp): Call maybe_hw_step.
7652 * mem-break.c (has_reinsert_breakpoints): New function.
7653 * mem-break.h (has_reinsert_breakpoints): Declare.
7654
0ae534d2
JT
76552016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7656
7657 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7658
fcdad592
YQ
76592016-05-17 Yao Qi <yao.qi@linaro.org>
7660
7661 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7662 instead of find_inferior.
7663
9e784964
YQ
76642016-05-05 Yao Qi <yao.qi@linaro.org>
7665
7666 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7667 Initialize res to zero.
7668
cf2ebb6e
YQ
76692016-05-05 Yao Qi <yao.qi@linaro.org>
7670
7671 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7672 to uint32_t.
7673
c1aebf87
UW
76742016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7675
7676 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7677 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7678 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7679
35fd2deb 76802016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 7681 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
7682
7683 * tracepoint.c (write_inferior_int8): New function.
7684 (cmd_qtenable_disable): Write enable flag using
7685 write_inferior_int8.
7686
484b3c32
YQ
76872016-04-25 Yao Qi <yao.qi@linaro.org>
7688
7689 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7690 (need_step_over_p): Return zero if the LWP has pending signals
7691 can be delivered on software single step target.
7692
85ba7d86
YQ
76932016-04-25 Yao Qi <yao.qi@linaro.org>
7694
7695 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7696 return instead of error.
7697
3539aa13
YQ
76982016-04-22 Yao Qi <yao.qi@linaro.org>
7699
7700 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7701 to 23.
7702
5b061e98
YQ
77032016-04-22 Yao Qi <yao.qi@linaro.org>
7704
7705 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7706 signal when stepping over breakpoint with software single
7707 step.
7708
3451269c
PA
77092016-04-21 Pedro Alves <palves@redhat.com>
7710
7711 * linux-s390-low.c (s390_collect_ptrace_register)
7712 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7713 add casts.
7714 (s390_check_regset): Use void * instead of gdb_byte *.
7715
a2358508
PA
77162016-04-20 Pedro Alves <palves@redhat.com>
7717
7718 * configure: Renegerate.
7719
6885166d
YQ
77202016-04-20 Yao Qi <yao.qi@linaro.org>
7721
7722 * linux-aarch32-low.c: Include "arch/arm-linux.h".
7723 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
7724 number 16.
7725 (arm_store_gregset): Likewise.
7726
2b863f51
WT
77272016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
7728
7729 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
7730 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
7731 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
7732 (amd64-avx-mpx-linux.c): New rules.
7733 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
7734 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
7735 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
7736 (srv_amd64_regobj): Add amd64-avx-mpx.o.
7737 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
7738 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
7739 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
7740 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
7741 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
7742 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
7743 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
7744 * linux-x86-low.c (x86_linux_read_description): Add case for
7745 X86_XSTATE_AVX_MPX_MASK.
7746 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
7747 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
7748 init_registers_i386_avx_mpx_linux.
7749 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7750 (initialize_low_tracepoint): Call
7751 init_registers_i386_avx_mpx_linux.
7752 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7753 (initialize_low_tracepoint): Call
7754 init_registers_amd64_avx_mpx_linux.
7755 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
7756 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
7757 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
7758 declarations.
7759
9b30624b
PA
77602016-04-18 Pedro Alves <palves@redhat.com>
7761
7762 * configure: Regenerate.
7763
45e3745e
AT
77642016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
7765
7766 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
7767 (aarch64_emit_sub): Likewise.
7768
2afc13ff
PA
77692016-04-12 Pedro Alves <palves@redhat.com>
7770
7771 * utils.c (prepare_to_throw_exception): Delete.
7772
6e774b13
SM
77732016-04-05 Simon Marchi <simon.marchi@ericsson.com>
7774
7775 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
7776
4dca19f8
MK
77772016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
7778
7779 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
7780
d0a9981f
MK
77812016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
7782
7783 * linux-aarch64-ipa.c: Add <elf.h> include.
7784 * linux-ppc-ipa.c: Add <elf.h> include.
7785 * linux-s390-ipa.c: Add <elf.h> include.
7786
252db07e
MK
77872016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7788
7789 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
7790 (get_raw_reg_ptr): Likewise.
7791 (get_trace_state_variable_value_ptr): Likewise.
7792 (set_trace_state_variable_value_ptr): Likewise.
7793 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
7794 char *.
7795
14e2b6d9
MK
77962016-03-31 Wei-cheng Wang <cole945@gmail.com>
7797 Marcin Kościelnicki <koriakin@0x04.net>
7798
7799 PR/17221
7800 * linux-ppc-low.c (emit_insns): New function.
7801 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
7802 (ppc_emit_prologue): New function.
7803 (ppc_emit_epilogue): New function.
7804 (ppc_emit_add): New function.
7805 (ppc_emit_sub): New function.
7806 (ppc_emit_mul): New function.
7807 (ppc_emit_lsh): New function.
7808 (ppc_emit_rsh_signed): New function.
7809 (ppc_emit_rsh_unsigned): New function.
7810 (ppc_emit_ext): New function.
7811 (ppc_emit_zero_ext): New function.
7812 (ppc_emit_log_not): New function.
7813 (ppc_emit_bit_and): New function.
7814 (ppc_emit_bit_or): New function.
7815 (ppc_emit_bit_xor): New function.
7816 (ppc_emit_bit_not): New function.
7817 (ppc_emit_equal): New function.
7818 (ppc_emit_less_signed): New function.
7819 (ppc_emit_less_unsigned): New function.
7820 (ppc_emit_ref): New function.
7821 (ppc_emit_const): New function.
7822 (ppc_emit_reg): New function.
7823 (ppc_emit_pop): New function.
7824 (ppc_emit_stack_flush): New function.
7825 (ppc_emit_swap): New function.
7826 (ppc_emit_stack_adjust): New function.
7827 (ppc_emit_call): New function.
7828 (ppc_emit_int_call_1): New function.
7829 (ppc_emit_void_call_2): New function.
7830 (ppc_emit_if_goto): New function.
7831 (ppc_emit_goto): New function.
7832 (ppc_emit_eq_goto): New function.
7833 (ppc_emit_ne_goto): New function.
7834 (ppc_emit_lt_goto): New function.
7835 (ppc_emit_le_goto): New function.
7836 (ppc_emit_gt_goto): New function.
7837 (ppc_emit_ge_goto): New function.
7838 (ppc_write_goto_address): New function.
7839 (ppc_emit_ops_impl): New static variable.
7840 (ppc64v1_emit_prologue): New function.
7841 (ppc64v2_emit_prologue): New function.
7842 (ppc64_emit_epilogue): New function.
7843 (ppc64_emit_add): New function.
7844 (ppc64_emit_sub): New function.
7845 (ppc64_emit_mul): New function.
7846 (ppc64_emit_lsh): New function.
7847 (ppc64_emit_rsh_signed): New function.
7848 (ppc64_emit_rsh_unsigned): New function.
7849 (ppc64_emit_ext): New function.
7850 (ppc64_emit_zero_ext): New function.
7851 (ppc64_emit_log_not): New function.
7852 (ppc64_emit_bit_and): New function.
7853 (ppc64_emit_bit_or): New function.
7854 (ppc64_emit_bit_xor): New function.
7855 (ppc64_emit_bit_not): New function.
7856 (ppc64_emit_equal): New function.
7857 (ppc64_emit_less_signed): New function.
7858 (ppc64_emit_less_unsigned): New function.
7859 (ppc64_emit_ref): New function.
7860 (ppc64_emit_const): New function.
7861 (ppc64v1_emit_reg): New function.
7862 (ppc64v2_emit_reg): New function.
7863 (ppc64_emit_pop): New function.
7864 (ppc64_emit_stack_flush): New function.
7865 (ppc64_emit_swap): New function.
7866 (ppc64v1_emit_call): New function.
7867 (ppc64v2_emit_call): New function.
7868 (ppc64v1_emit_int_call_1): New function.
7869 (ppc64v2_emit_int_call_1): New function.
7870 (ppc64v1_emit_void_call_2): New function.
7871 (ppc64v2_emit_void_call_2): New function.
7872 (ppc64_emit_if_goto): New function.
7873 (ppc64_emit_eq_goto): New function.
7874 (ppc64_emit_ne_goto): New function.
7875 (ppc64_emit_lt_goto): New function.
7876 (ppc64_emit_le_goto): New function.
7877 (ppc64_emit_gt_goto): New function.
7878 (ppc64_emit_ge_goto): New function.
7879 (ppc64v1_emit_ops_impl): New static variable.
7880 (ppc64v2_emit_ops_impl): New static variable.
7881 (ppc_emit_ops): New function.
7882 (linux_low_target): Wire in ppc_emit_ops.
7883
a2174ba4
MK
78842016-03-31 Wei-cheng Wang <cole945@gmail.com>
7885 Marcin Kościelnicki <koriakin@0x04.net>
7886
7887 PR/17221
7888 * Makefile.in: Add powerpc-*-ipa.o
7889 * configure.srv: Add ipa_obj for powerpc*-linux.
7890 * linux-ppc-ipa.c: New file.
7891 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
7892 includes.
7893 (PPC_FIELD): New macro.
7894 (PPC_SEXT): New macro.
7895 (PPC_OP6): New macro.
7896 (PPC_BO): New macro.
7897 (PPC_LI): New macro.
7898 (PPC_BD): New macro.
7899 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
7900 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
7901 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
7902 (ppc_get_thread_area): New function.
7903 (is_elfv2_inferior): New function.
7904 (gen_ds_form): New function.
7905 (GEN_STD): New macro.
7906 (GEN_STDU): New macro.
7907 (GEN_LD): New macro.
7908 (GEN_LDU): New macro.
7909 (gen_d_form): New function.
7910 (GEN_ADDI): New macro.
7911 (GEN_ADDIS): New macro.
7912 (GEN_LI): New macro.
7913 (GEN_LIS): New macro.
7914 (GEN_ORI): New macro.
7915 (GEN_ORIS): New macro.
7916 (GEN_LWZ): New macro.
7917 (GEN_STW): New macro.
7918 (GEN_STWU): New macro.
7919 (gen_xfx_form): New function.
7920 (GEN_MFSPR): New macro.
7921 (GEN_MTSPR): New macro.
7922 (GEN_MFCR): New macro.
7923 (GEN_MTCR): New macro.
7924 (GEN_SYNC): New macro.
7925 (GEN_LWSYNC): New macro.
7926 (gen_x_form): New function.
7927 (GEN_OR): New macro.
7928 (GEN_MR): New macro.
7929 (GEN_LWARX): New macro.
7930 (GEN_STWCX): New macro.
7931 (GEN_CMPW): New macro.
7932 (gen_md_form): New function.
7933 (GEN_RLDICL): New macro.
7934 (GEN_RLDICR): New macro.
7935 (gen_i_form): New function.
7936 (GEN_B): New macro.
7937 (GEN_BL): New macro.
7938 (gen_b_form): New function.
7939 (GEN_BNE): New macro.
7940 (GEN_LOAD): New macro.
7941 (GEN_STORE): New macro.
7942 (gen_limm): New function.
7943 (gen_atomic_xchg): New function.
7944 (gen_call): New function.
7945 (ppc_relocate_instruction): New function.
7946 (ppc_install_fast_tracepoint_jump_pad): New function.
7947 (ppc_get_min_fast_tracepoint_insn_len): New function.
7948 (ppc_get_ipa_tdesc_idx): New function.
7949 (the_low_target): Wire in the new functions.
7950 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
7951 tdescs.
7952 * linux-ppc-tdesc.h: New file.
7953
a13c4696
MK
79542016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7955
7956 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
7957 (alloc_jump_pad_buffer): New function.
7958 * linux-amd64-ipa.c: Add <sys/mman.h> include.
7959 (alloc_jump_pad_buffer): New function.
7960 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
7961 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
7962 (alloc_jump_pad_buffer): New function.
7963 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
7964 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
7965 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
7966 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
7967
1cda1512
MK
79682016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
7969
7970 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
7971 * linux-amd64-ipa.c: Likewise.
7972 * linux-i386-ipa.c: Likewise.
7973 * linux-s390-ipa.c: Likewise.
7974 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
7975 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
7976 set_trace_state_variable_value_ptr.
7977 (struct ipa_sym_addresses): Likewise.
7978 (symbol_list): Likewise.
7979 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
7980 accessing gdb_collect directly.
7981 (gdb_collect_ptr_type): New typedef.
7982 (get_raw_reg_ptr_type): New typedef.
7983 (get_trace_state_variable_value_ptr_type): New typedef.
7984 (set_trace_state_variable_value_ptr_type): New typedef.
7985 (gdb_collect_ptr): New global.
7986 (get_raw_reg_ptr): New global.
7987 (get_trace_state_variable_value_ptr): New global.
7988 (set_trace_state_variable_value_ptr): New global.
7989 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
7990 accessing get_raw_reg directly.
7991 (get_get_tsv_func_addr): Likewise for
7992 get_trace_state_variable_value_ptr.
7993 (get_set_tsv_func_addr): Likewise for
7994 set_trace_state_variable_value_ptr.
7995 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
7996
72fb5488
SM
79972016-03-30 Simon Marchi <simon.marchi@ericsson.com>
7998
7999 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8000
28170b88
MK
80012016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8002
8003 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8004 packets.
8005 (relocate_instruction): Remove own_buf.
8006 * server.c (own_buf): Make global.
8007 (handle_v_requests): Make global.
8008 * server.h (own_buf): New declaration.
8009 (handle_v_requests): New prototype.
8010
f39e8743
MK
80112016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8012
8013 PR 18377
8014 * linux-s390-low.c (add_insns): New function.
8015 (s390_emit_prologue): New function.
8016 (s390_emit_epilogue): New function.
8017 (s390_emit_add): New function.
8018 (s390_emit_sub): New function.
8019 (s390_emit_mul): New function.
8020 (s390_emit_lsh): New function.
8021 (s390_emit_rsh_signed): New function.
8022 (s390_emit_rsh_unsigned): New function.
8023 (s390_emit_ext): New function.
8024 (s390_emit_log_not): New function.
8025 (s390_emit_bit_and): New function.
8026 (s390_emit_bit_or): New function.
8027 (s390_emit_bit_xor): New function.
8028 (s390_emit_bit_not): New function.
8029 (s390_emit_equal): New function.
8030 (s390_emit_less_signed): New function.
8031 (s390_emit_less_unsigned): New function.
8032 (s390_emit_ref): New function.
8033 (s390_emit_if_goto): New function.
8034 (s390_emit_goto): New function.
8035 (s390_write_goto_address): New function.
8036 (s390_emit_litpool): New function.
8037 (s390_emit_const): New function.
8038 (s390_emit_call): New function.
8039 (s390_emit_reg): New function.
8040 (s390_emit_pop): New function.
8041 (s390_emit_stack_flush): New function.
8042 (s390_emit_zero_ext): New function.
8043 (s390_emit_swap): New function.
8044 (s390_emit_stack_adjust): New function.
8045 (s390_emit_set_r2): New function.
8046 (s390_emit_int_call_1): New function.
8047 (s390_emit_void_call_2): New function.
8048 (s390_emit_eq_goto): New function.
8049 (s390_emit_ne_goto): New function.
8050 (s390_emit_lt_goto): New function.
8051 (s390_emit_le_goto): New function.
8052 (s390_emit_gt_goto): New function.
8053 (s390_emit_ge_goto): New function.
8054 (s390x_emit_prologue): New function.
8055 (s390x_emit_epilogue): New function.
8056 (s390x_emit_add): New function.
8057 (s390x_emit_sub): New function.
8058 (s390x_emit_mul): New function.
8059 (s390x_emit_lsh): New function.
8060 (s390x_emit_rsh_signed): New function.
8061 (s390x_emit_rsh_unsigned): New function.
8062 (s390x_emit_ext): New function.
8063 (s390x_emit_log_not): New function.
8064 (s390x_emit_bit_and): New function.
8065 (s390x_emit_bit_or): New function.
8066 (s390x_emit_bit_xor): New function.
8067 (s390x_emit_bit_not): New function.
8068 (s390x_emit_equal): New function.
8069 (s390x_emit_less_signed): New function.
8070 (s390x_emit_less_unsigned): New function.
8071 (s390x_emit_ref): New function.
8072 (s390x_emit_if_goto): New function.
8073 (s390x_emit_const): New function.
8074 (s390x_emit_call): New function.
8075 (s390x_emit_reg): New function.
8076 (s390x_emit_pop): New function.
8077 (s390x_emit_stack_flush): New function.
8078 (s390x_emit_zero_ext): New function.
8079 (s390x_emit_swap): New function.
8080 (s390x_emit_stack_adjust): New function.
8081 (s390x_emit_int_call_1): New function.
8082 (s390x_emit_void_call_2): New function.
8083 (s390x_emit_eq_goto): New function.
8084 (s390x_emit_ne_goto): New function.
8085 (s390x_emit_lt_goto): New function.
8086 (s390x_emit_le_goto): New function.
8087 (s390x_emit_gt_goto): New function.
8088 (s390x_emit_ge_goto): New function.
8089 (s390_emit_ops): New function.
8090 (struct linux_target_ops): Fill in emit_ops hook.
8091
abd9baf9
MK
80922016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8093
8094 PR 18377
8095 * Makefile.in: Add s390 IPA files.
8096 * configure.srv: Build IPA for s390.
8097 * linux-s390-ipa.c: New file.
8098 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8099 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8100 (tdesc_s390_linux32): Likewise.
8101 (init_registers_s390_linux32v1): Likewise.
8102 (tdesc_s390_linux32v1): Likewise.
8103 (init_registers_s390_linux32v2): Likewise.
8104 (tdesc_s390_linux32v2): Likewise.
8105 (init_registers_s390_linux64): Likewise.
8106 (tdesc_s390_linux64): Likewise.
8107 (init_registers_s390_linux64v1): Likewise.
8108 (tdesc_s390_linux64v1): Likewise.
8109 (init_registers_s390_linux64v2): Likewise.
8110 (tdesc_s390_linux64v2): Likewise.
8111 (init_registers_s390_te_linux64): Likewise.
8112 (tdesc_s390_te_linux64): Likewise.
8113 (init_registers_s390_vx_linux64): Likewise.
8114 (tdesc_s390_vx_linux64): Likewise.
8115 (init_registers_s390_tevx_linux64): Likewise.
8116 (tdesc_s390_tevx_linux64): Likewise.
8117 (init_registers_s390x_linux64): Likewise.
8118 (tdesc_s390x_linux64): Likewise.
8119 (init_registers_s390x_linux64v1): Likewise.
8120 (tdesc_s390x_linux64v1): Likewise.
8121 (init_registers_s390x_linux64v2): Likewise.
8122 (tdesc_s390x_linux64v2): Likewise.
8123 (init_registers_s390x_te_linux64): Likewise.
8124 (tdesc_s390x_te_linux64): Likewise.
8125 (init_registers_s390x_vx_linux64): Likewise.
8126 (tdesc_s390x_vx_linux64): Likewise.
8127 (init_registers_s390x_tevx_linux64): Likewise.
8128 (tdesc_s390x_tevx_linux64): Likewise.
8129 (have_hwcap_s390_vx): New static variable.
8130 (s390_arch_setup): Fill have_hwcap_s390_vx.
8131 (s390_get_thread_area): New function.
8132 (s390_ft_entry_gpr_esa): New const.
8133 (s390_ft_entry_gpr_zarch): New const.
8134 (s390_ft_entry_misc): New const.
8135 (s390_ft_entry_fr): New const.
8136 (s390_ft_entry_vr): New const.
8137 (s390_ft_main_31): New const.
8138 (s390_ft_main_64): New const.
8139 (s390_ft_exit_fr): New const.
8140 (s390_ft_exit_vr): New const.
8141 (s390_ft_exit_misc): New const.
8142 (s390_ft_exit_gpr_esa): New const.
8143 (s390_ft_exit_gpr_zarch): New const.
8144 (append_insns): New function.
8145 (s390_relocate_instruction): New function.
8146 (s390_install_fast_tracepoint_jump_pad): New function.
8147 (s390_get_min_fast_tracepoint_insn_len): New function.
8148 (s390_get_ipa_tdesc_idx): New function.
8149 (struct linux_target_ops): Wire in the above functions.
8150 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8151 * linux-s390-tdesc.h: New file.
8152
a4105d04
MK
81532016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8154
8155 * linux-s390-low.c (s390_supports_tracepoints): New function.
8156 (struct linux_target_ops): Fill supports_tracepoints hook.
8157
35ac8b3e
YQ
81582016-03-18 Yao Qi <yao.qi@linaro.org>
8159
8160 * linux-low.c (lwp_signal_can_be_delivered): New function.
8161 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8162
94610ec4
YQ
81632016-03-18 Yao Qi <yao.qi@linaro.org>
8164
8165 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8166 0 if signal is enqueued. Remove 'signal' from one debugging
8167 message. Move one debugging message to some lines below.
8168 Remove code setting 'signal' to 0.
8169
80aea927
YQ
81702016-03-18 Yao Qi <yao.qi@linaro.org>
8171
8172 * linux-low.c (linux_low_filter_event): Remove redundant
8173 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8174
b04fd3be
MK
81752016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8176
8177 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8178 (struct linux_target_ops): Wire in the above.
8179
c40c8d4b
YQ
81802016-03-03 Yao Qi <yao.qi@linaro.org>
8181
8182 * linux-low.c: Update comments to start_step_over.
8183
0f8288ae
YQ
81842016-03-03 Yao Qi <yao.qi@linaro.org>
8185
8186 PR server/19736
8187 * linux-low.c (handle_extended_wait): Set child suspended
8188 if event_lwp->bp_reinsert isn't zero.
8189
fdbd04a8
YQ
81902016-03-02 Yao Qi <yao.qi@linaro.org>
8191
8192 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8193 enqueue_pending_signal.
8194
6896a8fa
MK
81952016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8196
8197 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8198 is actually loaded.
8199
ab503087
MK
82002016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8201
8202 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8203 (s390_regmap_3264) [!__s390x__]: New global.
8204 (s390_collect_ptrace_register): Skip map entries containing -1.
8205 (s390_supply_ptrace_register): Ditto.
8206 (s390_fill_gprs_high): New function.
8207 (s390_store_gprs_high): New function.
8208 (s390_regsets): Add NT_S390_HIGH_GPRS.
8209 (s390_get_hwcap): Enable on 31-bit.
8210 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8211 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8212 Detect NT_S390_HIGH_GPRS.
8213 (s390_usrregs_info_3264): Enable on 31-bit.
8214 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8215 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8216
ae91f625
MK
82172016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8218
8219 PR gdb/13808
8220 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8221 * configure.srv: Ditto.
8222 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8223 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8224 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8225 (init_registers_amd64_linux): Remove prototype.
8226 (tdesc_amd64_linux): Remove declaration.
8227 (get_ipa_tdesc): New function.
8228 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8229 initialize remaining tdescs.
8230 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8231 (init_registers_i386_linux): Remove prototype.
8232 (tdesc_i386_linux): Remove declaration.
8233 (get_ipa_tdesc): New function.
8234 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8235 initialize remaining tdescs.
8236 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8237 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8238 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8239 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8240 (x86_get_ipa_tdesc_idx): New function.
8241 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8242 * linux-x86-tdesc.h: New file.
8243 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8244 (target_get_ipa_tdesc_idx): New macro.
8245 * tracepoint.c (ipa_tdesc_idx): New macro.
8246 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8247 (symbol_list): Add ipa_tdesc_idx.
8248 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8249 (ipa_tdesc): Remove.
8250 (ipa_tdesc_idx): New variable.
8251 (get_context_regcache): Use get_ipa_tdesc.
8252 (gdb_collect): Ditto.
8253 (gdb_probe): Ditto.
8254 * tracepoint.h (get_ipa_tdesc): New prototype.
8255 (ipa_tdesc): Remove.
8256
e7ad2f14
PA
82572016-02-24 Pedro Alves <palves@redhat.com>
8258
8259 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8260 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8261 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8262 Factor out common code between the USE_SIGTRAP_SIGINFO and
8263 !USE_SIGTRAP_SIGINFO blocks.
8264 (linux_low_filter_event): Call save_stop_reason instead of
8265 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8266 Update comments.
8267 (linux_wait_1): Update comments.
8268
657f9cde
WW
82692016-02-24 Wei-cheng Wang <cole945@gmail.com>
8270
8271 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8272 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8273 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8274 ppc_insert_point, ppc_remove_point.
8275
b00b61e1
MK
82762016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8277
8278 * linux-s390-low.c (s390_supports_z_point_type): New function.
8279 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8280
553cb527
YQ
82812016-02-16 Yao Qi <yao.qi@linaro.org>
8282
8283 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8284 PC. Get pc from regcache_read_pc.
8285
a5652c21
YQ
82862016-02-12 Yao Qi <yao.qi@linaro.org>
8287
8288 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8289 or linux_get_pc_32bit.
8290 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8291
ed443b61
YQ
82922016-02-12 Yao Qi <yao.qi@linaro.org>
8293
8294 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8295 arm_linux_get_next_pcs_fixup.
8296
020ecd38
MK
82972016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8298
8299 * tracepoint.c (x_tracepoint_action_download): Change
8300 write_inferior_data_ptr to write_inferior_data_pointer.
8301 (cmd_qtstart): Likewise.
8302 (write_inferior_data_ptr): Remove.
8303 (download_agent_expr): Change write_inferior_data_ptr to
8304 write_inferior_data_pointer.
8305 (download_tracepoint_1): Likewise.
8306 (download_tracepoint): Likewise.
8307 (download_trace_state_variables): Likewise.
8308
7cae9051
WW
83092016-02-11 Wei-cheng Wang <cole945@gmail.com>
8310 Marcin Kościelnicki <koriakin@0x04.net>
8311
8312 * tracepoint.c (struct tracepoint_action_ops): Remove.
8313 (struct tracepoint_action): Remove ops.
8314 (m_tracepoint_action_download, r_tracepoint_action_download)
8315 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8316 size and offset accordingly.
8317 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8318 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8319 (tracepoint_action_send, tracepoint_action_download): New functions.
8320 Helpers for trace action handlers.
8321 (add_tracepoint_action): Remove setup actions ops.
8322 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8323
9f6a71b4
YQ
83242016-02-10 Yao Qi <yao.qi@linaro.org>
8325
8326 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8327
1e94266c
SM
83282016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8329
8330 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8331 to AC_OUTPUT.
8332 * configure: Regenerate.
8333
8adce034
SM
83342016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8335
8336 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8337 void * to gdb_byte *.
8338 * linux-low.c (siginfo_fixup): Likewise.
8339 (linux_xfer_siginfo): Likewise.
8340 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8341 Likewise.
8342 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8343
93813b37
WT
83442016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8345
8346 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8347 to srv_tgtobj.
8348 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8349 to srv_tgtobj.
8350 * linux-x86-low.c [__x86_64__]: Include
8351 "nat/amd64-linux-siginfo.h".
8352 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8353 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8354 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8355 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8356 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8357 (cpt_si_fd, si_timerid, si_overrun): Move from
8358 nat/amd64-linux-siginfo.c.
8359 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8360
8424cc97
SM
83612016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8362
8363 * server.c (skip_to_semicolon): Remove.
8364 (process_point_options): Use strchrnul instead of
8365 skip_to_semicolon.
8366
4d18591b
YQ
83672016-01-26 Yao Qi <yao.qi@linaro.org>
8368
8369 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8370 * linux-low.c (install_software_single_step_breakpoints): Don't
8371 call regcache_read_pc.
8372 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8373 argument pc.
8374
d8020970
YQ
83752016-01-26 Yao Qi <yao.qi@linaro.org>
8376
8377 * linux-low.c (install_software_single_step_breakpoints): Call
8378 regcache_read_pc instead of get_pc.
8379
8b207339
YQ
83802016-01-26 Yao Qi <yao.qi@linaro.org>
8381
8382 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8383 (unblock_async_io): Rename to ...
8384 (block_unblock_async_io): ... it. New function.
8385 (enable_async_io): Don't install SIGIO handler. Unblock it
8386 instead.
8387 (disable_async_io): Don't ignore SIGIO. Block it instead.
8388 (initialize_async_io): Install SIGIO handler. Don't call
8389 unblock_async_io.
8390
18879fef
YQ
83912016-01-26 Yao Qi <yao.qi@linaro.org>
8392
8393 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8394 first character is '\003', call *the_target->request_interrupt.
8395
a0f8e08a
YQ
83962016-01-25 Yao Qi <yao.qi@linaro.org>
8397
8398 * remote-utils.c (new_thread_notify): Remove.
8399 (dead_thread_notify): Likewise.
8400 * remote-utils.h (new_thread_notify): Remove declaration.
8401 (dead_thread_notify): Likewise.
8402
cc5fd9ab
MK
84032016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8404
8405 * gdb.trace/pending.exp: Fix expected message on continue.
8406
99e8eb11
MK
84072016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8408
8409 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8410 it works properly on big-endian machines where sizeof (CORE_ADDR)
8411 != sizeof (void *).
8412
a994041d
PA
84132016-01-21 Pedro Alves <palves@redhat.com>
8414
8415 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8416 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8417 * configure: Regenerate.
8418
f7a6a40d
YQ
84192016-01-21 Yao Qi <yao.qi@linaro.org>
8420
8421 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8422 is_thumb and set it according to CPSR saved on the stack.
8423 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8424 arm_sigreturn_next_pc.
8425
6f69e520
YQ
84262016-01-18 Yao Qi <yao.qi@linaro.org>
8427
8428 * linux-low.c (linux_set_pc_64bit): New function.
8429 (linux_get_pc_64bit): New function.
8430 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8431 Declare.
8432 * linux-sparc-low.c (debug_threads): Remove declaration.
8433 (sparc_get_pc): Remove.
8434 (the_low_target): Use linux_get_pc_64bit instead of
8435 sparc_get_pc.
8436 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8437 (the_low_target): Use linux_get_pc_64bit and
8438 linux_set_pc_64bit.
8439
276d4552
YQ
84402016-01-18 Yao Qi <yao.qi@linaro.org>
8441
8442 * linux-arm-low.c (debug_threads): Remove declaration.
8443 (arm_get_pc, arm_set_pc): Remove.
8444 (the_low_target): Use linux_get_pc_32bit and
8445 linux_set_pc_32bit.
8446 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8447 (the_low_target): Use linux_get_pc_32bit and
8448 linux_set_pc_32bit.
8449 * linux-cris-low.c (debug_threads): Remove declaration.
8450 (cris_get_pc, cris_set_pc,): Remove.
8451 (the_low_target): Use linux_get_pc_32bit and
8452 linux_set_pc_32bit.
8453 * linux-crisv32-low.c (debug_threads): Remove declaration.
8454 (cris_get_pc, cris_set_pc): Remove.
8455 (the_low_target): Use linux_get_pc_32bit and
8456 linux_set_pc_32bit.
8457 * linux-low.c: Include inttypes.h.
8458 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8459 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8460 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8461 (the_low_target): Use linux_get_pc_32bit and
8462 linux_set_pc_32bit.
8463 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8464 (the_low_target): Use linux_get_pc_32bit and
8465 linux_set_pc_32bit.
8466 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8467 (the_low_target): Use linux_get_pc_32bit and
8468 linux_set_pc_32bit.
8469 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8470 (the_low_target): Use linux_get_pc_32bit and
8471 linux_set_pc_32bit.
8472 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8473 (the_low_target): Use linux_get_pc_32bit and
8474 linux_set_pc_32bit.
8475
eb0edac8
GB
84762016-01-18 Gary Benson <gbenson@redhat.com>
8477
8478 * configure.ac (AC_FUNC_FORK): New check.
8479 * config.in: Regenerate.
8480 * configure: Likewise.
8481
1b451dda
YQ
84822016-01-14 Yao Qi <yao.qi@linaro.org>
8483
8484 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8485 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8486 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8487 arm_get_next_pcs_ctor.
8488
82075af2
JS
84892016-01-12 Josh Stone <jistone@redhat.com>
8490 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8491
8492 * inferiors.h: Include "gdb_vecs.h".
8493 (struct process_info): Add syscalls_to_catch.
8494 * inferiors.c (remove_process): Free syscalls_to_catch.
8495 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8496 syscall_return stops.
8497 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8498 * server.c (handle_general_set): Handle QCatchSyscalls.
8499 (handle_query): Report support for QCatchSyscalls.
8500 * target.h (struct target_ops): Add supports_catch_syscall.
8501 (target_supports_catch_syscall): New macro.
8502 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8503 (struct lwp_info): Add syscall_state.
8504 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8505 Maintain syscall_state and syscalls_to_catch across exec.
8506 (get_syscall_trapinfo): New function, proxy to the_low_target.
8507 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8508 (linux_low_filter_event): Toggle syscall_state entry/return for
8509 syscall traps, and set it ignored for all others.
8510 (gdb_catching_syscalls_p): New function.
8511 (gdb_catch_this_syscall_p): New function.
8512 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8513 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8514 (linux_supports_catch_syscall): New function.
8515 (linux_target_ops): Install it.
8516 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8517 (the_low_target): Install it.
8518
8f13a3ce
MF
85192016-01-12 Mike Frysinger <vapier@gentoo.org>
8520
8521 * acinclude.m4: Include new ../warning.m4 file.
8522 * configure: Regenerated.
8523 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8524
5b3da067
MF
85252016-01-12 Mike Frysinger <vapier@gentoo.org>
8526
8527 * ax.c (is_goto_target): Mark static.
8528 * linux-low.c (register_addr): Likewise.
8529 (linux_fetch_registers, linux_store_registers): Likewise.
8530 * mem-break.c (any_persistent_commands): Fix old prototype.
8531 (add_commands_to_breakpoint): Mark static.
8532 * regcache.c (find_register_by_name): Delete unused func.
8533 * remote-utils.c (hex_or_minus_one): Mark static.
8534 * server.c (monitor_show_help): Mark static.
8535 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8536 handle_v_requests): Likewise.
8537
bc504a31
PA
85382016-01-12 Pedro Alves <palves@redhat.com>
8539
8540 Remove use of the registered trademark symbol throughout.
8541
5a0dd67a
YQ
85422016-01-08 Yao Qi <yao.qi@linaro.org>
8543
8544 * remote-utils.c (getpkt): If c is '\003', call target hook
8545 request_interrupt.
8546
b2ca446f
YQ
85472016-01-06 Yao Qi <yao.qi@linaro.org>
8548
8549 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8550 linux-aarch32-low.c.
8551 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8552 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8553 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8554 (thumb2_breakpoint): Declare.
8555 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8556 linux-aarch32-low.h.
8557 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8558 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8559 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8560
edd88788
JB
85612016-01-01 Joel Brobecker <brobecker@adacore.com>
8562
8563 * gdbreplay.c (gdbreplay_version): Change copyright year in
8564 version message.
8565 * server.c (gdbserver_version): Likewise.
8566
65da7f14
PP
85672015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8568
8569 * server.c (crc32_table): Delete.
8570 (crc32): Use libiberty's xcrc32 function.
8571
4abd5ed2
JB
85722015-12-22 Joel Brobecker <brobecker@adacore.com>
8573
8574 * lynx-low.c (lynx_delete_thread_callback): New function.
8575 (lynx_mourn): Properly delete our process and all of its
8576 threads. Remove call to clear_inferiors.
8577
0e50fe5c
JB
85782015-12-22 Joel Brobecker <brobecker@adacore.com>
8579
8580 * target.c (thread_search_callback): Add check that
8581 the thread_stopped target callback is not NULL before
8582 calling it.
8583
35adc03f
YQ
85842015-12-21 Yao Qi <yao.qi@linaro.org>
8585
8586 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8587 arm breakpoint.
8588
bd2b2909
AT
85892015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8590
8591 * server.c (handle_query): Call target_supports_software_single_step.
8592
7fe5e27e
AT
85932015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8594
8595 * linux-low.c (single_step): New function.
8596 (linux_resume_one_lwp_throw): Call single_step.
8597 (start_step_over): Likewise.
8598
d9311bfa
AT
85992015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8600
8601 * Makefile.in (SFILES): Append arch/arm-linux.c,
8602 arch/arm-get-next-pcs.c.
8603 (arm-linux.o): New rule.
8604 (arm-get-next-pcs.o): New rule.
8605 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8606 arm-linux.o.
8607 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8608 to linux-aarch32-low.c.
8609 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8610 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8611 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8612 (thumb2_breakpoint_len): Likewise.
8613 (arm_is_thumb_mode): Make non-static.
8614 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8615 from linux-aarch32-low.c.
8616 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8617 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8618 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8619 (thumb2_breakpoint_len): Likewise.
8620 (arm_is_thumb_mode): New declaration.
8621 * linux-arm-low.c: Include arch/arm-linux.h
8622 aarch/arm-get-next-pcs.h, sys/syscall.h.
8623 (get_next_pcs_ops): New struct.
8624 (get_next_pcs_addr_bits_remove): New function.
8625 (get_next_pcs_is_thumb): New function.
8626 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8627 (arm_sigreturn_next_pc): Likewise.
8628 (get_next_pcs_syscall_next_pc): Likewise.
8629 (arm_gdbserver_get_next_pcs): Likewise.
8630 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8631 Initialize.
8632 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8633 * server.h: Include gdb_vecs.h.
8634
68ce2059
AT
86352015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8636
8637 * Makefile.in (SFILES): Append common/common-regcache.c.
8638 (OBS): Append common-regcache.o.
8639 (common-regcache.o): New rule.
8640 * regcache.c (init_register_cache): Initialize cache to
8641 REG_UNAVAILABLE.
8642 (regcache_raw_read_unsigned): New function.
8643 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8644 register_status enum.
8645
fa5308bd
AT
86462015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8647
8648 * linux-aarch64-low.c (the_low_targets): Rename
8649 breakpoint_reinsert_addr to get_next_pcs.
8650 * linux-arm-low.c (the_low_targets): Likewise.
8651 * linux-bfin-low.c (the_low_targets): Likewise.
8652 * linux-cris-low.c (the_low_targets): Likewise.
8653 * linux-crisv32-low.c (the_low_targets): Likewise.
8654 * linux-low.c (can_software_single_step): Likewise.
8655 (install_software_single_step_breakpoints): New function.
8656 (start_step_over): Use install_software_single_step_breakpoints.
8657 * linux-low.h: New CORE_ADDR vector.
8658 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8659 get_next_pcs.
8660 * linux-mips-low.c (the_low_targets): Likewise.
8661 * linux-nios2-low.c (the_low_targets): Likewise.
8662 * linux-sparc-low.c (the_low_targets): Likewise.
8663
4a6ed09b
PA
86642015-12-17 Pedro Alves <palves@redhat.com>
8665
8666 * linux-low.c (linux_kill_one_lwp): Remove references to
8667 LinuxThreads.
8668 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8669 to 'kill'.
8670 (linux_init_signals): Delete.
8671 (initialize_low): Adjust.
8672 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8673
7544db95
PA
86742015-12-16 Pedro Alves <palves@redhat.com>
8675
8676 * configure.ac (compiler warning flags): When testing a
8677 -Wno-foo option, check whether -Wfoo works instead.
8678 * configure: Regenerate.
8679
8020350c
DB
86802015-12-11 Don Breazeal <donb@codesourcery.com>
8681
8682 * server.c (process_serial_event): Don't exit from gdbserver
8683 in remote mode if there are still active inferiors.
8684
db91f502
YQ
86852015-12-11 Yao Qi <yao.qi@linaro.org>
8686
8687 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8688 arm_breakpoint_at if the process is 32-bit.
8689
b37a6290
YQ
86902015-12-11 Yao Qi <yao.qi@linaro.org>
8691
8692 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8693 arm breakpoint.
8694
17b1509a
YQ
86952015-12-07 Yao Qi <yao.qi@linaro.org>
8696
8697 * configure.srv: Append arm.o to srv_tgtobj for
8698 aarch64*-*-linux* target.
8699 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8700 from linux-arm-low.c.
8701 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8702 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8703 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8704 (thumb2_breakpoint_len): Likewise.
8705 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8706 (arm_breakpoint_kinds): Likewise.
8707 (arm_breakpoint_kind_from_pc): Likewise.
8708 (arm_sw_breakpoint_from_kind): Likewise.
8709 (arm_breakpoint_kind_from_current_state): Likewise.
8710 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
8711 (arm_sw_breakpoint_from_kind): Declare.
8712 (arm_breakpoint_kind_from_current_state): Declare.
8713 (arm_breakpoint_at): Declare.
8714 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
8715 arm_sw_breakpoint_from_kind if process is 32-bit.
8716 (aarch64_breakpoint_kind_from_pc): New function.
8717 (aarch64_breakpoint_kind_from_current_state): New function.
8718 (the_low_target): Initialize fields breakpoint_kind_from_pc
8719 and breakpoint_kind_from_current_state.
8720 * linux-arm-low.c (arm_breakpoint_kinds): Move to
8721 linux-aarch32-low.c.
8722 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
8723 (arm_breakpoint, arm_breakpoint_len): Likewise.
8724 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
8725 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8726 (arm_is_thumb_mode): Likewise.
8727 (arm_breakpoint_at): Likewise.
8728 (arm_breakpoint_kind_from_pc): Likewise.
8729 (arm_sw_breakpoint_from_kind): Likewise.
8730 (arm_breakpoint_kind_from_current_state): Likewise.
8731
8732 Revert:
8733 2015-08-04 Yao Qi <yao.qi@linaro.org>
8734
8735 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8736 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8737 * server.c (extended_protocol): Remove "static".
8738 * server.h (extended_protocol): Declare it.
8739
ece66d65
JS
87402015-12-04 Josh Stone <jistone@redhat.com>
8741
8742 * target.h (struct target_ops) <arch_setup>: Rename to ...
8743 (struct target_ops) <post_create_inferior>: ... this.
8744 (target_arch_setup): Rename to ...
8745 (target_post_create_inferior): ... this, calling post_create_inferior.
8746 * server.c (start_inferior): Update target_arch_setup calls to
8747 target_post_create_inferior.
8748 * linux-low.c (linux_low_ptrace_options): Forward declare.
8749 (linux_arch_setup): Update its comment for general use.
8750 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
8751 (struct linux_target_ops): Use linux_post_create_inferior.
8752 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
8753 to post_create_inferior.
8754 * nto-low.c (struct nto_target_ops): Likewise.
8755 * spu-low.c (struct spu_target_ops): Likewise.
8756 * win32-low.c (struct win32_target_ops): Likewise.
8757
e58c48b4
AT
87582015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
8759
8760 * linux-arm-low.c: Remove duplicate arch/arm.h include.
8761
fbec8956
AT
87622015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8763
8764 * linux-arm-low.c (arm_reinsert_addr): Remove function.
8765 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
8766 * linux-cris-low.c (cris_reinsert_addr> Remove function.
8767 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8768 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
8769 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8770 * linux-mips-low.c (mips_reinsert_addr): Remove function.
8771 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8772 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
8773 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8774 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
8775 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8776
9b4c5f87
AT
87772015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8778
8779 * linux-low.c (linux_look_up_symbols): Don't call
8780 linux_supports_traceclone.
8781 * linux-low.h (thread_db_init): Remove use_events argument.
8782 * thread-db.c (thread_db_use_event): Remove global variable.
8783 (struct thread_db) <td_thr_event_enable_p>: Remove field.
8784 (struct thread_db) <td_create_bp>: Remove field.
8785 (thread_db_create_event): Remove function.
8786 (thread_db_enable_reporting): Likewise.
8787 (find_one_thread): Don't check for thread_db_use_events.
8788 (attach_thread): Likewise.
8789 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
8790 (try_thread_db_load_1): Don't check for thread_db_use_events.
8791 (thread_db_init): Remove use_events argument and thread events
8792 handling.
8793 (remove_thread_event_breakpoints): Remove function.
8794 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
8795
7d00775e
AT
87962015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8797
8798 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
8799 New function.
8800 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8801 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
8802 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8803 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
8804 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
8805 Initialize.
8806 * linux-crisv32-low.c (cris_supports_hardware_single_step):
8807 New function.
8808 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8809 * linux-low.c (can_hardware_single_step): Use
8810 supports_hardware_single_step.
8811 (can_software_single_step): New function.
8812 (start_step_over): Call can_software_single_step.
8813 (linux_supports_hardware_single_step): New function.
8814 (struct target_ops) <supports_software_single_step>: Initialize.
8815 * linux-low.h (struct linux_target_ops)
8816 <supports_hardware_single_step>: Initialize.
8817 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
8818 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8819 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
8820 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
8821 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
8822 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8823 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
8824 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8825 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
8826 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
8827 Initialize.
8828 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
8829 (struct linux_target_ops) <tile_supports_hardware_single_step>:
8830 Initialize.
8831 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
8832 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8833 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
8834 New function.
8835 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8836 * target.h (struct target_ops): <supports_software_single_step>:
8837 New field.
8838 (target_supports_software_single_step): New macro.
8839
2d97cd35
AT
88402015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8841
8842 * linux-low.c (linux_wait_1): Fix pc advance condition.
8843 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
8844 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
8845
769ef81f
AT
88462015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8847
8848 * linux-arm-low.c (arm_is_thumb_mode): New function.
8849 (arm_breakpoint_at): Use arm_is_thumb_mode.
8850 (arm_breakpoint_kind_from_current_state): New function.
8851 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
8852 Initialize.
8853 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
8854 (linux_breakpoint_kind_from_current_state): New function.
8855 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
8856 * linux-low.h (struct linux_target_ops)
8857 <breakpoint_kind_from_current_state>: New field.
8858 * target.h (struct target_ops): Likewise.
8859 (target_breakpoint_kind_from_current_state): New macro.
8860
1bebeeca
PA
88612015-11-30 Pedro Alves <palves@redhat.com>
8862
8863 * linux-low.c (linux_resume): Wake up the event loop before
8864 returning.
8865
a67a9fae
PA
88662015-11-30 Pedro Alves <palves@redhat.com>
8867
8868 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
8869 check.
8870 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
8871 to -1.
8872 * target.c (struct thread_search): New structure.
8873 (thread_search_callback): New function.
8874 (prev_general_thread): New global.
8875 (prepare_to_access_memory, done_accessing_memory): New functions.
8876 * target.h (prepare_to_access_memory, done_accessing_memory):
8877 Replace macros with function declarations.
8878
f2faf941
PA
88792015-11-30 Pedro Alves <palves@redhat.com>
8880
8881 PR 14618
8882 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
8883 report TARGET_WAITKIND_NO_RESUMED.
8884 * remote-utils.c (prepare_resume_reply): Handle
8885 TARGET_WAITKIND_NO_RESUMED.
8886 * server.c (report_no_resumed): New global.
8887 (handle_query) <qSupported>: Handle "no-resumed+". Report
8888 "no-resumed+" support.
8889 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
8890 return error if the client doesn't support no-resumed events.
8891 (push_stop_notification): New function.
8892 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
8893 events if the client supports them.
8894
a681f9c9
PA
88952015-11-30 Pedro Alves <palves@redhat.com>
8896
8897 * linux-low.c (thread_still_has_status_pending_p): Don't check
8898 vCont;t here.
8899 (lwp_resumed): New function.
8900 (status_pending_p_callback): Return early if the LWP is not
8901 supposed to be resumed.
8902
65706a29
PA
89032015-11-30 Pedro Alves <palves@redhat.com>
8904
8905 * linux-low.c (handle_extended_wait): Assert that the LWP's
8906 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
8907 thread create events, leave the new child's status pending.
8908 (linux_low_filter_event): If GDB wants to hear about thread exit
8909 events, leave the LWP marked dead and don't delete it.
8910 (linux_wait_for_event_filtered): Don't check for thread exit.
8911 (filter_exit_event): New function.
8912 (linux_wait_1): Use it, when returning an exit event.
8913 (linux_resume_one_lwp_throw): Assert that the LWP's
8914 waitstatus is TARGET_WAITKIND_IGNORE.
8915 * remote-utils.c (prepare_resume_reply): Handle
8916 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
8917 * server.c (report_thread_events): New global.
8918 (handle_general_set): Handle QThreadEvents.
8919 (handle_query) <qSupported>: Handle and report QThreadEvents+;
8920 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
8921 TARGET_WAITKIND_THREAD_EXITED.
8922 * server.h (report_thread_events): Declare.
8923
56cf4bed
PA
89242015-11-30 Pedro Alves <palves@redhat.com>
8925
8926 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
8927 the thread's last_resume_kind was resume_stop.
8928
500c1d85
PA
89292015-11-30 Pedro Alves <palves@redhat.com>
8930
8931 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
8932 before returning.
8933
de979965
PA
89342015-11-30 Pedro Alves <palves@redhat.com>
8935
8936 * server.c (handle_v_requests): Handle vCtrlC.
8937
34c65914
PA
89382015-11-30 Pedro Alves <palves@redhat.com>
8939
8940 * gdbthread.h (find_any_thread_of_pid): Declare.
8941 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
8942 functions.
8943 * server.c (handle_query): If current_thread is NULL, look for
8944 another thread of the selected process.
8945
79efa585 89462015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 8947 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
8948
8949 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
8950 * server.c (handle_qxfer_threads_worker): Refactor to include thread
8951 name in reply.
8952 * target.h (struct target_ops) <thread_name>: New field.
8953 (target_thread_name): New macro.
8954
80d82c19
JB
89552015-11-23 Joel Brobecker <brobecker@adacore.com>
8956
8957 * regcache.h (regcache_invalidate_pid): Add declaration.
8958 * regcache.c (regcache_invalidate_pid): New function, extracted
8959 from regcache_invalidate.
8960 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
8961 Add trivial documentation comment.
8962 * lynx-low.c: Use regcache_invalidate_pid instead of
8963 regcache_invalidate.
8964
64da5dd5
JB
89652015-11-23 Joel Brobecker <brobecker@adacore.com>
8966
8967 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
8968 and Elf64_auxv_t if the target is Android.
8969
37ce4055
DE
89702015-11-22 Doug Evans <xdje42@gmail.com>
8971
8972 * target.h: #include <sys/types.h>.
8973
06e03fff
PA
89742015-11-19 Pedro Alves <palves@redhat.com>
8975
8976 * linux-low.c (linux_process_qsupported): Change prototype.
8977 Adjust.
8978 * linux-low.h (struct linux_target_ops) <process_qsupported>:
8979 Change prototype.
8980 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
8981 and adjust to loop over all features.
8982 * server.c (handle_query) <qSupported>: Adjust to call
8983 target_process_qsupported once, passing it a vector of unprocessed
8984 features.
8985 * target.h (struct target_ops) <process_qsupported>: Change
8986 prototype.
8987 (target_process_qsupported): Adjust.
8988
9a084706
PA
89892015-11-19 Pedro Alves <palves@redhat.com>
8990
8991 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
8992 mode.
8993 * configure: Regenerate.
8994
dad44a1f
PA
89952015-11-19 Pedro Alves <palves@redhat.com>
8996
8997 * configure: Regenerate.
8998
231c0592
YQ
89992015-11-19 Yao Qi <yao.qi@linaro.org>
9000
9001 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9002 type to uint32_t.
9003
6c1c9a8b
YQ
90042015-11-19 Yao Qi <yao.qi@linaro.org>
9005
9006 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9007 (struct aarch64_operand): Move enum out.
9008
9caa3311
YQ
90092015-11-19 Yao Qi <yao.qi@linaro.org>
9010
9011 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9012 struct user_fpsimd_state *.
9013 (aarch64_store_fpregset): Likewise.
9014
6a69a054
YQ
90152015-11-19 Yao Qi <yao.qi@linaro.org>
9016
9017 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9018 struct user_pt_regs *.
9019 (aarch64_store_gregset): Likewise.
9020
1798301e
PA
90212015-11-18 Pedro Alves <palves@redhat.com>
9022
9023 * Makefile.in (all_object_files): Add $IPA_OBJS.
9024
ce7715e2
PA
90252015-11-17 Pedro Alves <palves@redhat.com>
9026
9027 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9028 GDB_SIGNAL_0 and gdb_signal_to_string.
9029
c0879059
PA
90302015-11-17 Pedro Alves <palves@redhat.com>
9031
9032 * win32-low.c (handle_output_debug_string): Remove parameter.
9033 (win32_kill): Remove our_status local and adjust call to
9034 handle_output_debug_string.
9035 (get_child_debug_event): Adjust call to
9036 handle_output_debug_string.
9037
1996e237
SM
90382015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9039
9040 * linux-mips-low.c (mips_fill_gregset): Add cast.
9041 (mips_store_gregset): Likewise.
9042 (mips_fill_fpregset): Likewise.
9043 (mips_store_fpregset): Likewise.
9044
cbec665b
SM
90452015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9046
9047 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9048 priv.
9049
eb3e3c67
SM
90502015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9051
9052 * linux-mips-low.c (mips_linux_new_thread): Change type of
9053 watch_type to enum target_hw_bp_type.
9054
171de4b8
SM
90552015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9056
9057 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9058 Change return type to arm_hwbp_type.
9059
04248ead
SM
90602015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9061
9062 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9063 (arm_store_gregset): Likewise.
9064 * linux-arm-low.c (arm_get_hwcap): Likewise.
9065 (arm_read_description): Likewise.
9066
04b3479c
SM
90672015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9068
9069 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9070
2bc84e8a
SM
90712015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9072
9073 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9074 (ppc_fill_vsxregset): Likewise.
9075 (ppc_store_vsxregset): Likewise.
9076 (ppc_fill_vrregset): Likewise.
9077 (ppc_store_vrregset): Likewise.
9078 (ppc_fill_evrregset): Likewise.
9079 (ppc_store_evrregset): Likewise.
9080
e6c5bb05
SM
90812015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9082
9083 * linux-ppc-low.c (ppc_usrregs_info): Remove
9084 forward-declaration.
9085 (ppc_arch_setup): Move lower in file.
9086
7ea45d72
SM
90872015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9088
9089 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9090 (ps_pdwrite): Likewise.
9091
69291610
HW
90922015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9093
9094 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9095 to after assert checks.
9096
b42945fd
SM
90972015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9098
9099 * proc-service.c (ps_pdread): Add/adjust casts.
9100 (ps_pdwrite): Add/adjust casts.
9101
d6f85c84
SM
91022015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9103
9104 * server.c (handle_search_memory_1): Cast return value of
9105 memmem.
9106
f98cd059
SM
91072015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9108
9109 * server.c (write_qxfer_response): Change type of data to
9110 gdb_byte *.
9111
d2412fa5
PA
91122015-10-29 Pedro Alves <palves@redhat.com>
9113
9114 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9115
c17414a2
PA
91162015-10-29 Pedro Alves <palves@redhat.com>
9117
9118 * tracepoint.c (clear_installed_tracepoints): Add casts.
9119
e053fbc4
PA
91202015-10-29 Pedro Alves <palves@redhat.com>
9121
9122 * server.c (handle_v_cont, process_serial_event): Add enum
9123 gdb_signal casts to signal parsing code.
9124
add67df8
PA
91252015-10-29 Pedro Alves <palves@redhat.com>
9126
9127 * linux-low.h (NULL_REGSET): Define.
9128 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9129 * linux-arm-low.c (arm_regsets): Likewise.
9130 * linux-crisv32-low.c (cris_regsets): Likewise.
9131 * linux-m68k-low.c (m68k_regsets): Likewise.
9132 * linux-mips-low.c (mips_regsets): Likewise.
9133 * linux-nios2-low.c (nios2_regsets): Likewise.
9134 * linux-ppc-low.c (ppc_regsets): Likewise.
9135 * linux-s390-low.c (s390_regsets): Likewise.
9136 * linux-sh-low.c (sh_regsets): Likewise.
9137 * linux-sparc-low.c (sparc_regsets): Likewise.
9138 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9139 * linux-tile-low.c (tile_regsets): Likewise.
9140 * linux-x86-low.c (x86_regsets): Likewise.
9141 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9142
50bc912a
PA
91432015-10-29 Pedro Alves <palves@redhat.com>
9144
9145 * linux-low.h (NULL_REGSET): Define.
9146 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9147 * linux-arm-low.c (arm_regsets): Likewise.
9148 * linux-crisv32-low.c (cris_regsets): Likewise.
9149 * linux-m68k-low.c (m68k_regsets): Likewise.
9150 * linux-mips-low.c (mips_regsets): Likewise.
9151 * linux-nios2-low.c (nios2_regsets): Likewise.
9152 * linux-ppc-low.c (ppc_regsets): Likewise.
9153 * linux-s390-low.c (s390_regsets): Likewise.
9154 * linux-sh-low.c (sh_regsets): Likewise.
9155 * linux-sparc-low.c (sparc_regsets): Likewise.
9156 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9157 * linux-tile-low.c (tile_regsets): Likewise.
9158 * linux-x86-low.c (x86_regsets): Likewise.
9159 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9160
682b2546
DE
91612015-10-26 Doug Evans <dje@google.com>
9162
9163 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9164
963843d4
DE
91652015-10-26 Doug Evans <dje@google.com>
9166
9167 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9168
d41401ac
DE
91692015-10-26 Doug Evans <dje@google.com>
9170
9171 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9172 for debug_printf.
9173 (attach_thread, find_new_threads_callback): Ditto.
9174
3db28855
AT
91752015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9176
9177 * mem-break.h (set_breakpoint_data): Remove.
9178
fb78e89c
AT
91792015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9180
9181 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9182 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9183 (initialize_low): Remove set_breakpoint_data call.
9184 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9185 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9186 (initialize_low): Remove set_breakpoint_data call.
9187 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9188 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9189 (initialize_low): Remove set_breakpoint_data call.
9190
2e6ee069
AT
91912015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9192
9193 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9194 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9195 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9196 * target.h (target_breakpoint_kind_from_pc): New macro.
9197
1652a986
AT
91982015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9199
9200 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9201 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9202 the default breakpoint kind.
9203
abeead09
AT
92042015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9205
9206 * linux-arm-low.c (arm_supports_z_point_type): Add software
9207 breakpoint support.
9208
b0b4b501
AT
92092015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9210
9211 * linux-arm-low.c: Refactor breakpoint definitions.
9212 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9213 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9214
8689682c
AT
92152015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9216
9217 * Makefile.in: Add arm.c/o.
9218 * configure.srv: Likewise.
9219 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9220 (arm_breakpoint_kind_from_pc): New function.
9221 (arm_sw_breakpoint_from_kind): Return proper kind.
9222 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9223
27165294
AT
92242015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9225
9226 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9227 removal.
9228 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9229 (struct raw_breakpoint) <size>: Remove.
9230 (struct raw_breakpoint) <kind>: Add.
9231 (bp_size): New function.
9232 (bp_opcode): Likewise.
9233 (find_raw_breakpoint_at): Adjust for kind.
9234 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9235 (remove_memory_breakpoint): Adjust for kind call bp_size.
9236 (set_raw_breakpoint_at): Adjust for kind.
9237 (set_breakpoint): Likewise.
9238 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9239 (delete_raw_breakpoint): Adjust for kind.
9240 (delete_breakpoint): Likewise.
9241 (find_gdb_breakpoint): Likewise.
9242 (set_gdb_breakpoint_1): Likewise.
9243 (set_gdb_breakpoint): Likewise.
9244 (delete_gdb_breakpoint_1): Likewise.
9245 (delete_gdb_breakpoint): Likewise.
9246 (uninsert_raw_breakpoint): Likewise.
9247 (reinsert_raw_breakpoint): Likewise.
9248 (set_breakpoint_data): Remove.
9249 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9250 (check_mem_read): Adjust for kind call bp_size.
9251 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9252 (clone_one_breakpoint): Adjust for kind.
9253 * mem-break.h (set_gdb_breakpoint): Likewise.
9254 (delete_gdb_breakpoint): Likewise.
9255 * server.c (process_serial_event): Likewise.
9256
dd373349
AT
92572015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9258
9259 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9260 (struct linux_target_ops) <breakpoint>: Remove.
9261 (struct linux_target_ops) <breakpoint_len>: Remove.
9262 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9263 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9264 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9265 (arm_sw_breakpoint_from_kind): New function.
9266 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9267 (struct linux_target_ops) <breakpoint>: Remove.
9268 (struct linux_target_ops) <breakpoint_len>: Remove.
9269 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9270 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9271 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9272 (struct linux_target_ops) <breakpoint>: Remove.
9273 (struct linux_target_ops) <breakpoint_len>: Remove.
9274 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9275 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9276 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9277 (struct linux_target_ops) <breakpoint>: Remove.
9278 (struct linux_target_ops) <breakpoint_len>: Remove.
9279 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9280 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9281 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9282 and sw_breakpoint_from_kind to increment the pc.
9283 (linux_breakpoint_kind_from_pc): New function.
9284 (linux_sw_breakpoint_from_kind): New function.
9285 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9286 (initialize_low): Call breakpoint_kind_from_pc and
9287 sw_breakpoint_from_kind to replace breakpoint_data/len.
9288 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9289 New field.
9290 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9291 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9292 (struct linux_target_ops) <breakpoint>: Remove.
9293 (struct linux_target_ops) <breakpoint_len>: Remove.
9294 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9295 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9296 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9297 (struct linux_target_ops) <breakpoint>: Remove.
9298 (struct linux_target_ops) <breakpoint_len>: Remove.
9299 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9300 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9301 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9302 (struct linux_target_ops) <breakpoint>: Remove.
9303 (struct linux_target_ops) <breakpoint_len>: Remove.
9304 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9305 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9306 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9307 (struct linux_target_ops) <breakpoint>: Remove.
9308 (struct linux_target_ops) <breakpoint_len>: Remove.
9309 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9310 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9311 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9312 (struct linux_target_ops) <breakpoint>: Remove.
9313 (struct linux_target_ops) <breakpoint_len>: Remove.
9314 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9315 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9316 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9317 (struct linux_target_ops) <breakpoint>: Remove.
9318 (struct linux_target_ops) <breakpoint_len>: Remove.
9319 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9320 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9321 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9322 (struct linux_target_ops) <breakpoint>: Remove.
9323 (struct linux_target_ops) <breakpoint_len>: Remove.
9324 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9325 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9326 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9327 (struct linux_target_ops) <breakpoint>: Remove.
9328 (struct linux_target_ops) <breakpoint_len>: Remove.
9329 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9330 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9331 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9332 (struct linux_target_ops) <breakpoint>: Remove.
9333 (struct linux_target_ops) <breakpoint_len>: Remove.
9334 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9335 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9336 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9337 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9338 (struct linux_target_ops) <breakpoint>: Remove.
9339 (struct linux_target_ops) <breakpoint_len>: Remove.
9340 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9341 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9342 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9343 (struct linux_target_ops) <breakpoint>: Remove.
9344 (struct linux_target_ops) <breakpoint_len>: Remove.
9345 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9346 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9347
4cd98a19
AT
93482015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9349
9350 * linux-cris-low.c (cris_get_pc): Remove void arg.
9351
774ee6d2
AR
93522015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9353
9354 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9355 variable name.
9356
833dcd29
AR
93572015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9358
9359 * inferiors.c (thread_pid_matches_callback): New function.
9360 (find_thread_process): New function.
9361 (remove_thread): Reset current_thread.
9362 (remove_process): Assert threads have been removed first.
9363
8d689ee5
YQ
93642015-10-15 Yao Qi <yao.qi@linaro.org>
9365
9366 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9367 if it is 3.
9368 (aarch64_remove_point): Likewise.
9369 * regcache.c (regcache_register_size): New function.
9370
1c2e1515
YQ
93712015-10-12 Yao Qi <yao.qi@linaro.org>
9372
9373 * linux-aarch64-low.c: Update all callers as emit_load_store
9374 is renamed to aarch64_emit_load_store.
9375
e1c587c3
YQ
93762015-10-12 Yao Qi <yao.qi@linaro.org>
9377
9378 * linux-aarch64-low.c: Update all callers of function renaming
9379 from emit_insn to aarch64_emit_insn.
9380
b6542f81
YQ
93812015-10-12 Yao Qi <yao.qi@linaro.org>
9382
9383 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9384 arch/aarch64-insn.h.
9385 (struct aarch64_memory_operand): Likewise.
9386 (ENCODE): Likewise.
9387 (emit_insn): Move to arch/aarch64-insn.c.
9388 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9389 (emit_load_store): Move to arch/aarch64-insn.c.
9390 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9391 (can_encode_int32): Remove.
9392
246994ce
YQ
93932015-10-12 Yao Qi <yao.qi@linaro.org>
9394
9395 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9396 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9397 (aarch64_relocate_instruction): Likewise.
9398 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9399 (struct aarch64_insn_visitor): Likewise.
9400
0badd99f
YQ
94012015-10-12 Yao Qi <yao.qi@linaro.org>
9402
9403 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9404 (struct aarch64_insn_visitor): New.
9405 (struct aarch64_insn_relocation_data): New.
9406 (aarch64_ftrace_insn_reloc_b): New function.
9407 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9408 (aarch64_ftrace_insn_reloc_cb): Likewise.
9409 (aarch64_ftrace_insn_reloc_tb): Likewise.
9410 (aarch64_ftrace_insn_reloc_adr): Likewise.
9411 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9412 (aarch64_ftrace_insn_reloc_others): Likewise.
9413 (visitor): New.
9414 (aarch64_relocate_instruction): Use visitor.
9415
dfaffe9d
YQ
94162015-10-12 Yao Qi <yao.qi@linaro.org>
9417
9418 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9419 int. Add argument buf.
9420 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9421 aarch64_relocate_instruction.
9422
70b439f0
YQ
94232015-10-12 Yao Qi <yao.qi@linaro.org>
9424
9425 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9426 argument insn. Remove local variable insn. Don't call
9427 target_read_uint32.
9428 (aarch64_install_fast_tracepoint_jump_pad): Call
9429 target_read_uint32.
9430
7781c06f
YQ
94312015-09-30 Yao Qi <yao.qi@linaro.org>
9432
9433 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9434 (emit_load_store_pair): Likewise.
9435
9a3c8263
SM
94362015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9437
9438 * dll.c (match_dll): Add cast(s).
9439 (unloaded_dll): Likewise.
9440 * linux-low.c (second_thread_of_pid_p): Likewise.
9441 (delete_lwp_callback): Likewise.
9442 (count_events_callback): Likewise.
9443 (select_event_lwp_callback): Likewise.
9444 (linux_set_resume_request): Likewise.
9445 * server.c (accumulate_file_name_length): Likewise.
9446 (emit_dll_description): Likewise.
9447 (handle_qxfer_threads_worker): Likewise.
9448 (visit_actioned_threads): Likewise.
9449 * thread-db.c (any_thread_of): Likewise.
9450 * tracepoint.c (same_process_p): Likewise.
9451 (match_blocktype): Likewise.
9452 (build_traceframe_info_xml): Likewise.
9453
224c3ddb
SM
94542015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9455
9456 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9457 assignment.
9458 (gdb_unparse_agent_expr): Likewise.
9459 * hostio.c (require_data): Likewise.
9460 (handle_pread): Likewise.
9461 * linux-low.c (disable_regset): Likewise.
9462 (fetch_register): Likewise.
9463 (store_register): Likewise.
9464 (get_dynamic): Likewise.
9465 (linux_qxfer_libraries_svr4): Likewise.
9466 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9467 (set_fast_tracepoint_jump): Likewise.
9468 (uninsert_fast_tracepoint_jumps_at): Likewise.
9469 (reinsert_fast_tracepoint_jumps_at): Likewise.
9470 (validate_inserted_breakpoint): Likewise.
9471 (clone_agent_expr): Likewise.
9472 * regcache.c (init_register_cache): Likewise.
9473 * remote-utils.c (putpkt_binary_1): Likewise.
9474 (decode_M_packet): Likewise.
9475 (decode_X_packet): Likewise.
9476 (look_up_one_symbol): Likewise.
9477 (relocate_instruction): Likewise.
9478 (monitor_output): Likewise.
9479 * server.c (handle_search_memory): Likewise.
9480 (handle_qxfer_exec_file): Likewise.
9481 (handle_qxfer_libraries): Likewise.
9482 (handle_qxfer): Likewise.
9483 (handle_query): Likewise.
9484 (handle_v_cont): Likewise.
9485 (handle_v_run): Likewise.
9486 (captured_main): Likewise.
9487 * target.c (write_inferior_memory): Likewise.
9488 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9489 * tracepoint.c (init_trace_buffer): Likewise.
9490 (add_tracepoint_action): Likewise.
9491 (add_traceframe): Likewise.
9492 (add_traceframe_block): Likewise.
9493 (cmd_qtdpsrc): Likewise.
9494 (cmd_qtdv): Likewise.
9495 (cmd_qtstatus): Likewise.
9496 (response_source): Likewise.
9497 (response_tsv): Likewise.
9498 (cmd_qtnotes): Likewise.
9499 (gdb_collect): Likewise.
9500 (initialize_tracepoint): Likewise.
9501
afbe19f8
PL
95022015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9503
9504 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9505 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9506 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9507 <NOP>: New.
9508 (enum aarch64_condition_codes): New enum.
9509 (w0): New static global.
9510 (fp): Likewise.
9511 (lr): Likewise.
9512 (struct aarch64_memory_operand) <type>: New
9513 MEMORY_OPERAND_POSTINDEX type.
9514 (postindex_memory_operand): New helper function.
9515 (emit_ret): New function.
9516 (emit_load_store_pair): New function, factored out of emit_stp
9517 with support for MEMORY_OPERAND_POSTINDEX.
9518 (emit_stp): Rewrite using emit_load_store_pair.
9519 (emit_ldp): New function.
9520 (emit_load_store): Likewise.
9521 (emit_ldr): Mention post-index instruction in comment.
9522 (emit_ldrh): New function.
9523 (emit_ldrb): New function.
9524 (emit_ldrsw): Mention post-index instruction in comment.
9525 (emit_str): Likewise.
9526 (emit_subs): New function.
9527 (emit_cmp): Likewise.
9528 (emit_and): Likewise.
9529 (emit_orr): Likewise.
9530 (emit_orn): Likewise.
9531 (emit_eor): Likewise.
9532 (emit_mvn): Likewise.
9533 (emit_lslv): Likewise.
9534 (emit_lsrv): Likewise.
9535 (emit_asrv): Likewise.
9536 (emit_mul): Likewise.
9537 (emit_sbfm): Likewise.
9538 (emit_sbfx): Likewise.
9539 (emit_ubfm): Likewise.
9540 (emit_ubfx): Likewise.
9541 (emit_csinc): Likewise.
9542 (emit_cset): Likewise.
9543 (emit_nop): Likewise.
9544 (emit_ops_insns): New helper function.
9545 (emit_pop): Likewise.
9546 (emit_push): Likewise.
9547 (aarch64_emit_prologue): New function.
9548 (aarch64_emit_epilogue): Likewise.
9549 (aarch64_emit_add): Likewise.
9550 (aarch64_emit_sub): Likewise.
9551 (aarch64_emit_mul): Likewise.
9552 (aarch64_emit_lsh): Likewise.
9553 (aarch64_emit_rsh_signed): Likewise.
9554 (aarch64_emit_rsh_unsigned): Likewise.
9555 (aarch64_emit_ext): Likewise.
9556 (aarch64_emit_log_not): Likewise.
9557 (aarch64_emit_bit_and): Likewise.
9558 (aarch64_emit_bit_or): Likewise.
9559 (aarch64_emit_bit_xor): Likewise.
9560 (aarch64_emit_bit_not): Likewise.
9561 (aarch64_emit_equal): Likewise.
9562 (aarch64_emit_less_signed): Likewise.
9563 (aarch64_emit_less_unsigned): Likewise.
9564 (aarch64_emit_ref): Likewise.
9565 (aarch64_emit_if_goto): Likewise.
9566 (aarch64_emit_goto): Likewise.
9567 (aarch64_write_goto_address): Likewise.
9568 (aarch64_emit_const): Likewise.
9569 (aarch64_emit_call): Likewise.
9570 (aarch64_emit_reg): Likewise.
9571 (aarch64_emit_pop): Likewise.
9572 (aarch64_emit_stack_flush): Likewise.
9573 (aarch64_emit_zero_ext): Likewise.
9574 (aarch64_emit_swap): Likewise.
9575 (aarch64_emit_stack_adjust): Likewise.
9576 (aarch64_emit_int_call_1): Likewise.
9577 (aarch64_emit_void_call_2): Likewise.
9578 (aarch64_emit_eq_goto): Likewise.
9579 (aarch64_emit_ne_goto): Likewise.
9580 (aarch64_emit_lt_goto): Likewise.
9581 (aarch64_emit_le_goto): Likewise.
9582 (aarch64_emit_gt_goto): Likewise.
9583 (aarch64_emit_ge_got): Likewise.
9584 (aarch64_emit_ops_impl): New static global variable.
9585 (aarch64_emit_ops): New target function, return
9586 &aarch64_emit_ops_impl.
9587 (struct linux_target_ops): Install it.
9588
bb903df0
PL
95892015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9590
9591 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9592 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9593 aarch64-ipa.o.
9594 * linux-aarch64-ipa.c: New file.
9595 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9596 and endian.h.
9597 (aarch64_get_thread_area): New target method.
9598 (extract_signed_bitfield): New helper function.
9599 (aarch64_decode_ldr_literal): New function.
9600 (enum aarch64_opcodes): New enum.
9601 (struct aarch64_register): New struct.
9602 (struct aarch64_operand): New struct.
9603 (x0): New static global.
9604 (x1): Likewise.
9605 (x2): Likewise.
9606 (x3): Likewise.
9607 (x4): Likewise.
9608 (w2): Likewise.
9609 (ip0): Likewise.
9610 (sp): Likewise.
9611 (xzr): Likewise.
9612 (aarch64_register): New helper function.
9613 (register_operand): Likewise.
9614 (immediate_operand): Likewise.
9615 (struct aarch64_memory_operand): New struct.
9616 (offset_memory_operand): New helper function.
9617 (preindex_memory_operand): Likewise.
9618 (enum aarch64_system_control_registers): New enum.
9619 (ENCODE): New macro.
9620 (emit_insn): New helper function.
9621 (emit_b): New function.
9622 (emit_bcond): Likewise.
9623 (emit_cb): Likewise.
9624 (emit_tb): Likewise.
9625 (emit_blr): Likewise.
9626 (emit_stp): Likewise.
9627 (emit_ldp_q_offset): Likewise.
9628 (emit_stp_q_offset): Likewise.
9629 (emit_load_store): Likewise.
9630 (emit_ldr): Likewise.
9631 (emit_ldrsw): Likewise.
9632 (emit_str): Likewise.
9633 (emit_ldaxr): Likewise.
9634 (emit_stxr): Likewise.
9635 (emit_stlr): Likewise.
9636 (emit_data_processing_reg): Likewise.
9637 (emit_data_processing): Likewise.
9638 (emit_add): Likewise.
9639 (emit_sub): Likewise.
9640 (emit_mov): Likewise.
9641 (emit_movk): Likewise.
9642 (emit_mov_addr): Likewise.
9643 (emit_mrs): Likewise.
9644 (emit_msr): Likewise.
9645 (emit_sevl): Likewise.
9646 (emit_wfe): Likewise.
9647 (append_insns): Likewise.
9648 (can_encode_int32_in): New helper function.
9649 (aarch64_relocate_instruction): New function.
9650 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9651 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9652 (struct linux_target_ops): Install aarch64_get_thread_area,
9653 aarch64_install_fast_tracepoint_jump_pad and
9654 aarch64_get_min_fast_tracepoint_insn_len.
9655
787749ea
PL
96562015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9657
9658 * Makefile.in (aarch64-insn.o): New rule.
9659 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9660
9812b2e6
YQ
96612015-09-21 Yao Qi <yao.qi@linaro.org>
9662
9663 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9664
18fe412b
YQ
96652015-09-21 Yao Qi <yao.qi@linaro.org>
9666
9667 * tracepoint.c (max_jump_pad_size): Remove.
9668
a0cc84cd
YQ
96692015-09-18 Yao Qi <yao.qi@linaro.org>
9670
9671 * linux-aarch64-low.c: Don't include sys/uio.h.
9672 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9673
d78908cf
WW
96742015-09-16 Wei-cheng Wang <cole945@gmail.com>
9675
9676 * tracepoint.c (eval_result_type): Change prototype.
9677 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9678
d57e0d50
PA
96792015-09-15 Pedro Alves <palves@redhat.com>
9680
9681 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9682 Check whether to report exec events instead of checking whether
9683 multiprocess is enabled.
9684
5a676acc
PA
96852015-09-15 Pedro Alves <palves@redhat.com>
9686
9687 PR remote/18965
9688 * remote-utils.c (prepare_resume_reply): Merge
9689 TARGET_WAITKIND_VFORK_DONE switch case with the
9690 TARGET_WAITKIND_FORKED case.
9691
7c5d0fad
YQ
96922015-09-15 Yao Qi <yao.qi@linaro.org>
9693
9694 * server.c (handle_query): Check string comparison using
9695 "else if" instead of "if".
9696
750ce8d1
YQ
96972015-09-15 Yao Qi <yao.qi@linaro.org>
9698
9699 * server.c (vCont_supported): New global variable.
9700 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9701 matches. Append ";vContSupported+" to own_buf.
9702 (handle_v_requests): Append ";s;S" to own_buf if target supports
9703 hardware single step or vCont_supported is false.
9704 (capture_main): Set vCont_supported to zero.
9705
70b90b91
YQ
97062015-09-15 Yao Qi <yao.qi@linaro.org>
9707
9708 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9709 it to ...
9710 (linux_supports_hardware_single_step): ... New function.
9711 (linux_target_ops): Update.
9712 * lynx-low.c (lynx_target_ops): Set field
9713 supports_hardware_single_step to target_can_do_hardware_single_step.
9714 * nto-low.c (nto_target_ops): Likewise.
9715 * spu-low.c (spu_target_ops): Likewise.
9716 * win32-low.c (win32_target_ops): Likewise.
9717 * target.c (target_can_do_hardware_single_step): New function.
9718 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9719 Remove. <supports_hardware_single_step>: New field.
9720 (target_supports_conditional_breakpoints): Remove.
9721 (target_supports_hardware_single_step): New macro.
9722 (target_can_do_hardware_single_step): Declare.
9723 * server.c (handle_query): Use target_supports_hardware_single_step
9724 instead of target_supports_conditional_breakpoints.
9725
ade90bde
YQ
97262015-09-15 Yao Qi <yao.qi@linaro.org>
9727
9728 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
9729 function.
9730 (struct linux_target_ops the_low_target): Install
9731 aarch64_linux_siginfo_fixup.
9732
94585166
DB
97332015-09-11 Don Breazeal <donb@codesourcery.com>
9734 Luis Machado <lgustavo@codesourcery.com>
9735
9736 * linux-low.c (linux_mourn): Static declaration.
9737 (linux_arch_setup): Move in front of
9738 handle_extended_wait.
9739 (linux_arch_setup_thread): New function.
9740 (handle_extended_wait): Handle exec events. Call
9741 linux_arch_setup_thread. Make event_lwp argument a
9742 pointer-to-a-pointer.
9743 (check_zombie_leaders): Do not check stopped threads.
9744 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
9745 (linux_low_filter_event): Add lwp and thread for exec'ing
9746 non-leader thread if leader thread has been deleted.
9747 Refactor code into linux_arch_setup_thread and call it.
9748 Pass child lwp pointer by reference to handle_extended_wait.
9749 (linux_wait_for_event_filtered): Update comment.
9750 (linux_wait_1): Prevent clobbering exec event status.
9751 (linux_supports_exec_events): New function.
9752 (linux_target_ops) <supports_exec_events>: Initialize new member.
9753 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
9754 new member.
9755 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
9756 * server.c (report_exec_events): New global variable.
9757 (handle_query): Handle qSupported query for exec-events feature.
9758 (captured_main): Initialize report_exec_events.
9759 * server.h (report_exec_events): Declare new global variable.
9760 * target.h (struct target_ops) <supports_exec_events>: New
9761 member.
9762 (target_supports_exec_events): New macro.
9763 * win32-low.c (win32_target_ops) <supports_exec_events>:
9764 Initialize new member.
9765
0568462b
MM
97662015-09-09 Markus Metzger <markus.t.metzger@intel.com>
9767
9768 * linux-low.c (linux_low_enable_btrace): Remove.
9769 (linux_target_ops): Replace linux_low_enable_btrace with
9770 linux_enable_btrace.
9771
39edd165
YQ
97722015-09-03 Yao Qi <yao.qi@linaro.org>
9773
9774 * linux-aarch64-low.c (aarch64_insert_point): Call
9775 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
9776 returns true.
9777
1db33b5a
UW
97782015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9779
9780 * linux-low.c (check_stopped_by_breakpoint): Use
9781 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
9782
ab290430
PA
97832015-08-27 Pedro Alves <palves@redhat.com>
9784
9785 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
9786
8d749320
SM
97872015-08-26 Simon Marchi <simon.marchi@ericsson.com>
9788
6711b7f8
SM
9789 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
9790 the XNEW-family equivalent.
8d749320
SM
9791 (compile_bytecodes): Likewise.
9792 * dll.c (loaded_dll): Likewise.
9793 * event-loop.c (append_callback_event): Likewise.
9794 (create_file_handler): Likewise.
9795 (create_file_event): Likewise.
9796 * hostio.c (handle_open): Likewise.
9797 * inferiors.c (add_thread): Likewise.
9798 (add_process): Likewise.
9799 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
9800 * linux-arm-low.c (arm_new_process): Likewise.
9801 (arm_new_thread): Likewise.
9802 * linux-low.c (add_to_pid_list): Likewise.
9803 (linux_add_process): Likewise.
9804 (handle_extended_wait): Likewise.
9805 (add_lwp): Likewise.
9806 (enqueue_one_deferred_signal): Likewise.
9807 (enqueue_pending_signal): Likewise.
9808 (linux_resume_one_lwp_throw): Likewise.
9809 (linux_resume_one_thread): Likewise.
9810 (linux_read_memory): Likewise.
9811 (linux_write_memory): Likewise.
9812 * linux-mips-low.c (mips_linux_new_process): Likewise.
9813 (mips_linux_new_thread): Likewise.
9814 (mips_add_watchpoint): Likewise.
9815 * linux-x86-low.c (initialize_low_arch): Likewise.
9816 * lynx-low.c (lynx_add_process): Likewise.
9817 * mem-break.c (set_raw_breakpoint_at): Likewise.
9818 (set_breakpoint): Likewise.
9819 (add_condition_to_breakpoint): Likewise.
9820 (add_commands_to_breakpoint): Likewise.
9821 (clone_agent_expr): Likewise.
9822 (clone_one_breakpoint): Likewise.
9823 * regcache.c (new_register_cache): Likewise.
9824 * remote-utils.c (look_up_one_symbol): Likewise.
9825 * server.c (queue_stop_reply): Likewise.
9826 (start_inferior): Likewise.
9827 (queue_stop_reply_callback): Likewise.
9828 (handle_target_event): Likewise.
9829 * spu-low.c (fetch_ppc_memory): Likewise.
9830 (store_ppc_memory): Likewise.
9831 * target.c (set_target_ops): Likewise.
9832 * thread-db.c (thread_db_load_search): Likewise.
9833 (try_thread_db_load_1): Likewise.
9834 * tracepoint.c (add_tracepoint): Likewise.
9835 (add_tracepoint_action): Likewise.
9836 (create_trace_state_variable): Likewise.
9837 (cmd_qtdpsrc): Likewise.
9838 (cmd_qtro): Likewise.
9839 (add_while_stepping_state): Likewise.
9840 * win32-low.c (child_add_thread): Likewise.
9841 (get_image_name): Likewise.
9842
ed8b7b42
YQ
98432015-08-25 Yao Qi <yao.qi@linaro.org>
9844
9845 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
9846
db3cb7cb
YQ
98472015-08-25 Yao Qi <yao.qi@linaro.org>
9848
9849 * Makefile.in (aarch64-linux.o): New rule.
9850 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
9851 srv_tgtobj.
9852 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
9853 (aarch64_init_debug_reg_state): Make it extern.
9854 (aarch64_linux_prepare_to_resume): Remove.
9855
f6011a1c
YQ
98562015-08-25 Yao Qi <yao.qi@linaro.org>
9857
9858 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
9859 lwp_arch_private_info and ptid_of_lwp.
9860
88e2cf7e
YQ
98612015-08-25 Yao Qi <yao.qi@linaro.org>
9862
9863 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
9864 Find proc_info by find_process_pid. All callers updated.
9865
5e35436e
YQ
98662015-08-25 Yao Qi <yao.qi@linaro.org>
9867
9868 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
9869 Remove.
9870 (debug_reg_change_callback): Remove.
9871 (aarch64_notify_debug_reg_change): Remove.
9872
4a8a7965
YQ
98732015-08-25 Yao Qi <yao.qi@linaro.org>
9874
9875 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
9876 Call current_lwp_ptid.
9877
32a271ee
YQ
98782015-08-25 Yao Qi <yao.qi@linaro.org>
9879
9880 * linux-aarch64-low.c (debug_reg_change_callback): Use
9881 debug_printf.
9882
0d51c8d7
YQ
98832015-08-25 Yao Qi <yao.qi@linaro.org>
9884
9885 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
9886
31a43dd5
YQ
98872015-08-25 Yao Qi <yao.qi@linaro.org>
9888
9889 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
9890
8ee52567
YQ
98912015-08-25 Yao Qi <yao.qi@linaro.org>
9892
9893 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
9894 the code.
9895
ff3f0f45
YQ
98962015-08-25 Yao Qi <yao.qi@linaro.org>
9897
9898 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
9899 Remove.
9900 (debug_reg_change_callback): Remove argument entry and add argument
9901 lwp. Remove local variable thread. Don't print thread id in the
9902 debugging output. Don't check whether pid of thread equals to pid.
9903 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
9904 iterate_over_lwps instead find_inferior.
9905
3d40fbb5
PA
99062015-08-24 Pedro Alves <palves@redhat.com>
9907
9908 * inferiors.c (get_first_process): New function.
9909 * inferiors.h (get_first_process): New declaration.
9910 * remote-utils.c (read_ptid): Default to the first process in the
9911 list, instead of to the current thread's process.
9912
438e1e42
PA
99132015-08-24 Pedro Alves <palves@redhat.com>
9914
9915 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
9916 * event-loop.c: Likewise.
9917 * remote-utils.c: Likewise.
9918 * tracepoint.c: Likewise.
9919
a8c6d4fc
PA
99202015-08-24 Pedro Alves <palves@redhat.com>
9921
9922 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
9923 ptid_get_lwp.
9924
99b0bb12
PA
99252015-08-21 Pedro Alves <palves@redhat.com>
9926
9927 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
9928 instead of literal 1.
9929
f8904751
PA
99302015-08-21 Pedro Alves <palves@redhat.com>
9931
9932 * tdesc.c (default_description): Explicitly zero-initialize.
9933
465a859e
PA
99342015-08-21 Pedro Alves <palves@redhat.com>
9935
9936 PR gdb/18749
9937 * inferiors.c (remove_thread): Discard any pending stop reply for
9938 this thread.
9939 * server.c (remove_all_on_match_pid): Rename to ...
9940 (remove_all_on_match_ptid): ... this. Work with a filter ptid
9941 instead of a pid.
9942 (discard_queued_stop_replies): Change parameter to a ptid. Now
9943 extern.
9944 (handle_v_kill, kill_inferior_callback, captured_main)
9945 (process_serial_event): Adjust.
9946 * server.h (discard_queued_stop_replies): Declare.
9947
f0db101d
PA
99482015-08-21 Pedro Alves <palves@redhat.com>
9949
9950 * linux-low.c (wait_for_sigstop): Always switch to no thread
9951 selected if the previously current thread dies.
9952 * lynx-low.c (lynx_request_interrupt): Use the first thread's
9953 process instead of the current thread's.
9954 * remote-utils.c (input_interrupt): Don't check if there's no
9955 current thread.
9956 * server.c (gdb_read_memory, gdb_write_memory): If setting the
9957 current thread to the general thread fails, error out.
9958 (handle_qxfer_auxv, handle_qxfer_libraries)
9959 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
9960 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
9961 (handle_query): Check if there's a thread selected instead of
9962 checking whether there's any thread in the thread list.
9963 (handle_qxfer_threads, handle_qxfer_btrace)
9964 (handle_qxfer_btrace_conf): Don't error out early if there's no
9965 thread in the thread list.
9966 (handle_v_cont, myresume): Don't set the current thread to the
9967 continue thread.
9968 (process_serial_event) <Hg handling>: Also set thread_id if the
9969 previous general thread is still alive.
9970 (process_serial_event) <g/G handling>: If setting the current
9971 thread to the general thread fails, error out.
9972 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
9973 thread's lwp instead of the current thread's.
9974 * target.c (set_desired_thread): If the desired thread was not
9975 found, leave the current thread pointing to NULL. Return an int
9976 (boolean) indicating success.
9977 * target.h (set_desired_thread): Change return type to int.
9978
40045d91
MF
99792015-08-20 Max Filippov <jcmvbkbc@gmail.com>
9980
9981 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
9982 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
9983 #includes.
9984 (ps_get_thread_area): New function.
9985
45face3b
GB
99862015-08-19 Gary Benson <gbenson@redhat.com>
9987
9988 * hostio.c (handle_pread): Do not attempt to read more data
9989 than hostio_reply_with_data can fit in a packet.
9990
16d5f642
JB
99912015-08-18 Joel Brobecker <brobecker@adacore.com>
9992
9993 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
9994
a738da3a
MF
99952015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
9996
9997 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
9998
33ebda9d
PA
99992015-08-06 Pedro Alves <palves@redhat.com>
10000
10001 * tracepoint.c (expr_eval_result): Now an int.
10002
a44892be
PA
100032015-08-06 Pedro Alves <palves@redhat.com>
10004
10005 * gdbthread.h (struct regcache): Forward declare.
10006 (struct thread_info) <regcache_data>: Now a struct regcache
10007 pointer.
10008 * inferiors.c (inferior_regcache_data)
10009 (set_inferior_regcache_data): Now work with struct regcache
10010 pointers.
10011 * inferiors.h (struct regcache): Forward declare.
10012 (inferior_regcache_data, set_inferior_regcache_data): Now work
10013 with struct regcache pointers.
10014 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10015 (free_register_cache_thread): Remove struct regcache pointer
10016 casts.
10017
608a1e46
PA
100182015-08-06 Pedro Alves <palves@redhat.com>
10019
10020 * server.c (captured_main): On error, print the exception message
10021 to stderr, and if run_once is set, throw a quit.
10022
f0ce0d3a
PA
100232015-08-06 Pedro Alves <palves@redhat.com>
10024
10025 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10026 the current thread.
10027
bf47e248
PA
100282015-08-06 Pedro Alves <palves@redhat.com>
10029
10030 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10031 reading beyond the passed in buffer length.
10032
b6b9ffcc
PL
100332015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10034
10035 * tracepoint.c (symbol_list) <required>: Remove.
10036
863d01bd
PA
100372015-08-06 Pedro Alves <palves@redhat.com>
10038
10039 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10040 count if stopping and suspending threads.
10041 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10042 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10043 (linux_detach): Complete an ongoing step-over.
10044 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10045 throughout.
10046 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10047 (linux_wait_1): If passing a signal to the inferior after
10048 finishing a step-over, unsuspend and re-resume all lwps. If we
10049 see a single-step event but the thread should be continuing, don't
10050 pass the trap to gdb.
10051 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10052 internal_error instead of gdb_assert.
10053 (enqueue_pending_signal): New function.
10054 (check_ptrace_stopped_lwp_gone): Add debug output.
10055 (start_step_over): Use internal_error instead of gdb_assert.
10056 (complete_ongoing_step_over): New function.
10057 (linux_resume_one_thread): Don't resume a suspended thread.
10058 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10059 it stepping.
10060
00db26fa
PA
100612015-08-06 Pedro Alves <palves@redhat.com>
10062
10063 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10064 (linux_thread_alive): Use lwp_is_marked_dead.
10065 (extended_event_reported): Delete.
10066 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10067 instead of extended_event_reported.
10068 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10069 as well.
10070 (lwp_is_marked_dead): New function.
10071 (lwp_running): Use lwp_is_marked_dead.
10072 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10073 comment.
10074
ad071a30
PA
100752015-08-06 Pedro Alves <palves@redhat.com>
10076
10077 * linux-low.c (linux_wait_1): Move fork event output out of the
10078 !report_to_gdb check. Pass event_child->waitstatus to
10079 target_waitstatus_to_string instead of ourstatus.
10080
524b57e6
YQ
100812015-08-04 Yao Qi <yao.qi@linaro.org>
10082
10083 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10084 if current_thread is 32 bit.
10085
6085d6f6
YQ
100862015-08-04 Yao Qi <yao.qi@linaro.org>
10087
10088 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10089 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10090 * server.c (extended_protocol): Remove "static".
10091 * server.h (extended_protocol): Declare it.
10092
8a7e4587
YQ
100932015-08-04 Yao Qi <yao.qi@linaro.org>
10094
10095 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10096 both aarch64 and aarch32.
10097 (aarch64_set_pc): Likewise.
10098
3b53ae99
YQ
100992015-08-04 Yao Qi <yao.qi@linaro.org>
10100
10101 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10102 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10103 arm-with-neon.xml to srv_xmlfiles.
10104 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10105 (is_64bit_tdesc): New function.
10106 (aarch64_linux_read_description): New function.
10107 (aarch64_arch_setup): Call aarch64_linux_read_description.
10108 (regs_info): Rename to regs_info_aarch64.
10109 (aarch64_regs_info): Return right regs_info.
10110 (initialize_low_arch): Call initialize_low_arch_aarch32.
10111
bd9e6534
YQ
101122015-08-04 Yao Qi <yao.qi@linaro.org>
10113
10114 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10115 * linux-aarch32-low.c: New file.
10116 * linux-aarch32-low.h: New file.
10117 * linux-arm-low.c (arm_fill_gregset): Move it to
10118 linux-aarch32-low.c.
10119 (arm_store_gregset): Likewise.
10120 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10121 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10122 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10123 (regs_info): Rename to regs_info_arm.
10124 (arm_regs_info): Return regs_info_aarch32 if
10125 have_ptrace_getregset is 1 and target description is
10126 arm_with_neon or arm_with_vfpv3.
10127 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10128 Call initialize_low_arch_aarch32 instead.
10129
ded48a5e
YQ
101302015-08-04 Yao Qi <yao.qi@linaro.org>
10131
10132 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10133 * linux-low.c: ... here.
10134 * linux-low.h (have_ptrace_getregset): Declare it.
10135
96e9210f
PA
101362015-08-04 Pedro Alves <palves@redhat.com>
10137
10138 * thread-db.c (struct thread_db): Use new typedefs.
10139 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10140 CHK calls.
10141 (disable_thread_event_reporting): Cast result of dlsym to
10142 destination function pointer type.
10143 (thread_db_mourn): Use td_ta_delete_ftype.
10144
af60a1ef
SL
101452015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10146
10147 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10148 arch variant.
10149 (CDX_BREAKPOINT): Define for R2.
10150 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10151 (the_low_target): Add comments.
10152
e8b41681
YQ
101532015-07-30 Yao Qi <yao.qi@linaro.org>
10154
10155 * linux-arm-low.c (arm_hwcap): Remove it.
10156 (arm_read_description): New local variable arm_hwcap. Don't
10157 set arm_hwcap to zero.
10158
89abb039
YQ
101592015-07-30 Yao Qi <yao.qi@linaro.org>
10160
10161 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10162 Use regcache->tdesc instead.
10163 (arm_store_wmmxregset): Likewise.
10164 (arm_fill_vfpregset): Likewise.
10165 (arm_store_vfpregset): Likewise.
10166
deca266c
YQ
101672015-07-30 Yao Qi <yao.qi@linaro.org>
10168
10169 * linux-arm-low.c: Include arch/arm.h.
10170 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10171 (arm_store_gregset): Likewise.
10172
aa58a496
SM
101732015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10174
10175 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10176 ptrace's 4th parameter.
10177
50904b25
YQ
101782015-07-27 Yao Qi <yao.qi@linaro.org>
10179
10180 * configure.srv (case aarch64*-*-linux*): Don't set
10181 srv_linux_usrregs.
10182
5826e159
PA
101832015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10184
10185 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10186 sys/ptrace.h.
10187 * linux-arm-low.c: Likewise.
10188 * linux-cris-low.c: Likewise.
10189 * linux-crisv32-low.c: Likewise.
10190 * linux-low.c: Likewise.
10191 * linux-m68k-low.c: Likewise.
10192 * linux-mips-low.c: Likewise.
10193 * linux-nios2-low.c: Likewise.
10194 * linux-s390-low.c: Likewise.
10195 * linux-sparc-low.c: Likewise.
10196 * linux-tic6x-low.c: Likewise.
10197 * linux-tile-low.c: Likewise.
10198 * linux-x86-low.c: Likewise.
10199
54019719
PA
102002015-07-24 Pedro Alves <palves@redhat.com>
10201
10202 * config.in: Regenerate.
10203 * configure: Regenerate.
10204
eb7aa561
PA
102052015-07-24 Pedro Alves <palves@redhat.com>
10206
10207 * acinclude.m4: Include ../ptrace.m4.
10208 * configure.ac: Call GDB_AC_PTRACE.
10209 * config.in, configure: Regenerate.
10210
55d7b841
YQ
102112015-07-24 Yao Qi <yao.qi@linaro.org>
10212
10213 * linux-low.c (linux_create_inferior): Remove setting to
10214 proc->priv->new_inferior.
10215 (linux_attach): Likewise.
10216 (linux_low_filter_event): Likewise.
10217 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10218
c06cbd92
YQ
102192015-07-24 Yao Qi <yao.qi@linaro.org>
10220
10221 * linux-low.c (linux_arch_setup): New function.
10222 (linux_low_filter_event): If proc->tdesc is NULL and
10223 proc->attached is true, call the_low_target.arch_setup.
10224 Otherwise, keep status pending, and return.
10225 (linux_resume_one_lwp_throw): Don't call get_pc if
10226 thread->while_stepping isn't NULL. Don't call
10227 get_thread_regcache if proc->tdesc is NULL.
10228 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10229 (linux_target_ops): Install arch_setup.
10230 * server.c (start_inferior): Call the_target->arch_setup.
10231 * target.h (struct target_ops) <arch_setup>: New field.
10232 (target_arch_setup): New marco.
10233 * lynx-low.c (lynx_target_ops): Update.
10234 * nto-low.c (nto_target_ops): Update.
10235 * spu-low.c (spu_target_ops): Update.
10236 * win32-low.c (win32_target_ops): Update.
10237
5ae3ebba
YQ
102382015-07-24 Yao Qi <yao.qi@linaro.org>
10239
10240 * linux-low.c (linux_add_process): Don't set
10241 proc->priv->new_inferior.
10242 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10243 (linux_attach): Likewise.
10244
eb97750b
YQ
102452015-07-24 Yao Qi <yao.qi@linaro.org>
10246
10247 * server.c (start_inferior): Code refactor.
10248
51aee833
YQ
102492015-07-24 Yao Qi <yao.qi@linaro.org>
10250
10251 * server.c (process_serial_event): Set general_thread.
10252
af1b22f3
YQ
102532015-07-21 Yao Qi <yao.qi@linaro.org>
10254
10255 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10256 aarch64_linux_get_debug_reg_capacity.
10257
554717a3
YQ
102582015-07-17 Yao Qi <yao.qi@linaro.org>
10259
10260 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10261 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10262 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10263 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10264 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10265 (AARCH64_HWP_ALIGNMENT): Likewise.
10266 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10267 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10268 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10269 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10270 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10271 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10272 (struct aarch64_debug_reg_state): Likewise.
10273 (struct arch_lwp_info): Likewise.
10274 (aarch64_align_watchpoint): Likewise.
10275 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10276 (aarch64_watchpoint_length): Likewise.
10277 (aarch64_point_encode_ctrl_reg): Likewise
10278 (aarch64_point_is_aligned): Likewise.
10279 (aarch64_align_watchpoint): Likewise.
10280 (aarch64_linux_set_debug_regs):
10281 (aarch64_dr_state_insert_one_point): Likewise.
10282 (aarch64_dr_state_remove_one_point): Likewise.
10283 (aarch64_handle_breakpoint): Likewise.
10284 (aarch64_handle_aligned_watchpoint): Likewise.
10285 (aarch64_handle_unaligned_watchpoint): Likewise.
10286 (aarch64_handle_watchpoint): Likewise.
10287
c67ca4de
YQ
102882015-07-17 Yao Qi <yao.qi@linaro.org>
10289
10290 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10291 and don't aarch64_get_debug_reg_state. All callers update.
10292 (aarch64_handle_aligned_watchpoint): Likewise.
10293 (aarch64_handle_unaligned_watchpoint): Likewise.
10294 (aarch64_handle_watchpoint): Likewise.
10295 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10296 (aarch64_remove_point): Likewise.
10297
25abf979
YQ
102982015-07-17 Yao Qi <yao.qi@linaro.org>
10299
10300 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10301 debug_printf.
10302 (aarch64_handle_unaligned_watchpoint): Likewise.
10303
db1ff28b
JK
103042015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10305
10306 Revert the previous 3 commits:
10307 Move gdb_regex* to common/
10308 Move linux_find_memory_regions_full & co.
10309 gdbserver build-id attribute generator
10310
700ca40f
JK
103112015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10312 Jan Kratochvil <jan.kratochvil@redhat.com>
10313
10314 gdbserver build-id attribute generator.
10315 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10316 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10317 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10318 (find_phdr): New.
10319 (get_dynamic): Use find_pdhr to traverse program headers.
10320 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10321 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10322 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10323 (get_hex_build_id): New.
10324 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10325 to reply XML document.
10326
9904185c
JK
103272015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10328 Jan Kratochvil <jan.kratochvil@redhat.com>
10329
10330 * target.c: Include target/target-utils.h and fcntl.h.
10331 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10332 (target_fileio_read_stralloc): New functions.
10333
6e5b4429
JK
103342015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10335
10336 * Makefile.in (OBS): Add gdb_regex.o.
10337 (gdb_regex.o): New.
10338 * config.in: Rebuilt.
10339 * configure: Rebuilt.
10340
ddc98fbf
JK
103412015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10342 Jan Kratochvil <jan.kratochvil@redhat.com>
10343
10344 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10345 * Makefile.in (OBS): Add target-utils.o.
10346 (linux-maps.o, target-utils.o): New.
10347 * configure.srv (srv_linux_obj): Add linux-maps.o.
10348
e57bb7a0
PL
103492015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10350
10351 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10352 function, return 1.
10353 (the_low_target): Install it.
10354
586b02a9
PA
103552015-07-14 Pedro Alves <palves@redhat.com>
10356
10357 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10358 Instead, ignore ECHILD, and throw an error for other errnos.
10359
58c1b36c
PA
103602015-07-10 Pedro Alves <palves@redhat.com>
10361
10362 * event-loop.c (struct callback_event) <data>: Change type to
10363 gdb_client_data instance instead of gdb_client_data pointer.
10364 (append_callback_event): Adjust.
10365
421530db
PL
103662015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10367
10368 * linux-aarch64-low.c: Add comments for each linux_target_ops
10369 method. Remove comments already covered in target_ops and
10370 linux_target_ops definitions.
10371 (the_low_target): Add comments for each unimplemented method.
10372
c2d65f38
YQ
103732015-07-09 Yao Qi <yao.qi@linaro.org>
10374
10375 * linux-aarch64-low.c (aarch64_regmap): Remove.
10376 (aarch64_usrregs_info): Remove.
10377 (regs_info): Set field usrregs to NULL.
10378
b20a6524
MM
103792015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10380
10381 * linux-low.c: Include "rsp-low.h"
10382 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10383 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10384 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10385 (handle_btrace_enable_pt): New.
10386 (handle_btrace_general_set): Support "pt".
10387 (handle_btrace_conf_general_set): Support "pt:size".
10388
96c97461
PL
103892015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10390
10391 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10392 Z_PACKET_SW_BP.
10393
37d66942
PL
103942015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10395
10396 * linux-aarch64-low.c: Remove comment about endianness.
10397 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10398 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10399 memcmp.
10400
dc06243f
GB
104012015-06-24 Gary Benson <gbenson@redhat.com>
10402
10403 * linux-i386-ipa.c (stdint.h): Do not include.
10404 * lynx-i386-low.c (stdint.h): Likewise.
10405 * lynx-ppc-low.c (stdint.h): Likewise.
10406 * mem-break.c (stdint.h): Likewise.
10407 * thread-db.c (stdint.h): Likewise.
10408 * tracepoint.c (stdint.h): Likewise.
10409 * win32-low.c (stdint.h): Likewise.
10410
124e13d9
SM
104112015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10412
10413 * server.c (write_qxfer_response): Update call to
10414 remote_escape_output.
10415
909c2cda
JK
104162015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10417 Jan Kratochvil <jan.kratochvil@redhat.com>
10418
10419 Merge multiple hex conversions.
10420 * gdbreplay.c (tohex): Rename to 'fromhex'.
10421 (logchar): Use fromhex.
10422
24c05f46
JK
104232015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10424
10425 * server.c (handle_qxfer_libraries): Set `version' attribute for
10426 <library-list>.
10427
14d2069a
GB
104282015-06-10 Gary Benson <gbenson@redhat.com>
10429
10430 * target.h (struct target_ops) <multifs_open>: New field.
10431 <multifs_unlink>: Likewise.
10432 <multifs_readlink>: Likewise.
10433 * linux-low.c (nat/linux-namespaces.h): New include.
10434 (linux_target_ops): Initialize the_target->multifs_open,
10435 the_target->multifs_unlink and the_target->multifs_readlink.
10436 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10437 * hostio.c (hostio_fs_pid): New static variable.
10438 (hostio_handle_new_gdb_connection): New function.
10439 (handle_setfs): Likewise.
10440 (handle_open): Use the_target->multifs_open as appropriate.
10441 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10442 (handle_readlink): Use the_target->multifs_readlink as
10443 appropriate.
10444 (handle_vFile): Handle vFile:setfs packets.
10445 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10446 after target_handle_new_gdb_connection.
10447
4b8b5e72
GB
104482015-06-10 Gary Benson <gbenson@redhat.com>
10449
10450 * configure.ac (AC_CHECK_FUNCS): Add setns.
10451 * config.in: Regenerate.
10452 * configure: Likewise.
10453 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10454 (linux-namespaces.o): New rule.
10455 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10456
3ac2e371
GB
104572015-06-09 Gary Benson <gbenson@redhat.com>
10458
10459 * hostio.c (handle_open): Process mode argument with
10460 fileio_to_host_mode.
10461
ca9b78ce
YQ
104622015-06-01 Yao Qi <yao.qi@linaro.org>
10463
10464 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10465 * linux-x86-low.c: Likewise.
10466
bfacd19d
DB
104672015-05-28 Don Breazeal <donb@codesourcery.com>
10468
10469 * linux-low.c (handle_extended_wait): Initialize
10470 thread_info.last_resume_kind for new fork children.
10471
452003ef
PA
104722015-05-15 Pedro Alves <palves@redhat.com>
10473
10474 * target.h (target_handle_new_gdb_connection): Rewrite using if
10475 wrapped in do/while.
10476
1041a03c
JB
104772015-05-14 Joel Brobecker <brobecker@adacore.com>
10478
10479 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10480 * configure, config.in: Regenerate.
10481 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10482 Declare typedef.
10483
c269dbdb
DB
104842015-05-12 Don Breazeal <donb@codesourcery.com>
10485
10486 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10487 PTRACE_EVENT_VFORK_DONE.
10488 (linux_low_ptrace_options, extended_event_reported): Add vfork
10489 events.
10490 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10491 and "vforkdone" for RSP 'T' Stop Reply Packet.
10492 * server.h (report_vfork_events): Declare
10493 global variable.
10494
3a8a0396
DB
104952015-05-12 Don Breazeal <donb@codesourcery.com>
10496
10497 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10498 (the_low_target) <new_fork>: Initialize new member.
10499 * linux-arm-low.c (arm_new_fork): New function.
10500 (the_low_target) <new_fork>: Initialize new member.
10501 * linux-low.c (handle_extended_wait): Call new target function
10502 new_fork.
10503 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10504 * linux-mips-low.c (mips_add_watchpoint): New function
10505 extracted from mips_insert_point.
10506 (the_low_target) <new_fork>: Initialize new member.
10507 (mips_linux_new_fork): New function.
10508 (mips_insert_point): Call mips_add_watchpoint.
10509 * linux-x86-low.c (x86_linux_new_fork): New function.
10510 (the_low_target) <new_fork>: Initialize new member.
10511
de0d863e
DB
105122015-05-12 Don Breazeal <donb@codesourcery.com>
10513
10514 * linux-low.c (handle_extended_wait): Implement return value,
10515 rename argument 'event_child' to 'event_lwp', handle
10516 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10517 (linux_low_ptrace_options): New function.
10518 (linux_low_filter_event): Call linux_low_ptrace_options,
10519 use different argument fo linux_enable_event_reporting,
10520 use return value from handle_extended_wait.
10521 (extended_event_reported): New function.
10522 (linux_wait_1): Call extended_event_reported and set
10523 status to report fork events.
10524 (linux_write_memory): Add pid to debug message.
10525 (reset_lwp_ptrace_options_callback): New function.
10526 (linux_handle_new_gdb_connection): New function.
10527 (linux_target_ops): Initialize new structure member.
10528 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10529 * lynx-low.c: Initialize new structure member.
10530 * remote-utils.c (prepare_resume_reply): Implement stop reason
10531 "fork" for "T" stop message.
10532 * server.c (handle_query): Call handle_new_gdb_connection.
10533 * server.h (report_fork_events): Declare global flag.
10534 * target.h (struct target_ops) <handle_new_gdb_connection>:
10535 New member.
10536 (target_handle_new_gdb_connection): New macro.
10537 * win32-low.c: Initialize new structure member.
10538
ddcbc397
DB
105392015-05-12 Don Breazeal <donb@codesourcery.com>
10540
10541 * mem-break.c (APPEND_TO_LIST): Define macro.
10542 (clone_agent_expr): New function.
10543 (clone_one_breakpoint): New function.
10544 (clone_all_breakpoints): New function.
10545 * mem-break.h: Declare new functions.
10546
89245bc0
DB
105472015-05-12 Don Breazeal <donb@codesourcery.com>
10548
10549 * linux-low.c (linux_supports_fork_events): New function.
10550 (linux_supports_vfork_events): New function.
10551 (linux_target_ops): Initialize new structure members.
10552 (initialize_low): Call linux_check_ptrace_features.
10553 * lynx-low.c (lynx_target_ops): Initialize new structure
10554 members.
10555 * server.c (report_fork_events, report_vfork_events):
10556 New global flags.
10557 (handle_query): Add new features to qSupported packet and
10558 response.
10559 (captured_main): Initialize new global variables.
10560 * target.h (struct target_ops) <supports_fork_events>:
10561 New member.
10562 <supports_vfork_events>: New member.
10563 (target_supports_fork_events): New macro.
10564 (target_supports_vfork_events): New macro.
10565 * win32-low.c (win32_target_ops): Initialize new structure
10566 members.
10567
835205d0
GB
105682015-05-12 Gary Benson <gbenson@redhat.com>
10569
10570 * server.c (handle_qxfer_exec_file): Use current process
10571 if annex is empty.
10572
21e94bd9
SL
105732015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10574
10575 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10576 Remove HAVE_PTRACE_GETREGS conditionals.
10577 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10578 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10579
45614f15
YQ
105802015-05-08 Yao Qi <yao.qi@linaro.org>
10581
10582 * linux-low.c (linux_supports_conditional_breakpoints): New
10583 function.
10584 (linux_target_ops): Install new target method.
10585 * lynx-low.c (lynx_target_ops): Install NULL hook for
10586 supports_conditional_breakpoints.
10587 * nto-low.c (nto_target_ops): Likewise.
10588 * spu-low.c (spu_target_ops): Likewise.
10589 * win32-low.c (win32_target_ops): Likewise.
10590 * server.c (handle_query): Check
10591 target_supports_conditional_breakpoints.
10592 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10593 New field.
10594 (target_supports_conditional_breakpoints): New macro.
10595
80ad801e
PA
105962015-05-06 Pedro Alves <palves@redhat.com>
10597
10598 PR server/18081
10599 * server.c (start_inferior): If the process exits, mourn it.
10600
819843c7
GB
106012015-04-21 Gary Benson <gbenson@redhat.com>
10602
10603 * hostio.c (fileio_open_flags_to_host): Factored out to
10604 fileio_to_host_openflags in common/fileio.c. Single use
10605 updated.
10606
a2d5a9d7
MF
106072015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10608
10609 * linux-xtensa-low.c (xtensa_fill_gregset)
10610 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10611 XCHAL_HAVE_LOOP.
10612
deb44829
MF
106132015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10614
10615 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10616 (regs_info): Replace usrregs pointer with NULL.
10617
e57f1de3
GB
106182015-04-17 Gary Benson <gbenson@redhat.com>
10619
10620 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10621 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10622 * server.c (handle_qxfer_exec_file): New function.
10623 (qxfer_packets): Add exec-file entry.
10624 (handle_query): Report qXfer:exec-file:read as supported packet.
10625
62828379
RN
106262015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10627
10628 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10629
b88bb450
GB
106302015-04-09 Gary Benson <gbenson@redhat.com>
10631
10632 * hostio-errno.c (errno_to_fileio_error): Remove function.
10633 Update caller to use remote_fileio_to_fio_error.
10634
c8f4bfdd
YQ
106352015-04-09 Yao Qi <yao.qi@linaro.org>
10636
10637 * linux-low.c (linux_insert_point): Call
10638 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10639 (linux_remove_point): Call remove_memory_breakpoint if type is
10640 raw_bkpt_type_sw.
10641 * linux-x86-low.c (x86_insert_point): Don't call
10642 insert_memory_breakpoint.
10643 (x86_remove_point): Don't call remove_memory_breakpoint.
10644
41f98f02
PA
106452015-04-01 Pedro Alves <palves@redhat.com>
10646 Cleber Rosa <crosa@redhat.com>
10647
10648 * server.c (gdbserver_usage): Reorganize and extend the usage
10649 message.
10650
2bf6fb9d
PA
106512015-03-24 Pedro Alves <palves@redhat.com>
10652
10653 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10654 output. Also dump TRAP_TRACE.
10655 (linux_low_filter_event): In debug output, distinguish a
10656 resume_stop SIGSTOP from a delayed SIGSTOP.
10657
369f6daa
GB
106582015-03-24 Gary Benson <gbenson@redhat.com>
10659
10660 * linux-x86-low.c (x86_linux_new_thread): Moved to
10661 nat/x86-linux.c.
10662 (x86_linux_prepare_to_resume): Likewise.
10663
8e5d4070
GB
106642015-03-24 Gary Benson <gbenson@redhat.com>
10665
10666 * Makefile.in (x86-linux-dregs.o): New rule.
10667 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10668 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10669 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10670 (x86_linux_dr_get): Likewise.
10671 (x86_linux_dr_set): Likewise.
10672 (update_debug_registers_callback): Likewise.
10673 (x86_linux_dr_set_addr): Likewise.
10674 (x86_linux_dr_get_addr): Likewise.
10675 (x86_linux_dr_set_control): Likewise.
10676 (x86_linux_dr_get_control): Likewise.
10677 (x86_linux_dr_get_status): Likewise.
10678 (x86_linux_update_debug_registers): Likewise.
10679
2b95d440
GB
106802015-03-24 Gary Benson <gbenson@redhat.com>
10681
10682 * linux-x86-low.c (x86_linux_update_debug_registers):
10683 New function, factored out from...
10684 (x86_linux_prepare_to_resume): ...this.
10685
14b0bc68
GB
106862015-03-24 Gary Benson <gbenson@redhat.com>
10687
10688 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10689 (x86_linux_dr_set): Likewise.
10690 (update_debug_registers_callback): Likewise.
10691 (x86_linux_dr_set_addr): Likewise.
10692 (x86_linux_dr_get_addr): Likewise.
10693 (x86_linux_dr_set_control): Likewise.
10694 (x86_linux_dr_get_control): Likewise.
10695 (x86_linux_dr_get_status): Likewise.
10696 (x86_linux_prepare_to_resume): Likewise.
10697
5dfe6ca8
GB
106982015-03-24 Gary Benson <gbenson@redhat.com>
10699
10700 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10701 Use perror_with_name. Pass string through gettext.
10702 (x86_linux_dr_set): Likewise.
10703
d33472ad
GB
107042015-03-24 Gary Benson <gbenson@redhat.com>
10705
10706 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10707 (x86_linux_dr_set_addr): ...this.
10708 (x86_dr_low_get_addr): Rename to...
10709 (x86_linux_dr_get_addr): ...this.
10710 (x86_dr_low_set_control): Rename to...
10711 (x86_linux_dr_set_control): ...this.
10712 (x86_dr_low_get_control): Rename to...
10713 (x86_linux_dr_get_control): ...this.
10714 (x86_dr_low_get_status): Rename to...
10715 (x86_linux_dr_get_status): ...this.
10716 (x86_dr_low): Update with new function names.
10717
4b134ca1
GB
107182015-03-24 Gary Benson <gbenson@redhat.com>
10719
10720 * Makefile.in (x86-linux.o): New rule.
10721 * configure.srv: Add x86-linux.o to relevant targets.
10722 * linux-low.c (lwp_set_arch_private_info): New function.
10723 (lwp_arch_private_info): Likewise.
10724 * linux-x86-low.c: Include nat/x86-linux.h.
10725 (arch_lwp_info): Removed structure.
10726 (update_debug_registers_callback):
10727 Use lwp_set_debug_registers_changed.
10728 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10729 and lwp_set_debug_registers_changed.
10730 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10731
34c703da
GB
107322015-03-24 Gary Benson <gbenson@redhat.com>
10733
10734 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
10735 * linux-arm-low.c (arm_new_thread): Likewise.
10736 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
10737 * linux-mips-low.c (mips_linux_new_thread): Likewise.
10738 * linux-x86-low.c (x86_linux_new_thread): Likewise.
10739 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
10740
cff068da
GB
107412015-03-24 Gary Benson <gbenson@redhat.com>
10742
10743 * linux-low.c (ptid_of_lwp): New function.
10744 (lwp_is_stopped): Likewise.
10745 (lwp_stop_reason): Likewise.
10746 * linux-x86-low.c (update_debug_registers_callback):
10747 Use lwp_is_stopped.
10748 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10749 lwp_stop_reason.
10750
b2f7c7e8
GB
107512015-03-24 Gary Benson <gbenson@redhat.com>
10752
10753 * linux-low.h (linux_stop_lwp): Remove declaration.
10754
6d4ee8c6
GB
107552015-03-24 Gary Benson <gbenson@redhat.com>
10756
10757 * linux-low.h: Include nat/linux-nat.h.
10758 * linux-low.c (iterate_over_lwps_args): New structure.
10759 (iterate_over_lwps_filter): New function.
10760 (iterate_over_lwps): Likewise.
10761 * linux-x86-low.c (update_debug_registers_callback):
10762 Update signature to what iterate_over_lwps expects.
10763 Remove PID check that iterate_over_lwps now performs.
10764 (x86_dr_low_set_addr): Use iterate_over_lwps.
10765 (x86_dr_low_set_control): Likewise.
10766
70a0bb6b
GB
107672015-03-24 Gary Benson <gbenson@redhat.com>
10768
10769 * linux-x86-low.c (x86_debug_reg_state): New function.
10770 (x86_linux_prepare_to_resume): Use the above.
10771
7b669087
GB
107722015-03-24 Gary Benson <gbenson@redhat.com>
10773
10774 * linux-low.c (current_lwp_ptid): New function.
10775 * linux-x86-low.c: Include nat/linux-nat.h.
10776 (x86_dr_low_get_addr): Use current_lwp_ptid.
10777 (x86_dr_low_get_control): Likewise.
10778 (x86_dr_low_get_status): Likewise.
10779
eef49a3d
PA
107802015-03-20 Pedro Alves <palves@redhat.com>
10781
10782 * tracepoint.c (cmd_qtstatus): Make "str" const.
10783
b2333d22
PA
107842015-03-20 Pedro Alves <palves@redhat.com>
10785
10786 * server.c (handle_general_set): Make "req_str" const.
10787
23f238d3
PA
107882015-03-19 Pedro Alves <palves@redhat.com>
10789
10790 * linux-low.c (linux_resume_one_lwp): Rename to ...
10791 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10792 instead call perror_with_name.
10793 (check_ptrace_stopped_lwp_gone): New function.
10794 (linux_resume_one_lwp): Reimplement as wrapper around
10795 linux_resume_one_lwp_throw that swallows errors if the LWP is
10796 gone.
10797
91baf43f
PA
107982015-03-19 Pedro Alves <palves@redhat.com>
10799
10800 * linux-low.c (count_events_callback, select_event_lwp_callback):
10801 No longer check whether the thread has resume_stop as last resume
10802 kind.
10803
8bf3b159
PA
108042015-03-19 Pedro Alves <palves@redhat.com>
10805
10806 * linux-low.c (count_events_callback, select_event_lwp_callback):
10807 Use the lwp's status_pending_p field, not the thread's.
10808
b90fc188
PA
108092015-03-19 Pedro Alves <palves@redhat.com>
10810
10811 * linux-low.c (select_event_lwp_callback): Update comments to
10812 no longer mention SIGTRAP.
10813
464b0089
GB
108142015-03-18 Gary Benson <gbenson@redhat.com>
10815
10816 * server.c (handle_query): Do not report vFile:fstat as supported.
10817
aa9e327f
GB
108182015-03-11 Gary Benson <gbenson@redhat.com>
10819
10820 * hostio.c (sys/types.h): New include.
10821 (sys/stat.h): Likewise.
10822 (common-remote-fileio.h): Likewise.
10823 (handle_fstat): New function.
10824 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 10825
791c0056
GB
108262015-03-11 Gary Benson <gbenson@redhat.com>
10827
10828 * configure.ac (AC_CHECK_MEMBERS): Add checks for
10829 struct stat.st_blocks and struct stat.st_blksize.
10830 * configure: Regenerate.
10831 * config.in: Likewise.
10832 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10833 (OBS): Add common-remote-fileio.o.
10834 (common-remote-fileio.o): New rule.
10835
9a9df970
PA
108362015-03-09 Pedro Alves <palves@redhat.com>
10837
10838 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
10839 'struct sockaddr' pointer in 'accept' call.
10840
9eb1356e
PA
108412015-03-09 Pedro Alves <palves@redhat.com>
10842
10843 Revert:
10844 2015-03-07 Pedro Alves <palves@redhat.com>
10845 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
10846 or <winsock2.h> here. Instead include "gdb_socket.h".
10847 (remote_open): Use union gdb_sockaddr_u.
10848 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
10849 or <winsock2.h> here. Instead include "gdb_socket.h".
10850 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
10851 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
10852 or <sys/un.h>.
10853 (init_named_socket, gdb_agent_helper_thread): Use union
10854 gdb_sockaddr_u.
10855
aac331e4
PA
108562015-03-07 Pedro Alves <palves@redhat.com>
10857
10858 * configure.ac (build_warnings): Move
10859 -Wdeclaration-after-statement to the C-specific set.
10860 * configure: Regenerate.
10861
366c75fc
PA
108622015-03-07 Pedro Alves <palves@redhat.com>
10863
10864 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
10865 or <winsock2.h> here. Instead include "gdb_socket.h".
10866 (remote_open): Use union gdb_sockaddr_u.
10867 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
10868 or <winsock2.h> here. Instead include "gdb_socket.h".
10869 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
10870 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
10871 or <sys/un.h>.
10872 (init_named_socket, gdb_agent_helper_thread): Use union
10873 gdb_sockaddr_u.
10874
492d29ea
PA
108752015-03-07 Pedro Alves <palves@redhat.com>
10876
10877 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
10878 instead.
10879
60a191ed
YQ
108802015-03-06 Yao Qi <yao.qi@linaro.org>
10881
10882 * linux-aarch64-low.c (aarch64_insert_point): Use
10883 show_debug_regs as a boolean.
10884 (aarch64_remove_point): Likewise.
10885
f5771b1d
PA
108862015-03-05 Pedro Alves <palves@redhat.com>
10887
10888 * lynx-low.c (lynx_target_ops): Install NULL hooks for
10889 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
10890 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
10891 * nto-low.c (nto_target_ops): Likewise.
10892 * spu-low.c (spu_target_ops): Likewise.
10893 * win32-low.c (win32_target_ops): Likewise.
10894
3e572f71
PA
108952015-03-04 Pedro Alves <palves@redhat.com>
10896
72f4393d 10897 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
10898 Decide whether a breakpoint triggered based on the SIGTRAP's
10899 siginfo.si_code.
72f4393d
L
10900 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10901 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
10902 (linux_low_filter_event): Check for breakpoints before checking
10903 watchpoints.
10904 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
10905 siginfo.si_code.
72f4393d
L
10906 (linux_stopped_by_sw_breakpoint)
10907 (linux_supports_stopped_by_sw_breakpoint)
10908 (linux_stopped_by_hw_breakpoint)
10909 (linux_supports_stopped_by_hw_breakpoint): New functions.
10910 (linux_target_ops): Install new target methods.
3e572f71 10911
1ec68e26
PA
109122015-03-04 Pedro Alves <palves@redhat.com>
10913
10914 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
10915 * server.c (swbreak_feature, hwbreak_feature): New globals.
10916 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
10917 (captured_main): Clear swbreak_feature and hwbreak_feature.
10918 * server.h (swbreak_feature, hwbreak_feature): Declare.
10919 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
10920 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
10921 supports_stopped_by_hw_breakpoint>: New fields.
10922 (target_supports_stopped_by_sw_breakpoint)
10923 (target_stopped_by_sw_breakpoint)
10924 (target_supports_stopped_by_hw_breakpoint)
10925 (target_stopped_by_hw_breakpoint): Declare.
10926
15c66dd6
PA
109272015-03-04 Pedro Alves <palves@redhat.com>
10928
10929 enum lwp_stop_reason -> enum target_stop_reason
10930 * linux-low.c (check_stopped_by_breakpoint): Adjust.
10931 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
10932 (linux_wait_1, stuck_in_jump_pad_callback)
10933 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
10934 (linux_stopped_by_watchpoint):
10935 * linux-low.h (enum lwp_stop_reason): Delete.
10936 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10937 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
10938
98fc70d6
YQ
109392015-03-04 Yao Qi <yao.qi@linaro.org>
10940
10941 * Makefile.in (SFILES): Add linux-aarch64-low.c.
10942
dd2ac174
GB
109432015-03-03 Gary Benson <gbenson@redhat.com>
10944
10945 * hostio.c (handle_vFile): Fix prefix lengths.
10946
d68e53f4
MM
109472015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10948
10949 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
10950 ptr_bits.
10951
bf2d68ab
AA
109522015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10953
10954 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
10955 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
10956 (clean): Add "rm -f" for above C files.
10957 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
10958 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
10959 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
10960 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
10961 * linux-s390-low.c (HWCAP_S390_VX): New macro.
10962 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
10963 (init_registers_s390x_vx_linux64)
10964 (init_registers_s390x_tevx_linux64)
10965 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10966 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
10967 declarations.
10968 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
10969 (s390_store_vxrs_high): New functions.
10970 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
10971 NT_S390_VXRS_HIGH.
10972 (s390_arch_setup): Add logic for selecting one of the new target
10973 descriptions. Activate the new vector regsets if applicable.
10974 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
10975 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
10976 and init_registers_s390x_tevx_linux64.
10977
c966a859
PA
109782015-03-01 Pedro Alves <palves@redhat.com>
10979
10980 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
10981 parameter.
10982
4180215b
PA
109832015-02-27 Pedro Alves <palves@redhat.com>
10984
10985 * linux-x86-low.c (u_debugreg_offset): New function.
10986 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10987
749bab01
PA
109882015-02-27 Pedro Alves <palves@redhat.com>
10989
10990 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10991 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
10992 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10993 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10994 (ps_lsetfpregs, ps_getpid)
10995 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
10996 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
10997 (ps_lsetxregs, ps_plog): Declare.
10998
3c14e5a3
PA
109992015-02-27 Pedro Alves <palves@redhat.com>
11000
11001 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11002 IP_AGENT_EXPORT_FUNC.
11003 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11004 IP_AGENT_EXPORT_FUNC.
11005 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11006 (IP_AGENT_EXPORT): Delete.
11007 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11008 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11009 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11010 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11011 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11012 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11013 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11014 (traceframe_read_count, traceframe_write_count)
11015 (traceframes_created, trace_state_variables, get_raw_reg)
11016 (get_trace_state_variable_value, set_trace_state_variable_value)
11017 (ust_loaded, helper_thread_id, cmd_buf): Use
11018 IPA_SYM_EXPORTED_NAME.
11019 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11020 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11021 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11022 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11023 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11024 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11025 EXTERN_C_PUSH/EXTERN_C_POP.
11026 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11027 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11028 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11029 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11030 (traceframe_write_count, traceframe_read_count)
11031 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11032 (about_to_request_buffer_space, get_trace_state_variable_value)
11033 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11034 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11035 EXTERN_C_PUSH/EXTERN_C_POP.
11036 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11037 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11038 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11039 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11040 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11041 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11042 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11043 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11044 Define.
11045 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11046 (IP_AGENT_EXPORT_VAR_DECL): Define.
11047 (tracing): Declare.
11048 (gdb_agent_get_raw_reg): Declare.
11049
fe978cb0
PA
110502015-02-27 Tom Tromey <tromey@redhat.com>
11051 Pedro Alves <palves@redhat.com>
11052
11053 Rename symbols whose names are reserved C++ keywords throughout.
11054
3bc3d82a
PA
110552015-02-27 Pedro Alves <palves@redhat.com>
11056
11057 * Makefile.in (COMPILER): New, get it from autoconf.
11058 (CXX): Get from autoconf instead.
11059 (COMPILE.pre): Use COMPILER.
11060 (CC-LD): Rename to ...
11061 (CC_LD): ... this. Use COMPILER.
11062 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11063 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11064 * acinclude.m4: Include build-with-cxx.m4.
11065 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11066 Disable -Werror by default if building in C++ mode.
11067 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11068 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11069 the C++ compiler. Save/restore CXXFLAGS too.
11070 * configure: Regenerate.
11071
07697489
PA
110722015-02-27 Pedro Alves <palves@redhat.com>
11073
11074 * acinclude.m4: Include libiberty.m4.
11075 * configure.ac: Call libiberty_INIT.
11076 * config.in, configure: Regenerate.
11077
9beb7c4e
PA
110782015-02-26 Pedro Alves <palves@redhat.com>
11079
11080 * linux-low.c (linux_wait_1): When incrementing the PC past a
11081 program breakpoint always use the_low_target.breakpoint_len as
11082 increment, rather than the maximum between that and
11083 the_low_target.decr_pc_after_break.
11084
8090aef2
PA
110852015-02-23 Pedro Alves <palves@redhat.com>
11086
11087 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11088 thread was doing a step-over; always adjust the PC if
11089 we stepped over a permanent breakpoint.
11090 (linux_wait_1): If we stepped over breakpoint that was on top of a
11091 permanent breakpoint, manually advance the PC past it.
11092
bc9540e8
PA
110932015-02-23 Pedro Alves <palves@redhat.com>
11094
11095 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11096 modes.
11097 (x86_fill_gregset, x86_store_gregset): Use it when handling
11098 $orig_eax.
11099
2db9a427
PA
111002015-02-20 Pedro Alves <palves@redhat.com>
11101
11102 * thread-db.c: Include "nat/linux-procfs.h".
11103 (thread_db_init): Skip listing new threads if the kernel supports
11104 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11105
afa8d396
PA
111062015-02-20 Pedro Alves <palves@redhat.com>
11107
11108 * linux-low.c (status_pending_p_callback): Use ptid_match.
11109
c9587f88
AT
111102015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11111
11112 PR breakpoints/16812
11113 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11114 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11115 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11116
b05ec7a5
AT
111172015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11118
11119 PR breakpoints/15956
11120 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11121
d33501a5
MM
111222015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11123
11124 * linux-low.c (linux_low_btrace_conf): Print size.
11125 * server.c (handle_btrace_conf_general_set): New.
11126 (hanle_general_set): Call handle_btrace_conf_general_set.
11127 (handle_query): Report Qbtrace-conf:bts:size as supported.
11128
f4abbc16
MM
111292015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11130
11131 * linux-low.c (linux_low_enable_btrace): Update parameters.
11132 (linux_low_btrace_conf): New.
11133 (linux_target_ops)<to_btrace_conf>: Initialize.
11134 * server.c (current_btrace_conf): New.
11135 (handle_btrace_enable): Rename to ...
11136 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11137 to target_enable_btrace. Update comment. Update users.
11138 (handle_qxfer_btrace_conf): New.
11139 (qxfer_packets): Add btrace-conf entry.
11140 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11141 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11142 (target_ops)<read_btrace_conf>: New.
11143 (target_enable_btrace): Update parameters.
11144 (target_read_btrace_conf): New.
11145
043c3577
MM
111462015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11147
11148 * server.c (handle_btrace_general_set): Remove call to
11149 target_supports_btrace.
11150 (supported_btrace_packets): New.
11151 (handle_query): Call supported_btrace_packets.
11152 * target.h: include btrace-common.h.
11153 (btrace_target_info): Removed.
11154 (supports_btrace, target_supports_btrace): Update parameters.
11155
734b0e4b
MM
111562015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11157
11158 * Makefile.in (SFILES): Add common/btrace-common.c.
11159 (OBS): Add common/btrace-common.o.
11160 (btrace-common.o): Add build rules.
11161 * linux-low: Include btrace-common.h.
11162 (linux_low_read_btrace): Use struct btrace_data. Call
11163 btrace_data_init and btrace_data_fini.
11164
d6c146e9
PA
111652015-02-06 Pedro Alves <palves@redhat.com>
11166
11167 * thread-db.c (find_new_threads_callback): Add debug output.
11168
20ba1ce6
PA
111692015-02-04 Pedro Alves <palves@redhat.com>
11170
11171 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11172 (resume_stopped_resumed_lwps): New function.
11173 (linux_wait_for_event_filtered): Use it.
11174
8cc73a39
SDJ
111752015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11176
11177 * Makefile.in (SFILES): Add linux-personality.c.
11178 (linux-personality.o): New rule.
11179 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11180 list of objects to be built.
11181 * linux-low.c: Include nat/linux-personality.h.
11182 (linux_create_inferior): Remove code to disable address space
11183 randomization (moved to ../nat/linux-personality.c). Create
11184 cleanup to disable address space randomization.
11185
fb23d554
SDJ
111862015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11187
11188 * Makefile.in (posix-strerror.o): New rule.
11189 (mingw-strerror.o): Likewise.
11190 * configure: Regenerated.
11191 * configure.ac: Source file ../common/common.host. Initialize new
11192 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11193
cdf43629
YQ
111942015-01-14 Yao Qi <yao@codesourcery.com>
11195
11196 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11197 (ppc-linux.o): New rule.
11198 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11199 * configure.ac: AC_CHECK_FUNCS(getauxval).
11200 * config.in: Re-generated.
11201 * configure: Re-generated.
11202 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11203 ppc64_64bit_inferior_p
11204
514c5338
YQ
112052015-01-14 Yao Qi <yao@codesourcery.com>
11206
11207 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11208 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11209 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11210 (PT_ORIG_R3, PT_TRAP): Likewise.
11211 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11212 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11213 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11214
3368c1e5
JB
112152015-01-10 Joel Brobecker <brobecker@adacore.com>
11216
11217 * i387-fp.c (i387_cache_to_xsave): In look over
11218 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11219 zmmh_low_space field by use of zmmh_high_space.
11220
582511be
PA
112212015-01-09 Pedro Alves <palves@redhat.com>
11222
11223 * linux-low.c (step_over_bkpt): Move higher up in the file.
11224 (handle_extended_wait): Don't store the stop_pc here.
11225 (get_stop_pc): Adjust comments and rename to ...
11226 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11227 stopped for a software breakpoint or hardware breakpoint.
11228 (thread_still_has_status_pending_p): New function.
11229 (status_pending_p_callback): Use
11230 thread_still_has_status_pending_p. If the event is no longer
11231 interesting, resume the LWP.
11232 (handle_tracepoints): Add assert.
11233 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11234 (wstatus_maybe_breakpoint): New function.
11235 (cancel_breakpoint): Delete function.
11236 (check_stopped_by_watchpoint): New function, factored out from
11237 linux_low_filter_event.
11238 (lp_status_maybe_breakpoint): Delete function.
11239 (linux_low_filter_event): Remove filter_ptid argument.
11240 Leave thread group exits pending here. Store the LWP's stop PC.
11241 Always leave events pending.
11242 (linux_wait_for_event_filtered): Pull all events out of the
11243 kernel, and leave them all pending.
11244 (count_events_callback, select_event_lwp_callback): Consider all
11245 events.
11246 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11247 (select_event_lwp): Only give preference to the stepping LWP in
11248 all-stop mode. Adjust comments.
11249 (ignore_event): New function.
11250 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11251 references to cancel_breakpoints. Adjust to renames. Also give
11252 equal priority to all LWPs that have had events in non-stop mode.
11253 If reporting a software breakpoint event, unadjust the LWP's PC.
11254 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11255 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11256 Adjust.
11257 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11258 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11259 (linux_stopped_by_watchpoint): Adjust.
11260 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11261 * linux-low.h (enum lwp_stop_reason): New.
11262 (struct lwp_info) <stop_pc>: Adjust comment.
11263 <stopped_by_watchpoint>: Delete field.
11264 <stop_reason>: New field.
11265 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11266 * mem-break.c (software_breakpoint_inserted_here)
11267 (hardware_breakpoint_inserted_here): New function.
11268 * mem-break.h (software_breakpoint_inserted_here)
11269 (hardware_breakpoint_inserted_here): Declare.
11270 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11271 (cancel_breakpoints): Delete.
11272 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11273 (upload_fast_traceframes): Remove references to
11274 cancel_breakpoints.
11275
a33e3959
PA
112762015-01-09 Pedro Alves <palves@redhat.com>
11277
11278 * thread-db.c (find_new_threads_callback): Ignore thread if the
11279 kernel thread ID is -1.
11280
8784d563
PA
112812015-01-09 Pedro Alves <palves@redhat.com>
11282
11283 * linux-low.c (linux_attach_fail_reason_string): Move to
11284 nat/linux-ptrace.c, and rename.
11285 (linux_attach_lwp): Update comment.
11286 (attach_proc_task_lwp_callback): New function.
11287 (linux_attach): Adjust to rename and use
11288 linux_proc_attach_tgid_threads.
11289 (linux_attach_fail_reason_string): Delete declaration.
11290
76f2b779
JB
112912015-01-01 Joel Brobecker <brobecker@adacore.com>
11292
11293 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11294 * server.c (gdbserver_version): Likewise.
11295
fafcc06a
SDJ
112962014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11297
11298 * remote-utils.c: Include ctype.h.
11299 (input_interrupt): Explicitly handle the case when the char
11300 received is the NUL byte. Improve the printing of non-ASCII
11301 characters.
11302
beed38b8
JB
113032014-12-16 Joel Brobecker <brobecker@adacore.com>
11304
11305 * linux-low.c (linux_low_filter_event): Update call to
11306 linux_enable_event_reporting following the addition of
11307 a new parameter to that function.
11308
bf330350
CU
113092014-12-16 Catalin Udma <catalin.udma@freescale.com>
11310
11311 PR server/17457
11312 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11313 (AARCH64_FPCR_REGNO): Likewise.
11314 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11315 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11316 (aarch64_store_fpregset): Likewise.
11317
5227d625
JB
113182014-12-15 Joel Brobecker <brobecker@adacore.com>
11319
11320 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11321 Remove FIXME comment about assumption about N.
11322
f93b65a0
JB
113232014-12-13 Joel Brobecker <brobecker@adacore.com>
11324
11325 * configure.ac: If large-file support is disabled in GDBserver,
11326 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11327 * configure: Regenerate.
11328
e5a9158d
AA
113292014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11330
11331 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11332 warning upon ENODATA from ptrace.
11333 * linux-s390-low.c (s390_store_tdb): New.
11334 (s390_regsets): Add regset for NT_S390_TDB.
11335
feea5f36
AA
113362014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11337
11338 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11339 without a fill_function.
11340 * linux-s390-low.c (s390_fill_last_break): Remove.
11341 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11342 (s390_arch_setup): Use regset's size instead of fill_function for
11343 loop end condition.
11344
098dbe61
AA
113452014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11346
11347 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11348 the regset's store function when ptrace returned an error.
11349 * regcache.c (get_thread_regcache): Invalidate register cache
11350 before fetching inferior's registers.
11351
28eef672
AA
113522014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11353
11354 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11355 while-loop as for-loop.
11356 (regsets_store_inferior_registers): Likewise.
11357
bdca27a2
YQ
113582014-11-28 Yao Qi <yao@codesourcery.com>
11359
11360 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11361 * config.in, configure: Re-generate.
11362 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11363 is defined.
11364
9c232dda
YQ
113652014-11-21 Yao Qi <yao@codesourcery.com>
11366
11367 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11368 (AC_CHECK_HEADERS): Remove malloc.h.
11369 * configure: Re-generated.
11370 * config.in: Re-generated.
11371 * server.h: Don't include alloca.h and malloc.h.
11372 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11373 Don't include malloc.h.
11374
43968415
JB
113752014-11-17 Joel Brobecker <brobecker@adacore.com>
11376
11377 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11378 corresponding ERRNO check in same block.
11379
40e91bc7
PA
113802014-11-12 Pedro Alves <palves@redhat.com>
11381
11382 * server.c (cont_thread): Update comment.
11383 (start_inferior, attach_inferior): No longer clear cont_thread.
11384 (handle_v_cont): No longer set cont_thread.
11385 (captured_main): Clear cont_thread each time a GDB connects.
11386
c2c118cf
PA
113872014-11-12 Pedro Alves <palves@redhat.com>
11388
11389 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11390 thread, and don't resume all threads if the Hc thread has exited.
11391
78708b7c
PA
113922014-11-12 Pedro Alves <palves@redhat.com>
11393
11394 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11395 the process group instead of to a specific LWP.
11396
a2abc7de
PA
113972014-10-15 Pedro Alves <palves@redhat.com>
11398
11399 PR server/17487
11400 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11401 parameter.
11402 (arm_set_thread_context): Delete.
11403 (the_low_target): Adjust.
11404 * win32-i386-low.c (debug_registers_changed)
11405 (debug_registers_used): Delete.
11406 (update_debug_registers_callback): New function.
11407 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11408 needing to update their debug registers.
11409 (win32_get_current_dr): New function.
11410 (x86_dr_low_get_addr, x86_dr_low_get_control)
11411 (x86_dr_low_get_status): Fetch the debug register from the thread
11412 record's context.
11413 (i386_initial_stuff): Adjust.
11414 (i386_get_thread_context): Remove current_event parameter. Don't
11415 clear debug_registers_changed nor copy DR values to
11416 debug_reg_state.
11417 (i386_set_thread_context): Delete.
11418 (i386_prepare_to_resume): New function.
11419 (i386_thread_added): Mark the thread as needing to update irs
11420 debug registers.
11421 (the_low_target): Remove i386_set_thread_context and install
11422 i386_prepare_to_resume.
11423 * win32-low.c (win32_get_thread_context): Adjust.
11424 (win32_set_thread_context): Use SetThreadContext
11425 directly.
11426 (win32_prepare_to_resume): New function.
11427 (win32_require_context): New function, factored out from ...
11428 (thread_rec): ... this.
11429 (continue_one_thread): Call win32_prepare_to_resume on each thread
11430 we're about to continue.
11431 (win32_resume): Call win32_prepare_to_resume on the event thread.
11432 * win32-low.h (struct win32_thread_info)
11433 <debug_registers_changed>: New field.
11434 (struct win32_target_ops): Change prototype of set_thread_context,
11435 delete set_thread_context and add prepare_to_resume.
11436 (win32_require_context): New declaration.
11437
a442d071
GB
114382014-10-08 Gary Benson <gbenson@redhat.com>
11439
11440 * server.h: Do not include common-exceptions.h.
11441
6f1947e8
GB
114422014-10-08 Gary Benson <gbenson@redhat.com>
11443
11444 * server.h: Do not include cleanups.h.
11445
63b434a4
JH
114462014-09-30 James Hogan <james.hogan@imgtec.com>
11447
11448 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11449 mips64-dsp-linux.c.
11450
c4d9ceb6
YQ
114512014-09-23 Yao Qi <yao@codesourcery.com>
11452
11453 * linux-low.c (lp_status_maybe_breakpoint): New function.
11454 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11455 (count_events_callback): Likewise.
11456 (select_event_lwp_callback): Likewise.
11457 (cancel_breakpoints_callback): Likewise.
11458
89a5711c
DB
114592014-09-19 Don Breazeal <donb@codesourcery.com>
11460
11461 * linux-low.c (handle_extended_wait): Call
11462 linux_ptrace_get_extended_event.
11463 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11464 linux_is_extended_waitstatus.
11465
bffc0964
JB
114662014-09-16 Joel Brobecker <brobecker@adacore.com>
11467
11468 * Makefile.in (CPPFLAGS): Define.
11469 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11470 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11471
0bfdf32f
GB
114722014-09-16 Gary Benson <gbenson@redhat.com>
11473
11474 * inferiors.h (current_inferior): Renamed as...
11475 (current_thread): New variable. All uses updated.
11476 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11477 (maybe_move_out_of_jump_pad): Likewise.
11478 (cancel_breakpoint): Likewise.
11479 (linux_low_filter_event): Likewise.
11480 (wait_for_sigstop): Likewise.
11481 (linux_resume_one_lwp): Likewise.
11482 (need_step_over_p): Likewise.
11483 (start_step_over): Likewise.
11484 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11485 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11486 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11487 and save_inferior as saved_thread.
11488 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11489 saved_thread.
11490 (regcache_invalidate_thread): Likewise.
11491 * remote-utils.c (prepare_resume_reply): Likewise.
11492 * thread-db.c (thread_db_get_tls_address): Likewise.
11493 (disable_thread_event_reporting): Likewise.
11494 (remove_thread_event_breakpoints): Likewise.
11495 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11496 as saved_thread.
11497 * target.h (set_desired_inferior): Renamed as...
11498 (set_desired_thread): New declaration. All uses updated.
11499 * server.c (myresume): Updated comment to reference thread instead
11500 of inferior.
11501 (handle_serial_event): Likewise.
11502 (handle_target_event): Likewise.
11503
361c8ade
GB
115042014-09-12 Tom Tromey <tromey@redhat.com>
11505 Gary Benson <gbenson@redhat.com>
11506
11507 * regcache.h: Include common-regcache.h.
11508 (regcache_read_pc): Don't declare.
11509 * regcache.c (get_thread_regcache_for_ptid): New function.
11510
bd9269f7
GB
115112014-09-11 Tom Tromey <tromey@redhat.com>
11512 Gary Benson <gbenson@redhat.com>
11513
11514 * symbol.c: New file.
11515 * Makefile.in (SFILES): Add symbol.c.
11516 (OBS): Add symbol.o.
11517
f8c1d06b
GB
115182014-09-11 Gary Benson <gbenson@redhat.com>
11519
11520 * target.c (target_stop_ptid, target_continue_ptid): New
11521 functions.
11522
721ec300
GB
115232014-09-11 Tom Tromey <tromey@redhat.com>
11524 Gary Benson <gbenson@redhat.com>
11525
11526 * target.h: Include target/target.h.
11527 * target.c (target_read_memory, target_read_uint32)
11528 (target_write_memory): New functions.
11529
c5e92cca
GB
115302014-09-11 Gary Benson <gbenson@redhat.com>
11531
11532 * server.h (debug_hw_points): Don't declare.
11533 * server.c (debug_hw_points): Don't define. Replace all uses
11534 with show_debug_regs.
11535 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11536 all uses with show_debug_regs.
11537
2e4bb98a
EBM
115382014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11539
11540 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11541 endianness into account.
11542 (ppc_supply_ptrace_register): Likewise.
11543
ac740bc7
JH
115442014-09-03 James Hogan <james.hogan@imgtec.com>
11545
11546 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11547 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11548
97ea6506
GB
115492014-09-03 Gary Benson <gbenson@redhat.com>
11550
11551 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11552 ALL_DEBUG_ADDRESS_REGISTERS.
11553
df7e5265
GB
115542014-09-02 Gary Benson <gbenson@redhat.com>
11555
11556 * i386-low.h: Renamed as...
11557 * x86-low.h: New file. All type, function and variable name
11558 prefixes changed from "i386_" to "x86_". All references updated.
11559 * i386-low.c: Renamed as...
11560 * x86-low.c: New file. All type, function and variable name
11561 prefixes changed from "i386_" to "x86_". All references updated.
11562
ed859da7
GB
115632014-09-02 Gary Benson <gbenson@redhat.com>
11564
11565 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11566 (x86_linux_new_thread): Likewise.
11567
860789c7
GB
115682014-08-29 Gary Benson <gbenson@redhat.com>
11569
11570 * server.h (setjmp.h): Do not include.
11571 (toplevel): Do not declare.
11572 (common-exceptions.h): Include.
11573 (cleanups.h): Likewise.
11574 * server.c (toplevel): Do not define.
11575 (exit_code): New static global.
11576 (detach_or_kill_for_exit_cleanup): New function.
11577 (main): New function. Original main renamed to...
11578 (captured_main): New function.
11579 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11580
ff55e1b5
GB
115812014-08-29 Gary Benson <gbenson@redhat.com>
11582
11583 * Makefile.in (SFILES): Add common/common-exceptions.c.
11584 (OBS): Add common-exceptions.o.
11585 (common-exceptions.o): New rule.
11586 * utils.c (prepare_to_throw_exception): New function.
11587
e9bcb658
GB
115882014-08-29 Gary Benson <gbenson@redhat.com>
11589
11590 * config.in: Regenerate.
11591 * configure: Likewise.
11592
e3180625
GB
115932014-08-29 Gary Benson <gbenson@redhat.com>
11594
11595 * Makefile.in (SFILES): Add common/cleanups.c.
11596 (OBS): cleanups.o.
11597 (cleanups.o): New rule.
11598
e3d6ba5d
GB
115992014-08-29 Gary Benson <gbenson@redhat.com>
11600
11601 * utils.c (internal_vwarning): New function.
11602
7096e886
GB
116032014-08-28 Gary Benson <gbenson@redhat.com>
11604
11605 * utils.h (fatal): Remove declaration.
11606 * utils.c (fatal): Remove function.
11607
14ce3192
GB
116082014-08-28 Gary Benson <gbenson@redhat.com>
11609
11610 * tracepoint.c (gdb_agent_init): Replace fatal with
11611 perror_with_name.
11612 (initialize_tracepoint): Likewise.
11613
50278d59
GB
116142014-08-28 Gary Benson <gbenson@redhat.com>
11615
11616 * remote-utils.c (remote_prepare): Replace fatal with error.
11617
aa96c426
GB
116182014-08-28 Gary Benson <gbenson@redhat.com>
11619
11620 * linux-low.c (linux_async): Replace fatal with warning.
11621 Tidy up and return.
11622 (linux_start_non_stop): Return -1 if linux_async failed.
11623
f7160e97
GB
116242014-08-28 Gary Benson <gbenson@redhat.com>
11625
11626 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11627 gdb_assert.
11628 (i386_dr_low_get_addr): Remove vague comment.
11629 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11630 gdb_assert.
11631
38e08fca
GB
116322014-08-28 Gary Benson <gbenson@redhat.com>
11633
11634 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11635 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11636 internal_error.
11637 (linux_resume_one_lwp): Likewise.
11638 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11639 gdb_assert.
11640 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11641 with internal_error.
11642 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11643 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11644 (find_register_by_name): Replace fatal with internal_error.
11645 (find_regno): Likewise.
11646 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11647 * thread-db.c (thread_db_create_event): Likewise.
11648 (thread_db_load_search): Likewise.
11649 (try_thread_db_load_1): Likewise.
11650 * tracepoint.c (get_jump_space_head): Replace fatal with
11651 internal_error.
11652 (claim_trampoline_space): Likewise.
11653 (have_fast_tracepoint_trampoline_buffer): Likewise.
11654 (cmd_qtstart): Likewise.
11655 (stop_tracing): Likewise.
11656 (fast_tracepoint_collecting): Likewise.
11657 (target_malloc): Likewise.
11658 (download_tracepoint): Likewise.
11659 (download_trace_state_variables): Replace check with gdb_assert.
11660 (upload_fast_traceframes): Replace fatal with internal_error.
11661
34abf635
GB
116622014-08-19 Tom Tromey <tromey@redhat.com>
11663 Gary Benson <gbenson@redhat.com>
11664
11665 * Makefile.in (SFILES): Add common/common-debug.c.
11666 (OBS): Add common-debug.o.
11667 (common-debug.o): New rule.
11668 * debug.h (debug_printf): Don't declare.
11669 * debug.c (debug_printf): Renamed and rewritten as...
11670 (debug_vprintf): New function.
11671
f6e94d78
GB
116722014-08-19 Gary Benson <gbenson@redhat.com>
11673
11674 * utils.h: Do not include print-utils.h.
11675
9239eeab
GB
116762014-08-19 Tom Tromey <tromey@redhat.com>
11677 Gary Benson <gbenson@redhat.com>
11678
11679 * server.h: Add static assertion.
11680 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11681
ef87c8bb
GB
116822014-08-19 Tom Tromey <tromey@redhat.com>
11683 Gary Benson <gbenson@redhat.com>
11684
11685 * Makefile.in (SFILES): Add common/errors.c.
11686 (OBS): Add errors.o.
11687 (IPA_OBS): Add errors-ipa.o.
11688 (errors.o): New rule.
11689 (errors-ipa.o): Likewise.
11690 * utils.h (perror_with_name, error, warning): Don't declare.
11691 * utils.c (warning): Renamed and rewritten as...
11692 (vwarning): New function.
11693 (error): Renamed and rewritten as...
11694 (verror): New function.
11695 (internal_error): Renamed and rewritten as...
11696 (internal_verror): New function.
11697
bb974a24
GB
116982014-08-07 Gary Benson <gbenson@redhat.com>
11699
11700 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11701 * configure: Regenerate.
11702 * config.in: Likewise.
11703 * server.h: Do not include errno.h.
11704 * event-loop.c: Likewise.
11705 * hostio-errno.c: Likewise.
11706 * linux-low.c: Likewise.
11707 * remote-utils.c: Likewise.
11708 * spu-low.c: Likewise.
11709 * utils.c: Likewise.
11710 * gdbreplay.c: Unconditionally include errno.h.
11711
6d3d12eb
GB
117122014-08-07 Gary Benson <gbenson@redhat.com>
11713
11714 * server.h: Do not include string.h.
11715 * event-loop.c: Likewise.
11716 * linux-low.c: Likewise.
11717 * regcache.c: Likewise.
11718 * remote-utils.c: Likewise.
11719 * spu-low.c: Likewise.
11720 * utils.c: Likewise.
11721
dccbb609
GB
117222014-08-07 Gary Benson <gbenson@redhat.com>
11723
11724 * server.h: Do not include gdb_assert.h.
11725
e76df0d0
GB
117262014-08-07 Gary Benson <gbenson@redhat.com>
11727
11728 * server.h: Do not include common-utils.h.
11729
4cb9c816
GB
117302014-08-07 Gary Benson <gbenson@redhat.com>
11731
11732 * server.h: Do not include ptid.h.
11733 * notif.h: Likewise.
11734
3995eeee
GB
117352014-08-07 Gary Benson <gbenson@redhat.com>
11736
11737 * server.h: Do not include gdb_locale.h.
11738
cb9f1a9b
GB
117392014-08-07 Gary Benson <gbenson@redhat.com>
11740
11741 * server.h: Do not include gdb/signals.h.
11742 * win32-low.c: Likewise.
11743
a5fceff8
GB
117442014-08-07 Gary Benson <gbenson@redhat.com>
11745
11746 * server.h: Do not include pathmax.h.
11747
b9391142
GB
117482014-08-07 Gary Benson <gbenson@redhat.com>
11749
11750 * server.h: Do not include libiberty.h.
11751 * linux-bfin-low.c: Likewise.
11752
0e443c87
GB
117532014-08-07 Gary Benson <gbenson@redhat.com>
11754
11755 * server.h: Do not include ansidecl.h.
11756
8ebb3f56
GB
117572014-08-07 Gary Benson <gbenson@redhat.com>
11758
11759 * linux-x86-low.c: Do not include stddef.h.
11760 * lynx-ppc-low.c: Likewise.
11761 * tracepoint.c: Likewise.
11762
8980bdf6
GB
117632014-08-07 Gary Benson <gbenson@redhat.com>
11764
11765 * server.h: Do not include stdarg.h.
11766 * nto-low.c: Likewise.
11767
d7096f71
GB
117682014-08-07 Gary Benson <gbenson@redhat.com>
11769
11770 * server.h: Do not include stdlib.h.
11771 * inferiors.c: Likewise.
11772 * linux-low.c: Likewise.
11773 * regcache.c: Likewise.
11774 * spu-low.c: Likewise.
11775 * tracepoint.c: Likewise.
11776 * utils.c: Likewise.
11777
d02f550d
GB
117782014-08-07 Gary Benson <gbenson@redhat.com>
11779
11780 * server.h: Do not include stdio.h.
11781 * linux-low.c: Likewise.
11782 * remote-utils.c: Likewise.
11783 * spu-low.c: Likewise.
11784 * utils.c: Likewise.
11785 * wincecompat.c: Likewise.
11786
87f6c4e3
GB
117872014-08-06 Gary Benson <gbenson@redhat.com>
11788
11789 * regcache.c (init_register_cache): Move conditionals inside if.
11790
7089dca4
GB
117912014-08-06 Gary Benson <gbenson@redhat.com>
11792
11793 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
11794
462f517e
GB
117952014-07-31 Gary Benson <gbenson@redhat.com>
11796
11797 * ax.h: Do not include server.h.
11798 * gdbthread.h: Likewise.
11799 * lynx-low.h: Likewise.
11800 * notif.h: Likewise.
11801
976411d6
GB
118022014-07-30 Gary Benson <gbenson@redhat.com>
11803
11804 * server.h: Include common-defs.h.
11805 Do not include config.h or build-gnulib-gdbserver/config.h.
11806
d41f6d8e
GB
118072014-07-30 Gary Benson <gbenson@redhat.com>
11808
11809 * hostio-errno.c: Move server.h to top of includes list.
11810 * inferiors.c: Likewise.
11811 * linux-x86-low.c: Likewise.
11812 * notif.c: Include server.h.
11813
314c6a35
TT
118142014-07-24 Tom Tromey <tromey@redhat.com>
11815 Gary Benson <gbenson@redhat.com>
11816
11817 * server.h (CORE_ADDR): Now unsigned.
11818
69ff6be5
PA
118192014-07-16 Pedro Alves <palves@redhat.com>
11820
11821 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
11822
ce9e3fe7
PA
118232014-07-15 Pedro Alves <palves@redhat.com>
11824
11825 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
11826 copy.
11827
e76126e8
PA
118282014-07-11 Pedro Alves <palves@redhat.com>
11829
11830 * linux-low.c (kill_wait_lwp): New function, based on
11831 kill_one_lwp_callback, but use my_waitpid directly.
11832 (kill_one_lwp_callback, linux_kill): Use it.
11833
8e9db26e
PA
118342014-06-23 Pedro Alves <palves@redhat.com>
11835
11836 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
11837 before setting DR0..DR3.
11838
698b3e08
GB
118392014-06-20 Gary Benson <gbenson@redhat.com>
11840
11841 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
11842 * configure: Regenerated.
11843 * config.in: Likewise.
11844
125f8a3d
GB
118452014-06-20 Gary Benson <gbenson@redhat.com>
11846
11847 * Makefile.in (SFILES): Update locations for files moved
11848 from common to nat.
11849 (object file files): Reordered.
11850
42995dbd
GB
118512014-06-20 Gary Benson <gbenson@redhat.com>
11852
11853 * i386-low.h (i386_dr_low_can_set_addr): Removed.
11854 (i386_dr_low_set_addr): Likewise.
11855 (i386_dr_low_get_addr): Likewise.
11856 (i386_dr_low_can_set_control): Likewise.
11857 (i386_dr_low_set_control): Likewise.
11858 (i386_dr_low_get_control): Likewise.
11859 (i386_dr_low_get_status): Likewise.
11860 (i386_get_debug_register_length): Likewise.
11861 * linux-x86-low.c (i386_dr_low_set_addr):
11862 Changed signature. Made static.
11863 (i386_dr_low_get_addr): Likewise.
11864 (i386_dr_low_set_control): Likewise.
11865 (i386_dr_low_get_control): Likewise.
11866 (i386_dr_low_get_status): Likewise.
11867 (i386_dr_low): New global variable.
11868 * win32-i386-low.c (i386_dr_low_set_addr):
11869 Changed signature. Made static.
11870 (i386_dr_low_get_addr): Likewise.
11871 (i386_dr_low_set_control): Likewise.
11872 (i386_dr_low_get_control): Likewise.
11873 (i386_dr_low_get_status): Likewise.
11874 (i386_dr_low): New global variable.
11875
e1d2394b
MS
118762014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
11877
11878 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
11879 * Makefile.in (AR, AR_FLAGS): Define.
11880 * configure: Regenerate.
11881
3a8ee006
GB
118822014-06-19 Gary Benson <gbenson@redhat.com>
11883
11884 * Makefile.in (i386-dregs.o): New rule.
11885 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
11886 * i386-low.c (target.h): Remove include.
11887 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
11888 (DR_CONTROL_SHIFT): Likewise.
11889 (DR_CONTROL_SIZE): Likewise.
11890 (DR_RW_EXECUTE): Likewise.
11891 (DR_RW_WRITE): Likewise.
11892 (DR_RW_READ): Likewise.
11893 (DR_RW_IORW): Likewise.
11894 (DR_LEN_1): Likewise.
11895 (DR_LEN_2): Likewise.
11896 (DR_LEN_4): Likewise.
11897 (DR_LEN_8): Likewise.
11898 (DR_LOCAL_ENABLE_SHIFT): Likewise.
11899 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
11900 (DR_ENABLE_SIZE): Likewise.
11901 (DR_LOCAL_SLOWDOWN): Likewise.
11902 (DR_GLOBAL_SLOWDOWN): Likewise.
11903 (DR_CONTROL_RESERVED): Likewise.
11904 (I386_DR_CONTROL_MASK): Likewise.
11905 (I386_DR_VACANT): Likewise.
11906 (I386_DR_LOCAL_ENABLE): Likewise.
11907 (I386_DR_GLOBAL_ENABLE): Likewise.
11908 (I386_DR_DISABLE): Likewise.
11909 (I386_DR_SET_RW_LEN): Likewise.
11910 (I386_DR_GET_RW_LEN): Likewise.
11911 (I386_DR_WATCH_HIT): Likewise.
11912 (i386_wp_op_t): Likewise.
11913 (i386_show_dr): Likewise.
11914 (i386_length_and_rw_bits): Likewise.
11915 (i386_insert_aligned_watchpoint): Likewise.
11916 (i386_remove_aligned_watchpoint): Likewise.
11917 (i386_handle_nonaligned_watchpoint): Likewise.
11918 i386_update_inferior_debug_regs(): Likewise.
11919 (i386_dr_insert_watchpoint): Likewise.
11920 (i386_dr_remove_watchpoint): Likewise.
11921 (i386_dr_region_ok_for_watchpoint): Likewise.
11922 (i386_dr_stopped_data_address): Likewise.
11923 (i386_dr_stopped_by_watchpoint): Likewise.
11924
8f26655c
GB
119252014-06-19 Gary Benson <gbenson@redhat.com>
11926
11927 * i386-low.c (i386_dr_show): Renamed to
11928 i386_show_dr and made static. All uses updated.
11929 (i386_dr_length_and_rw_bits): Renamed to
11930 i386_length_and_rw_bits and made static.
11931 All uses updated.
11932 (i386_dr_insert_aligned_watchpoint): Renamed to
11933 i386_insert_aligned_watchpoint and made static.
11934 All uses updated.
11935 (i386_dr_remove_aligned_watchpoint): Renamed to
11936 i386_remove_aligned_watchpoint and made static.
11937 All uses updated.
11938 (i386_dr_update_inferior_debug_regs): Renamed to
11939 i386_update_inferior_debug_regs and made static.
11940 All uses updated.
11941
b9228891
GB
119422014-06-18 Gary Benson <gbenson@redhat.com>
11943
5171def3
GB
11944 * i386-low.h (i386_dr_low_can_set_addr): New macro.
11945 (i386_dr_low_can_set_control): Likewise.
11946 (i386_get_debug_register_length): Likewise.
11947 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
11948 (i386_dr_low_can_set_control): Likewise.
11949 (i386_get_debug_register_length): Likewise.
11950
119512014-06-17 Gary Benson <gbenson@redhat.com>
11952
b9228891
GB
11953 * i386-low.h (i386-dregs.h): New include.
11954 (DR_FIRSTADDR): Now in i386-dregs.h.
11955 (DR_LASTADDR): Likewise.
11956 (DR_NADDR): Likewise.
11957 (DR_STATUS): Likewise.
11958 (DR_CONTROL): Likewise.
11959 (i386_debug_reg_state): Likewise.
11960 (i386_dr_insert_watchpoint): Likewise.
11961 (i386_dr_remove_watchpoint): Likewise.
11962 (i386_dr_region_ok_for_watchpoint): Likewise.
11963 (i386_dr_stopped_data_address): Likewise.
11964 (i386_dr_stopped_by_watchpoint): Likewise.
11965 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
11966
4be83cc2
GB
119672014-06-18 Gary Benson <gbenson@redhat.com>
11968
11969 * i386-low.h (i386_low_insert_watchpoint): Renamed to
11970 i386_dr_insert_watchpoint.
11971 (i386_low_remove_watchpoint): Renamed to
11972 i386_dr_remove_watchpoint.
11973 (i386_low_region_ok_for_watchpoint): Renamed to
11974 i386_dr_region_ok_for_watchpoint.
11975 (i386_low_stopped_data_address): Renamed to
11976 i386_dr_stopped_data_address.
11977 (i386_low_stopped_by_watchpoint): Renamed to
11978 i386_dr_stopped_by_watchpoint.
11979 * i386-low.c (i386_show_dr): Renamed to
11980 i386_dr_show and made nonstatic. All uses updated.
11981 (i386_length_and_rw_bits): Renamed to
11982 i386_dr_length_and_rw_bits and made nonstatic.
11983 All uses updated.
11984 (i386_insert_aligned_watchpoint): Renamed to
11985 i386_dr_insert_aligned_watchpoint and made nonstatic.
11986 All uses updated.
11987 (i386_remove_aligned_watchpoint): Renamed to
11988 i386_dr_remove_aligned_watchpoint and made nonstatic.
11989 All uses updated.
11990 (i386_update_inferior_debug_regs): Renamed to
11991 i386_dr_update_inferior_debug_regs and made nonstatic.
11992 All uses updated.
11993 (i386_low_insert_watchpoint): Renamed to
11994 i386_dr_insert_watchpoint. All uses updated.
11995 (i386_low_remove_watchpoint): Renamed to
11996 i386_dr_remove_watchpoint. All uses updated.
11997 (i386_low_region_ok_for_watchpoint): Renamed to
11998 i386_dr_region_ok_for_watchpoint. All uses updated.
11999 (i386_low_stopped_data_address): Renamed to
12000 i386_dr_stopped_data_address. All uses updated.
12001 (i386_low_stopped_by_watchpoint): Renamed to
12002 i386_dr_stopped_by_watchpoint. All uses updated.
12003
131aa0d4
GB
120042014-06-18 Gary Benson <gbenson@redhat.com>
12005
12006 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12007 (i386_dr_low_can_set_control): Likewise.
12008 (i386_insert_aligned_watchpoint): New check.
12009
d9305f7f
GB
120102014-06-18 Gary Benson <gbenson@redhat.com>
12011
12012 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12013 Renamed to state.
12014
e927c9fc
GB
120152014-06-18 Gary Benson <gbenson@redhat.com>
12016
12017 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12018 instead of fatal and error.
12019 (i386_handle_nonaligned_watchpoint): Likewise.
12020
1b6d4134
GB
120212014-06-18 Gary Benson <gbenson@redhat.com>
12022
12023 * i386-low.c (i386_get_debug_register_length): New macro.
12024 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12025 (i386_show_dr): Use debug_printf instead of fprintf. Use
12026 phex to format values.
12027
6e62758f
GB
120282014-06-18 Gary Benson <gbenson@redhat.com>
12029
12030 * i386-low.h: Comment changes.
12031 * i386-low.c: Likewise.
12032
fc6e2f03
GB
120332014-06-18 Gary Benson <gbenson@redhat.com>
12034
12035 * i386-low.c: Whitespace changes.
12036
f9d1eeed
TT
120372014-06-12 Tom Tromey <tromey@redhat.com>
12038
12039 * utils.c (freeargv): Remove.
12040
0b04e523
TT
120412014-06-12 Tom Tromey <tromey@redhat.com>
12042
12043 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12044 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12045 (parse_debug_format_options): Likewise.
12046 (gdbserver_usage): Likewise.
12047 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12048 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12049 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12050 against libiberty.
12051 ($(LIBGNU)): Depend on libiberty.
12052 (all-lib): Recurse into all subdirs.
12053 (install-only): Invoke "install" target in subdirs.
12054 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12055 targets.
12056 * configure: Rebuild.
12057 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12058 for vasprintf, vsnprintf, or gettimeofday.
12059 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12060 srv_tgtobj.
12061
270c9937
JB
120622014-06-05 Joel Brobecker <brobecker@adacore.com>
12063
12064 * development.sh: Delete.
12065 * Makefile.in (config.status): Adjust dependency on development.sh.
12066 * configure.ac: Adjust development.sh source call.
12067 * configure: Regenerate.
12068
0a261ed8
PA
120692014-06-02 Pedro Alves <palves@redhat.com>
12070
12071 * ax.c (gdb_free_agent_expr): New function.
12072 * ax.h (gdb_free_agent_expr): New declaration.
12073 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12074 list.
12075 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12076 static.
12077 (clear_breakpoint_conditions_and_commands): New function.
12078 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12079 (clear_breakpoint_conditions_and_commands): New declaration.
12080
e9dae05e
RR
120812014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12082
12083 * linux-aarch64-low.c (asm/ptrace.h): Include.
12084
5876f503
JK
120852014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12086
12087 Fix TLS access for -static -pthread.
12088 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12089 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12090 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12091
802e8e6d
PA
120922014-05-20 Pedro Alves <palves@redhat.com>
12093
12094 * linux-aarch64-low.c (aarch64_insert_point)
12095 (aarch64_remove_point): No longer check whether the type is
12096 supported here. Adjust to new interface.
12097 (the_low_target): Install aarch64_supports_z_point_type as
12098 supports_z_point_type method.
12099 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12100 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12101 instead of a Z packet char. Adjust.
12102 (arm_supports_z_point_type): New function.
12103 (arm_insert_point, arm_remove_point): Adjust to new interface.
12104 (the_low_target): Install arm_supports_z_point_type.
12105 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12106 (cris_insert_point, cris_remove_point): Adjust to new interface.
12107 Don't check whether the type is supported here.
12108 (the_low_target): Install cris_supports_z_point_type.
12109 * linux-low.c (linux_supports_z_point_type): New function.
12110 (linux_insert_point, linux_remove_point): Adjust to new interface.
12111 * linux-low.h (struct linux_target_ops) <insert_point,
12112 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12113 raw_breakpoint pointer parameter.
12114 <supports_z_point_type>: New method.
12115 * linux-mips-low.c (mips_supports_z_point_type): New function.
12116 (mips_insert_point, mips_remove_point): Adjust to new interface.
12117 Use mips_supports_z_point_type.
12118 (the_low_target): Install mips_supports_z_point_type.
12119 * linux-ppc-low.c (the_low_target): Install NULL as
12120 supports_z_point_type method.
12121 * linux-s390-low.c (the_low_target): Install NULL as
12122 supports_z_point_type method.
12123 * linux-sparc-low.c (the_low_target): Install NULL as
12124 supports_z_point_type method.
12125 * linux-x86-low.c (x86_supports_z_point_type): New function.
12126 (x86_insert_point): Adjust to new insert_point interface. Use
12127 insert_memory_breakpoint. Adjust to new
12128 i386_low_insert_watchpoint interface.
12129 (x86_remove_point): Adjust to remove_point interface. Use
12130 remove_memory_breakpoint. Adjust to new
12131 i386_low_remove_watchpoint interface.
12132 (the_low_target): Install x86_supports_z_point_type.
12133 * lynx-low.c (lynx_target_ops): Install NULL as
12134 supports_z_point_type callback.
12135 * nto-low.c (nto_supports_z_point_type): New.
12136 (nto_insert_point, nto_remove_point): Adjust to new interface.
12137 (nto_target_ops): Install nto_supports_z_point_type.
12138 * mem-break.c: Adjust intro comment.
12139 (struct raw_breakpoint) <raw_type, size>: New fields.
12140 <inserted>: Update comment.
12141 <shlib_disabled>: Delete field.
12142 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12143 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12144 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12145 (raw_bkpt_type_to_target_hw_bp_type): New function.
12146 (find_enabled_raw_code_breakpoint_at): New function.
12147 (find_raw_breakpoint_at): New type and size parameters. Use them.
12148 (insert_memory_breakpoint): New function, based off
12149 set_raw_breakpoint_at.
12150 (remove_memory_breakpoint): New function.
12151 (set_raw_breakpoint_at): Reimplement.
12152 (set_breakpoint): New, based on set_breakpoint_at.
12153 (set_breakpoint_at): Reimplement.
12154 (delete_raw_breakpoint): Go through the_target->remove_point
12155 instead of assuming memory breakpoints.
12156 (find_gdb_breakpoint_at): Delete.
12157 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12158 (find_gdb_breakpoint): New function.
12159 (set_gdb_breakpoint_at): Delete.
12160 (z_type_supported): New function.
12161 (set_gdb_breakpoint_1): New function, loosely based off
12162 set_gdb_breakpoint_at.
12163 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12164 (delete_gdb_breakpoint_at): Delete.
12165 (delete_gdb_breakpoint_1): New function, loosely based off
12166 delete_gdb_breakpoint_at.
12167 (delete_gdb_breakpoint): New function.
12168 (clear_gdb_breakpoint_conditions): Rename to ...
12169 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12170 breakpoint.
12171 (add_condition_to_breakpoint): Make static.
12172 (add_breakpoint_condition): Take a struct breakpoint pointer
12173 instead of an address. Adjust.
12174 (gdb_condition_true_at_breakpoint): Rename to ...
12175 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12176 z_type parameter.
12177 (gdb_condition_true_at_breakpoint): Reimplement.
12178 (add_breakpoint_commands): Take a struct breakpoint pointer
12179 instead of an address. Adjust.
12180 (gdb_no_commands_at_breakpoint): Rename to ...
12181 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12182 parameter. Return true if no breakpoint was found. Change debug
12183 output.
12184 (gdb_no_commands_at_breakpoint): Reimplement.
12185 (run_breakpoint_commands): Rename to ...
12186 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12187 and change return type to boolean.
12188 (run_breakpoint_commands): New function.
12189 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12190 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12191 breakpoint. Go through the_target->remove_point instead of
12192 assuming memory breakpoint.
12193 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12194 software and hardware breakpoints.
12195 (reinsert_raw_breakpoint): Go through the_target->insert_point
12196 instead of assuming memory breakpoint.
12197 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12198 software and hardware breakpoints.
12199 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12200 Check both software and hardware breakpoints.
12201 (validate_inserted_breakpoint): Assert the breakpoint is a
12202 software breakpoint. Set the inserted flag to -1 instead of
12203 setting shlib_disabled.
12204 (delete_disabled_breakpoints): Adjust.
12205 (validate_breakpoints): Only validate software breakpoints.
12206 Adjust to inserted flag change.
12207 (check_mem_read, check_mem_write): Skip breakpoint types other
12208 than software breakpoints. Adjust to inserted flag change.
12209 * mem-break.h (enum raw_bkpt_type): New enum.
12210 (raw_breakpoint, struct process_info): Forward declare.
12211 (Z_packet_to_target_hw_bp_type): Delete declaration.
12212 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12213 (set_gdb_breakpoint, delete_gdb_breakpoint)
12214 (clear_breakpoint_conditions): New declarations.
12215 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12216 (breakpoint_inserted_here): Update comment.
12217 (add_breakpoint_condition, add_breakpoint_commands): Replace
12218 address parameter with a breakpoint pointer parameter.
12219 (gdb_breakpoint_here): Update comment.
12220 (delete_gdb_breakpoint_at): Delete.
12221 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12222 * server.c (process_point_options): Take a struct breakpoint
12223 pointer instead of an address. Adjust.
12224 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12225 delete_gdb_breakpoint.
12226 * spu-low.c (spu_target_ops): Install NULL as
12227 supports_z_point_type method.
12228 * target.h: Include mem-break.h.
12229 (struct target_ops) <prepare_to_access_memory>: Update comment.
12230 <supports_z_point_type>: New field.
12231 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12232 instead of a char. Also take a raw breakpoint pointer.
12233 * win32-arm-low.c (the_low_target): Install NULL as
12234 supports_z_point_type.
12235 * win32-i386-low.c (i386_supports_z_point_type): New function.
12236 (i386_insert_point, i386_remove_point): Adjust to new interface.
12237 (the_low_target): Install i386_supports_z_point_type.
12238 * win32-low.c (win32_supports_z_point_type): New function.
12239 (win32_insert_point, win32_remove_point): Adjust to new interface.
12240 (win32_target_ops): Install win32_supports_z_point_type.
12241 * win32-low.h (struct win32_target_ops):
12242 <supports_z_point_type>: New method.
12243 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12244 instead of a char. Also take a raw breakpoint pointer.
12245
932539e3
PA
122462014-05-20 Pedro Alves <palves@redhat.com>
12247
12248 * mem-break.h: Include break-common.h.
12249 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12250 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12251 (Z_packet_to_target_hw_bp_type): New declaration.
12252 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12253 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12254 (Z_PACKET_ACCESS_WP): Delete macros.
12255 (Z_packet_to_hw_type): Delete function.
12256 * i386-low.h: Don't include break-common.h here.
12257 (Z_packet_to_hw_type): Delete declaration.
12258 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12259 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12260 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12261 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12262 * linux-aarch64-low.c: Don't include break-common.h here.
12263 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12264 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12265 (Z_packet_to_target_hw_bp_type): Delete function.
12266 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12267 function.
12268 (mips_insert_point, mips_remove_point): Use
12269 Z_packet_to_target_hw_bp_type.
12270
4ff0d3d8
PA
122712014-05-20 Pedro Alves <palves@redhat.com>
12272
12273 * linux-aarch64-low.c: Include break-common.h.
12274 (enum target_point_type): Delete.
12275 (Z_packet_to_point_type): Rename to ...
12276 (Z_packet_to_target_hw_bp_type): ... this, and return a
12277 target_hw_bp_type instead.
12278 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12279 instead of an enum target_point_type.
12280 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12281 breakpoint type.
12282 (aarch64_dr_state_insert_one_point)
12283 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12284 (aarch64_handle_aligned_watchpoint)
12285 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12286 Take an enum target_hw_bp_type instead of an enum
12287 target_point_type.
12288 (aarch64_supports_z_point_type): New function.
12289 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12290 use Z_packet_to_target_hw_bp_type.
12291
786dc519
JB
122922014-05-20 Joel Brobecker <brobecker@adacore.com>
12293
12294 * configure.ac: Only use -Werror by default when DEVELOPMENT
12295 is true.
12296 * configure: Regenerate.
12297
9e0aa64f
JK
122982014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12299
12300 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12301 * linux-x86-low.c (X86_64_USER_REGS): New.
12302 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12303
2b577b92
YQ
123042014-04-28 Yao Qi <yao@codesourcery.com>
12305
12306 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12307 name.
12308
94611da2
PA
123092014-04-25 Pedro Alves <palves@redhat.com>
12310
12311 PR server/16255
12312 * linux-low.c (linux_attach_fail_reason_string): New function.
12313 (linux_attach_lwp): Delete.
12314 (linux_attach_lwp_1): Rename to ...
12315 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12316 argument. Remove "initial" parameter. Return int instead of
12317 void. Don't error or warn here.
12318 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12319 failure to attach to the tgid. Call warning when failing to
12320 attach to an lwp.
12321 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12322 argument. Remove "initial" parameter. Return int instead of
12323 void. Don't error or warn here.
12324 (linux_attach_fail_reason_string): New declaration.
12325 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12326 interface change. Use linux_attach_fail_reason_string.
12327
01f9f808
MS
123282014-04-24 Michael Sturm <michael.sturm@mintel.com>
12329 Walfred Tedeschi <walfred.tedeschi@intel.com>
12330
12331 * Makefile.in: Added rules to handle new files
12332 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12333 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12334 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12335 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12336 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12337 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12338 x32-avx512-linux.o.
12339 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12340 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12341 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12342 i386/x32-avx512.xml.
12343 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12344 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12345 i386/x32-avx512-linux.xml.
12346 * i387-fp.c (num_avx512_k_registers): New constant for number
12347 of K registers.
12348 (num_avx512_zmmh_low_registers): New constant for number of
12349 lower ZMM registers (0-15).
12350 (num_avx512_zmmh_high_registers): New constant for number of
12351 higher ZMM registers (16-31).
12352 (num_avx512_ymmh_registers): New contant for number of higher
12353 YMM registers (ymm16-31 added by avx521 on x86_64).
12354 (num_avx512_xmm_registers): New constant for number of higher
12355 XMM registers (xmm16-31 added by AVX512 on x86_64).
12356 (struct i387_xsave): Add space for AVX512 registers.
12357 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12358 Add code to handle AVX512 registers.
12359 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12360 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12361 prototypei from generated file.
12362 (tdesc_amd64_avx512_linux): Likewise.
12363 (init_registers_x32_avx512_linux): Likewise.
12364 (tdesc_x32_avx512_linux): Likewise.
12365 (init_registers_i386_avx512_linux): Likewise.
12366 (tdesc_i386_avx512_linux): Likewise.
12367 (x86_64_regmap): Add AVX512 registers.
12368 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12369 mask.
12370 (initialize_low_arch): Add code to initialize AVX512 registers.
12371
51aa91f9
PA
123722014-04-23 Pedro Alves <palves@redhat.com>
12373
12374 * mem-break.c (find_gdb_breakpoint_at): Make static.
12375 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12376
a4165e94
PA
123772014-04-23 Pedro Alves <palves@redhat.com>
12378
12379 * i386-low.c: Don't include break-common.h here.
12380 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12381 prototype to take target_hw_bp_type as argument instead of a Z
12382 packet char.
12383 * i386-low.h: Include break-common.h here.
12384 (Z_packet_to_hw_type): Declare.
12385 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12386 prototypes.
12387 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12388 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12389 (x86_remove_point): Convert the packet number to a
12390 target_hw_bp_type before calling i386_low_remove_watchpoint.
12391 * win32-i386-low.c (i386_insert_point): Convert the packet number
12392 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12393 (i386_remove_point): Convert the packet number to a
12394 target_hw_bp_type before calling i386_low_remove_watchpoint.
12395
b8acf843
PA
123962014-04-23 Pedro Alves <palves@redhat.com>
12397
12398 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12399
d708bcd1
PA
124002014-04-10 Pedro Alves <palves@redhat.com>
12401
12402 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12403 Check if the condition or command is NULL before checking if the
12404 breakpoint is known. On success, return true.
12405 * mem-break.h (add_breakpoint_condition): Document return.
12406 (add_breakpoint_commands): Add describing comment.
12407 * server.c (skip_to_semicolon): New function.
12408 (process_point_options): Use it.
12409
2eec7d5b
PA
124102014-04-09 Pedro Alves <palves@redhat.com>
12411
12412 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12413 to lwpid_of.
12414
fa96cb38
PA
124152014-02-27 Pedro Alves <palves@redhat.com>
12416
12417 PR 12702
12418 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12419 macros.
12420 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12421 output.
12422 (last_thread_of_process_p): Take a PID argument instead of a
12423 thread pointer.
12424 (linux_wait_for_lwp): Delete.
12425 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12426 functions.
12427 (linux_low_filter_event): New function, party factored out from
12428 linux_wait_for_event.
12429 (linux_wait_for_event): Rename to ...
12430 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12431 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12432 sigsuspend. Check for zombie leaders.
12433 (linux_wait_for_event): Reimplement as wrapper around
12434 linux_wait_for_event_filtered.
12435 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12436 a normal or signal exit is seen, it's the whole process exiting.
12437 (wait_for_sigstop): No longer a for_each_inferior callback.
12438 Rewrite on top of linux_wait_for_event_filtered.
12439 (stop_all_lwps): Call wait_for_sigstop directly.
12440 * server.c (resume, handle_target_event): Handle
12441 TARGET_WAITKIND_NO_RESUMED.
12442
d763de10
JB
124432014-02-26 Joel Brobecker <brobecker@adacore.com>
12444
12445 * win32-low.c (psapi_get_dll_name,
12446 * win32_CreateToolhelp32Snapshot): Delete.
12447 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12448 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12449 Delete.
12450 (handle_load_dll): Add function description.
12451 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12452
850a0f76
JB
124532014-02-26 Joel Brobecker <brobecker@adacore.com>
12454
12455 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12456 Add comment.
12457 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12458 base address when calling win32_add_one_solib.
12459 (handle_load_dll): Delete local variable load_addr.
12460 Remove 0x1000 offset applied to DLL base address when calling
12461 win32_add_one_solib.
12462 (handle_unload_dll): Add comment.
12463
f25b3fc3
JB
124642014-02-26 Joel Brobecker <brobecker@adacore.com>
12465
12466 * win32-low.c (win32_add_all_dlls): Renames
12467 win32_ensure_ntdll_loaded. Rewrite function documentation.
12468 Adjust implementation to always load all DLLs.
12469 Add 0x1000 offset to DLL base address when calling
12470 win32_add_one_solib.
12471 (child_initialization_done): New static global.
12472 (do_initial_child_stuff): Set child_initialization_done to
12473 zero during child initialization, and 1 after. Replace call
12474 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12475 Add comment.
12476 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12477 (handle_unload_dll): Add function documentation.
12478 (get_child_debug_event): Ignore load and unload DLL events
12479 during child initialization.
12480
d86d4aaf
DE
124812014-02-20 Doug Evans <dje@google.com>
12482
3bc32da3 12483 Remove global all_lwps.
d86d4aaf
DE
12484 * inferiors.h (ptid_of): Move here from linux-low.h.
12485 (pid_of, lwpid_of): Ditto.
12486 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12487 parameter is a struct thread_info * now.
12488 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12489 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12490 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12491 directly.
12492 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12493 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12494 * linux-arm-low.c (update_registers_callback): Update, "entry"
12495 parameter is a struct thread_info * now.
12496 Fetch lwpid from current_inferior directly.
12497 (arm_insert_point): Pass &all_threads to find_inferior instead of
12498 &all_lwps.
12499 (arm_remove_point): Ditto.
12500 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12501 (arm_prepare_to_resume): Fetch pid from thread.
12502 (arm_read_description): Fetch lwpid from current_inferior directly.
12503 * linux-low.c (all_lwps): Delete.
12504 (delete_lwp): Delete call to remove_inferior.
12505 (handle_extended_wait): Fetch lwpid from thread.
12506 (add_lwp): Don't set lwp->entry.id. Remove call to
12507 add_inferior_to_list.
12508 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12509 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12510 (kill_one_lwp_callback): Ditto.
12511 (linux_kill): Don't dereference NULL pointer.
12512 Fetch ptid,lwpid from thread.
12513 (get_detach_signal): Fetch ptid from thread.
12514 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12515 Simplify call to regcache_invalidate_thread.
12516 (delete_lwp_callback): Update, "entry" parameter is a
12517 struct thread_info * now. Fetch pid from thread.
12518 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12519 (status_pending_p_callback): Update, "entry" parameter is a
12520 struct thread_info * now. Fetch ptid from thread.
12521 (find_lwp_pid): Update, "entry" parameter is a
12522 struct thread_info * now.
12523 (linux_wait_for_lwp): Fetch pid from thread.
12524 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12525 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12526 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12527 (dequeue_one_deferred_signal): Ditto.
12528 (cancel_breakpoint): Fetch ptid from current_inferior.
12529 (linux_wait_for_event): Pass &all_threads to find_inferior,
12530 not &all_lwps. Fetch ptid, lwpid from thread.
12531 (count_events_callback): Update, "entry" parameter is a
12532 struct thread_info * now.
12533 (select_singlestep_lwp_callback): Ditto.
12534 (select_event_lwp_callback): Ditto.
12535 (cancel_breakpoints_callback): Ditto.
12536 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12537 not &all_lwps.
12538 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12539 (unsuspend_one_lwp): Update, "entry" parameter is a
12540 struct thread_info * now.
12541 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12542 not &all_lwps.
12543 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12544 Fetch lwpid from thread, not lwp.
12545 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12546 Pass &all_threads to find_inferior, not &all_lwps.
12547 (send_sigstop): Fetch lwpid from thread, not lwp.
12548 (send_sigstop_callback): Update, "entry" parameter is a
12549 struct thread_info * now.
12550 (suspend_and_send_sigstop_callback): Ditto.
12551 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12552 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12553 struct thread_info * now.
12554 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12555 from thread, lwp.
12556 (lwp_running): Update, "entry" parameter is a
12557 struct thread_info * now.
12558 (stop_all_lwps): Fetch ptid from thread.
12559 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12560 (linux_resume_one_lwp): Fetch lwpid from thread.
12561 (linux_set_resume_request): Update, "entry" parameter is a
12562 struct thread_info * now. Fetch pid, lwpid from thread.
12563 (resume_status_pending_p): Update, "entry" parameter is a
12564 struct thread_info * now.
12565 (need_step_over_p): Ditto. Fetch lwpid from thread.
12566 (start_step_over): Fetch lwpid from thread.
12567 (linux_resume_one_thread): Update, "entry" parameter is a
12568 struct thread_info * now. Fetch lwpid from thread.
12569 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12570 (proceed_one_lwp): Update, "entry" parameter is a
12571 struct thread_info * now. Fetch lwpid from thread.
12572 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12573 struct thread_info * now.
12574 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12575 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12576 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12577 directly.
12578 (regsets_store_inferior_registers): Ditto.
12579 (fetch_register, store_register): Ditto.
12580 (linux_read_memory, linux_write_memory): Ditto.
12581 (linux_request_interrupt): Ditto.
12582 (linux_read_auxv): Ditto.
12583 (linux_xfer_siginfo): Ditto.
12584 (linux_qxfer_spu): Ditto.
12585 (linux_qxfer_libraries_svr4): Ditto.
12586 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12587 moved to inferiors.h.
12588 (get_lwp): Delete.
12589 (get_thread_lwp): Update.
12590 (struct lwp_info): Delete member "entry". Simplify comment for
12591 member "thread".
12592 (all_lwps): Delete.
12593 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12594 current_inferior directly.
12595 (update_watch_registers_callback): Update, "entry" parameter is a
12596 struct thread_info * now. Fetch pid from thread.
12597 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12598 (mips_insert_point): Fetch lwpid from current_inferior.
12599 Pass &all_threads to find_inferior, not &all_lwps.
12600 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12601 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12602 directly.
12603 (mips_stopped_data_address): Ditto.
12604 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12605 directly.
12606 * linux-tile-low.c (tile_arch_setup): Ditto.
12607 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12608 (update_debug_registers_callback): Update, "entry" parameter is a
12609 struct thread_info * now. Fetch pid from thread.
12610 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12611 Pass &all_threads to find_inferior, not &all_lwps.
12612 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12613 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12614 Pass &all_threads to find_inferior, not &all_lwps.
12615 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12616 (i386_dr_low_get_status): Ditto.
12617 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12618 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12619 (x86_linux_read_description): Ditto.
12620 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12621
3b8361aa
DE
126222014-02-20 Doug Evans <dje@google.com>
12623
12624 * inferiors.c (get_first_inferior): Fix buglet.
12625
f7667f0d
DE
126262014-02-19 Doug Evans <dje@google.com>
12627
12628 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12629 * inferiors.c (add_thread): Change result type to struct thread_info *.
12630 All callers updated.
12631 (add_lwp): Call add_thread here instead of in callers.
12632 All callers updated.
12633 * linux-low.h (get_lwp_thread): Rewrite.
12634 (struct lwp_info): New member "thread".
12635
b3312d80
DE
126362014-02-19 Doug Evans <dje@google.com>
12637
12638 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12639 All callers updated.
12640
ecc6f45c
DE
126412014-02-19 Doug Evans <dje@google.com>
12642
12643 * inferiors.c (add_thread): Fix whitespace.
12644
649ebbca
DE
126452014-02-19 Doug Evans <dje@google.com>
12646
12647 * dll.c (clear_dlls): Replace accessing list implemention details
12648 with API function.
12649 * gdbthread.h (get_first_thread): Declare.
12650 * inferiors.c (for_each_inferior_with_data): New function.
12651 (get_first_thread): New function.
12652 (find_thread_ptid): Simplify.
12653 (get_first_inferior): New function.
12654 (clear_list): Delete.
12655 (one_inferior_p): New function.
12656 (clear_inferior_list): New function.
12657 (clear_inferiors): Update.
12658 * inferiors.h (for_each_inferior_with_data): Declare.
12659 (clear_inferior_list): Declare.
12660 (one_inferior_p): Declare.
12661 (get_first_inferior): Declare.
12662 * linux-low.c (linux_wait_for_event): Replace accessing list
12663 implemention details with API function.
12664 * server.c (target_running): Ditto.
12665 (accumulate_file_name_length): New function.
12666 (emit_dll_description): New function.
12667 (handle_qxfer_libraries): Replace accessing list implemention
12668 details with API function.
12669 (handle_qxfer_threads_worker): New function.
12670 (handle_qxfer_threads_proper): Replace accessing list implemention
12671 details with API function.
12672 (handle_query): Ditto.
12673 (visit_actioned_threads_callback_ftype): New typedef.
12674 (visit_actioned_threads_data): New struct.
12675 (visit_actioned_threads): Rewrite to be find_inferior callback.
12676 (resume): Call find_inferior.
12677 (handle_status): Replace accessing list implemention
12678 details with API function.
12679 (process_serial_event): Replace accessing list implemention details
12680 with API function.
12681 * target.c (set_desired_inferior): Replace accessing list implemention
12682 details with API function.
12683 * tracepoint.c (same_process_p): New function.
12684 (gdb_agent_about_to_close): Replace accessing list implemention
12685 details with API function.
12686 * win32-low.c (child_delete_thread): Replace accessing list
12687 implemention details with API function.
12688 (match_dll_by_basename): New function.
12689 (dll_is_loaded_by_basename): New function.
12690 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12691 details call to dll_is_loaded_by_basename.
12692
80894984
DE
126932014-02-19 Doug Evans <dje@google.com>
12694
12695 * dll.h (struct dll_info): Add comment.
12696 * gdbthread.h (struct thread_info): Add comment.
12697 (current_ptid): Simplify.
12698 * inferiors.c (add_process): Update.
12699 (remove_process): Update.
12700 * inferiors.h (struct process_info): Rename member "head" to "entry".
12701 * linux-low.c (delete_lwp): Update.
12702 (add_lwp): Update.
12703 (last_thread_of_process_p): Update.
12704 (kill_one_lwp_callback, linux_kill): Update.
12705 (status_pending_p_callback): Update.
12706 (wait_for_sigstop): Update. Simplify read of ptid.
12707 (start_step_over): Update.
12708 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12709 (get_lwp_thread): Update.
12710 (struct lwp_info): Rename member "head" to "entry".
12711 * regcache.h (inferior_list_entry): Delete.
12712 * server.c (kill_inferior_callback): Update.
12713 (detach_or_kill_inferior_callback): Update.
12714 (print_started_pid): Update.
12715 (print_attached_pid): Update.
12716 (process_serial_event): Simplify read of ptid.
12717 * thread-db.c (thread_db_create_event): Update.
12718 (thread_db_get_tls_address): Update.
12719 * win32-low.c (current_inferior_ptid): Simplify.
12720
46917d26
TT
127212014-02-19 Tom Tromey <tromey@redhat.com>
12722
12723 * target.h (struct target_ops) <supports_btrace>: Add target_ops
12724 argument.
12725 (target_supports_btrace): Update.
12726
0759a81e
YQ
127272014-02-14 Yao Qi <yao@codesourcery.com>
12728
12729 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
12730 (rsp-low-ipa.o): New target.
12731
a7191e8b
TT
127322014-02-12 Tom Tromey <tromey@redhat.com>
12733
12734 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
12735 convert_ascii_to_int.
12736 * regcache.c (registers_to_string): Likewise.
12737 * remote-utils.c (decode_M_packet): Likewise.
12738 * server.c (process_serial_event): Likewise.
12739
ff0e980e
TT
127402014-02-12 Tom Tromey <tromey@redhat.com>
12741
12742 * server.c (handle_query, handle_v_run): Use hex2bin, not
12743 unhexify.
12744 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
12745
e9371aff
TT
127462014-02-12 Tom Tromey <tromey@redhat.com>
12747
12748 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
12749 convert_int_to_ascii.
12750 * regcache.c (registers_to_string, collect_register_as_string):
12751 Likewise.
12752 * remote-utils.c (look_up_one_symbol, relocate_instruction):
12753 Likewise.
12754 * server.c (process_serial_event): Likewise.
12755 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
12756 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
12757
971dc0b8
TT
127582014-02-12 Tom Tromey <tromey@redhat.com>
12759
12760 * remote-utils.c (look_up_one_symbol, monitor_output): Use
12761 bin2hex, not hexify.
12762 * tracepoint.c (cmd_qtstatus): Likewise.
12763
0a822afb
TT
127642014-02-12 Tom Tromey <tromey@redhat.com>
12765
12766 * remote-utils.c (monitor_output): Pass explicit length to
12767 hexify.
12768
9c3d6531
TT
127692014-02-12 Tom Tromey <tromey@redhat.com>
12770
12771 * tracepoint.c: Include rsp-low.h.
12772 * server.c: Include rsp-low.h.
12773 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
12774 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
12775 declare.
12776 * remote-utils.c: Include rsp-low.h.
12777 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
12778 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
12779 (convert_int_to_ascii, convert_ascii_to_int): Move to
12780 common/rsp-low.c.
12781 * regcache.c: Include rsp-low.h.
12782 * ax.c: Include rsp-low.h.
12783 * Makefile.in (SFILES): Add common/rsp-low.c.
12784 (OBS): Add rsp-low.o.
12785 (rsp-low.o): New target.
12786
01fd3ea5
TT
127872014-02-12 Tom Tromey <tromey@redhat.com>
12788
12789 * utils.h (pulongest, plongest, phex_nz): Don't declare.
12790 Include print-utils.h.
12791 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12792 (plongest, thirty_two, phex_nz): Remove.
12793 * Makefile.in (SFILES): Add common/print-utils.c.
12794 (OBS): Add print-utils.o.
12795 (print-utils-ipa.o): New target.
12796 (print-utils.o): New target.
12797 (IPA_OBJS): Add print-utils-ipa.o.
12798
e99dc820
TT
127992014-02-06 Tom Tromey <tromey@redhat.com>
12800
12801 * Makefile.in (SFILES): Fix indentation.
12802
ee1e2d4f
DE
128032014-02-05 Doug Evans <dje@google.com>
12804
12805 * linux-low.c (linux_wait_for_event): Improve comment.
12806 (linux_wait_1): Keep current_inferior in sync with event_child.
12807
f5a02773
DE
128082014-01-22 Doug Evans <dje@google.com>
12809
12810 * gdbthread.h (gdb_id_to_thread): Delete, unused.
12811
87ce2a04
DE
128122014-01-22 Doug Evans <dje@google.com>
12813
12814 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
12815 * configure: Regenerate.
12816 * config.in: Regenerate.
12817 * Makefile.in (SFILES): Add debug.c.
12818 (OBS): Add debug.o.
12819 * debug.c: New file.
12820 * debug.h: New file.
12821 * linux-aarch64-low.c (*): Update all debugging printfs to use
12822 debug_printf instead of fprintf.
12823 * linux-arm-low.c (*): Ditto.
12824 * linux-cris-low.c (*): Ditto.
12825 * linux-crisv32-low.c (*): Ditto.
12826 * linux-m32r-low.c (*): Ditto.
12827 * linux-sparc-low.c (*): Ditto.
12828 * linux-x86.c (*): Ditto.
12829 * linux-low.c (*): Ditto.
12830 (linux_wait_1): Add calls to debug_enter, debug_exit.
12831 (linux_wait): Remove redundant debugging printf.
12832 (stop_all_lwps): Add calls to debug_enter, debug_exit.
12833 (linux_resume, unstop_all_lwps): Ditto.
12834 * mem-break.c (*): Update all debugging printfs to use
12835 debug_printf instead of fprintf.
12836 * remote-utils.c (*): Ditto.
12837 * thread-db.c (*): Ditto.
12838 * server.c #include <ctype.h>, "gdb_vecs.h".
12839 (debug_threads): Moved to debug.c.
12840 (*): Update all debugging printfs to use debug_printf instead of
12841 fprintf.
12842 (start_inferior): Replace call to fflush with call to debug_flush.
12843 (monitor_show_help): Mention set debug-format.
12844 (parse_debug_format_options): New function.
12845 (handle_monitor_command): Handle "monitor set debug-format".
12846 (gdbserver_usage): Mention --debug-format.
12847 (main): Parse --debug-format.
12848 * server.h (debug_threads): Declaration moved to debug.h.
12849 #include "debug.h".
12850 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
12851 trace_debug_1 that uses debug_printf.
12852 (tracepoint_look_up_symbols): Update all debugging printfs to use
12853 debug_printf instead of fprintf.
12854
e671835b
BS
128552014-01-20 Baruch Siach <baruch@tkos.co.il>
12856
12857 * linux-xtensa-low.c: Include asm/ptrace.h instead of
12858 sys/ptrace.h.
12859
b5737fa9
PA
128602014-01-17 Pedro Alves <palves@redhat.com>
12861
ea38d2a9 12862 PR build/16445
c7faa97a
PA
12863 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
12864 defined after including gdb_proc_service.h.
b5737fa9 12865
40ed484e
DE
128662014-01-16 Doug Evans <dje@google.com>
12867
12868 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
12869 (match_dll): Use it.
12870
969c39fb
MM
128712014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12872
12873 * target.h (target_ops) <read_btrace>: Change parameters and
12874 return type to allow error reporting.
12875 * server.c (handle_qxfer_btrace): Support delta reads. Pass
12876 trace reading errors on.
12877 * linux-low.c (linux_low_read_btrace): Pass trace reading
12878 errors on.
12879 (linux_low_disable_btrace): New.
12880
ab7f45ba
DE
128812014-01-15 Doug Evans <dje@google.com>
12882
12883 * inferiors.c (thread_id_to_gdb_id): Delete.
12884 * inferiors.h (thread_id_to_gdb_id): Delete.
12885
66af0f44
EZ
128862014-01-13 Eli Zaretskii <eliz@gnu.org>
12887
12888 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
12889 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
12890 versions.
12891
9939e131
PA
128922014-01-08 Pedro Alves <palves@redhat.com>
12893
12894 * server.c (handle_status): Don't discard previous queued stop
12895 replies or thread's pending status here.
12896 (main) <disconnection>: Do it here instead.
12897
b7ea362b
PA
128982014-01-08 Pedro Alves <palves@redhat.com>
12899
12900 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
12901 * server.c (visit_actioned_threads, handle_pending_status): New
12902 function.
12903 (handle_v_cont): Factor out parts to ...
12904 (resume): ... this new function. If in all-stop, and a thread
12905 being resumed has a pending status, report it without actually
12906 resuming.
12907 (myresume): Adjust to use the new 'resume' function.
12908 (clear_pending_status_callback, set_pending_status_callback)
12909 (find_status_pending_thread_callback): New functions.
12910 (handle_status): Handle the case of multiple threads having
12911 interesting statuses to report. Report threads' real last signal
12912 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
12913 with an interesting thread to report the status for, instead of
12914 always reporting the status of the first thread.
12915
28498c42
JB
129162014-01-01 Joel Brobecker <brobecker@adacore.com>
12917
12918 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
12919 * gdbreplay.c (gdbreplay_version): Likewise.
12920
f45c82da
YZ
129212013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
12922
12923 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
12924 iov.iov_len with the real length in use.
12925
379a5e2d
JB
129262013-12-13 Joel Brobecker <brobecker@adacore.com>
12927
12928 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
12929 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
12930 for all targets that use win32-low.c.
12931 * win32-low.c (win32_ensure_ntdll_loaded): New function.
12932 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
12933
4210d83e
PA
129342013-12-13 Pedro Alves <palves@redhat.com>
12935
12936 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
12937 if equal to TARGET_WAITKIND_LOADED.
12938 * win32-low.c (cached_status): New static global.
12939 (win32_wait): Add declaration.
12940 (do_initial_child_stuff): Flush all initial pending debug events
12941 up to the initial breakpoint.
12942 (win32_wait): If CACHED_STATUS was set, return that instead
12943 of doing a real wait. Remove the code resuming the execution
12944 of the inferior after receiving a TARGET_WAITKIND_LOADED event
12945 during the initial phase. Also remove the code changing
12946 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
12947 TARGET_WAITKIND_STOPPED.
12948
e7f0d979
YQ
129492013-12-11 Yao Qi <yao@codesourcery.com>
12950
12951 * notif.c (handle_notif_ack): Return 0 if no notification
12952 matches.
12953
ebcf782c
DE
129542013-11-20 Doug Evans <dje@google.com>
12955
12956 * linux-low.c (linux_set_resume_request): Fix comment.
12957
20ad9378
DE
129582013-11-20 Doug Evans <dje@google.com>
12959
12960 * linux-low.c (resume_status_pending_p): Tweak comment.
12961
a196ebeb
WT
129622013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
12963
12964 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
12965 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
12966 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
12967 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
12968 (srv_amd64_regobj): Add amd64-mpx.o.
12969 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
12970 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
12971 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
12972 * i387-fp.c (num_pl_bnd_register) Added constant.
12973 (num_pl_bnd_cfg_registers) Added constant.
12974 (struct i387_xsave) Added reserved area and MPX fields.
12975 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
12976 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
12977 function.
12978 (tdesc_i386_mpx_linux): Add MPX amd64 target.
12979 (init_registers_amd64_mpx_linux): Declare new function.
12980 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
12981 (x86_64_regmap): Add MPX registers.
12982 (x86_linux_read_description): Add MPX case.
12983 (initialize_low_arch): Initialize MPX targets.
12984
0080a2f6
TT
129852013-11-18 Tom Tromey <tromey@redhat.com>
12986
12987 * configure: Rebuild.
12988 * configure.ac: Don't check for stdlib.h.
12989 * gdbreplay.c: Unconditionally include stdlib.h.
12990
2978b111
TT
129912013-11-18 Tom Tromey <tromey@redhat.com>
12992
12993 * config.in: Rebuild.
12994 * configure: Rebuild.
12995 * configure.ac: Don't use AC_HEADER_DIRENT.
12996
a3d08894
TT
129972013-11-18 Tom Tromey <tromey@redhat.com>
12998
12999 * server.h: Don't check HAVE_STRING_H.
13000 * gdbreplay.c: Don't check HAVE_STRING_H.
13001 * configure: Rebuild.
13002
0a5dd17d
TT
130032013-11-18 Tom Tromey <tromey@redhat.com>
13004
13005 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13006 LIBGNU.
13007
1bd2f0ba
TT
130082013-11-08 Tom Tromey <tromey@redhat.com>
13009
13010 * configure, config.in: Rebuild.
13011 * configure.ac: Remove unused configury.
13012
3266f10b
TT
130132013-11-08 Tom Tromey <tromey@redhat.com>
13014
13015 * acinclude.m4: Include common.m4, codeset.m4.
13016 * configure, config.in: Rebuild.
13017 * configure.ac: Use GDB_AC_COMMON.
13018
6682d959
AA
130192013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13020
13021 * linux-s390-low.c (HWCAP_S390_TE): New define.
13022 (s390_arch_setup): Consider the TE field in the HWCAP for
13023 determining 'have_regset_tdb'.
13024
fd0a4d76
SDJ
130252013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13026
13027 PR gdb/16014
13028 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13029 call to sizeof.
13030
1a3d890b
PA
130312013-10-02 Pedro Alves <palves@redhat.com>
13032
13033 * server.c (process_serial_event): Don't output "GDBserver
13034 exiting" if GDB is connected through stdio.
13035 * target.c (mywait): Likewise, be silent if GDB is connected
13036 through stdio.
13037
97ad4581
JB
130382013-10-01 Joel Brobecker <brobecker@adacore.com>
13039
13040 * lynx-low.c (lynx_add_threads_after_attach): New function.
13041 (lynx_attach): Remove call to add_thread. Add call to
13042 lynx_add_threads_after_attach instead.
13043
5b4e221c
MF
130442013-09-28 Mike Frysinger <vapier@gentoo.org>
13045
13046 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13047 * config.in, configure: Regenerated.
13048
ee47b2f8
YQ
130492013-09-18 Yao Qi <yao@codesourcery.com>
13050
13051 PR server/15959
13052 * server.c (start_inferior): Clear 'resume_info'.
13053
d6707650 130542013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13055
d6707650
JW
13056 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13057 for each register.
13058
9243dd0e 130592013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13060
9243dd0e
JW
13061 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13062 linux-tile-low.o to srv_tgtobj.
13063
c623a6ef
WN
130642013-09-16 Will Newton <will.newton@linaro.org>
13065
13066 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13067 out regs.
13068
fb71d39e
PA
130692013-09-06 Pedro Alves <palves@redhat.com>
13070
13071 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13072 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13073 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13074 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13075 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13076 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13077
8e7e9910
PA
130782013-09-06 Pedro Alves <palves@redhat.com>
13079
13080 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13081 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13082
7c3a12ca
PA
130832013-09-06 Pedro Alves <palves@redhat.com>
13084
13085 * linux-amd64-ipa.c: Include tracepoint.h.
13086 * linux-i386-ipa.c: Include tracepoint.h.
13087
8eb3d7b6
RW
130882013-09-06 Ricard Wanderlof <ricardw@axis.com>
13089
13090 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13091 (ps_get_thread_area): New function.
13092
eddddb9d
RW
130932013-09-06 Ricard Wanderlof <ricardw@axis.com>
13094
13095 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13096 (initialize_low_arch): Call init_registers_crisv32 rather than
13097 init_register_crisv32.
13098
533b0600
PA
130992013-09-05 Pedro Alves <palves@redhat.com>
13100
13101 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13102 to ...
13103 * hostio.h: ... this new file.
13104 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13105 win32-low.c: Include hostio.h.
13106
0ce3d3b5
PA
131072013-09-05 Pedro Alves <palves@redhat.com>
13108
13109 * server.h (gdb_client_data, handler_func, callback_handler_func)
13110 (delete_file_handler, add_file_handler, append_callback_event)
13111 (delete_callback_event, start_event_loop, initialize_event_loop):
13112 Move to event-loop.h and include it.
13113 * event-loop.h: New file.
13114
799cdc37
PA
131152013-09-05 Pedro Alves <palves@redhat.com>
13116
13117 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13118 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13119 (loaded_dll, unloaded_dll): Move to ...
13120 * dll.h: ... this new file.
13121 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13122
6a6bbd9d
PA
131232013-09-05 Pedro Alves <palves@redhat.com>
13124
13125 * server.h (current_process, get_thread_process, all_processes)
13126 (add_inferior_to_list, for_each_inferior, current_inferior)
13127 (remove_inferior, add_process, remove_process, find_process_pid)
13128 (have_started_inferiors_p, have_attached_inferiors_p)
13129 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13130 (clear_inferiors, find_inferior, find_inferior_id)
13131 (inferior_target_data, set_inferior_target_data)
13132 (inferior_regcache_data, set_inferior_regcache_data): Move to
13133 inferiors.h, and include it.
13134 * inferiors.h: New file.
13135
f699aaba
PA
131362013-09-05 Pedro Alves <palves@redhat.com>
13137
13138 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13139 Move ...
72f4393d 13140 * ax.h: ... here.
f699aaba 13141
c144c7a0
PA
131422013-09-05 Pedro Alves <palves@redhat.com>
13143
13144 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13145 tracepoint.h.
13146 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13147 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13148 (handle_tracepoint_general_set, handle_tracepoint_query)
13149 (tracepoint_finished_step, tracepoint_was_hit)
13150 (release_while_stepping_state_list, current_traceframe)
13151 (in_readonly_region, traceframe_read_mem)
13152 (fetch_traceframe_registers, traceframe_read_sdata)
13153 (traceframe_read_info, struct fast_tpoint_collect_status)
13154 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13155 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13156 (supply_fast_tracepoint_registers)
13157 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13158 (ipa_tdesc, claim_trampoline_space)
13159 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13160 (agent_mem_read, agent_get_trace_state_variable_value)
13161 (agent_set_trace_state_variable_value, agent_tsv_read)
13162 (agent_mem_read_string, get_raw_reg_func_addr)
13163 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13164 * tracepoint.h: ... this new file.
13165
ff42e6ab
PA
131662013-09-05 Pedro Alves <palves@redhat.com>
13167
13168 * server.h (perror_with_name, error, fatal, warning, paddress)
13169 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13170 include it.
13171 * utils.h: New file.
13172
541af0f4
PA
131732013-09-05 Pedro Alves <palves@redhat.com>
13174
13175 * server.h (remote_debug, noack_mode, transport_is_reliable)
13176 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13177 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13178 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13179 (write_enn, initialize_async_io, enable_async_io)
13180 (disable_async_io, check_remote_input_interrupt_request)
13181 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13182 (dead_thread_notify, prepare_resume_reply)
13183 (decode_address_to_semicolon, decode_address, decode_m_packet)
13184 (decode_M_packet, decode_X_packet, decode_xfer_write)
13185 (decode_search_memory_packet, unhexify, hexify)
13186 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13187 (look_up_one_symbol, relocate_instruction)
13188 (monitor_output): Move to remote-utils.h, and include it.
13189 * remote-utils.h: New file.
13190
eebdf26b
PA
131912013-09-05 Pedro Alves <palves@redhat.com>
13192
13193 * server.h (_): Delete.
13194
3aafd2ff
PA
131952013-09-02 Pedro Alves <palves@redhat.com>
13196
13197 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13198 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13199 allocated.
13200 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13201
cee83bcb
PM
132022013-09-02 Pierre Muller <muller@sourceware.org>
13203
13204 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13205 or WriteProcessMemory complete successfully and handle
13206 ERROR_PARTIAL_COPY error.
13207
9a13b2fa
PA
132082013-09-02 Pedro Alves <palves@redhat.com>
13209
13210 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13211 error instead of EIO.
13212
602e3198
JK
132132013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13214
13215 PR server/15604
13216 * linux-low.c: Include filestuff.h.
13217 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13218 * lynx-low.c: Include filestuff.h.
13219 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13220 * server.c: Include filestuff.h.
13221 (main): Call notice_open_fds.
13222 * spu-low.c: Include filestuff.h.
13223 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13224
96d7229d
LM
132252013-08-22 Luis Machado <lgustavo@codesourcery.com>
13226
13227 * Makefile.in: Explain why ../target and ../nat are not
13228 listed as include file search paths.
13229 (linux-waitpid.o): New object file rule.
13230 * configure.srv (srv_native_linux_obj): New variable.
13231 Replace all occurrences of linux native object files with
13232 $srv_native_linux_obj.
13233 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13234 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13235 (linux_enable_event_reporting): Remove declaration.
13236 (my_waitpid): Moved to common/linux-waitpid.c.
13237 (linux_wait_for_event): Pass ptid when calling
13238 linux_enable_event_reporting.
13239 (linux_supports_tracefork_flag): Remove.
13240 (linux_enable_event_reporting): Likewise.
13241 (linux_tracefork_grandchild): Remove.
13242 (STACK_SIZE): Moved to common/linux-ptrace.c.
13243 (linux_tracefork_child): Remove.
13244 (linux_test_for_tracefork): Remove.
13245 (linux_look_up_symbols): Call linux_supports_traceclone.
13246 (initialize_low): Remove call to linux_test_for_tracefork.
13247 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13248 common/linux-ptrace.h.
13249 (PTRACE_TYPE_ARG4): Likewise.
13250 Include linux-ptrace.h.
13251
32940073
PA
132522013-08-21 Pedro Alves <palves@redhat.com>
13253
13254 * config.in: Renegerate.
13255
33b60d58 132562013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13257
33b60d58
LM
13258 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13259 (SFILES): Remove $(srcdir)/common/target-common.c and
13260 add $(srcdir)/target/waitstatus.c.
13261 (OBS): Remove target-common.o and add waitstatus.o.
13262 (server_h): Remove $(srcdir)/../common/target-common.h and
13263 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13264 and $(srcdir)/../target/waitstatus.h.
13265 (target-common.o): Remove.
13266 (waitstatus.o): New target object file.
13267 * target.h: Do not include target-common.h and
13268 include target/resume.h, target/wait.h and
13269 target/waitstatus.h.
13270
b8e1b30e
LM
132712013-08-13 Luis Machado <lgustavo@codesourcery.com>
13272
13273 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13274 to PTRACE_TYPE_ARG3.
13275 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13276 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13277 PTRACE_TYPE_ARG4.
13278 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13279 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13280
7a60ad40
YQ
132812013-07-27 Jie Zhang <jie@codesourcery.com>
13282 Daniel Jacobowitz <dan@codesourcery.com>
13283 Yao Qi <yao@codesourcery.com>
13284
13285 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13286 (mips-linux-watch.o): New rule.
13287 (mips_linux_watch_h): New variable.
13288 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13289 srv_tgtobj.
13290 * linux-mips-low.c: Include mips-linux-watch.h.
13291 (struct arch_process_info, struct arch_lwp_info): New.
13292 (update_watch_registers_callback): New function.
13293 (mips_linux_new_process, mips_linux_new_thread) New functions.
13294 (mips_linux_prepare_to_resume, mips_insert_point): New
13295 functions.
13296 (mips_remove_point, mips_stopped_by_watchpoint): New
13297 functions.
13298 (rsp_bp_type_to_target_hw_bp_type): New function.
13299 (mips_stopped_data_address): New function.
13300 (the_low_target): Add watchpoint support functions.
13301
de6f69ad
YQ
133022013-07-27 Yao Qi <yao@codesourcery.com>
13303
13304 * i386-low.c: Include break-common.h.
13305 (enum target_hw_bp_type): Remove.
13306
3360c0bf
LM
133072013-07-24 Luis Machado <lgustavo@codesourcery.com>
13308
13309 * Makefile.in (SFILES): /common/target-common.c.
13310 (OBS): Add target-common.o.
13311 (server_h): Add $(srcdir)/../common/target-common.h.
13312 (target-common.o): New target.
13313 * server.c (queue_stop_reply_callback): Free
13314 status string after use.
13315 * target.c (target_waitstatus_to_string): Remove.
13316 * target.h: Include target-common.h.
13317 (resume_kind): Likewise.
13318 (target_waitkind): Likewise.
13319 (target_waitstatus): Likewise.
13320 (TARGET_WNOHANG): Likewise.
13321
bd885420
YQ
133222013-07-04 Yao Qi <yao@codesourcery.com>
13323
13324 * Makefile.in (host_alias): Use @host_noncanonical@.
13325 (target_alias): Use @target_noncanonical@.
13326 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13327 ACX_NONCANONICAL_HOST.
13328 * configure: Regenerated.
13329
13330 Revert:
13331 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13332
13333 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13334 * configure: Rebuild.
13335 * Makefile.in (version_host, version_target): Get from configure.
13336 (version.c): Use $(version_host) and $(version_target).
13337
17ef446e
PA
133382013-07-03 Pedro Alves <palves@redhat.com>
13339
13340 * Makefile.in (config.status): Depend on development.sh.
13341 * acinclude.m4: Include libmcheck.m4.
13342 * configure: Regenerate.
13343
7a9a7487
MG
133442013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13345
13346 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13347 attribute inside the parentheses.
13348 (winapi_DebugSetProcessKillOnExit): Ditto.
13349 (winapi_DebugBreakProcess): Ditto.
13350 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13351
49b64de6
MG
133522013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13353
13354 * notif.h (notif_event): Add a dummy member to avoid compiler
13355 errors.
13356
d5749ee7
PA
133572013-07-01 Pedro Alves <palves@redhat.com>
13358
13359 * hostio.c (HOSTIO_PATH_MAX): Define.
13360 (require_filename, handle_open, handle_unlink, handle_readlink):
13361 Use it.
13362
d8d2a3ee
PA
133632013-07-01 Pedro Alves <palves@redhat.com>
13364
13365 * server.h: Include "pathmax.h".
13366 * linux-low.c: Don't include sys/param.h.
13367 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13368 MAXPATHLEN.
13369 * win32-low.c: Don't include sys/param.h.
13370 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13371
bc7dea8d
PA
133722013-07-01 Pedro Alves <palves@redhat.com>
13373
13374 * event-loop.c: Don't check HAVE_UNISTD_H before including
13375 <unistd.h>.
13376 * gdbreplay.c: Likewise.
13377 * remote-utils.c: Likewise.
13378 * server.c: Likewise.
13379 * configure.ac: Don't check for unistd.h.
13380 * configure: Regenerate.
13381
d6c2da54
TT
133822013-06-28 Tom Tromey <tromey@redhat.com>
13383
13384 * Makefile.in (version.c): Use version.in, not
13385 common/version.in.
13386
257b6bec
MG
133872013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13388
13389 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13390 * configure: Rebuild.
13391 * Makefile.in (version_host, version_target): Get from configure.
13392 (version.c): Use $(version_host) and $(version_target).
13393
86ebe149
DK
133942013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13395
13396 Fix trace-status to output user name without trailing colon.
13397 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13398
f30aa5af
DK
133992013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13400
13401 Fix trace-status to output proper start-time and stop-time.
13402 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13403 output start time and stop time in hex as gdb expects.
13404
28a93511
YQ
134052013-06-26 Pedro Alves <pedro@codesourcery.com>
13406
13407 * tracepoint.c (build_traceframe_info_xml): Output trace state
13408 variables present in the trace buffer.
13409
01208463
TT
134102013-06-24 Tom Tromey <tromey@redhat.com>
13411
13412 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13413 create-version.sh.
13414 (version.o): Remove.
13415 * gdbreplay.c: Include version.h.
13416 (version, host_name): Don't declare.
13417 * server.h: Include version.h.
13418 (version, host_name): Don't declare.
13419
760256f9
PA
134202013-06-12 Pedro Alves <palves@redhat.com>
13421
13422 * linux-x86-low.c (linux_is_elf64): Delete global.
13423 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13424 with local linux_pid_exe_is_elf_64_file use.
13425
030031ee
PA
134262013-06-11 Pedro Alves <palves@redhat.com>
13427
13428 * linux-low.c (regset_disabled, disable_regset): New functions.
13429 (regsets_fetch_inferior_registers)
13430 (regsets_store_inferior_registers): Use them.
13431 (initialize_regsets_info); Don't allocate the disabled_regsets
13432 array here.
13433 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13434 comment.
13435
5da6eb0a
PA
134362013-06-11 Pedro Alves <palves@redhat.com>
13437
13438 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13439 xmalloc.
13440
7e5aaa09
PA
134412013-06-11 Pedro Alves <palves@redhat.com>
13442
13443 * linux-x86-low.c (initialize_low_arch): Call
13444 init_registers_x32_avx_linux.
13445
d878444c
JK
134462013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13447
13448 Fix compatibility with Android Bionic.
13449 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13450 it is not empty.
13451
3aee8918
PA
134522013-06-07 Pedro Alves <palves@redhat.com>
13453
5f2b57b5 13454 PR server/14823
3aee8918
PA
13455 * Makefile.in (OBS): Add tdesc.o.
13456 (IPA_OBJS): Add tdesc-ipa.o.
13457 (tdesc-ipa.o): New rule.
13458 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13459 interface.
13460 * linux-low.c (new_inferior): Delete.
13461 (disabled_regsets, num_regsets): Delete.
13462 (linux_add_process): Adjust to set the new per-process
13463 new_inferior flag.
13464 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13465 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13466 was a stop. When calling arch_setup, switch the current inferior
13467 to the thread that got an event.
13468 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13469 (regsets_fetch_inferior_registers)
13470 (regsets_store_inferior_registers): New regsets_info parameter.
13471 Adjust to use it.
13472 (linux_register_in_regsets): New regs_info parameter. Adjust to
13473 use it.
13474 (register_addr, fetch_register, store_register): New usrregs_info
13475 parameter. Adjust to use it.
13476 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13477 parameter regs_info. Adjust to use it.
13478 (linux_fetch_registers): Get the current inferior's regs_info, and
13479 adjust to use it.
13480 (linux_store_registers): Ditto.
13481 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13482 (initialize_low): Don't initialize the target_regsets here. Call
13483 initialize_low_arch.
13484 * linux-low.h (target_regsets): Delete declaration.
13485 (struct regsets_info): New.
13486 (struct usrregs_info): New.
13487 (struct regs_info): New.
13488 (struct process_info_private) <new_inferior>: New field.
13489 (struct linux_target_ops): Delete the num_regs, regmap, and
13490 regset_bitmap fields. New field regs_info.
13491 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13492 * i387-fp.c (num_xmm_registers): Delete.
13493 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13494 calls to new interface.
13495 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13496 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13497 Infer the number of xmm registers from the regcache's target
13498 description.
13499 * i387-fp.h (num_xmm_registers): Delete.
13500 * inferiors.c (add_thread): Don't install the thread's regcache
13501 here.
13502 * proc-service.c (gregset_info): Fetch the current inferior's
13503 regs_info. Adjust to use it.
13504 * regcache.c: Include tdesc.h.
13505 (register_bytes, reg_defs, num_registers)
13506 (gdbserver_expedite_regs): Delete.
13507 (get_thread_regcache): If the thread doesn't have a regcache yet,
13508 create one, instead of aborting gdbserver.
13509 (regcache_invalidate_one): Rename to ...
13510 (regcache_invalidate_thread): ... this.
13511 (regcache_invalidate_one): New.
13512 (regcache_invalidate): Only invalidate registers of the current
13513 process.
13514 (init_register_cache): Add target_desc parameter, and use it.
13515 (new_register_cache): Ditto. Assert the target description has a
13516 non zero registers_size.
13517 (regcache_cpy): Add assertions. Adjust.
13518 (realloc_register_cache, set_register_cache): Delete.
13519 (registers_to_string, registers_from_string): Adjust.
13520 (find_register_by_name, find_regno, find_register_by_number)
13521 (register_cache_size): Add target_desc parameter, and use it.
13522 (free_register_cache_thread, free_register_cache_thread_one)
13523 (regcache_release, register_cache_size): New.
13524 (register_size): Add target_desc parameter, and use it.
13525 (register_data, supply_register, supply_register_zeroed)
13526 (supply_regblock, supply_register_by_name, collect_register)
13527 (collect_register_as_string, collect_register_by_name): Adjust.
13528 * regcache.h (struct target_desc): Forward declare.
13529 (struct regcache) <tdesc>: New field.
13530 (init_register_cache, new_register_cache): Add target_desc
13531 parameter.
13532 (regcache_invalidate_thread): Declare.
13533 (regcache_invalidate_one): Delete declaration.
13534 (regcache_release): Declare.
13535 (find_register_by_number, register_cache_size, register_size)
13536 (find_regno): Add target_desc parameter.
13537 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13538 declarations.
13539 * remote-utils.c: Include tdesc.h.
13540 (outreg, prepare_resume_reply): Adjust.
13541 * server.c: Include tdesc.h.
13542 (gdbserver_xmltarget): Delete declaration.
13543 (get_features_xml, process_serial_event): Adjust.
13544 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13545 declare.
13546 (struct process_info) <tdesc>: New field.
13547 (ipa_tdesc): Declare.
13548 * tdesc.c: New file.
13549 * tdesc.h: New file.
13550 * tracepoint.c: Include tdesc.h.
13551 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13552 (get_context_regcache): Adjust to pass ipa_tdesc down.
13553 (do_action_at_tracepoint): Adjust to get the register cache size
13554 from the context regcache's description.
13555 (traceframe_walk_blocks): Adjust to get the register cache size
13556 from the current trace frame's description.
13557 (traceframe_get_pc): Adjust to get current trace frame's
13558 description and pass it down.
13559 (gdb_collect): Adjust to get the register cache size from the
13560 IPA's description.
13561 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13562 (gdbserver_xmltarget): Delete.
13563 (initialize_low_tracepoint): Set the ipa's target description.
13564 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13565 (initialize_low_tracepoint): Set the ipa's target description.
13566 * linux-x86-low.c: Include tdesc.h.
13567 [__x86_64__] (is_64bit_tdesc): New.
13568 (ps_get_thread_area, x86_get_thread_area): Use it.
13569 (i386_cannot_store_register): Rename to ...
13570 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13571 (i386_cannot_fetch_register): Rename to ...
13572 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13573 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13574 to new interface.
13575 (target_regsets): Rename to ...
13576 (x86_regsets): ... this.
13577 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13578 interface.
13579 (x86_siginfo_fixup): Use is_64bit_tdesc.
13580 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13581 (tdesc_x32_avx_linux, tdesc_x32_linux)
13582 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13583 Declare.
13584 (x86_linux_update_xmltarget): Delete.
13585 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13586 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13587 (AMD64_LINUX_USER64_CS): New.
13588 (x86_linux_read_description): New, based on
13589 x86_linux_update_xmltarget.
13590 (same_process_callback): New.
13591 (x86_arch_setup_process_callback): New.
13592 (x86_linux_update_xmltarget): New.
13593 (x86_regsets_info): New.
13594 (amd64_linux_regs_info): New.
13595 (i386_linux_usrregs_info): New.
13596 (i386_linux_regs_info): New.
13597 (x86_linux_regs_info): New.
13598 (x86_arch_setup): Reimplement.
13599 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13600 (x86_emit_ops): Ditto.
13601 (the_low_target): Adjust. Install x86_linux_regs_info,
13602 x86_cannot_fetch_register, and x86_cannot_store_register.
13603 (initialize_low_arch): New.
13604 * linux-ia64-low.c (tdesc_ia64): Declare.
13605 (ia64_fetch_register): Adjust.
13606 (ia64_usrregs_info, regs_info): New globals.
13607 (ia64_regs_info): New function.
13608 (the_low_target): Adjust.
13609 (initialize_low_arch): New function.
13610 * linux-sparc-low.c (tdesc_sparc64): Declare.
13611 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13612 Adjust.
13613 (sparc_arch_setup): New function.
13614 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13615 (the_low_target): Adjust.
13616 (initialize_low_arch): New function.
13617 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13618 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13619 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13620 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13621 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13622 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13623 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13624 (tdesc_powerpc_isa205_vsx64l): Declare.
13625 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13626 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13627 (ppc_set_pc, ppc_get_hwcap): Adjust.
13628 (ppc_usrregs_info): Forward declare.
13629 (!__powerpc64__) ppc_regmap_adjusted: New global.
13630 (ppc_arch_setup): Adjust to the current process'es target
13631 description.
13632 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13633 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13634 (ppc_store_evrregset): Adjust.
13635 (target_regsets): Rename to ...
13636 (ppc_regsets): ... this, and make static.
13637 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13638 (ppc_regs_info): New function.
13639 (the_low_target): Adjust.
13640 (initialize_low_arch): New function.
13641 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13642 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13643 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13644 (tdesc_s390x_linux64v2): Declare.
13645 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13646 (s390_fill_gregset, s390_store_last_break): Adjust.
13647 (target_regsets): Rename to ...
13648 (s390_regsets): ... this, and make static.
13649 (s390_get_pc, s390_set_pc): Adjust.
13650 (s390_get_hwcap): New target_desc parameter, and use it.
13651 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13652 (s390_arch_setup): Adjust to set the current process'es target
13653 description. Don't adjust the regmap.
13654 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13655 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13656 (regs_info_3264): New globals.
13657 (s390_regs_info): New function.
13658 (the_low_target): Adjust.
13659 (initialize_low_arch): New function.
13660 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13661 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13662 [__mips64] (init_registers_mips_linux)
13663 (init_registers_mips_dsp_linux): Delete defines.
13664 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13665 (have_dsp): New global.
13666 (mips_read_description): New, based on mips_arch_setup.
13667 (mips_arch_setup): Reimplement.
13668 (get_usrregs_info): New function.
13669 (mips_cannot_fetch_register, mips_cannot_store_register)
13670 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13671 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13672 (target_regsets): Rename to ...
13673 (mips_regsets): ... this, and make static.
13674 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13675 (dsp_regs_info, regs_info): New globals.
13676 (mips_regs_info): New function.
13677 (the_low_target): Adjust.
13678 (initialize_low_arch): New function.
13679 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13680 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13681 Declare.
13682 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13683 (arm_read_description): New, with bits factored from
13684 arm_arch_setup.
13685 (arm_arch_setup): Reimplement.
13686 (target_regsets): Rename to ...
13687 (arm_regsets): ... this, and make static.
13688 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13689 (arm_regs_info): New function.
13690 (the_low_target): Adjust.
13691 (initialize_low_arch): New function.
13692 * linux-m68k-low.c (tdesc_m68k): Declare.
13693 (target_regsets): Rename to ...
13694 (m68k_regsets): ... this, and make static.
13695 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13696 (m68k_regs_info): New function.
13697 (m68k_arch_setup): New function.
13698 (the_low_target): Adjust.
13699 (initialize_low_arch): New function.
13700 * linux-sh-low.c (tdesc_sharch): Declare.
13701 (target_regsets): Rename to ...
13702 (sh_regsets): ... this, and make static.
13703 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13704 (sh_regs_info, sh_arch_setup): New functions.
13705 (the_low_target): Adjust.
13706 (initialize_low_arch): New function.
13707 * linux-bfin-low.c (tdesc_bfin): Declare.
13708 (bfin_arch_setup): New function.
13709 (bfin_usrregs_info, regs_info): New globals.
13710 (bfin_regs_info): New function.
13711 (the_low_target): Adjust.
13712 (initialize_low_arch): New function.
13713 * linux-cris-low.c (tdesc_cris): Declare.
13714 (cris_arch_setup): New function.
13715 (cris_usrregs_info, regs_info): New globals.
13716 (cris_regs_info): New function.
13717 (the_low_target): Adjust.
13718 (initialize_low_arch): New function.
13719 * linux-cris-low.c (tdesc_crisv32): Declare.
13720 (cris_arch_setup): New function.
13721 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
13722 (cris_regs_info): New function.
13723 (the_low_target): Adjust.
13724 (initialize_low_arch): New function.
13725 * linux-m32r-low.c (tdesc_m32r): Declare.
13726 (m32r_arch_setup): New function.
13727 (m32r_usrregs_info, regs_info): New globals.
13728 (m32r_regs_info): Adjust.
13729 (initialize_low_arch): New function.
13730 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
13731 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
13732 (tic6x_usrregs_info): Forward declare.
13733 (tic6x_read_description): New function, based on ...
13734 (tic6x_arch_setup): ... this. Reimplement.
13735 (target_regsets): Rename to ...
13736 (tic6x_regsets): ... this, and make static.
13737 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
13738 (tic6x_regs_info): New function.
13739 (the_low_target): Adjust.
13740 (initialize_low_arch): New function.
13741 * linux-xtensa-low.c (tdesc_xtensa): Declare.
13742 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
13743 (target_regsets): Rename to ...
13744 (xtensa_regsets): ... this, and make static.
13745 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
13746 globals.
13747 (xtensa_arch_setup, xtensa_regs_info): New functions.
13748 (the_low_target): Adjust.
13749 (initialize_low_arch): New function.
13750 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
13751 (nios2_arch_setup): Set the current process'es tdesc.
13752 (target_regsets): Rename to ...
13753 (nios2_regsets): ... this.
13754 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
13755 (nios2_regs_info): New function.
13756 (the_low_target): Adjust.
13757 (initialize_low_arch): New function.
a261b8f5
PA
13758 * linux-aarch64-low.c (tdesc_aarch64): Declare.
13759 (aarch64_arch_setup): Set the current process'es tdesc.
13760 (target_regsets): Rename to ...
13761 (aarch64_regsets): ... this.
13762 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
13763 (aarch64_regs_info): New function.
13764 (the_low_target): Adjust.
13765 (initialize_low_arch): New function.
3aee8918
PA
13766 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
13767 globals.
13768 (target_regsets): Rename to ...
13769 (tile_regsets): ... this.
13770 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
13771 (tile_regs_info): New function.
13772 (tile_arch_setup): Set the current process'es tdesc.
13773 (the_low_target): Adjust.
13774 (initialize_low_arch): New function.
13775 * spu-low.c (tdesc_spu): Declare.
13776 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
13777 * win32-arm-low.c (tdesc_arm): Declare.
13778 (arm_arch_setup): New function.
13779 (the_low_target): Install arm_arch_setup instead of
13780 init_registers_arm.
13781 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
13782 (init_windows_x86): Rename to ...
13783 (i386_arch_setup): ... this. Set `win32_tdesc'.
13784 (the_low_target): Adjust.
13785 * win32-low.c (win32_tdesc): New global.
13786 (child_add_thread): Don't create the thread cache here.
13787 (do_initial_child_stuff): Set the new process'es tdesc.
13788 * win32-low.h (struct target_desc): Forward declare.
13789 (win32_tdesc): Declare.
13790 * lynx-i386-low.c (tdesc_i386): Declare global.
13791 (lynx_i386_arch_setup): Set `lynx_tdesc'.
13792 * lynx-low.c (lynx_tdesc): New global.
13793 (lynx_add_process): Set the new process'es tdesc.
13794 * lynx-low.h (struct target_desc): Forward declare.
13795 (lynx_tdesc): Declare global.
13796 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
13797 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
13798 * nto-low.c (nto_tdesc): New global.
13799 (do_attach): Set the new process'es tdesc.
13800 * nto-low.h (struct target_desc): Forward declare.
13801 (nto_tdesc): Declare.
13802 * nto-x86-low.c (tdesc_i386): Declare.
13803 (nto_x86_arch_setup): Set `nto_tdesc'.
13804
b1fbec62
GB
138052013-06-04 Gary Benson <gbenson@redhat.com>
13806
13807 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
13808 to qSupported response when appropriate.
13809 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
13810 with nonzero-length annex.
13811 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
13812 arguments supplied in annex.
13813
d1ec4ce7
DE
138142013-05-31 Doug Evans <dje@google.com>
13815
ac44adcb 13816 PR server/15594
d1ec4ce7
DE
13817 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
13818 64 bits in 64-cross-32 environment.
13819
9b25f2d3
PA
138202013-05-28 Pedro Alves <palves@redhat.com>
13821
13822 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
13823 (aarch64-without-fpu.c): Delete rule.
13824 * configure.srv (aarch64*-*-linux*): Remove references to
13825 aarch64-without-fpu.o and aarch64-without-fpu.xml.
13826 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
13827 declaration.
13828
6740dc9c
PA
138292013-05-24 Pedro Alves <palves@redhat.com>
13830
13831 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
13832 instead of strchr/decode_address. Error if the range isn't split
13833 with a ','. Don't assume there's be a ':' in the action.
13834
c2d6af84
PA
138352013-05-23 Yao Qi <yao@codesourcery.com>
13836 Pedro Alves <palves@redhat.com>
13837
13838 * linux-low.c (lwp_in_step_range): New function.
13839 (linux_wait_1): If the thread was range stepping and stopped
13840 outside the stepping range, report the stop to GDB. Otherwise,
13841 continue stepping. Add range stepping debug output.
13842 (linux_set_resume_request): Copy the step range from the resume
13843 request to the lwp.
13844 (linux_supports_range_stepping): New.
13845 (linux_target_ops) <supports_range_stepping>: Set to
13846 linux_supports_range_stepping.
13847 * linux-low.h (struct linux_target_ops)
13848 <supports_range_stepping>: New field.
13849 (struct lwp_info) <step_range_start, step_range_end>: New fields.
13850 * linux-x86-low.c (x86_supports_range_stepping): New.
13851 (the_low_target) <supports_range_stepping>: Set to
13852 x86_supports_range_stepping.
13853 * server.c (handle_v_cont): Handle 'r' action.
13854 (handle_v_requests): Append ";r" if the target supports range
13855 stepping.
13856 * target.h (struct thread_resume) <step_range_start,
13857 step_range_end>: New fields.
13858 (struct target_ops) <supports_range_stepping>:
13859 New field.
13860 (target_supports_range_stepping): New macro.
13861
58794e1a
JB
138622013-05-17 Joel Brobecker <brobecker@adacore.com>
13863
13864 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
13865 confusion in comment.
13866
d631c5a7
JB
138672013-05-17 Joel Brobecker <brobecker@adacore.com>
13868
13869 * lynx-low.c (struct process_info_private): New type.
13870 (lynx_add_process): New function.
13871 (lynx_create_inferior, lynx_attach): Replace calls to
13872 add_process by calls to lynx_add_process.
13873 (lynx_resume): If PTID is null, then try using
13874 current_process()->private->last_wait_event_ptid.
13875 Add comments.
13876 (lynx_clear_inferiors): Delete. The contents of that function
13877 has been inlined in lynx_mourn;
13878 (lynx_wait_1): Save the ptid in the process's private data.
13879 (lynx_mourn): Free the process' private data. Replace call
13880 to lynx_clear_inferiors by call to clear_inferiors.
13881
96f7a20f
YQ
138822013-05-17 Yao Qi <yao@codesourcery.com>
13883
13884 * i386-low.c (i386_length_and_rw_bits): Move the comment to
13885 the right place.
13886
db0dfaa0
LM
138872013-05-16 Luis Machado <lgustavo@codesourcery.com>
13888
13889 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
13890 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
13891 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
13892 PT_TEXT_END_ADDR guards. Update comments.
13893 (linux_target_op) <read_offsets>: Conditionally define to
13894 linux_read_offsets if the target is UCLIBC and if it defines
13895 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
13896
68f5f838
SL
138972013-05-06 Sandra Loosemore <sandra@codesourcery.com>
13898 Andrew Jenner <andrew@codesourcery.com>
13899
13900 * Makefile.in (SFILES): Add linux-nios2-low.c.
13901 (clean): Add action to delete nios2-linux.c.
13902 (nios2-linux.c): New rule.
13903 * configure.srv: Add nios2*-*-linux*.
13904 * linux-nios2-low.c: New.
13905
1ebff1fd
HAQ
139062013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
13907
13908 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
13909
f6150862
HZ
139102013-04-25 Hui Zhu <hui@codesourcery.com>
13911
13912 PR gdb/15186
f6150862
HZ
13913 * ax.c (ax_printf): Add fflush.
13914
614c279d
TT
139152013-04-22 Tom Tromey <tromey@redhat.com>
13916
13917 * Makefile.in (SFILES): Add filestuff.c.
13918 (OBS): Add filestuff.o.
13919 (filestuff.o): New target.
13920 * config.in, configure: Rebuild.
13921 * configure.ac: Check for fdwalk, pipe2.
13922
7d4e5717
PA
139232013-04-17 Pedro Alves <palves@redhat.com>
13924
13925 * configure.ac (USE_THREAD_DB): Delete variable.
13926 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
13927 Don't AC_SUBST USE_THREAD_DB.
13928 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
13929 * config.in, configure: Regenerate.
13930
d5c93e41
PA
139312013-04-16 Pedro Alves <palves@redhat.com>
13932
13933 * linux-low.h (struct lwp_info) <thread_known>: Move under
13934 the USE_THREAD_DB #ifdef.
13935
04f5fe89
PA
139362013-04-16 Pedro Alves <palves@redhat.com>
13937
13938 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
13939 (linux-low.o): Delete rule.
13940 * linux-low.h: Always include "gdb_thread_db.h" instead of
13941 conditionally including thread_db.h.
13942 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
13943 HAVE_THREAD_DB_H.
13944
480b27bf
JK
139452013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13946
13947 * Makefile.in (install-only): Fix make install regression.
13948
43662968
JK
139492013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
13950
13951 Convert man pages to texinfo, new gdbinit.5 texinfo page.
13952 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
13953 installation.
13954 * gdbserver.1: Remove.
13955
3e74e146
PA
139562013-03-22 Pedro Alves <palves@redhat.com>
13957
13958 * linux-low.c (handle_extended_wait): Don't call
13959 linux_enable_event_reporting.
13960
a8347a2a
TT
139612013-03-15 Tony Theodore <tonyt@logyst.com>
13962
13963 PR build/9098:
13964 * Makefile.in (SHELL): Use @SHELL@.
13965
eeb56fa7
SDJ
139662013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
13967
13968 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
13969 compiler warning.
13970
4fa7e2ff
JB
139712013-03-13 Joel Brobecker <brobecker@adacore.com>
13972
13973 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
13974 Remove extraneous NULL element.
13975
8ddb1965
YQ
139762013-03-13 Yao Qi <yao@codesourcery.com>
13977
13978 * tracepoint.c (traceframe_read_tsv): Look for the last matched
13979 'V' block in trace frame.
13980
9accd112
MM
139812013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13982
13983 * target.h (struct target_ops): Add btrace ops.
13984 (target_supports_btrace): New macro.
13985 (target_enable_btrace): New macro.
13986 (target_disable_btrace): New macro.
13987 (target_read_btrace): New macro.
13988 * gdbthread.h (struct thread_info): Add btrace field.
13989 * server.c: Include btrace-common.h.
13990 (handle_btrace_general_set): New function.
13991 (handle_btrace_enable): New function.
13992 (handle_btrace_disable): New function.
13993 (handle_general_set): Call handle_btrace_general_set.
13994 (handle_qxfer_btrace): New function.
13995 (struct qxfer qxfer_packets[]): Add btrace entry.
13996 * inferiors.c (remove_thread): Disable btrace.
13997 * linux-low: Include linux-btrace.h.
13998 (linux_low_enable_btrace): New function.
13999 (linux_low_read_btrace): New function.
14000 (linux_target_ops): Add btrace ops.
14001 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14002 Add srv_linux_btrace=yes.
14003 (x86_64-*-linux*): Add linux-btrace.o.
14004 Add srv_linux_btrace=yes.
14005 * configure.ac: Define HAVE_LINUX_BTRACE.
14006 * config.in: Regenerated.
14007 * configure: Regenerated.
14008
5cc22e4c
MM
140092013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14010
14011 * server.c (handle_qxfer): Preserve error message if -3 is
14012 returned.
14013 (qxfer): Document the -3 return value.
14014
7c97f91e
MM
140152013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14016
14017 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14018 (linux_btrace_h): New variable.
14019 (linux-btrace.o): New rule.
14020
be9a119c 140212013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14022 Hafiz Abid Qadeer <abidh@codesourcery.com>
14023
14024 * tracepoint.c (trace_buffer_size): New global.
14025 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14026 (init_trace_buffer): Change to one-argument function. Allocate
14027 trace buffer memory.
14028 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14029 handle QTBuffer:size packet.
14030 (cmd_bigqtbuffer_size): New function.
14031 (initialize_tracepoint): Call init_trace_buffer with
14032 DEFAULT_TRACE_BUFFER_SIZE.
14033 * server.c (handle_query): Add QTBuffer:size in the
14034 supported packets.
14035
e64f7499
YQ
140362013-03-07 Yao Qi <yao@codesourcery.com>
14037
14038 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14039 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14040 of -1.
14041 (cmd_qtsp): Adjust condition. Do post increment.
14042 Set cur_action and cur_step_action back to 0.
14043
f0ae6fc3
PA
140442013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14045
14046 PR server/15236
14047 * linux-low.c (linux_write_memory): Return early success if LEN is
14048 zero.
14049
b5b0b0af
CV
140502013-03-05 Corinna Vinschen <vinschen@redhat.de>
14051
334ad4a8 14052 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14053
589bc927
TT
140542013-02-28 Tom Tromey <tromey@redhat.com>
14055
14056 * configure.ac: Invoke AC_SYS_LARGEFILE.
14057 * configure, config.in: Rebuild.
14058
dfe07582
CV
140592013-02-28 Corinna Vinschen <vinschen@redhat.com>
14060
14061 * win32-low.c: Throughout, fix format strings and casts of
14062 printf-like functions to avoid type related warnings on all
14063 platforms.
14064 (get_child_debug_event): Print dwDebugEventCode as hex since
14065 that's how it's usually documented.
14066
736cd585
YQ
140672013-02-28 Yao Qi <yao@codesourcery.com>
14068
14069 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14070 pulongest.
14071
e1f58301
JW
140722013-02-27 Jiong Wang <jiwang@tilera.com>
14073
14074 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14075 (reg-tilegx32.c): New rule.
14076 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14077 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14078 different register info initializer according to elf class.
14079 (init_registers_tilgx32): New function. The tilegx32 register info
14080 initializer.
14081 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14082 (tile_store_gregset): Likewise.
14083
d171ca78
YQ
140842013-02-27 Yao Qi <yao@codesourcery.com>
14085
14086 * server.c (process_point_options): Print debug message when
14087 debug_threads is true.
14088
282bbdf3
YQ
140892013-02-26 Yao Qi <yao@codesourcery.com>
14090
14091 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14092
aca22551
PA
140932013-02-19 Pedro Alves <palves@redhat.com>
14094 Kai Tietz <ktietz@redhat.com>
14095
14096 PR gdb/15161
14097
14098 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14099 instead of strtoul to extract address from packet.
14100 (process_serial_event) <'z'>: Likewise.
14101
4f3cee1c
YQ
141022013-02-18 Yao Qi <yao@codesourcery.com>
14103
14104 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14105
8e1d55a3
PA
141062013-02-14 Pedro Alves <palves@redhat.com>
14107
14108 Plug memory leak.
14109
14110 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14111 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14112
458820da
PA
141132013-02-14 Pedro Alves <palves@redhat.com>
14114
14115 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14116
baea0dae
PA
141172013-02-14 Pedro Alves <palves@redhat.com>
14118
14119 * tracepoint.c (save_string): Delete.
14120 (add_tracepoint_action): Use savestring instead of save_string.
14121
0b1afbb3
PA
141222013-02-12 Pedro Alves <palves@redhat.com>
14123
14124 * linux-xtensa-low.c: Ditto.
14125 * xtensa-xtregs.c: Ditto.
14126
8a4ac37e
PA
141272013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14128
14129 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14130 thread_db.
14131
148de6bb
MS
141322013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14133
14134 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14135 aarch64_num_wp_regs and aarch64_num_bp_regs to
14136 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14137
55fac6e0
MS
141382013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14139
14140 * linux-aarch64-low.c (ps_get_thread_area): Replace
14141 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14142
176eb98c
MS
141432013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14144 Marcus Shawcroft <marcus.shawcroft@arm.com>
14145 Nigel Stephens <nigel.stephens@arm.com>
14146 Yufeng Zhang <yufeng.zhang@arm.com>
14147
14148 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14149 (aarch64.c, aarch64-without-fpu.c): New targets.
14150 * configure.srv (aarch64*-*-linux*): New.
14151 * linux-aarch64-low.c: New file.
14152
56f7af9c
MS
141532013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14154
43aaf8b6 14155 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14156 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14157 (dequeue_one_deferred_signal, linux_resume_one_thread)
14158 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14159 (linux_tracefork_grandchild, linux_test_for_tracefork)
14160 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14161 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14162 where the argument is 0.
14163
60f662b0
YQ
141642013-01-25 Yao Qi <yao@codesourcery.com>
14165
14166 * event-loop.c: Include "queue.h".
14167 (gdb_event_p): New typedef.
14168 (struct gdb_event) <next_event>: Remove.
14169 (event_queue): Change to QUEUE(gdb_event_p).
14170 (async_queue_event): Remove.
14171 (gdb_event_xfree): New.
14172 (initialize_event_loop): New.
14173 (process_event): Use API from QUEUE.
14174 (wait_for_event): Likewise.
14175 * server.c (main): Call initialize_event_loop.
14176 * server.h (initialize_event_loop): Declare.
14177
5ae4861a
YQ
141782013-01-18 Yao Qi <yao@codesourcery.com>
14179
14180 * ax.h (struct eval_agent_expr_context): New.
14181 (gdb_eval_agent_expr): Update declaration.
14182 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14183 TFRAME. Add new argument CTX.
14184 * server.h (struct eval_agent_expr_context): Declare.
14185 (agent_mem_read, agent_tsv_read): Update declaration.
14186 (agent_mem_read_string): Likewise.
14187 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14188 (add_traceframe_block): Add new argument TPOINT.
14189 Increase TPOINT->traceframe_usage.
14190 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14191 eval_tracepoint_agent_expr.
14192 (condition_true_at_tracepoint): Likewise.
14193 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14194 (agent_mem_read_string, agent_tsv_read): Likewise.
14195
85e00e85
YQ
141962013-01-16 Yao Qi <yao@codesourcery.com>
14197
14198 * linux-low.c (linux_resume_one_lwp): Don't check
14199 'lwp->bp_reinsert != 0'.
14200
4039cf45
JB
142012013-01-07 Joel Brobecker <brobecker@adacore.com>
14202 Pedro Alves <palves@redhat.com>
14203
14204 * lynx-low.c (ptrace_request_to_str): Define a temporary
14205 macro and use it to simplify this function's implementation.
14206
9044dee2
JB
142072013-01-07 Joel Brobecker <brobecker@adacore.com>
14208
14209 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14210 sets errno.
14211
e6352c8f
JB
142122013-01-07 Joel Brobecker <brobecker@adacore.com>
14213
14214 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14215
50681a27
JB
142162013-01-07 Joel Brobecker <brobecker@adacore.com>
14217
14218 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14219
3f6e77ef
JB
142202013-01-07 Joel Brobecker <brobecker@adacore.com>
14221
14222 * lynx-low.c (lynx_resume): Use the resume_info parameter
14223 to determine the ptid for the lynx_ptrace call, unless
14224 it is equal to minus_one_ptid, in which case we use the
14225 ptid of the current_inferior.
14226 (lynx_wait_1): After having received a thread create/exit
14227 event, resume the inferior's execution using the signaling
14228 thread's ptid, rather than the old ptid.
14229
7fda33ae
JB
142302013-01-07 Joel Brobecker <brobecker@adacore.com>
14231
14232 * lynx-low.c (lynx_resume): Delete variable ret.
14233
b9786c74
JB
142342013-01-01 Joel Brobecker <brobecker@adacore.com>
14235
14236 * gdbreplay.c (gdbreplay_version): Update copyright year.
14237 * server.c (gdbserver_version): Likewise.
14238
8b93d60f
JB
142392012-12-17 Joel Brobecker <brobecker@adacore.com>
14240
14241 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14242 new thread.
14243
037335a7
JB
142442012-12-17 Joel Brobecker <brobecker@adacore.com>
14245
14246 * lynx-low.c (ptrace_request_to_str): Add handling for
14247 PTRACE_GETTRACESIG.
14248
52d4cbd8
JB
142492012-12-17 Joel Brobecker <brobecker@adacore.com>
14250
14251 * lynx-low.c (lynx_attach): Delete variable new_process.
14252
ab8f6ca9
JB
142532012-12-17 Joel Brobecker <brobecker@adacore.com>
14254
14255 * lynx-low.c (lynx_create_inferior): Delete variable
14256 new_process.
14257
78cbc024
JB
142582012-12-17 Joel Brobecker <brobecker@adacore.com>
14259
14260 * lynx-low.c (ptrace_request_to_str): Do not handle
14261 PTRACE_GETTHREADLIST if this macro does not exist.
14262
14a00470
YQ
142632012-12-15 Yao Qi <yao@codesourcery.com>
14264
14265 * Makefile.in (OBS): Add notif.o.
14266 * notif.c, notif.h: New.
14267 * server.c: Include "notif.h".
14268 (struct vstop_notif) <next>: Remove.
14269 <base>: New field.
14270 (queue_stop_reply): Update.
14271 (push_event, send_next_stop_reply): Remove.
14272 (discard_queued_stop_replies): Update.
14273 (notif_stop): New variable.
14274 (handle_v_stopped): Remove.
14275 (handle_v_requests): Don't call handle_v_stopped. Call
14276 handle_ack_notif instead.
14277 (queue_stop_reply_callback): Call notif_event_enque instead
14278 of queue_stop_reply.
14279 (handle_status): Don't call send_next_stop_reply, call
14280 notif_write_event instead.
14281 (kill_inferior_callback): Likewise.
14282 (detach_or_kill_inferior_callback): Likewise.
14283 (main): Call initialize_notif.
14284 (process_serial_event): Call QUEUE_is_empty.
14285 (handle_target_event): Call notif_push instead of push event.
14286 * server.h (push_event): Remove declaration.
14287
61c125b9
TT
142882012-12-10 Tom Tromey <tromey@redhat.com>
14289
14290 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14291 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14292 macros.
14293 (.c.o): Rewrite.
14294 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14295 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14296 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14297 (amd64-linux-ipa.o, ax.o): Rewrite.
14298 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14299 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14300 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14301 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14302 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14303 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14304 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14305 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14306 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14307 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14308 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14309 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14310 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14311 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14312 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14313 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14314 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14315 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14316 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14317 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14318 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14319 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14320 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14321 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14322 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14323 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14324 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14325 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14326 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14327 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14328 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14329 (reg-tilegx.o): Remove.
14330 (all_object_files): New macro.
14331 Include .deps files.
14332 * aclocal.m4, configure: Rebuild.
14333 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14334 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14335 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14336
e90e9ad9
TT
143372012-12-05 Tom Tromey <tromey@redhat.com>
14338
14339 PR gdb/14917:
14340 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14341
02d403bf 143422012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14343
14344 * configure.ac: Check for linux/perf_event.h.
14345 * config.in: Regenerated.
14346 * configure: Regenerated.
14347
0270a750
PA
143482012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14349
14350 * hostio.c (handle_readlink): Decrease buffer size
14351 parameter passed to readlink by one byte.
14352
8c29b58e
YQ
143532012-11-26 Yao Qi <yao@codesourcery.com>
14354
14355 * configure.ac (build_warnings): Append '-Wempty-body'.
14356 * configure: Regenerated.
14357 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14358 body.
14359
8bdce1ff
PM
143602012-11-15 Pierre Muller <muller@sourceware.org>
14361
14362 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14363 * config.in: Regenerate.
14364 * configure: Regenerate.
14365 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14366 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14367 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14368 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14369 header.
14370 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14371 instead of <sys/wait.h> header.
14372 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14373
02d403bf 143742012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14375
14376 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14377 (various make rules): Remove -DGDBSERVER
14378
fbd5db48
YQ
143792012-11-09 Yao Qi <yao@codesourcery.com>
14380
14381 * spu-low.c (current_ptid): Move it to ..
14382 * gdbthread.h: ... here. New.
14383 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14384 * server.c (myresume, process_serial_event): Likewise.
14385 * thread-db.c (thread_db_find_new_threads): Likewise.
14386 * tracepoint.c (run_inferior_command): Likewise.
14387
b3dc46ff
AB
143882012-10-01 Andrew Burgess <aburgess@broadcom.com>
14389
14390 * server.c (handle_search_memory_1): Include access length in
14391 warning message.
14392
07c04788
HPN
143932012-09-05 Michael Brandt <michael.brandt@axis.com>
14394
14395 * linux-crisv32-low.c: Fix compile errors.
14396
918d227b
YQ
143972012-09-04 Yao Qi <yao@codesourcery.com>
14398
14399 * tracepoint.c (cmd_qtsv): Adjust debug message.
14400 Don't check CUR_TPOINT.
14401
18c1b81a
YQ
144022012-08-28 Yao Qi <yao@codesourcery.com>
14403
14404 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14405 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14406 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14407 Remove declarations of xmalloc, xreallloc, xstrdup and
14408 freeargv.
14409 * Makefile.in (libiberty_h): New.
14410 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14411 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14412
dc82f37b
YQ
144132012-08-23 Yao Qi <yao@codesourcery.com>
14414
14415 * server.h: Remove declaration of 'xsnprintf'.
14416
406b1477
KS
144172012-08-22 Keith Seitz <keiths@redhat.com>
14418
14419 * server.h: Include build-gnulib-gbserver/config.h.
14420 * gdbreplay.c: Likewise.
14421
e6712ff1
DE
144222012-08-08 Doug Evans <dje@google.com>
14423
14424 * Makefile.in (SFILES): Add gdb_vecs.c.
14425 (OBS): Add gdb_vecs.o.
14426 (gdb_vecs_h, host_defs_h): New variables.
14427 (thread-db.o): Add $(gdb_vecs_h) dependency.
14428 (gdb_vecs.o): New rule.
14429 * thread-db.c: #include "gdb_vecs.h".
14430 (thread_db_load_search): Use a vector to iterate over path elements.
14431 Handle text appearing after "$pdir".
14432
14433 * configure.ac: Add check for strstr.
14434 * config.in: Regenerate.
14435 * configure: Regenerate.
14436
7c3270ae
UW
144372012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14438
14439 * hostio.c (handle_pread): If pread fails, fall back to attempting
14440 lseek/read.
14441 (handle_pwrite): Likewise for pwrite.
14442
b62e2b27
UW
144432012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14444
14445 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14446 between unsupported TYPE and unimplementable ADDR/LEN combination.
14447 (arm_insert_point): Act on new return value.
14448
78a99e91
PA
144492012-07-31 Pedro Alves <palves@redhat.com>
14450
14451 * server.c (process_point_options): Only skip tokens if we find
14452 one that is unrecognized. Don't treat 'X' specially while
14453 skipping unrecognized tokens.
14454
fcf303ab
UW
144552012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14456
14457 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14458 to 4-byte-align HW breakpoint addresses for Thumb.
14459
7255706c
YQ
144602012-07-27 Yao Qi <yao@codesourcery.com>
14461
14462 PR remote/14161.
14463
14464 * server.h: Declare gdb_agent_about_to_close.
14465 * target.c (kill_inferior): Include "agent.h".
14466 New. Send command 'kill'.
14467 * target.h (kill_inferior): Removed macro.
14468 * tracepoint.c (gdb_agent_about_to_close): New.
14469 (gdb_agent_helper_thread): Handle command 'close'.
14470 Wait endlessly until the inferior stops.
14471 Install gdb_agent_remove_socket to atexit hook.
14472 (agent_socket_name): New static variable.
14473 (gdb_agent_socket_init): Replace local variable 'name' with
14474 'agent_socket_name'.
14475 (gdb_agent_remove_socket): New.
14476
5a3f286f
YQ
144772012-07-27 Yao Qi <yao@codesourcery.com>
14478
14479 * server.c (process_point_options): Stop at 'X' when parsing.
14480
961bd387
ME
144812012-07-19 Michael Eager <eager@eagercon.com>
14482
a261b8f5 14483 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
14484 to hw_execute.
14485 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14486 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14487 hardware breakpoint.
14488
aa7c7447
JK
144892012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14490
14491 * gdbserver/linux-low.c (initialize_low): Call
14492 linux_ptrace_init_warnings.
14493
7f216e7c
DE
144942012-07-02 Doug Evans <dje@google.com>
14495
14496 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14497 pointer to int.
14498
d3ce09f5
SS
144992012-07-02 Stan Shebs <stan@codesourcery.com>
14500
14501 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14502 (ax.o): Add it to build rule.
14503 (ax-ipa.o): Ditto.
14504 (OBS): Add format.o.
14505 (IPA_OBS): Add format.o.
14506 * server.c (handle_query): Claim support for breakpoint commands.
14507 (process_point_options): Add command case.
14508 (process_serial_event): Leave running if there are printfs in
14509 effect.
14510 * mem-break.h (any_persistent_commands): Declare.
14511 (add_breakpoint_commands): Declare.
14512 (gdb_no_commands_at_breakpoint): Declare.
14513 (run_breakpoint_commands): Declare.
14514 * mem-break.c (struct point_command_list): New struct.
14515 (struct breakpoint): New field command_list.
14516 (any_persistent_commands): New function.
14517 (add_commands_to_breakpoint): New function.
14518 (add_breakpoint_commands): New function.
14519 (gdb_no_commands_at_breakpoint): New function.
14520 (run_breakpoint_commands): New function.
14521 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14522 locally.
14523 * ax.c: Include format.h.
14524 (ax_printf): New function.
14525 (gdb_eval_agent_expr): Add printf opcode.
14526
2f8f6aed
YQ
145272012-06-13 Yao Qi <yao@codesourcery.com>
14528
14529 * server.c (start_inferior): Remove duplicated writes to fields
14530 'last_resume_kind' and 'last_status' of 'current_inferior'.
14531
0c9070b3
YQ
145322012-06-12 Yao Qi <yao@codesourcery.com>
14533 Pedro Alves <palves@redhat.com>
14534
14535 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14536 comment.
14537 * server.c (handle_v_cont): Extend comment.
14538
c52daf70
YQ
145392012-06-11 Yao Qi <yao@codesourcery.com>
14540
14541 * linux-low.c (linux_attach): Add 'static'.
14542
d38bbb0a
YQ
145432012-06-06 Yao Qi <yao@codesourcery.com>
14544
14545 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14546
89dc0afd
JK
145472012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14548
14549 Fix gcc -flto compilation warning.
14550 * server.c (main): Make variable multi_mode and attach volatile.
14551
75f62ce7
TJB
145522012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14553
14554 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14555 if the platform doesn't know about it.
14556
65f479b6
PA
145572012-05-30 Jeff Kenton <jkenton@tilera.com>
14558
14559 * Makefile.in (SFILES): Add linux-tile-low.c.
14560 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14561 * configure.srv: Handle tilegx-*-linux*.
14562 * linux-tile-low.c: New file.
14563
0c5bf5a9
JK
145642012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14565
14566 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14567
a493e3e2
PA
145682012-05-24 Pedro Alves <palves@redhat.com>
14569
14570 PR gdb/7205
14571
43aaf8b6 14572 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 14573
2ea28649
PA
145742012-05-24 Pedro Alves <palves@redhat.com>
14575
14576 PR gdb/7205
14577
14578 Replace target_signal with gdb_signal throughout.
14579
8d409d16
MR
145802012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14581
14582 * linux-low.c (linux_store_registers): Avoid the copying sequence
14583 when no data has been retrieved by ptrace.
14584
23512c01
MGD
145852012-05-22 Will Deacon <will.deacon@arm.com>
14586
14587 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14588 Include asm/ptrace.h.
14589 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14590 already defined.
14591
4934b29e
MR
145922012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14593
14594 * linux-low.c (linux_store_registers): Don't re-retrieve data
14595 with ptrace that has already been obtained from /proc. Always
14596 copy any data retrieved with ptrace to the buffer supplied.
14597
bde24c0a
PA
145982012-05-11 Yao Qi <yao@codesourcery.com>
14599 Pedro Alves <palves@redhat.com>
14600
14601 * linux-low.c (enum stopping_threads_kind): New.
14602 (stopping_threads): Change type to `enum stopping_threads_kind'.
14603 (handle_extended_wait): If stopping and suspending threads, leave
14604 the new_lwp suspended too.
14605 (linux_wait_for_event): Adjust.
14606 (stop_all_lwps): Set `stopping_threads' to
14607 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14608 whether we're suspending threads or just stopping them. Assert no
14609 recursion happens.
14610
623b6bdf
YQ
146112012-04-29 Yao Qi <yao@codesourcery.com>
14612
14613 * server.h: Move some code to ...
14614 * gdbthread.h: ... here. New.
14615 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14616 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14617 (nto-low.o, win32-low.o): Likewise.
14618 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14619 * regcache.c, remote-utils.c, server.c: Likewise.
14620 * target.c, tracepoint.c, win32-low.c: Likewise.
14621
f15f9948
TJB
146222012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14623
14624 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14625 (PTRACE_ARG4_TYPE): Likewise.
14626 (PTRACE_XFER_TYPE): Likewise.
14627 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14628 ptrace to PTRACE_ARG3_TYPE.
14629 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14630 (PTRACE_ARG4_TYPE): Likewise.
14631 (PTRACE_XFER_TYPE): Likewise.
14632 (linux_detach_one_lwp): Cast fourth argument of
14633 ptrace to long then PTRACE_ARG4_TYPE.
14634 (regsets_fetch_inferior_registers): Cast third argument of
14635 ptrace to long then PTRACE_ARG3_TYPE.
14636 (regsets_store_inferior_registers): Likewise.
14637
38ea300a
PA
146382012-04-20 Pedro Alves <palves@redhat.com>
14639
14640 * configure: Regenerate.
14641
c971b7fa
PA
146422012-04-19 Pedro Alves <palves@redhat.com>
14643
43aaf8b6 14644 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 14645 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
14646 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14647 (all, install-only, uninstall, clean-info, all-lib, clean): No
14648 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14649 (maintainer-clean realclean distclean): Use subdir_do.
14650 (subdir_do): New.
14651 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 14652 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
14653 * acinclude.m4: Include acx_configure_dir.m4.
14654 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14655 calls. Call AC_PROG_RANLIB. Configure gnulib using
14656 ACX_CONFIGURE_DIR.
14657 (GNULIB): New.
14658 (GNULIB_STDINT_H): Adjust.
14659 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14660 * gdbreplay.c: Include build-gnulib/config.h.
14661 * server.h: Likewise.
14662 * aclocal.m4: Regenerate.
14663 * config.in: Regenerate.
14664 * configure: Regenerate.
c971b7fa 14665
809277f8
PA
146662012-04-19 Pedro Alves <palves@redhat.com>
14667
14668 * Makefile.in (LIBGNU, INCGNU): Adjust.
14669 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14670 (all, install-only, uninstall, clean-info, all-lib, clean)
14671 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14672 * configure.ac: Adjust AC_OUTPUT output.
14673 * aclocal.m4: Regenerate.
14674 * configure: Regenerate.
14675
fd9bb8b8
PA
146762012-04-19 Pedro Alves <palves@redhat.com>
14677
14678 * Makefile.in (generated_files): New.
14679 (server_h): Remove the explicit dependency on config.h, and depend
14680 on $generated_files.
14681
1c298c66
PA
146822012-04-19 Pedro Alves <palves@redhat.com>
14683
14684 * Makefile.in (INCGNU): Add -Ignulib.
14685
57c4b50b
PA
146862012-04-19 Pedro Alves <palves@redhat.com>
14687
14688 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14689 (INCGNU): ... this, and spell out -I here.
14690 (GNULIB_LIB): Rename to ...
14691 (LIBGNU): ... this.
14692 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14693
1030e047
PA
146942012-04-19 Pedro Alves <palves@redhat.com>
14695
14696 * config.in: Regenerate.
14697
447d4319
PA
146982012-04-19 Pedro Alves <palves@redhat.com>
14699
14700 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14701 * server.h (memmem): Remove declaration.
14702 * config.in: Regenerate.
14703 * configure: Regenerate.
14704
aad9eab9
YQ
147052012-04-19 Yao Qi <yao@codesourcery.com>
14706
14707 * Makefile.in (SFILES): Add common/vec.c.
14708 (OBS): Add vec.o.
14709 (vec.o): New rule.
14710
3e10640f
YQ
147112012-04-19 Yao Qi <yao@codesourcery.com>
14712
14713 * remote-utils.c (prepare_resume_reply): Replace with macro
14714 target_core_of_thread.
14715 * server.c (handle_qxfer_threads_proper): Likewise.
14716 * target.h (traget_core_of_thread): New macro.
14717
71622373
PA
147182012-04-18 Pedro Alves <palves@redhat.com>
14719
14720 * aclocal.m4: Regenerate.
14721 * configure: Regenerate.
14722
80d26939
YQ
147232012-04-16 Yao Qi <yao@codesourcery.com>
14724
14725 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
14726 duplicated on address.
14727
42476b70
YQ
147282012-04-16 Yao Qi <yao@codesourcery.com>
14729
14730 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
14731 (struct tracepoint_action_ops) <send>: New field.
14732 (m_tracepoint_action_send, r_tracepoint_action_send): New.
14733 (agent_expr_send, x_tracepoint_action_send): New.
14734 (l_tracepoint_action_send): New.
14735 (cmd_qtdp): Download and install tracepoint
14736 according to `use_agent'.
14737 (run_inferior_command): Add one more parameter `len'.
14738 Update callers.
14739 (tracepoint_send_agent): New.
14740 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
14741
7bc83639
YQ
147422012-04-16 Yao Qi <yao@codesourcery.com>
14743
14744 * tracepoint.c (download_tracepoints): Moved to ...
14745 (cmd_qtstart): ... here.
14746
5f18041e
YQ
147472012-04-14 Yao Qi <yao@codesourcery.com>
14748
14749 * tracepoint.c: Include inttypes.h.
14750 (struct collect_memory_action): Use sized types.
14751 (struct tracepoint): Likewise.
14752 (cmd_qtdp, stop_tracing): Update print specifiers.
14753 (cmd_qtp, response_tracepoint): Likewise.
14754 (collect_data_at_tracepoint): Likewise.
14755 (collect_data_at_step): Likewise.
14756
55a8c076
YQ
147572012-04-14 Yao Qi <yao@codesourcery.com>
14758
14759 Import gnulib module inttypes.
14760 * aclocal.m4, config.in, configure: Regenerated.
14761
dc750257
YQ
147622012-04-14 Yao Qi <yao@codesourcery.com>
14763
14764 * Makefile.in (maintainer-clean, realclean, distclean): Remove
14765 Makefile and config.status at last.
14766
0ab5faf9
YQ
147672012-04-13 Yao Qi <yao@codesourcery.com>
14768
14769 * tracepoint.c: Include stdint.h unconditionally.
14770
18f5fd81
TJB
147712012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14772
14773 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
14774 on BFD_HAVE_SYS_PROCFS_TYPE.
14775 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
14776 * configure: Regenerate.
14777 * config.in: Likewise.
14778
4d47af5c
L
147792012-04-13 H.J. Lu <hongjiu.lu@intel.com>
14780
14781 * Makefile.in (clean): Also remove x32.c x32-linux.c
14782 x32-avx.c x32-avx-linux.c.
14783 (x32.o): New target.
14784 (x32.c): Likewise.
14785 (x32-linux.o): Likewise.
14786 (x32-linux.c): Likewise.
14787 (x32-avx.o): Likewise.
14788 (x32-avx.c): Likewise.
14789 (x32-avx-linux.o): Likewise.
14790 (x32-avx-linux.c): Likewise.
14791
14792 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
14793 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
14794 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
14795 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
14796 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
14797 i386/x32-avx-linux.xml.
14798
14799 * linux-x86-low.c (init_registers_x32_linux): New prototype.
14800 (init_registers_x32_avx_linux): Likwise.
14801 (x86_linux_update_xmltarget): Call init_registers_x32_linux
14802 or init_registers_x32_avx_linux if linux_is_elf64 is false.
14803
ecedbe58
PA
148042012-04-13 Pedro Alves <palves@redhat.com>
14805
14806 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
14807 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
14808 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
14809 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
14810 the sub-make.
14811
c92b5177
L
148122012-04-12 H.J. Lu <hongjiu.lu@intel.com>
14813
14814 * linux-x86-low.c (compat_x32_clock_t): New.
14815 (compat_x32_siginfo_t): Likewise.
14816 (compat_x32_siginfo_from_siginfo): Likewise.
14817 (siginfo_from_compat_x32_siginfo): Likewise.
14818 (linux_is_elf64): Likewise.
14819 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
14820 and siginfo_from_compat_x32_siginfo for x32.
14821 (x86_arch_setup): Set linux_is_elf64.
14822
214d508e
L
148232012-04-12 H.J. Lu <hongjiu.lu@intel.com>
14824
14825 PR gdb/13969
14826 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
14827 e_machine field.
14828 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
14829 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
14830 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
14831 compatible with process.
14832
c9a1864a
YQ
148332012-04-12 Yao Qi <yao@codesourcery.com>
14834
14835 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
14836 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
14837 (install-only, install-info, clean): Handle sub dir gnulib.
14838 (all-lib, am--refresh): New targets.
14839 (memmem.o): Remove target.
14840 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
14841 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
14842 (AC_REPLACE_FUNCS): Remove memmem.
14843 Invoke gl_INIT and AM_INIT_AUTOMAKE.
14844 (AC_OUTPUT): Generate Makefile in gnulib/.
14845 * aclocal.m4, config.in, configure: Regenerated.
14846
367ba2c2
MR
148472012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
14848
14849 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
14850
9d236627
PA
148512012-04-05 Pedro Alves <palves@redhat.com>
14852
14853 -Werror=strict-aliasing
14854
14855 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
14856 pointer.
14857
111217b3
PA
148582012-04-04 Pedro Alves <palves@redhat.com>
14859
14860 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
14861 (sparc_store_gregset_from_stack, sparc_store_gregset)
14862 (sparc_breakpoint_at): Fix formatting.
14863
8365dcf5
TJB
148642012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14865
14866 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
14867 are available.
14868 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
14869 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
14870 * config.in: Regenerate.
14871 * configure: Likewise.
14872
689cc2ae
PA
148732012-03-29 Pedro Alves <palves@redhat.com>
14874
14875 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
14876 Correct ptrace arguments.
14877
c14dfd32
PA
148782012-03-28 Pedro Alves <palves@redhat.com>
14879
14880 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
14881 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
14882 (IA64_FR1_REGNUM): New defines.
14883 (ia64_fetch_register): New.
14884 (the_low_target): Install it.
14885 * linux-low.h (struct linux_target_ops) <fetch_register>: New
14886 field.
14887 * linux-low.c (linux_fetch_registers): Try the
14888 the_low_target.fetch_register hook first.
14889
14890 * linux-arm-low.c (the_low_target): Adjust.
14891 * linux-bfin-low.c (the_low_target): Adjust.
14892 * linux-cris-low.c (the_low_target): Adjust.
14893 * linux-crisv32-low.c (the_low_target): Adjust.
14894 * linux-m32r-low.c (the_low_target): Adjust.
14895 * linux-m68k-low.c (the_low_target): Adjust.
14896 * linux-mips-low.c (the_low_target): Adjust.
14897 * linux-ppc-low.c (the_low_target): Adjust.
14898 * linux-s390-low.c (the_low_target): Adjust.
14899 * linux-sh-low.c (the_low_target): Adjust.
14900 * linux-sparc-low.c (the_low_target): Adjust.
14901 * linux-tic6x-low.c (the_low_target): Adjust.
14902 * linux-x86-low.c (the_low_target): Adjust.
14903 * linux-xtensa-low.c (the_low_target): Adjust.
14904
63c88e13
PA
149052012-03-26 Pedro Alves <palves@redhat.com>
14906
14907 * server.c (handle_qxfer_libraries): Don't bail early if
14908 the_target->qxfer_libraries_svr4 is not NULL.
14909
fb723180
PA
149102012-03-26 Pedro Alves <palves@redhat.com>
14911
14912 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
14913
0afae3cf
PA
149142012-03-23 Pedro Alves <palves@redhat.com>
14915
14916 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
14917 "library-list-svr4" element's start tag when the the DSO list is
14918 empty.
14919
485f1ee4
PA
149202012-03-23 Pedro Alves <palves@redhat.com>
14921
14922 * linux-low.c (read_one_ptr): Read the inferior's pointer through
14923 a variable whose type size is the same as the inferior's pointer
14924 size.
14925
a5362b9a
TS
149262012-03-21 Thomas Schwinge <thomas@codesourcery.com>
14927
14928 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
14929 struct siginfo.
14930 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
14931 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
14932 * linux-low.h: Include <signal.h>.
14933 (struct siginfo): Remove forward declaration.
14934 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
14935 struct siginfo.
14936
d226c142
MF
149372012-03-21 Mike Frysinger <vapier@gentoo.org>
14938
14939 * .gitignore: Ignore more files.
14940
122f36ef
PA
149412012-03-19 Pedro Alves <palves@redhat.com>
14942 Jan Kratochvil <jan.kratochvil@redhat.com>
14943
14944 * server.c (cont_thread, general_thread): Add describing comments.
14945 (start_inferior): Clear `cont_thread'.
14946 (handle_v_cont): Don't set `cont_thread' if resuming all threads
14947 of a process.
14948
fc3e5175
YQ
149492012-03-15 Yao Qi <yao@codesourcery.com>
14950
14951 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
14952 handling to ...
14953 (cmd_qtdp): ... here.
14954
8d0d92cd
YQ
149552012-03-15 Yao Qi <yao@codesourcery.com>
14956
14957 * tracepoint.c (struct tracepoint_action_ops): New.
14958 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
14959 (m_tracepoint_action_download): New.
14960 (r_tracepoint_action_download): New.
14961 (x_tracepoint_action_download): New.
14962 (l_tracepoint_action_download): New.
14963 (add_tracepoint_action): Install `action->ops' according type.
14964 (download_tracepoint_1): Move code `download' function pointer
14965 of various tracepoint_action_ops.
14966
87b0bb13
JK
149672012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14968
14969 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
14970 linux_ptrace_attach_warnings.
14971
5f572dec
JK
149722012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14973
14974 * Makefile.in (linux-ptrace.o): New.
14975 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
14976 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
14977 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
14978 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
14979 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
14980 of these targets.
14981 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
14982
f4647387
YQ
149832012-03-08 Yao Qi <yao@codesourcery.com>
14984 Pedro Alves <palves@redhat.com>
14985
14986 Fix PR server/13392.
14987 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
14988 offset of JMP insn.
14989 * tracepoint.c (remove_tracepoint): New.
14990 (cmd_qtdp): Call remove_tracepoint when failed to install.
14991
9b224c5e
PA
149922012-03-07 Pedro Alves <palves@redhat.com>
14993
14994 * linux-low.c (get_detach_signal): New.
14995 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
14996 Pass on pending signals to PTRACE_DETACH. Check the result of the
14997 ptrace call.
14998 * server.c (program_signals, program_signals_p): New.
14999 (handle_general_set): Handle QProgramSignals.
15000 * server.h (program_signals, program_signals_p): Declare.
15001
e237a7e2
JK
150022012-03-05 Pedro Alves <palves@redhat.com>
15003 Jan Kratochvil <jan.kratochvil@redhat.com>
15004
15005 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15006 New comment why.
15007
5808517f
YQ
150082012-03-03 Yao Qi <yao@codesourcery.com>
15009
15010 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15011 agent_look_up_symbols.
15012
58b4daa5
YQ
150132012-03-03 Yao Qi <yao@codesourcery.com>
15014
15015 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15016 (linux-x86-low.o): Likewise.
15017 * server.h: Remove in_process_agent_loaded.
15018 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15019 common/agent.c.
15020 Update callers.
15021
8ffcbaaf
YQ
150222012-03-03 Yao Qi <yao@codesourcery.com>
15023
15024 * tracepoint.c (gdb_agent_capability): New global.
15025 (in_process_agent_loaded_ust): Renamed to
15026 `in_process_agent_supports_ust'.
15027 Update callers.
15028 (in_process_agent_supports_ust): Call agent_capability_check.
15029 (clear_installed_tracepoints): Assert that agent supports
15030 agent.
15031
d1feda86
YQ
150322012-03-03 Yao Qi <yao@codesourcery.com>
15033
15034 * linux-low.c (linux_supports_agent): New.
15035 (linux_target_ops): Initialize field `supports_agent' with
15036 linux_supports_agent.
15037 * target.h (struct target_ops) <supports_agent>: New.
15038 (target_supports_agent): New macro.
15039 * server.c (handle_general_set): Handle packet 'QAgent'.
15040 (handle_query): Send `QAgent+'.
15041 * Makefile.in (server.o): Depends on agent.h.
15042
2fa291ac
YQ
150432012-03-03 Yao Qi <yao@codesourcery.com>
15044
15045 * Makefile.in (OBS): Add agent.o.
15046 Add new rule for agent.o.
15047 Track dependence of tracepoint.c on agent.h.
15048 * tracepoint.c (run_inferior_command_1):
15049 (run_inferior_command): Call agent_run_command.
15050 (gdb_ust_connect_sync_socket): Deleted. Move it to
15051 common/agent.c.
15052 (resume_thread, stop_thread): Likewise.
15053 (gdb_ust_socket_init): Renamed to ...
15054 (gdb_agent_socket_init): ... New.
15055 (gdb_ust_thread): Renamed to ...
15056 (gdb_agent_helper_thread): ... New.
15057 (gdb_ust_init): Move some code to ...
15058 (gdb_agent_init): ... here. New.
15059 [HAVE_UST]: Call gdb_ust_init.
15060 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15061 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15062 * config.in, configure: Regenerated.
15063
05044653
PA
150642012-03-02 Pedro Alves <palves@redhat.com>
15065
15066 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15067 * linux-low.c (struct simple_pid_list): New.
15068 (stopped_pids): New a struct simple_pid_list pointer.
15069 (add_to_pid_list, pull_pid_from_list): New.
15070 (handle_extended_wait): Don't assume the first signal new children
15071 report is SIGSTOP. Adjust call to pull_pid_from_list.
15072 (linux_wait_for_lwp): Adjust.
15073
8d00225b
YQ
150742012-03-02 Yao Qi <yao@codesourcery.com>
15075
15076 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15077 debug log.
15078
19560ba5
YQ
150792012-03-02 Yao Qi <yao@codesourcery.com>
15080
15081 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15082 `stop_pc' and `tpoint'. Update caller.
15083
1faeff08
MR
150842012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15085
15086 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15087 * linux-low.c (use_linux_regsets): New macro.
15088 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15089 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15090 (linux_register_in_regsets): New function.
15091 (usr_fetch_inferior_registers): Skip registers covered by
15092 regsets.
15093 (usr_store_inferior_registers): Likewise.
15094 (usr_fetch_inferior_registers): New macro.
15095 (usr_store_inferior_registers): Likewise.
15096 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15097 (linux_store_registers): Likewise.
15098 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15099 prototype.
15100 (init_registers_mips64_dsp_linux): Likewise.
15101 (init_registers_mips_linux): New macro.
15102 (init_registers_mips_dsp_linux): Likewise.
15103 (mips_dsp_num_regs): Likewise.
15104 (DSP_BASE, DSP_CONTROL): New fallback macros.
15105 (mips_base_regs): New macro.
15106 (mips_regmap): Use it. Fix the size.
15107 (mips_dsp_regmap): New variable.
15108 (mips_dsp_regset_bitmap): Likewise.
15109 (mips_arch_setup): New function.
15110 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15111 than mips_regmap.
15112 (mips_cannot_store_register): Likewise.
15113 (the_low_target): Update .arch_setup, .num_regs and .regmap
15114 initializers. Add .regset_bitmap initializer.
15115 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15116 initializer.
15117 * linux-bfin-low.c (the_low_target): Likewise.
15118 * linux-cris-low.c (the_low_target): Likewise.
15119 * linux-crisv32-low.c (the_low_target): Likewise.
15120 * linux-ia64-low.c (the_low_target): Likewise.
15121 * linux-m32r-low.c (the_low_target): Likewise.
15122 * linux-m68k-low.c (the_low_target): Likewise.
15123 * linux-ppc-low.c (the_low_target): Likewise.
15124 * linux-s390-low.c (the_low_target): Likewise.
15125 * linux-sh-low.c (the_low_target): Likewise.
15126 * linux-sparc-low.c (the_low_target): Likewise.
15127 * linux-tic6x-low.c (the_low_target): Likewise.
15128 * linux-x86-low.c (the_low_target): Likewise.
15129 * linux-xtensa-low.c (the_low_target): Likewise.
15130 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15131 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15132 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15133 srv_xmlfiles.
15134 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15135 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15136
c03e6ccc
YQ
151372012-02-29 Yao Qi <yao@codesourcery.com>
15138 Pedro Alves <palves@redhat.com>
15139
15140 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15141 `step_over_finished' is true.
15142
644cebc9
PA
151432012-02-27 Pedro Alves <palves@redhat.com>
15144
15145 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15146 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15147
c14d7ab2
PA
151482012-02-27 Pedro Alves <palves@redhat.com>
15149
15150 PR server/9684
15151 * linux-low.c (pid_is_stopped): New.
15152 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15153
412c89dd
LM
151542012-02-25 Luis Machado <lgustavo@codesourcery.com>
15155
15156 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15157 of conditions.
15158
b745defe
MR
151592012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15160
15161 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15162
9f3a5c85
LM
151632012-02-24 Luis Machado <lgustavo@codesourcery>
15164
15165 * server.c (handle_query): Advertise support for target-side
15166 breakpoint condition evaluation.
15167 (process_point_options): New function.
15168 (process_serial_event): When inserting a breakpoint, check for
15169 a target-side condition that should be evaluated.
15170
15171 * mem-break.c: Include regcache.h and ax.h.
15172 (point_cond_list_t): New data structure.
15173 (breakpoint) <cond_list>: New field.
15174 (find_gdb_breakpoint_at): Make non-static.
15175 (delete_gdb_breakpoint_at): Clear any target-side
15176 conditions.
15177 (clear_gdb_breakpoint_conditions): New function.
15178 (add_condition_to_breakpoint): Likewise.
15179 (add_breakpoint_condition): Likewise.
15180 (gdb_condition_true_at_breakpoint): Likewise.
15181 (gdb_breakpoint_here): Return result directly instead
15182 of going through a local variable.
15183
15184 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15185 (clear_gdb_breakpoint_conditions): Likewise.
15186 (add_breakpoint_condition): Likewise.
15187 (gdb_condition_true_at_breakpoint): Likewise.
15188
15189 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15190 (need_step_over_p): Take target-side breakpoint condition into
15191 consideration.
15192
5e1dc496
LM
151932012-02-24 Luis Machado <lgustavo@codesourcery>
15194
15195 * server.h: Include tracepoint.h.
15196 (agent_mem_read, agent_get_trace_state_variable_value,
15197 agent_set_trace_state_variable_value,
15198 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15199 get_set_tsv_func_addr): New prototypes.
15200
15201 * ax.h: New include file.
15202 * ax.c: New source file.
15203
15204 * tracepoint.c: Include ax.h.
15205 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15206 agent_expr, eval_result_type): Move to ax.h.
15207 (parse_agent_expr): Rename to ...
15208 (gdb_parse_agent_expr): ... this, make it non-static and move
15209 to ax.h.
15210 (unparse_agent_expr) Rename to ...
15211 (gdb_unparse_agent_expr): ... this, make it non-static and move
15212 to ax.h.
15213 (eval_agent_expr): Rename to ...
15214 (eval_tracepoint_agent_expr): ... this.
15215 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15216 forward declarations.
15217 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15218 (agent_get_trace_state_variable_value): New function.
15219 (agent_set_trace_state_variable_value): New function.
15220 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15221 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15222 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15223 (condition_true_at_tracepoint): Likewise.
15224 (parse_agent_expr): Rename to ...
15225 (gdb_parse_agent_expr): ... this and move to ax.c.
15226 (unparse_agent_expr): Rename to ...
15227 (gdb_unparse_agent_expr): ... this and move to ax.c.
15228 (gdb_agent_op_name): Move to ax.c.
15229 (eval_agent_expr): Rename to ...
15230 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15231 and move to ax.c.
15232 (eval_tracepoint_agent_expr): New function.
15233 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15234 non-static.
5e1dc496
LM
15235 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15236 ax.c.
15237 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15238 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15239 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15240 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15241 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15242 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15243 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15244 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15245 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15246 (compile_bytecodes): Remove forward declaration.
15247 (is_goto_target): Move to ax.c.
15248 (compile_bytecodes): Move to ax.c and call
15249 agent_get_trace_state_variable_value (...) and
15250 agent_set_trace_state_variable_value (...).
15251
15252 * Makefile.in: Update ax.c and IPA dependencies.
15253
277e4e52
PA
152542012-02-24 Pedro Alves <palves@redhat.com>
15255
15256 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15257 (cmd_bigqtbuffer_circular): ... this. Only handle
15258 'QTBuffer:circular:'.
15259 (handle_tracepoint_general_set): Adjust.
15260
bf4c19f7
YQ
152612012-02-16 Yao Qi <yao@codesourcery.com>
15262
15263 * inferiors.c: Move code to ...
15264 * dll.c: .... here. New.
15265 * server.h: Declare clear_dlls.
15266 * Makefile.in (SFILES): Add dll.c.
15267 (OBS): Add dll.o
15268 (dll.o): New rule.
15269
d73f2619
YQ
152702012-02-11 Yao Qi <yao@codesourcery.com>
15271
15272 * server.c: (handle_monitor_command): Add a new parameter
15273 `own_buf'.
15274 (handle_query): Update caller.
15275
f8255c2a
JB
152762012-02-09 Joel Brobecker <brobecker@adacore.com>
15277
15278 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15279 * configure, config.in: Regenerate.
15280 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15281 is not defined.
15282
da84f473
PA
152832012-02-02 Pedro Alves <palves@redhat.com>
15284
15285 Try SIGKILL first, then PTRACE_KILL.
15286 * linux-low.c (linux_kill_one_lwp): New.
15287 (linux_kill_one_lwp): Rename to ...
15288 (kill_one_lwp_callback): ... this. Use the new
15289 linux_kill_one_lwp.
15290
e886a173
PA
152912012-02-02 Pedro Alves <palves@redhat.com>
15292
15293 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15294 inferior.
15295
be07f1a2
PA
152962012-01-27 Pedro Alves <palves@redhat.com>
15297
15298 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15299 (elf_64_file_p): Make static.
15300 (linux_pid_exe_is_elf_64_file): New.
15301 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15302 Delete declarations.
15303 (linux_pid_exe_is_elf_64_file): Declare.
15304 * linux-x86-low.c (x86_arch_setup): Use
15305 linux_pid_exe_is_elf_64_file.
15306
d8301ad1
JK
153072012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15308
15309 * linux-low.c (linux_wait_for_event_1): Rename to ...
15310 (linux_wait_for_event): ... here and merge it with former
15311 linux_wait_for_event - new variable wait_ptid, use it.
15312 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15313
01b17894
PA
153142012-01-23 Pedro Alves <palves@redhat.com>
15315
15316 * server.c (main): Avoid yet another case of infinite loop while
15317 detaching/killing after a longjmp.
15318
e825046f
JK
153192012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15320
15321 Code cleanup.
15322 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15323
b9e7b9c3
UW
153242012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15325
15326 * hostio.c (handle_readlink): New function.
15327 (handle_vFile): Call it to handle "vFile:readlink" packets.
15328
901f9912
UW
153292012-01-20 Pedro Alves <palves@redhat.com>
15330 Ulrich Weigand <ulrich.weigand@linaro.org>
15331
15332 * server.c (handle_v_requests): Only support vAttach and vRun to
15333 start multiple processes when in extended protocol mode.
15334
fc1ab1a0
PA
153352012-01-17 Pedro Alves <palves@redhat.com>
15336
15337 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15338 memalign plus mprotect to allocate the scratch buffer.
15339
7d5d4e98
PA
153402012-01-13 Pedro Alves <palves@redhat.com>
15341
15342 * server.c (attach_inferior): Clear `cont_thread'.
15343
f128d5e9
PA
153442012-01-13 Pedro Alves <palves@redhat.com>
15345
15346 * server.c (main): Avoid infinite loop while detaching/killing
15347 after a longjmp.
15348
06db92f0
DE
153492012-01-09 Doug Evans <dje@google.com>
15350
15351 * server.c (start_inferior): Set last_ptid in --wrapper case.
15352
32d92999
YQ
153532012-01-06 Yao Qi <yao@codesourcery.com>
15354
15355 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15356 defined.
15357 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15358
5e0a92a9
YQ
153592012-01-04 Yao Qi <yao@codesourcery.com>
15360
15361 * tracepoint.c (cmd_qtdp): Print debug message
15362 for static tracepoint.
15363
ae639e8c
YQ
153642012-01-04 Yao Qi <yao@codesourcery.com>
15365
15366 * tracepoint.c (trace_vdebug): Differentiate debug message
15367 between gdbserver and IPA.
15368
f72429c5
YQ
153692012-01-03 Yao Qi <yao@codesourcery.com>
15370
15371 * tracepoint.c (tracepoint_was_hit): Don't collect for
15372 static tracepoint.
15373
12c3e59c
JB
153742012-01-02 Joel Brobecker <brobecker@adacore.com>
15375
15376 * terminal.h: Reformat copyright header.
15377
67827812
JB
153782012-01-02 Joel Brobecker <brobecker@adacore.com>
15379
15380 * server.c (gdbserver_version): Update copyright year.
15381 * gdbreplay.c (gdbreplay_version): Likewise.
15382
3e52c33d
JK
153832011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15384
15385 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15386
15387 Revert:
15388 2011-12-18 Hui Zhu <teawater@gmail.com>
15389 * linux-low.c (linux_create_inferior): Save return value to ret.
15390
66f1260e
HZ
153912011-12-18 Hui Zhu <teawater@gmail.com>
15392
15393 * linux-low.c (linux_create_inferior): Save return value to ret.
15394
e77616d7
DE
153952011-12-16 Doug Evans <dje@google.com>
15396
e7b06c57
DE
15397 * linux-low.c (linux_create_inferior): If stdio connection,
15398 redirect stdin from /dev/null, stdout to stderr.
15399 * remote-utils.c (remote_is_stdio): New static global.
15400 (remote_connection_is_stdio): New function.
15401 (remote_prepare): Handle stdio connection.
15402 (remote_open): Ditto.
15403 (remote_close): Don't close stdin for stdio connections.
15404 (read_prim,write_prim): New functions. Replace all calls to
15405 read/write to these.
15406 * server.c (main): Watch for "-" argument. Move call to
15407 remote_prepare before start_inferior.
15408 * server.h (STDIO_CONNECTION_NAME): New macro.
15409 (remote_connection_is_stdio): Declare.
15410
e77616d7
DE
15411 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15412 in debugging output.
15413
82067193
YQ
154142011-12-15 Yao Qi <yao@codesourcery.com>
15415
15416 * tracepoint.c: Include sys/syscall.h.
15417 (gdb_ust_thread): Remove preprocessor conditional.
15418
82bfbe7e
PA
154192011-12-14 Pedro Alves <pedro@codesourcery.com>
15420
15421 * linux-low.c (linux_detach_one_lwp): Call
15422 the_low_target.prepare_to_resume before detaching.
15423
712c6575
YQ
154242011-12-14 Yao Qi <yao@codesourcery.com>
15425
15426 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15427 of write.
15428
d54d1edf
YQ
154292011-12-14 Yao Qi <yao@codesourcery.com>
15430
15431 * i386-low.c (i386_low_stopped_data_address): Initialize local
15432 variable `control'.
15433
6210a125
PA
154342011-12-13 Pedro Alves <pedro@codesourcery.com>
15435
15436 PR remote/13492
15437
15438 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15439 DR_CONTROL unless necessary. Extend comments.
15440 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15441 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15442
2ece8244
YQ
154432011-12-13 Yao Qi <yao@codesourcery.com>
15444
15445 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15446 macros.
15447 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15448
784867a5
JK
154492011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15450
15451 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15452 Print new debug message for such case.
15453
6bf36717
JK
154542011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15455
15456 Fix overlapping memcpy.
15457 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15458 the read_inferior_memory transfer.
15459 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15460 write_inferior_memory transfer.
15461 (set_fast_tracepoint_jump): New variable buf. Use it for the
15462 read_inferior_memory and write_inferior_memory transfers.
15463 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15464 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15465 Use it for the write_inferior_memory transfer.
15466 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15467 buffers.
15468
50275556
MR
154692011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15470
15471 * linux-low.c (fetch_register, store_register): Make code
15472 consistent, fix formatting.
15473
7325beb4
MR
154742011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15475
15476 * linux-low.c (usr_store_inferior_registers): Factor out code
15477 to handle individual registers into...
15478 (store_register): ... this new function.
15479
c642a434
UW
154802011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15481
15482 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15483 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15484 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15485 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15486 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15487 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15488 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15489 (srv_xmlfiles): Add new XML files.
15490
15491 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15492 and <sys/uio.h>.
15493 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15494 (init_registers_s390_linux32v1): Add prototype.
15495 (init_registers_s390_linux32v2): Likewise.
15496 (init_registers_s390_linux64v1): Likewise.
15497 (init_registers_s390_linux64v2): Likewise.
15498 (init_registers_s390x_linux64v1): Likewise.
15499 (init_registers_s390x_linux64v2): Likewise.
15500 (s390_num_regs): Increment to 52.
15501 (s390_regmap): Add orig_r2 register.
15502 (s390_num_regs_3264): Increment to 68.
15503 (s390_regmap_3264): Add orig_r2 register.
15504 (s390_collect_ptrace_register): Handle orig_r2 register.
15505 (s390_supply_ptrace_register): Likewise.
15506 (s390_fill_last_break): New function.
15507 (s390_store_last_break): Likewise.
15508 (s390_fill_system_call): New function.
15509 (s390_store_system_call): Likewise.
15510 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15511 register sets.
15512 (s390_check_regset): New function.
15513 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15514 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15515 Update target_regsets for available register sets.
15516
2268b414
JK
155172011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15518 Jan Kratochvil <jan.kratochvil@redhat.com>
15519
15520 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15521 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15522 New.
15523 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15524 * linux-low.h (struct process_info_private): New member r_debug.
15525 * server.c (handle_qxfer_libraries): Call
15526 the_target->qxfer_libraries_svr4.
15527 (handle_qxfer_libraries_svr4): New function.
15528 (qxfer_packets): New entry "libraries-svr4".
15529 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15530 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15531 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15532 PACKET_qXfer_libraries_svr4.
15533
d6db1fab
UW
155342011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15535
15536 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15537 PSW address/mask between 8-byte and 16-byte formats.
15538 (s390_supply_ptrace_register): Likewise.
15539 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15540 basic addressing mode bit.
15541
242f5f1c
SS
155422011-11-24 Stan Shebs <stan@codesourcery.com>
15543
15544 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15545
f196051f
SS
155462011-11-17 Stan Shebs <stan@codesourcery.com>
15547
15548 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15549 (tracing_start_time): New global.
15550 (tracing_stop_time): New global.
15551 (tracing_user_name): New global.
15552 (tracing_notes): New global.
15553 (tracing_stop_note): New global.
15554 (cmd_qtstart): Set traceframe_usage, start_time.
15555 (stop_tracing): Set stop_time.
15556 (cmd_qtstatus): Report additional status.
15557 (cmd_qtp): New function.
15558 (handle_tracepoint_query): Call it.
15559 (cmd_qtnotes): New function.
15560 (handle_tracepoint_general_set): Call it.
15561 (get_timestamp): Rename from tsv_get_timestamp.
15562
405f8e94
SS
155632011-11-14 Stan Shebs <stan@codesourcery.com>
15564 Kwok Cheung Yeung <kcy@codesourcery.com>
15565
15566 * linux-x86-low.c (small_jump_insn): New.
15567 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15568 trampoline and error message, build a trampoline and issue a small
15569 jump instruction to it.
15570 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15571 trampoline and error message.
15572 (x86_get_min_fast_tracepoint_insn_len): New.
15573 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15574 * linux-low.h (struct linux_target_ops): Add arguments to
15575 install_fast_tracepoint_jump_pad operation, add new operation.
15576 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15577 arguments.
15578 (linux_get_min_fast_tracepoint_insn_len): New function.
15579 (linux_target_op): Add new operation.
15580 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15581 (gdb_trampoline_buffer_end): Ditto.
15582 (gdb_trampoline_buffer_error): Ditto.
15583 (struct ipa_sym_addresses): Add fields for new IPA variables.
15584 (symbol_list): Add entries for new IPA variables.
15585 (struct tracepoint): Add fields to hold the address range of the
15586 trampoline used by the tracepoint.
15587 (trampoline_buffer_head): New static variable.
15588 (trampoline_buffer_tail): Ditto.
15589 (claim_trampoline_space): New function.
15590 (have_fast_tracepoint_trampoline_buffer): New function.
15591 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15592 structure.
15593 (install_fast_tracepoint): Ditto, also add error buffer argument.
15594 (cmd_qtminftpilen): New function.
15595 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15596 (fast_tracepoint_from_trampoline_address): New function.
15597 (fast_tracepoint_collecting): Handle trampoline as part of jump
15598 pad space.
15599 (set_trampoline_buffer_space): New function.
15600 (initialize_tracepoint): Initialize new IPA variables.
15601 * target.h (struct target_ops): Add arguments to
15602 install_fast_tracepoint_jump_pad operation, add new
15603 get_min_fast_tracepoint_insn_len operation.
15604 (target_get_min_fast_tracepoint_insn_len): New.
15605 (install_fast_tracepoint_jump_pad): Add arguments.
15606 * server.h (IPA_BUFSIZ): Define.
15607 * linux-i386-ipa.c: Include extra header files.
15608 (initialize_fast_tracepoint_trampoline_buffer): New function.
15609 (initialize_low_tracepoint): Call it.
15610 * server.h (set_trampoline_buffer_space): Declare.
15611 (claim_trampoline_space): Ditto.
15612 (have_fast_tracepoint_trampoline_buffer): Ditto.
15613
1e4d1764
YQ
156142011-11-14 Yao Qi <yao@codesourcery.com>
15615
15616 * server.c (handle_query): Handle InstallInTrace for qSupported.
15617 * tracepoint.c (add_tracepoint): Sort list.
15618 (install_tracepoint, download_tracepoint): New.
15619 (cmd_qtdp): Call them to install and download tracepoints.
15620 (sort_tracepoints): Removed.
15621 (cmd_qtstart): Update.
15622
5c73ff4e
YQ
156232011-11-14 Yao Qi <yao@codesourcery.com>
15624
15625 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15626 * mem-break.h: Declare.
15627 * tracepoint.c (cmd_qtstart): Move some code to ...
15628 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15629 New.
15630 (download_tracepoints): Move some code to ...
15631 (download_tracepoint_1): ... here. New.
15632
86a30030
YQ
156332011-11-08 Yao Qi <yao@codesourcery.com>
15634
15635 * remote-utils.c (relocate_instruction): A comment fix.
15636
8d26e50c
JB
156372011-11-07 Joel Brobecker <brobecker@adacore.com>
15638
15639 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15640 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15641 dr_status_mirror and dr_control_mirror from debug_reg_state.
15642 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15643 (i386_initial_stuff): Remove use of deleted globals.
15644 (i386_get_thread_context, i386_set_thread_context,
15645 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15646 from debug_reg_state.
15647
a59306a3
YQ
156482011-11-05 Yao Qi <yao@codesourcery.com>
15649
15650 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15651 address as TPOINT's.
15652
3065dfb6
SS
156532011-11-02 Stan Shebs <stan@codesourcery.com>
15654
15655 * tracepoint.c (agent_mem_read_string): New function.
15656 (eval_agent_expr): Call it for tracenz.
15657 * server.c (handle_query): Report support for tracenz.
15658
fd0d8c7c
YQ
156592011-11-02 Yao Qi <yao@codesourcery.com>
15660
15661 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15662
609086b1
YQ
156632011-11-02 Yao Qi <yao@codesourcery.com>
15664
15665 * target.h: Fix a typo in comment.
15666
b9fd1791
PA
156672011-10-31 Pedro Alves <pedro@codesourcery.com>
15668
15669 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15670 clobber the breakpoints' shadows with fast tracepoint jumps.
15671 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15672 * target.c (write_inferior_memory): Also pass MYADDR down to
15673 check_mem_write.
15674
03583c20
UW
156752011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15676
15677 * configure.ac: Check support for personality routine.
15678 * configure: Regenerate.
15679 * config.in: Likewise.
15680 * linux-low.c: Include <sys/personality.h>.
15681 Define ADDR_NO_RANDOMIZE if necessary.
15682 (linux_create_inferior): Disable address space randomization when
15683 forking inferior, if requested.
15684 (linux_supports_disable_randomization): New function.
15685 (linux_target_ops): Install it.
15686 * server.h (disable_randomization): Declare.
15687 * server.c (disable_randomization): New global variable.
15688 (handle_general_set): Handle QDisableRandomization.
15689 (handle_query): Likewise for qSupported.
15690 (main): Support --disable-randomization and --no-disable-randomization
15691 command line arguments.
15692 * target.h (struct target_ops): Add supports_disable_randomization.
15693 (target_supports_disable_randomization): New macro.
15694
723b724b
MF
156952011-09-29 Mike Frysinger <vapier@gentoo.org>
15696
15697 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15698 ifdef check.
15699 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15700 [!PT_GETDSBT] (target_loadmap): New definition.
15701 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15702 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15703 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15704 and PT_GETDSBT to LINUX_LOADMAP.
15705 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15706 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15707
55329a5c 157082011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
15709
15710 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
15711 (arm_linux_hwbp_cap): New static variable.
15712 (arm_linux_get_hwbp_cap): Replace by ...
15713 (arm_linux_init_hwbp_cap): ... this new function.
15714 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
15715 (arm_linux_get_hw_watchpoint_count): Likewise.
15716 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15717 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
15718 (arm_prepare_to_resume): Use perror_with_name instead of error.
15719
55329a5c 157202011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
15721
15722 * linux-arm-low.c: Include <signal.h>.
15723 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
15724 (struct arm_linux_hwbp_cap): New data type.
15725 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
15726 (struct arm_linux_hw_breakpoint): New data type.
15727 (MAX_BPTS, MAX_WPTS): Define.
15728 (struct arch_process_info, struct arch_lwp_info): New data types.
15729 (arm_linux_get_hwbp_cap): New function.
15730 (arm_linux_get_hw_breakpoint_count): Likewise.
15731 (arm_linux_get_hw_watchpoint_count): Likewise.
15732 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15733 (arm_hwbp_control_initialize): Likewise.
15734 (arm_hwbp_control_is_enabled): Likewise.
15735 (arm_hwbp_control_is_initialized): Likewise.
15736 (arm_hwbp_control_disable): Likewise.
15737 (arm_linux_hw_breakpoint_equal): Likewise.
15738 (arm_linux_hw_point_initialize): Likewise.
15739 (struct update_registers_data): New data structure.
15740 (update_registers_callback: New function.
15741 (arm_insert_point): Likewise.
15742 (arm_remove_point): Likewise.
15743 (arm_stopped_by_watchpoint): Likewise.
15744 (arm_stopped_data_address): Likewise.
15745 (arm_new_process): Likewise.
15746 (arm_new_thread): Likewise.
15747 (arm_prepare_to_resume): Likewise.
15748 (the_low_target): Register arm_insert_point, arm_remove_point,
15749 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
15750 arm_new_thread, and arm_prepare_to_resume.
15751
6b9801d4
SS
157522011-09-15 Stan Shebs <stan@codesourcery.com>
15753
15754 * server.h (struct emit_ops): Add compare-goto fields.
15755 * tracepoint.c (gdb_agent_op_sizes): New table.
15756 (emit_eq_goto): New function.
15757 (emit_ne_goto): New function.
15758 (emit_lt_goto): New function.
15759 (emit_le_goto): New function.
15760 (emit_gt_goto): New function.
15761 (emit_ge_goto): New function.
15762 (is_goto_target): New function.
15763 (compile_bytecodes): Recognize special cases of compare-goto
15764 combinations and call specialized emitters for them.
15765 * linux-x86-low.c (amd64_emit_eq_goto): New function.
15766 (amd64_emit_ne_goto): New function.
15767 (amd64_emit_lt_goto): New function.
15768 (amd64_emit_le_goto): New function.
15769 (amd64_emit_gt_goto): New function.
15770 (amd64_emit_ge_goto): New function.
15771 (amd64_emit_ops): Add the new functions.
15772 (i386_emit_eq_goto): New function.
15773 (i386_emit_ne_goto): New function.
15774 (i386_emit_lt_goto): New function.
15775 (i386_emit_le_goto): New function.
15776 (i386_emit_gt_goto): New function.
15777 (i386_emit_ge_goto): New function.
15778 (i386_emit_ops): Add the new functions.
15779
bf15cbda
SS
157802011-09-08 Stan Shebs <stan@codesourcery.com>
15781
15782 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
15783 (i386_emit_epilogue): Restore %ebx.
15784
943ca1dd
JZ
157852011-08-31 Jie Zhang <jzhang918@gmail.com>
15786
15787 * server.c (step_thread): Remove definition.
15788 (process_serial_event): Don't handle Hs.
15789 * server.h (step_thread): Remove declaration.
15790 * target.c (set_desired_inferior): Remove use of step_thread.
15791
e3deef73
LM
157922011-08-24 Luis Machado <lgustavo@codesourcery.com>
15793
15794 * linux-low.c: Include linux-procfs.h.
15795 (linux_attach_lwp_1): Update comments.
15796 (linux_attach): Scan for existing threads when attaching to a
15797 process that is the tgid.
15798 * Makefile.in: Update dependencies.
15799
13da1c97
LM
158002011-08-24 Luis Machado <lgustavo@codesourcery.com>
15801
15802 * configure.srv: Add linux-procfs.o dependencies.
15803
881127c9
YQ
158042011-08-14 Yao Qi <yao@codesourcery.com>
15805
15806 * target.h (struct target_ops): Fix indent.
15807 * win32-low.c (win32_target_ops): Fix comment.
15808
58dbd541
YQ
158092011-08-14 Andrew Jenner <andrew@codesourcery.com>
15810 Yao Qi <yao@codesourcery.com>
15811
15812 * Makefile.in (clean): Remove tic6x-*.c files.
15813 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
15814 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
15815 (tic6x-c64xp-linux.c): Likewise.
15816 * configure.srv: Add support for tic6x-*-uclinux.
15817 * linux-tic6x-low.c: New.
15818 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
15819
78d85199
YQ
158202011-08-14 Andrew Stubbs <ams@codesourcery.com>
15821 Yao Qi <yao@codesourcery.com>
15822
15823 * target.h (struct target_ops): Add read_loadmap.
15824 * linux-low.c (struct target_loadseg): New type.
15825 (struct target_loadmap): New type.
15826 (linux_read_loadmap): New function.
15827 (linux_target_ops): Add linux_read_loadmap.
15828 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
15829 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
15830 to NULL.
78d85199 15831
a959a88d
EZ
158322011-08-05 Eli Zaretskii <eliz@gnu.org>
15833
15834 * win32-low.c: Include <stdint.h>.
15835
1ced966e
PA
158362011-07-22 Pedro Alves <pedro@codesourcery.com>
15837
15838 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
15839 to the inferior here.
15840 (i386_remove_aligned_watchpoint): Ditto.
15841 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
15842 fit part of the watchpoint in the debug registers.
15843 (i386_update_inferior_debug_regs): New.
15844 (i386_low_insert_watchpoint): Work on a local mirror of the debug
15845 registers, and only update the inferior on success.
15846 (i386_low_remove_watchpoint): Ditto.
15847
d26e3629
KY
158482011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
15849
15850 * linux-low.c (compare_ints, unique, list_threads, show_process,
15851 linux_core_of_thread): Delete.
15852 (linux_target_ops): Change linux_core_of_thread to
15853 linux_common_core_of_thread.
15854 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
15855 * utils.c (malloc_failure): Change type of argument.
15856 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
15857 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
15858 common/linux-osdata.c, common/ptid.c and common/buffer.c.
15859 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
15860 (IPA_OBJS): Add common-utils-ipa.o.
15861 (ptid_h, linux_osdata_h): New macros.
15862 (server_h): Add common/common-utils.h, common/xml-utils.h,
15863 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
15864 common/ptid.h.
15865 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
15866 ptid.o, buffer.o): New rules.
15867 (linux-low.o): Add common/linux-osdata.h as a dependency.
15868 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
15869 * configure.ac: Add AC_HEADER_DIRENT check.
15870 * config.in: Regenerate.
15871 * configure: Regenerate.
15872 * remote-utils.c (xml_escape_text): Delete.
15873 (buffer_grow, buffer_free, buffer_init, buffer_finish,
15874 buffer_xml_printf): Move to common/buffer.c.
15875 * server.c (main): Remove call to initialize_inferiors.
15876 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
15877 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
15878 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
15879 internal_error, gdb_assert, gdb_assert_fail): Delete.
15880 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
15881 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
15882 common/buffer.h.
15883 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
15884 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
15885 initialize_inferiors): Delete.
15886
2275a1a7
PA
158872011-07-20 Pedro Alves <pedro@codesourcery.com>
15888
15889 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
15890 symbol error.
15891
0a5b1e09
PA
158922011-05-31 Pedro Alves <pedro@codesourcery.com>
15893
15894 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
15895 assertion.
15896 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
15897
6938fd34
YQ
158982011-05-26 Yao Qi <yao@codesourcery.com>
15899
15900 * Makefile.in (thread-db.o): Track dependence to
15901 common/gdb_thread_db.h.
15902 * thread-db.c: include gdb_thread_db.h from right place.
15903
b481f9e0
TT
159042011-05-16 Adrian Cornish <gnu@bluedreamer.com>
15905
15906 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
15907 __FILE__ and __LINE__ to internal_error.
15908
98a5dd13
DE
159092011-05-13 Doug Evans <dje@google.com>
15910
15911 * thread-db.c (try_thread_db_load_from_sdir): New function.
15912 (try_thread_db_load_from_dir): New function.
15913 (thread_db_load_search): Handle $sdir, ignore $pdir.
15914 Remove trying of system directories if search of
15915 libthread-db-search-path fails, that is now done via $sdir.
15916
d248b706
KY
159172011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
15918
15919 * server.c (handle_query): Add EnableDisableTracepoints to the list
15920 of supported features.
43aaf8b6 15921 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 15922 tracepoints.
43aaf8b6
PA
15923 (cmd_qtenable_disable): New.
15924 (cmd_qtstart): Install tracepoints even if disabled.
15925 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
15926 receiving a QTEnable or QTDisable packet.
15927 (gdb_collect): Skip data collection if fast tracepoint is disabled.
15928 (ust_marker_to_static_tracepoint): Do not ignore disabled static
15929 tracepoints.
15930 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 15931
84e578fb
DE
159322011-05-10 Doug Evans <dje@google.com>
15933
15934 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
15935
71f55dd8
DE
159362011-05-04 Doug Evans <dje@google.com>
15937
15938 * linux-low.c (linux_join): Skip process lookup.
15939 * spu-low.c (spu_join): Ditto.
15940 * server.c (join_inferiors_callback): Delete.
15941 (process_serial_event): For 'D' packet (detach) call join_inferior
15942 directly.
15943
4d393d60
JM
159442011-05-04 Joseph Myers <joseph@codesourcery.com>
15945
15946 * README: Don't mention xscale*-*-linux*.
15947 * configure.srv (xscale*-*-linux*): Don't handle target.
15948
b00ad6ff
NF
159492011-04-27 Nathan Froyd <froydnj@codesourcery.com>
15950
15951 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
15952 casting pointers.
15953 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
15954 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
15955 (i386_emit_void_call_2): Likewise.
15956
af96c192
YQ
159572011-04-26 Yao Qi <yao@codesourcery.com>
15958
43aaf8b6
PA
15959 * linux-low.c: Move common macros to linux-ptrace.h.
15960 Include linux-ptrace.h.
af96c192
YQ
15961 * Makefile.in (linux_ptrace_h): New.
15962 (linux-low.o): Depends on linux-ptrace.h.
15963
03f2bd59
JK
159642011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
15965
15966 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
15967 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
15968 (remote_prepare): New function with most of the TCP code from ...
15969 (remote_open): ... here. Detect PORT here unconditionally. Move also
15970 setting transport_is_reliable.
15971 * server.c (run_once): New variable.
15972 (gdbserver_usage): Document it.
15973 (main): Set run_once for `--once'. Call remote_prepare. Exit after
15974 the first run if RUN_ONCE.
15975 * server.h (run_once, remote_prepare): New declarations.
15976
7a9dd1b2
TT
159772011-04-19 Tom Tromey <tromey@redhat.com>
15978
15979 * win32-low.c (handle_load_dll): Remove duplicate "the".
15980
81239425
PM
159812011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
15982
15983 Remove support for old Cygwin 1.5 versions.
15984 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
15985 function to avoid warning.
15986 (win32_add_one_solib): Use cygwin_conv_path function to avoid
15987 warning.
15988
9e0627f1
PM
159892011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
15990
15991 * gdbserver/server.h (Macro _): Define it if not available.
15992
588eebee
MS
159932011-03-14 Michael Snyder <msnyder@vmware.com>
15994
348af9f7 15995 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 15996
43f70d4c
JB
159972011-03-10 Joel Brobecker <brobecker@adacore.com>
15998
15999 * Makefile.in (maintainer-clean realclean distclean): Remove
16000 "make ... subdir_do" command.
16001
348af9f7
MS
160022011-03-10 Michael Snyder <msnyder@vmware.com>
16003
16004 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16005
16006 * server.c (handle_v_run): Free alloced buffer on early return.
16007
e637a4f5
YQ
160082011-03-09 Yao Qi <yao@codesourcery.com>
16009
16010 Revert:
16011 2011-03-04 Yao Qi <yao@codesourcery.com>
16012
16013 * Makefile.in: Remove GNU make feature --directory.
16014
16015 2011-03-05 Yao Qi <yao@codesourcery.com>
16016
16017 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16018 (subdir_do): New make target. Copied from gdb/Makefile.
16019 (maintainer-clean, realclean, distclean, clean): Call corresponding
16020 make targets in common/Makefile.
16021
16022 2011-02-11 Yao Qi <yao@codesourcery.com>
16023
16024 * configure.ac: Call AC_PROG_RANLIB.
16025 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16026 * configure: Regenerate.
16027
e6edda56
JK
160282011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16029
16030 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16031
e5141119
JB
160322011-03-06 Yao Qi <yao@codesourcery.com>
16033
16034 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16035
64794aa4
JB
160362011-03-05 Yao Qi <yao@codesourcery.com>
16037
16038 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16039 (subdir_do): New make target. Copied from gdb/Makefile.
16040 (maintainer-clean, realclean, distclean, clean): Call corresponding
16041 make targets in common/Makefile.
16042
7a762829
YQ
160432011-03-04 Yao Qi <yao@codesourcery.com>
16044
16045 * Makefile.in: Remove GNU make feature --directory.
16046
348af9f7
MS
160472011-03-04 Michael Snyder <msnyder@vmware.com>
16048
16049 * server.c (queue_stop_reply): Call xmalloc not malloc.
16050
160512011-03-02 Michael Snyder <msnyder@vmware.com>
16052
16053 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16054
9f72fee2
MS
160552011-02-28 Michael Snyder <msnyder@vmware.com>
16056
588eebee
MS
16057 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16058 (cmd_qtframe): Ditto.
16059 (cmd_qtbuffer): Ditto.
16060 (cmd_bigqtbuffer): Ditto.
16061
9f72fee2
MS
16062 * utils.c (decimal2str): Initialize 'width' to nine, then
16063 don't mess with it.
16064
8040bd49
UW
160652011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16066
16067 * hostio.c (require_data): Free *data, not data.
16068
7e52cbd0
JK
160692011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16070
16071 * hostio.c (require_data): Use free, not xfree.
16072
9130f83e
MS
160732011-02-27 Michael Snyder <msnyder@vmware.com>
16074
4b812f4e
MS
16075 * server.c (handle_query): Discard unused value.
16076
9130f83e
MS
16077 * hostio.c (require_data): Free malloc memory before returning
16078 error.
16079
69d37113
MS
160802011-02-26 Michael Snyder <msnyder@vmware.com>
16081
16082 * linux-low.c (list_threads): Call closedir for dirent.
16083
35f5825a
MS
160842011-02-27 Michael Snyder <msnyder@vmware.com>
16085
2a589cef
MS
16086 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16087 a case statement falls through.
16088
0adea5f7
MS
16089 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16090
35f5825a
MS
16091 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16092 in comparison.
16093
238f1c74
MS
160942011-02-26 Michael Snyder <msnyder@vmware.com>
16095
16096 * utils.c (decimal2str): Eliminate dead code and dead param.
16097 (pulongest): Drop dead param from call to decimal2str.
16098 (plongest): Ditto.
16099
633ff500
JB
161002011-02-24 Joel Brobecker <brobecker@adacore.com>
16101
16102 Revert the following patch (not approved yet):
16103 2011-02-21 Hui Zhu <teawater@gmail.com>
16104 * tracepoint.c (tp_printf): New function.
16105 (eval_agent_expr): Handle gdb_agent_op_printf.
16106
f9c6ff72
HZ
161072011-02-21 Hui Zhu <teawater@gmail.com>
16108
16109 * tracepoint.c (tp_printf): New function.
16110 (eval_agent_expr): Handle gdb_agent_op_printf.
16111
94d5e490
TT
161122011-02-18 Tom Tromey <tromey@redhat.com>
16113
16114 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16115 (tracepoint.o): Likewise.
16116 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16117 (gdb_agent_op_names): Likewise.
16118
c7f96d2b
TT
161192011-02-18 Tom Tromey <tromey@redhat.com>
16120
16121 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16122 gdb_agent_op_rot>: New constants.
16123 (gdb_agent_op_names): Add pick and roll.
16124 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16125 cases.
16126
0feedb2c
JK
161272011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16128
16129 * aclocal.m4: Regenerated with aclocal-1.11.1.
16130
b3b9301e
PA
161312011-02-14 Pedro Alves <pedro@codesourcery.com>
16132
16133 * server.c (handle_qxfer_traceframe_info): New.
16134 (qxfer_packets): Register "traceframe-info".
16135 (handle_query): Report support for qXfer:traceframe-info:read+.
16136 * tracepoint.c (match_blocktype): New.
16137 (traceframe_find_block_type): Rename to ...
16138 (traceframe_walk_blocks): ... this. Add callback filter argument,
16139 and use it.
16140 (traceframe_find_block_type): New, reimplemented on top of
16141 traceframe_walk_blocks.
16142 (build_traceframe_info_xml): New.
16143 (traceframe_read_info): New.
16144 * server.h (traceframe_read_info): Declare.
16145
4f3e6fb7
YQ
161462011-02-11 Yao Qi <yao@codesourcery.com>
16147
16148 * configure.ac: Call AC_PROG_RANLIB.
16149 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16150 * configure: Regenerate.
16151
764880b7
PA
161522011-02-07 Pedro Alves <pedro@codesourcery.com>
16153
16154 * server.c (gdb_read_memory): Change return semantics to allow
16155 partial transfers.
16156 (handle_search_memory_1): Adjust.
16157 (process_serial_event) <'m' packet>: Handle partial transfers.
16158 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16159
1c79eb8a
PA
161602011-01-28 Pedro Alves <pedro@codesourcery.com>
16161
16162 * regcache.c (init_register_cache): Initialize
16163 regcache->register_status.
16164 (free_register_cache): Release regcache->register_status.
16165 (regcache_cpy): Copy register_status.
16166 (registers_to_string): Print 'x's for unavailable registers.
16167 (supply_register): Mark the register's status valid or
16168 unavailable, depending on whether a buffer was passed in or not.
16169 (supply_register_zeroed): New.
16170 (supply_regblock): Mark the registers' status valid or
16171 unavailable, depending on whether a buffer was passed in or not.
16172 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16173 (struct regcache): New `register_status' field.
16174 (supply_register_zeroed): Declare.
16175 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16176 supply_register_zeroed, rather than passing a NULL buffer to
16177 supply_register.
16178 * tracepoint.c (fetch_traceframe_registers): Update comment.
16179
85724a0e
PA
161802011-01-28 Pedro Alves <pedro@codesourcery.com>
16181
16182 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16183 buffer explicit.
16184
d08aafef
PA
161852011-01-25 Pedro Alves <pedro@codesourcery.com>
16186
16187 * server.h (decode_xfer_write): Change prototype.
16188 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16189 and don't extract the annex here.
16190 * server.c (decode_xfer_read): Remove `annex' parameter,
16191 and don't extract the annex here.
16192 (decode_xfer): New.
16193 (struct qxfer): New.
16194 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16195 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16196 (handle_qxfer_statictrace): New functions, abstracted out from
16197 handle_query, and made to use the struct qxfer interface.
16198 (handle_threads_qxfer_proper): Rename to ...
16199 (handle_qxfer_threads_proper): ... this.
16200 (handle_threads_qxfer): Rename to ...
16201 (handle_qxfer_threads): ... this. Adjust.
16202 (qxfer_packets): New array.
16203 (handle_qxfer): New function.
16204 (handle_query): Use handle_qxfer.
16205
493e2a69
MS
162062011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16207
16208 * gdbreplay.c: Shorten lines of >= 80 columns.
16209 * linux-low.c: Ditto.
16210 * linux-ppc-low.c: Ditto.
16211 * linux-s390-low.c: Ditto.
16212 * linux-sparc-low.c: Ditto.
16213 * linux-x86-low.c: Ditto.
16214 * linux-xtensa-low.c: Ditto.
16215 * mem-break.c: Ditto.
16216 * nto-low.c: Ditto.
16217 * regcache.h: Ditto.
16218 * remote-utils.c: Ditto.
16219 * server.c: Ditto.
16220 * server.h: Ditto.
16221 * thread-db.c: Ditto.
16222 * tracepoint.c: Ditto.
16223 * utils.c: Ditto.
16224 * win32-low.h: Ditto.
16225
44944448
JB
162262011-01-05 Joel Brobecker <brobecker@adacore.com>
16227
16228 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16229 update.
16230
71ce852c
JB
162312011-01-01 Joel Brobecker <brobecker@adacore.com>
16232
16233 * server.c (gdbserver_version): Update copyright year in version
16234 output.
16235 * gdbreplay.c (gdbreplay_version): Ditto.
16236
eb826dc6
MF
162372010-12-29 Jie Zhang <jie.zhang@analog.com>
16238
16239 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16240 * linux-bfin-low.c: New file.
16241 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16242 PT_DATA_ADDR for BFIN targets.
16243 * Makefile.in (SFILES): Add linux-bfin-low.c.
16244 (clean): Remove reg-bfin.c.
16245 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16246 * README: Mention supported Blackfin targets.
16247
39ab222a
MF
162482010-12-23 Mike Frysinger <vapier@gentoo.org>
16249
16250 * .gitignore: New file.
16251
a1f2ce7d
MF
162522010-11-16 Mike Frysinger <vapier@gentoo.org>
16253
16254 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16255
f474844c
JZ
162562010-10-22 Jie Zhang <jie@codesourcery.com>
16257
16258 * Makefile.in: Add FLAGS_TO_PASS variable.
16259 (install): Remove dependency of install-only and recursively
16260 invoke make for install-only.
16261
f1048712
DE
162622010-10-04 Doug Evans <dje@google.com>
16263
16264 * Makefile.in (uninstall): Use $(DESTDIR).
16265
b53a1623
PA
162662010-09-24 Pedro Alves <pedro@codesourcery.com>
16267
e6ee044d
PA
16268 PR gdb/11842
16269
b53a1623
PA
16270 * linux-x86-low.c (compat_siginfo_from_siginfo)
16271 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16272 si_code is < 0. Check for si_code == SI_TIMER before checking for
16273 si_code < 0.
16274
fa1bd1e4
JB
162752010-09-13 Joel Brobecker <brobecker@adacore.com>
16276
16277 * lynx-i386-low.c: New file.
16278 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16279
47fac8f8
JB
162802010-09-13 Joel Brobecker <brobecker@adacore.com>
16281
16282 * lynx-low.c (ptrace_request_to_str): Remove handling for
16283 request values that have been removed in LynxOS 5.x.
16284
1adfc54d
JB
162852010-09-13 Joel Brobecker <brobecker@adacore.com>
16286
16287 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16288 <ptrace.h>
16289
c2a66c29
NS
162902010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16291
16292 * configure.ac: Add --enable-inprocess-agent option.
16293 * configure: Rebuilt.
16294
32fcada3
YQ
162952010-09-06 Yao Qi <yao@codesourcery.com>
16296
16297 * linux-low.c (linux_kill): Remove unused variable.
16298 (linux_stabilize_threads): Likewise.
16299 * server.c (start_inferior): Likewise.
16300 (queue_stop_reply_callback): Likewise.
16301 * tracepoint.c (do_action_at_tracepoint): Likewise.
16302
0cccb683
YQ
163032010-09-06 Yao Qi <yao@codesourcery.com>
16304
16305 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16306 on return.
16307
423ec54c
JK
163082010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16309
16310 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16311
12ac6819
PA
163122010-09-06 Pedro Alves <pedro@codesourcery.com>
16313
16314 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16315 "$(IPA_DEPFILES)".
16316
8ed54b31
JB
163172010-09-01 Joel Brobecker <brobecker@adacore.com>
16318
16319 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16320 gdbserver/lynx-ppc-low.c: New files.
16321 * Makefile.in (lynx_low_h): New variable.
16322 (lynx-low.o, lynx-ppc-low.o): New rules.
16323 * configure.ac: On LynxOS, link with -lnetinet.
16324 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16325 * configure: regenerate.
16326
bb0116a4
JB
163272010-09-01 Joel Brobecker <brobecker@adacore.com>
16328
16329 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16330 * configure.ac: Add check for vasprintf and vsnprintf.
16331 * configure, config.in: Regenerate.
16332 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16333
a778ab81 163342010-09-01 Joel Brobecker <brobecker@adacore.com>
16335
16336 * gdbreplay.c: Move include of alloca.h up, next to include of
16337 malloc.h.
16338 * server.h: Add include of malloc.h.
16339 * mem-break.c: Remove include of malloc.h.
16340 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16341
8b034a19 163422010-09-01 Joel Brobecker <brobecker@adacore.com>
16343
16344 * Makefile.in (memmem.o): Build with -Wno-error.
16345
163462010-09-01 Joel Brobecker <brobecker@adacore.com>
16347
16348 * utils.c (xsnprintf): Make non-static.
16349 * server.h: Add xsnprintf declaration.
16350 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16351 replace calls to snprintf by calls to xsnprintf throughout.
16352
163532010-09-01 Joel Brobecker <brobecker@adacore.com>
16354
16355 * configure.ac: Add configure check for alloca.
16356 * configure, config.in: Regenerate.
16357 * server.h: Include alloca.h if it exists.
16358 * gdbreplay.c: Include alloca.h if it exists.
16359
1a981360
PA
163602010-08-28 Pedro Alves <pedro@codesourcery.com>
16361
16362 * linux-low.c (__SIGRTMIN): Define if not already defined.
16363 (linux_create_inferior): Check for __ANDROID__ rather than
16364 __SIGRTMIN.
16365 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16366 are already deferred.
16367 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16368 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16369 stopped and already has a pending signal to report.
16370 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16371 a pending signal to report or is moving out of a jump pad.
16372 (linux_init_signals): Check for __ANDROID__ rather than
16373 __SIGRTMIN.
16374
b4d51a55
PA
163752010-08-28 Pedro Alves <pedro@codesourcery.com>
16376
16377 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16378 debug_threads check. Avoid a linear search when not doing debug
16379 output.
16380
ec48365d
PA
163812010-08-27 Pedro Alves <pedro@codesourcery.com>
16382
16383 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16384 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16385 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16386 (process_event): Change local fd's type to gdb_fildes_t.
16387 (create_file_handler): Adjust prototype.
16388 (delete_file_handler): Adjust prototype.
16389 (handle_file_event): Adjust prototype. Use pfildes.
16390 (create_file_event): Adjsut prototype.
16391 * remote-utils.c (remote_desc, listen_desc): Change type to
16392 gdb_fildes_t.
16393 * server.h: New gdb_fildes_t typedef.
16394 [USE_WIN32API]: Include winsock2.h.
16395 (delete_file_handler, add_file_handler): Adjust prototypes.
16396 (pfildes): Declare.
16397 * utils.c (pfildes): New.
16398
854d88f0
PA
163992010-08-27 Pedro Alves <pedro@codesourcery.com>
16400
16401 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16402 * configure: Regenerate.
16403
0146f85b
PA
164042010-08-27 Pedro Alves <pedro@codesourcery.com>
16405
16406 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16407 (linux_done_accessing_memory): ... this.
16408 (linux_target_ops): Adjust.
16409 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16410 * nto-low.c (nto_target_ops): Adjust comment.
16411 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16412 * spu-low.c (spu_target_ops): Adjust comment.
16413 * target.h (target_ops): Rename unprepare_to_access_memory field
16414 to done_accessing_memory.
16415 (unprepare_to_access_memory): Rename to ...
16416 (done_accessing_memory): ... this.
16417
90d74c30
PA
164182010-08-26 Pedro Alves <pedro@codesourcery.com>
16419
16420 * linux-low.c (linux_prepare_to_access_memory): New.
16421 (linux_unprepare_to_access_memory): New.
16422 (linux_target_ops): Install them.
16423 * server.c (read_memory): Rename to ...
16424 (gdb_read_memory): ... this. Use
16425 prepare_to_access_memory/prepare_to_access_memory.
16426 (write_memory): Rename to ...
16427 (gdb_write_memory): ... this. Use
16428 prepare_to_access_memory/prepare_to_access_memory.
16429 (handle_search_memory_1): Adjust.
16430 (process_serial_event): Adjust.
16431 * target.h (struct target_ops): New fields
16432 prepare_to_access_memory and unprepare_to_access_memory.
16433 (prepare_to_access_memory, unprepare_to_access_memory): New.
16434 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16435 prepare_to_access_memory/prepare_to_access_memory.
16436 * nto-low.c (nto_target_ops): Adjust.
16437 * spu-low.c (spu_target_ops): Adjust.
16438 * win32-low.c (win32_target_ops): Adjust.
16439
fd467969
PA
164402010-08-26 Pedro Alves <pedro@codesourcery.com>
16441
16442 * Makefile.in (WARN_CFLAGS): Get it from configure.
16443 (WERROR_CFLAGS): New.
16444 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16445 * configure.ac: Introduce --enable-werror, which adds -Werror to
16446 the compiler command line. Enabled by default. Disable with
16447 --disable-werror. Add -Wdeclaration-after-statement
16448 Wpointer-arith and -Wformat-nonliteral to warning flags.
16449 * configure: Regenerate.
16450
331e2f5f
PA
164512010-08-26 Pedro Alves <pedro@codesourcery.com>
16452
16453 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16454
e581f2b4
PA
164552010-08-26 Pedro Alves <pedro@codesourcery.com>
16456
16457 * gdbreplay.c (remote_error): New.
16458 (gdbchar): New.
16459 (expect): Use gdbchar. Check for error reading from GDB.
16460 Clarify sync error output.
16461 (play): Check for errors writing to GDB.
16462 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16463 * remote-utils.c (getpkt): Check for errors writing to the remote
16464 descriptor.
16465
3c11dd79
PA
164662010-08-25 Pedro Alves <pedro@codesourcery.com>
16467
16468 * linux-low.c (linux_wait_1): Move non-debugging code out of
16469 `debug_threads' control.
16470
d20a8ad9
PA
164712010-08-25 Pedro Alves <pedro@codesourcery.com>
16472
16473 * linux-low.c (linux_wait_1): Don't set last_status here.
16474 * server.c (push_event, queue_stop_reply_callback): Assert we're
16475 not pushing a TARGET_WAITKIND_IGNORE event.
16476 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16477 (myresume, handle_target_event): Set the thread's last_resume_kind
16478 and last_status from the target returned status.
16479
964e4306
PA
164802010-08-25 Pedro Alves <pedro@codesourcery.com>
16481
16482 PR threads/10729
16483
16484 * linux-x86-low.c (update_debug_registers_callback): New.
16485 (i386_dr_low_set_addr): Use it.
16486 (i386_dr_low_get_addr): New.
16487 (i386_dr_low_set_control): Use update_debug_registers_callback.
16488 (i386_dr_low_get_control): New.
16489 (i386_dr_low_get_status): Adjust.
16490 * linux-low.c (linux_stop_lwp): New.
16491 * linux-low.h (linux_stop_lwp): Declare.
16492
16493 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16494 argument instead of a i386_debug_reg_state.
16495 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16496 a i386_debug_reg_state.
16497 (i386_insert_aligned_watchpoint): Adjust.
16498 (i386_remove_aligned_watchpoint): Adjust.
16499 (i386_low_stopped_data_address): Read the debug registers from the
16500 inferior instead of from the mirrors.
16501 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16502 (i386_dr_low_get_addr): Declare.
16503 (i386_dr_low_get_control): Declare.
16504 (i386_dr_low_get_status): Change prototype.
16505
16506 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16507 (i386_dr_low_get_addr): New.
16508 (i386_dr_low_get_control): New.
16509 (i386_dr_low_get_status): Adjust prototype. Return
16510 dr_status_mirror.
16511 (i386_initial_stuff): Clear dr_status_mirror and
16512 dr_control_mirror.
16513 (i386_get_thread_context): Adjust.
16514 (i386_set_thread_context): Adjust.
16515 (i386_thread_added): Adjust.
16516
5f21a75b
PA
165172010-08-24 Pedro Alves <pedro@codesourcery.com>
16518
16519 * linux-low.h (linux_thread_area): Delete declaration.
16520
3e4c1235
TS
165212010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16522
16523 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16524 after its termination.
16525
1971b033
PA
165262010-08-09 Pedro Alves <pedro@codesourcery.com>
16527
16528 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16529 (gdb_wants_all_stopped): Delete.
16530 (linux_wait_1): Don't call them.
16531 * server.c (handle_v_cont): Tag all threads as want-stopped.
16532 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16533 stopped as "client-wants-stopped".
16534
310444ac
PA
165352010-07-31 Pedro Alves <pedro@codesourcery.com>
16536
16537 * Makefile.in (signals_h): New.
16538 (server_h): Depend on it.
16539 (server.o): Don't depend on $(signals_def).
16540 (signals.o): Depend on $(signals_def).
16541
a19cae16
JK
165422010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16543
16544 * Makefile.in (signals_def): New.
16545 (server_h): Append include/gdb/signals.h and signals_def.
16546 (server.o): Append signals_def.
16547
30d50328
JK
165482010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16549
16550 * server.c (handle_target_event): Use target_signal_to_host for
16551 resume_info.sig initialization.
16552 * target.h (struct thread_resume) <sig>: New comment.
16553
5c3216e2
OS
165542010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16555
c6f46ca0
OS
16556 * server.c (handle_query): strcpy() the returned string from paddress()
16557 instead of sprintf().
5c3216e2
OS
16558 * utils.c (paddress): Return phex_nz().
16559
6bd31874
JB
165602010-07-07 Joel Brobecker <brobecker@adacore.com>
16561
16562 * server.c (handle_v_cont): Call mourn_inferior if process
16563 just exited.
16564 (myresume): Likewise.
16565
0fb4aa4b
PA
165662010-07-01 Pedro Alves <pedro@codesourcery.com>
16567
16568 Static tracepoints, and integration with UST.
16569
16570 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16571 * mem-break.c (uninsert_all_breakpoints)
16572 (reinsert_all_breakpoints): New.
16573 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16574 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16575 (gdb_agent_ust_loaded, helper_thread_id)
16576 (gdb_agent_helper_thread_id): New macros.
16577 (struct ipa_sym_addresses): Add addr_ust_loaded,
16578 addr_helper_thread_id, addr_cmd_buf.
16579 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16580 (in_process_agent_loaded_ust): New.
16581 (write_e_ust_not_loaded): New.
16582 (maybe_write_ipa_ust_not_loaded): New.
16583 (struct collect_static_trace_data_action): New.
16584 (enum tracepoint_type) <static_tracepoint>: New.
16585 (struct tracepoint) <handle>: Mention static tracepoints.
16586 (struct static_tracepoint_ctx): New.
16587 (CMD_BUF_SIZE): New.
16588 (add_tracepoint_action): Handle static tracepoint actions.
16589 (unprobe_marker_at): New.
16590 (clear_installed_tracepoints): Handle static tracepoints.
16591 (cmd_qtdp): Handle static tracepoints.
16592 (probe_marker_at): New.
16593 (cmd_qtstart): Handle static tracepoints.
16594 (response_tracepoint): Handle static tracepoints.
16595 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16596 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16597 (get_context_regcache): Handle static tracepoints.
16598 (do_action_at_tracepoint): Handle static tracepoint actions.
16599 (traceframe_find_block_type): Handle static trace data blocks.
16600 (traceframe_read_sdata): New.
16601 (download_tracepoints): Download static tracepoint actions.
16602 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16603 (GDB_PROBE_NAME): New.
16604 (ust_ops): New.
16605 (GET_UST_SYM): New.
16606 (USTF): New.
16607 (dlsym_ust): New.
16608 (ust_marker_to_static_tracepoint): New.
16609 (gdb_probe): New.
16610 (collect_ust_data_at_tracepoint): New.
16611 (gdb_ust_probe): New.
16612 (UNIX_PATH_MAX, SOCK_DIR): New.
16613 (gdb_ust_connect_sync_socket): New.
16614 (resume_thread, stop_thread): New.
16615 (run_inferior_command): New.
16616 (init_named_socket): New.
16617 (gdb_ust_socket_init): New.
16618 (cstr_to_hexstr): New.
16619 (next_st): New.
16620 (first_marker, next_marker): New.
16621 (response_ust_marker): New.
16622 (cmd_qtfstm, cmd_qtsstm): New.
16623 (unprobe_marker_at, probe_marker_at): New.
16624 (cmd_qtstmat, gdb_ust_thread): New.
16625 (gdb_ust_init): New.
16626 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16627 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16628 (ST_REGENTRY): New.
16629 (x86_64_st_collect_regmap): New.
16630 (X86_64_NUM_ST_COLLECT_GREGS): New.
16631 (AMD64_RIP_REGNUM): New.
16632 (supply_static_tracepoint_registers): New.
16633 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16634 (ST_REGENTRY): New.
16635 (i386_st_collect_regmap): New.
16636 (i386_NUM_ST_COLLECT_GREGS): New.
16637 (supply_static_tracepoint_registers): New.
16638 * server.c (handle_query): Handle qXfer:statictrace:read.
16639 <qSupported>: Report support for StaticTracepoints, and
16640 qXfer:statictrace:read features.
16641 * server.h (traceframe_read_sdata)
16642 (supply_static_tracepoint_registers): Declare.
16643 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16644 (unpack_varlen_hex): Include in IPA build.
16645 * Makefile.in (ustlibs, ustinc): New.
16646 (IPA_OBJS): Add remote-utils-ipa.o.
16647 ($(IPA_LIB)): Link -ldl and -lpthread.
16648 (UST_CFLAGS): New.
16649 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16650 * config.in, configure: Regenerate.
16651
9e4344e5
PA
166522010-06-20 Ian Lance Taylor <iant@google.com>
16653 Pedro Alves <pedro@codesourcery.com>
16654
16655 * linux-x86-low.c (always_true): Delete.
16656 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16657 trying to fool the compiler with always_true.
16658
c6beb2cb
PA
166592010-06-20 Pedro Alves <pedro@codesourcery.com>
16660
16661 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16662 conditions in gdbserver.
16663
d2ed6730
UW
166642010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16665
16666 * spu-low.c (spu_read_memory): Wrap around local store limit.
16667 (spu_write_memory): Likewise.
16668
4e29fb54
PA
166692010-06-15 Pedro Alves <pedro@codesourcery.com>
16670
16671 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16672 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16673 LONGEST uses.
16674 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16675 uses.
16676 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16677 uses with LONGEST uses.
16678
6a271cae
PA
166792010-06-14 Stan Shebs <stan@codesourcery.com>
16680 Pedro Alves <pedro@codesourcery.com>
16681
16682 Bytecode compiler.
16683
16684 * linux-x86-low.c: Include limits.h.
16685 (add_insns): New.
16686 (always_true): New.
16687 (EMIT_ASM): New.
16688 (EMIT_ASM32): New.
16689 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16690 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16691 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16692 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16693 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16694 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16695 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16696 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16697 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16698 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16699 (amd64_emit_void_call_2): New.
16700 (amd64_emit_ops): New.
16701 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16702 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16703 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16704 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16705 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16706 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16707 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16708 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16709 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
16710 (i386_emit_stack_adjust, i386_emit_int_call_1)
16711 (i386_emit_void_call_2): New.
16712 (i386_emit_ops): New.
16713 (x86_emit_ops): New.
16714 (the_low_target): Install x86_emit_ops.
16715 * server.h (struct emit_ops): New.
16716 (get_raw_reg_func_addr): Declare.
16717 (current_insn_ptr, emit_error): Declare.
16718 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
16719 (set_trace_state_variable_value): New defines.
16720 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
16721 addr_get_trace_state_variable_value and
16722 addr_set_trace_state_variable_value.
16723 (symbol_list): New fields for get_raw_reg,
16724 get_trace_state_variable_value and set_trace_state_variable_value.
16725 (condfn): New typedef.
16726 (struct tracepoint): New field `compiled_cond'.
16727 (do_action_at_tracepoint): Clear compiled_cond.
16728 (get_trace_state_variable_value, set_trace_state_variable_value):
16729 Export in the IPA.
16730 (condition_true_at_tracepoint): If there's a compiled condition,
16731 run that.
16732 (current_insn_ptr, emit_error): New globals.
16733 (struct bytecode_address): New.
16734 (get_raw_reg_func_addr): New.
16735 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
16736 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
16737 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
16738 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
16739 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
16740 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
16741 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
16742 (compile_tracepoint_condition, compile_bytecodes): New.
16743 * target.h (emit_ops): Forward declare.
16744 (struct target_ops): New field emit_ops.
16745 (target_emit_ops): New.
16746 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
16747 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
16748 * linux-low.c (linux_emit_ops): New.
16749 (linux_target_ops): Install it.
16750 * linux-low.h (struct linux_target_ops): New field emit_ops.
16751
92b72907
UW
167522010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
16753
16754 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
16755 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
16756
fa593d66
PA
167572010-06-01 Pedro Alves <pedro@codesourcery.com>
16758 Stan Shebs <stan@codesourcery.com>
16759
16760 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
16761 (all): Depend on $(extra_libraries).
16762 (install-only): Install the IPA.
16763 (IPA_OBJS, IPA_LIB): New.
16764 (clean): Remove the IPA lib.
16765 (IPAGENT_CFLAGS): New.
16766 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
16767 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
16768 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
16769 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
16770 * configure.ac: Check for atomic builtins support in the compiler.
16771 (IPA_DEPFILES, extra_libraries): Define.
16772 * configure.srv (ipa_obj): Add description.
16773 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
16774 (i[34567]86-*-linux*): Set ipa_obj.
16775 (x86_64-*-linux*): Set ipa_obj.
16776 * linux-low.c (stabilizing_threads): New.
16777 (supports_fast_tracepoints): New.
16778 (linux_detach): Stabilize threads before detaching.
16779 (handle_tracepoints): Handle internal tracing breakpoints. Assert
16780 the lwp is either not stabilizing, or is moving out of a jump pad.
16781 (linux_fast_tracepoint_collecting): New.
16782 (maybe_move_out_of_jump_pad): New.
16783 (enqueue_one_deferred_signal): New.
16784 (dequeue_one_deferred_signal): New.
16785 (linux_wait_for_event_1): If moving out of a jump pad, defer
16786 pending signals to later.
16787 (linux_stabilize_threads): New.
16788 (linux_wait_1): Check if threads need moving out of jump pads, and
16789 do it if so.
16790 (stuck_in_jump_pad_callback): New.
16791 (move_out_of_jump_pad_callback): New.
16792 (lwp_running): New.
16793 (linux_resume_one_lwp): Handle moving out of jump pads.
16794 (linux_set_resume_request): Dequeue deferred signals.
16795 (need_step_over_p): Also step over fast tracepoint jumps.
16796 (start_step_over): Also uninsert fast tracepoint jumps.
16797 (finish_step_over): Also reinsert fast tracepoint jumps.
16798 (linux_install_fast_tracepoint_jump): New.
16799 (linux_target_ops): Install linux_stabilize_threads and
16800 linux_install_fast_tracepoint_jump_pad.
16801 * linux-low.h (linux_target_ops) <get_thread_area,
16802 install_fast_tracepoint_jump_pad>: New fields.
16803 (struct lwp_info) <collecting_fast_tracepoint,
16804 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
16805 (linux_get_thread_area): Declare.
16806 * linux-x86-low.c (jump_insn): New.
16807 (x86_get_thread_area): New.
16808 (append_insns): New.
16809 (push_opcode): New.
16810 (amd64_install_fast_tracepoint_jump_pad): New.
16811 (i386_install_fast_tracepoint_jump_pad): New.
16812 (x86_install_fast_tracepoint_jump_pad): New.
16813 (the_low_target): Install x86_get_thread_area and
16814 x86_install_fast_tracepoint_jump_pad.
16815 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
16816 (struct fast_tracepoint_jump): New.
16817 (fast_tracepoint_jump_insn): New.
16818 (fast_tracepoint_jump_shadow): New.
16819 (find_fast_tracepoint_jump_at): New.
16820 (fast_tracepoint_jump_here): New.
16821 (delete_fast_tracepoint_jump): New.
16822 (set_fast_tracepoint_jump): New.
16823 (uninsert_fast_tracepoint_jumps_at): New.
16824 (reinsert_fast_tracepoint_jumps_at): New.
16825 (set_breakpoint_at): Use write_inferior_memory.
16826 (uninsert_raw_breakpoint): Use write_inferior_memory.
16827 (check_mem_read): Mask out fast tracepoint jumps.
16828 (check_mem_write): Mask out fast tracepoint jumps.
16829 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
16830 (set_fast_tracepoint_jump): Declare.
16831 (delete_fast_tracepoint_jump)
16832 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
16833 (reinsert_fast_tracepoint_jumps_at): Declare.
16834 * regcache.c: Don't compile many functions when building the
16835 in-process agent library.
16836 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
16837 the register buffer in the heap.
16838 (free_register_cache): If the register buffer isn't owned by the
16839 regcache, don't free it.
16840 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
16841 pre-existing register caches.
16842 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
16843 type.
16844 (convert_ascii_to_int): : Constify `from' parameter type.
16845 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
16846 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
16847 the needed buffer in-place.
16848 (relocate_instruction): New.
16849 * server.c (handle_query) <qSymbols>: If the target supports
16850 tracepoints, give it a chance of looking up symbols. Report
16851 support for fast tracepoints.
16852 (handle_status): Stabilize threads.
16853 (process_serial_event): Adjust.
16854 * server.h (struct fast_tracepoint_jump): Forward declare.
16855 (struct process_info) <fast_tracepoint_jumps>: New field.
16856 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
16857 (decode_X_packet, decode_M_packet): Adjust.
16858 (relocate_instruction): Declare.
16859 (in_process_agent_loaded): Declare.
16860 (tracepoint_look_up_symbols): Declare.
16861 (struct fast_tpoint_collect_status): Declare.
16862 (fast_tracepoint_collecting): Declare.
16863 (force_unlock_trace_buffer): Declare.
16864 (handle_tracepoint_bkpts): Declare.
16865 (initialize_low_tracepoint)
16866 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
16867 * target.h (struct target_ops) <stabilize_threads,
16868 install_fast_tracepoint_jump_pad>: New fields.
16869 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
16870 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
16871 [HAVE_STDINT_H]: Include stdint.h.
16872 (trace_debug_1): Rename to ...
16873 (trace_vdebug): ... this.
16874 (trace_debug): Rename to ...
16875 (trace_debug_1): ... this. Add `level' parameter.
16876 (trace_debug): New.
16877 (ATTR_USED, ATTR_NOINLINE): New.
16878 (IP_AGENT_EXPORT): New.
16879 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
16880 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
16881 (about_to_request_buffer_space, trace_buffer_is_full)
16882 (stopping_tracepoint, expr_eval_result, error_tracepoint)
16883 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
16884 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
16885 (traceframe_write_count, traceframes_created)
16886 (trace_state_variables)
16887 New renaming defines.
16888 (struct ipa_sym_addresses): New.
16889 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
16890 (symbol_list): New.
16891 (ipa_sym_addrs): New.
16892 (all_tracepoint_symbols_looked_up): New.
16893 (in_process_agent_loaded): New.
16894 (write_e_ipa_not_loaded): New.
16895 (maybe_write_ipa_not_loaded): New.
16896 (tracepoint_look_up_symbols): New.
16897 (debug_threads) [IN_PROCESS_AGENT]: New.
16898 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
16899 (UNKNOWN_SIDE_EFFECTS): New.
16900 (stop_tracing): New.
16901 (flush_trace_buffer): New.
16902 (stop_tracing_bkpt): New.
16903 (flush_trace_buffer_bkpt): New.
16904 (read_inferior_integer): New.
16905 (read_inferior_uinteger): New.
16906 (read_inferior_data_pointer): New.
16907 (write_inferior_data_pointer): New.
16908 (write_inferior_integer): New.
16909 (write_inferior_uinteger): New.
16910 (struct collect_static_trace_data_action): Delete.
16911 (enum tracepoint_type): New.
16912 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
16913 <actions_str, step_actions, step_actions_str>: Only include in
16914 GDBserver.
fa593d66
PA
16915 <orig_size, obj_addr_on_target, adjusted_insn_addr>
16916 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
16917 (tracepoints): Use IP_AGENT_EXPORT.
16918 (last_tracepoint): Don't include in the IPA.
16919 (stopping_tracepoint): Use IP_AGENT_EXPORT.
16920 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
16921 (alloced_trace_state_variables): New.
16922 (trace_state_variables): Use IP_AGENT_EXPORT.
16923 (traceframe_t): Delete unused variable.
16924 (circular_trace_buffer): Don't include in the IPA.
16925 (trace_buffer_start): Delete.
16926 (struct trace_buffer_control): New.
16927 (trace_buffer_free): Delete.
16928 (struct ipa_trace_buffer_control): New.
16929 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
16930 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
16931 New.
16932 (trace_buffer_ctrl): New.
16933 (TRACE_BUFFER_CTRL_CURR): New.
16934 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
16935 Reimplement as macros.
16936 (trace_buffer_wrap): Delete.
16937 (traceframe_write_count, traceframe_read_count)
16938 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
16939 (struct tracepoint_hit_ctx) <type>: New field.
16940 (struct fast_tracepoint_ctx): New.
16941 (memory_barrier): New.
16942 (cmpxchg): New.
16943 (record_tracepoint_error): Update atomically in the IPA.
16944 (clear_inferior_trace_buffer): New.
16945 (about_to_request_buffer_space): New.
16946 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
16947 updating the same buffer.
16948 (add_tracepoint): Default the tracepoint's type to trap
16949 tracepoint, and orig_size to -1.
16950 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
16951 internal variables.
16952 (create_trace_state_variable): New parameter `gdb'. Handle it.
16953 (clear_installed_tracepoints): Clear fast tracepoint jumps.
16954 (cmd_qtdp): Handle fast tracepoints.
16955 (cmd_qtdv): Adjust.
16956 (max_jump_pad_size): New.
16957 (gdb_jump_pad_head): New.
16958 (get_jump_space_head): New.
16959 (claim_jump_space): New.
16960 (sort_tracepoints): New.
16961 (MAX_JUMP_SIZE): New.
16962 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
16963 IPA.
16964 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
16965 support. Upload fast traceframes, and delete internal IPA
16966 breakpoints.
16967 (stop_tracing_handler): New.
16968 (flush_trace_buffer_handler): New.
16969 (cmd_qtstop): Upload fast tracepoints.
16970 (response_tracepoint): Handle fast tracepoints.
16971 (tracepoint_finished_step): Upload fast traceframes. Set the
16972 tracepoint hit context's tracepoint type.
16973 (handle_tracepoint_bkpts): New.
16974 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
16975 type. Add comment about fast tracepoints.
16976 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
16977 non-existing action_str field.
16978 (get_context_regcache): Handle fast tracepoints.
16979 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
16980 to the regcache.
16981 (fast_tracepoint_from_jump_pad_address): New.
16982 (fast_tracepoint_from_ipa_tpoint_address): New.
16983 (collecting_t): New.
16984 (force_unlock_trace_buffer): New.
16985 (fast_tracepoint_collecting): New.
16986 (collecting): New.
16987 (gdb_collect): New.
16988 (write_inferior_data_ptr): New.
16989 (target_tp_heap): New.
16990 (target_malloc): New.
16991 (download_agent_expr): New.
16992 (UALIGN): New.
16993 (download_tracepoints): New.
16994 (download_trace_state_variables): New.
16995 (upload_fast_traceframes): New.
16996 (IPA_FIRST_TRACEFRAME): New.
16997 (IPA_NEXT_TRACEFRAME_1): New.
16998 (IPA_NEXT_TRACEFRAME): New.
16999 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17000 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17001 (gdb_jump_pad_buffer_end): New.
17002 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17003 (initialize_tracepoint): Adjust.
17004 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17005 buffer. Initialize the low module.
17006 * utils.c (PREFIX, TOOLNAME): New.
17007 (malloc_failure): Use PREFIX.
17008 (error): In the IPA, an error causes an exit.
17009 (fatal, warning): Use PREFIX.
17010 (internal_error): Use TOOLNAME.
17011 (NUMCELLS): Increase to 10.
17012 * configure, config.in: Regenerate.
17013
d149dd1d
PA
170142010-06-01 Pedro Alves <pedro@codesourcery.com>
17015
17016 * server.c (handle_query) <qSupported>: Do two passes over the
17017 qSupported string to avoid nesting strtok.
17018
f6528abd
JK
170192010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17020
17021 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17022 (CDEPS): New.
17023 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17024 -Wl,--dynamic-list.
17025 * configure: Regenerate.
17026 * proc-service.list: New.
17027
ca2a87a0
JK
170282010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17029
17030 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17031 New comment.
17032
363a6e9f
OS
170332010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17034
17035 * gdbreplay.c (remote_open): Check error return from socket() call by
17036 its equality to -1 not by it being negative.
17037 * remote-utils.c (remote_open): Likewise.
17038
d23b6cb1
PA
170392010-05-23 Pedro Alves <pedro@codesourcery.com>
17040
17041 * config.h: Regenerate.
17042
28d3cf85
MK
170432010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17044
17045 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17046 doesn't provide PTRACE_GET_THREAD_AREA.
17047
fea36a59
MK
170482010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17049
17050 * linux-m68k-low.c: Include <asm/ptrace.h>
17051 (ps_get_thread_area): Implement.
17052
24b066ba
DE
170532010-05-03 Doug Evans <dje@google.com>
17054
17055 * event-loop.c (struct callback_event): New struct.
17056 (callback_list): New global.
17057 (append_callback_event, delete_callback_event): New functions.
17058 (process_callback): New function.
17059 (start_event_loop): Call it.
17060 * remote-utils.c (NOT_SCHEDULED): Define.
17061 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17062 moved out of readchar.
17063 (readchar): Rewrite. Call reschedule before returning.
17064 (reset_readchar): New function.
17065 (remote_close): Call it.
17066 (process_remaining, reschedule): New functions.
17067 * server.h (callback_handler_func): New typedef.
17068 (append_callback_event, delete_callback_event): Declare.
17069
9836d6ea
PA
170702010-05-03 Pedro Alves <pedro@codesourcery.com>
17071
17072 * proc-service.c (ps_pglobal_lookup): Use
17073 thread_db_look_up_one_symbol.
17074 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17075 parameter. Use it instead of all_symbols_looked_up.
17076 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17077 field.
17078 (all_symbols_looked_up): Don't declare.
17079 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17080 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17081 field.
17082 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17083 Set all_symbols_looked_up here.
17084 (thread_db_look_up_one_symbol): New.
17085 (thread_db_get_tls_address): Adjust.
17086 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17087 thread_db object on the heap, and tentatively set it in the
17088 process structure.
17089 (thread_db_init): Don't set all_symbols_looked_up here.
17090 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17091
7984d532
PA
170922010-05-03 Pedro Alves <pedro@codesourcery.com>
17093
17094 * linux-low.c (linux_kill, linux_detach): Adjust.
17095 (status_pending_p_callback): Remove redundant statement. Check
17096 for !TARGET_WAITIKIND_IGNORE, instead of
17097 TARGET_WAITKIND_STOPPED.
17098 (handle_tracepoints): Make sure LWP is locked. Adjust.
17099 (linux_wait_for_event_1): Adjust.
17100 (linux_cancel_breakpoints): New.
17101 (unsuspend_one_lwp): New.
17102 (unsuspend_all_lwps): New.
17103 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17104 (send_sigstop_callback): Change return type to int, add new
17105 `except' parameter and handle it.
17106 (suspend_and_send_sigstop_callback): New.
17107 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17108 pass them down. If SUSPEND, also increment the lwp's suspend
17109 count.
17110 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17111 (need_step_over_p): Don't consider suspended LWPs.
17112 (start_step_over): Adjust.
17113 (proceed_one_lwp): Change return type to int, add new `except'
17114 parameter and handle it.
17115 (unsuspend_and_proceed_one_lwp): New.
17116 (proceed_all_lwps): Use find_inferior instead of
17117 for_each_inferior.
17118 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17119 also decrement the suspend count of LWPs. Pass `except' down,
17120 instead of hacking its suspend count.
17121 (linux_pause_all): Add `freeze' parameter. Adjust.
17122 (linux_unpause_all): New.
17123 (linux_target_ops): Install linux_unpause_all.
17124 * server.c (handle_status): Adjust.
17125 * target.h (struct target_ops): New fields `unpause_all' and
17126 `cancel_breakpoints'. Add new parameter to `pause_all'.
17127 (pause_all): Add new `freeze' parameter.
17128 (unpause_all): New.
17129 (cancel_breakpoints): New.
17130 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17131 cancel breakpoints.
17132 (cmd_qtstart): Pause threads.
17133 (stop_tracing): Pause threads, and cancel breakpoints.
17134 * win32-low.c (win32_target_ops): Adjust.
17135
e471f25b
PA
171362010-05-03 Pedro Alves <pedro@codesourcery.com>
17137
17138 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17139 the inferior right away from here...
17140 (linux_wait_1): ... to here, and adjust to check the thread's
17141 last_resume_kind instead of the lwp's step or stop_expected flags.
17142
1915ef4f
PA
171432010-05-02 Pedro Alves <pedro@codesourcery.com>
17144
17145 * README: Use consistent `GDB' and `GDBserver' spellings.
17146
f9e39928
PA
171472010-05-02 Pedro Alves <pedro@codesourcery.com>
17148
17149 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17150 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17151 (linux_detach_one_lwp): Assume the lwp is stopped.
17152 (any_thread_of): Delete.
17153 (linux_detach): Stop all lwps here. Don't blindly delete all
17154 breakpoints.
17155 (delete_lwp_callback): New.
17156 (linux_mourn): Delete all lwps of the process that is gone.
17157 (linux_wait_1): Don't delete the last lwp of the process here.
17158 * mem-break.h (mark_breakpoints_out): Declare.
17159 * mem-break.c (mark_breakpoints_out): New.
17160 (free_all_breakpoints): Use it.
17161 * server.c (handle_target_event): If the process is gone, mark
17162 breakpoints out.
17163 * thread-db.c (struct thread_db) <create_bp>: New field.
17164 (thread_db_enable_reporting): Fix prototype. Store a thread event
17165 breakpoint reference in the thread_db struct.
17166 (thread_db_load_search): Clear the thread_db object.
17167 (try_thread_db_load_1): Ditto.
17168 (switch_to_process): New.
17169 (disable_thread_event_reporting): Use it.
17170 (remove_thread_event_breakpoints): New.
17171 (thread_db_detach, thread_db_mourn): Use it.
17172
1e7fc18c
PA
171732010-05-01 Pedro Alves <pedro@codesourcery.com>
17174
17175 * linux-low.c (linux_enable_event_reporting): New.
17176 (linux_wait_for_event_1, handle_extended_wait): Use it.
17177
02fc4de7
PA
171782010-04-30 Pedro Alves <pedro@codesourcery.com>
17179
17180 * linux-low.c (linux_kill_one_lwp, linux_kill)
17181 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17182 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17183 SIGSTOP even if the LWP is stopped.
17184 (send_sigstop_callback): New.
17185 (stop_all_lwps): Use send_sigstop_callback instead.
17186 (linux_resume_one_thread): Adjust.
17187 (proceed_one_lwp): Still proceed an LWP that the client has
17188 requested to stop, if we haven't reported it as stopped yet. Make
17189 sure that LWPs the client want stopped, have a pending SIGSTOP.
17190
bc3b5632
DE
171912010-04-26 Doug Evans <dje@google.com>
17192
ae1ada35
DE
17193 * server.c (handle_general_set): Make static.
17194
bc3b5632
DE
17195 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17196 Print received char after testing for error/eof instead of before.
17197 (input_interrupt): Tweak comment.
17198
65730243
DE
171992010-04-23 Doug Evans <dje@google.com>
17200
17201 * server.c (start_inferior): Print inferior argv if --debug.
17202
a8ae7dc0
AR
172032010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17204
17205 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17206 * nto-x86-low.c: Include server.h
17207
1c07cc19
PM
172082010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17209
17210 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17211 be consistent with other sources of this directory.
17212 (init_registers_amd64): Correct name of source file of this function
17213 in the comment.
17214
e0a61e09
PM
172152010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17216
17217 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17218 64-bit executables.
17219
54709339
PM
172202010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17221
17222 * win32-i386-low.c: Add 64-bit support.
17223 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17224 (init_registers_amd64): Declare.
17225 (mappings): Add 64-bit version of array.
17226 (init_windows_x86): New function.
17227 (the_low_target): Change init_arch field to init_windows_x86.
17228
e8f0053d
PM
172292010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17230
17231 * win32-low.c: Adapt to support also 64-bit architecture.
17232 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17233 (get_image_name): Use SIZE_T type for local variable `done'.
17234 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17235 (toolhelp_get_dll_name): Idem.
17236 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17237 Use uintptr_t typecast to avoid warning.
17238 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17239 (handle_exception): Use phex_nz to avoid warning.
17240 (win32_wait): Remove unused local variable `process'.
17241
c481e77e
PM
172422010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17243
17244 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17245 `amd64-avx.o'.
17246
12ea4b69
PM
172472010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17248
17249 * configure.ac: Use `ws2_32' library for srv_mingw.
17250 * configure: Regenerate.
17251 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17252 * remote-utils.c: Likewise.
17253
f6d1620c
L
172542010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17255
17256 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17257 if __x86_64__ is defined.
17258
8e642873
PM
172592010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17260
17261 * configure: Regenerate.
17262
711e434b
PM
172632010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17264
17265 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17266 * target.h (target_ops): New get_tib_address field.
17267 * win32-low.h (win32_thread_info): Add thread_local_base field.
17268 * win32-low.c (child_add_thread): Add tlb argument.
17269 Set thread_local_base field to TLB.
17270 (get_child_debug_event): Adapt to child_add_thread change.
17271 (win32_get_tib_address): New function.
17272 (win32_target_ops): Set get_tib_address field to
17273 win32_get_tib_address.
17274 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17275
505106cd
PA
172762010-04-12 Pedro Alves <pedro@codesourcery.com>
17277
505106cd
PA
17278 * linux-low.c (linux_mourn): Also remove the process.
17279 * server.c (handle_target_event): Don't remove the process here.
17280 * nto-low.c (nto_mourn): New.
17281 (nto_target_ops): Install it.
17282 * spu-low.c (spu_mourn): New.
17283 (spu_target_ops): Install it.
17284 * win32-low.c (win32_mourn): New.
17285 (win32_target_ops): Install it.
17286
e8470a06
PA
172872010-04-12 Pedro Alves <pedro@codesourcery.com>
17288
17289 * server.h (buffer_xml_printf): Remove redundant `;'.
17290
45ba0d02
PA
172912010-04-12 Pedro Alves <pedro@codesourcery.com>
17292
17293 * regcache.c (set_register_cache): Invalidate regcaches before
17294 changing the register cache layout.
17295 (regcache_invalidate_one): Allow a NULL regcache.
17296 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17297 regcaches before changing the register cache layout or the target
17298 regsets.
17299
59e04013
L
173002010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17301
17302 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17303 variable warning on Linux/x86-64.
17304
8336d594
PA
173052010-04-11 Pedro Alves <pedro@codesourcery.com>
17306
17307 GDBserver disconnected tracing support.
17308
17309 * linux-low.c (linux_remove_process): Delete.
17310 (add_lwp): Don't set last_resume_kind here.
17311 (linux_kill): Use `mourn'.
17312 (linux_detach): Use `thread_db_detach', and `mourn'.
17313 (linux_mourn): New.
17314 (linux_attach_lwp_1): Adjust comment.
17315 (linux_attach): last_resume_kind moved the thread_info; adjust.
17316 (status_pending_p_callback): Adjust.
17317 (linux_wait_for_event_1): Adjust.
17318 (count_events_callback, select_singlestep_lwp_callback)
17319 (select_event_lwp_callback, cancel_breakpoints_callback)
17320 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17321 (proceed_one_lwp): Adjust.
17322 (linux_async): Add debug output.
17323 (linux_thread_stopped): New.
17324 (linux_pause_all): New.
17325 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17326 linux_pause_all.
17327 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17328 (thread_db_free): Delete declaration.
17329 (thread_db_detach, thread_db_mourn): Declare.
17330 * thread-db.c (thread_db_init): Use thread_db_mourn.
17331 (thread_db_free): Delete, split in two.
17332 (disable_thread_event_reporting): New.
17333 (thread_db_detach): New.
17334 (thread_db_mourn): New.
17335
17336 * server.h (struct thread_info) <last_resume_kind>: New field.
17337 <attached>: Add comment.
17338 <gdb_detached>: New field.
17339 (handler_func): Change return type to int.
17340 (handle_serial_event, handle_target_event): Ditto.
17341 (gdb_connected): Declare.
17342 (tracing): Delete.
17343 (disconnected_tracing): Declare.
17344 (stop_tracing): Declare.
17345
17346 * server.c (handle_query) <qSupported>: Report support for
17347 disconnected tracing.
17348 (queue_stop_reply_callback): Account for running threads.
17349 (gdb_wants_thread_stopped): New.
17350 (gdb_wants_all_threads_stopped): New.
17351 (gdb_reattached_process): New.
17352 (handle_status): Clear the `gdb_detached' flag of all processes.
17353 In all-stop, stop all threads.
17354 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17355 (process_serial_event): If the remote connection breaks, or if an
17356 exit was forced with "monitor exit", force an event loop exit.
17357 Handle disconnected tracing on detach.
17358 (handle_serial_event): Adjust.
17359 (handle_target_event): If GDB isn't connected, forward events back
17360 to the inferior, unless the last process exited, in which case,
17361 exit gdbserver. Adjust interface.
17362
17363 * remote-utils.c (remote_open): Don't block in accept. Instead
17364 register an event loop source on the listen socket file
17365 descriptor. Refactor bits into ...
17366 (listen_desc): ... this new global.
17367 (gdb_connected): ... this new function.
17368 (enable_async_notification): ... this new function.
17369 (handle_accept_event): ... this new function.
17370 (remote_close): Clear remote_desc.
17371
17372 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17373
17374 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17375 New fields.
17376 (mourn_inferior): Define.
17377 (target_process_qsupported): Avoid the dangling else problem.
17378 (thread_stopped): Define.
17379 (pause_all): Define.
17380 (target_waitstatus_to_string): Declare.
17381 * target.c (target_waitstatus_to_string): New.
17382
17383 * tracepoint.c (tracing): Make extern.
17384 (disconnected_tracing): New.
17385 (stop_tracing): Make extern. Handle tracing stops due to GDB
17386 disconnecting.
17387 (cmd_qtdisconnected): New.
17388 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17389 (handle_tracepoint_general_set): Handle QTDisconnected.
17390
17391 * event-loop.c (event_handler_func): Change return type to int.
17392 (process_event): Bail out if the event handler wants the event
17393 loop to stop.
17394 (handle_file_event): Ditto.
17395 (start_event_loop): Bail out if the event handler wants the event
17396 loop to stop.
17397
17398 * nto-low.c (nto_target_ops): Adjust.
17399 * spu-low.c (spu_wait): Don't remove the process here.
17400 (spu_target_ops): Adjust.
17401 * win32-low.c (win32_wait): Don't remove the process here.
17402 (win32_target_ops): Adjust.
17403
5d267c4c
PA
174042010-04-11 Pedro Alves <pedro@codesourcery.com>
17405
17406 * regcache.c (realloc_register_cache): Invalidate inferior's
17407 regcache before recreating it.
17408
623ccd72
PA
174092010-04-09 Pedro Alves <pedro@codesourcery.com>
17410
17411 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17412
219f2f23
PA
174132010-04-09 Stan Shebs <stan@codesourcery.com>
17414 Pedro Alves <pedro@codesourcery.com>
17415
17416 * server.h (LONGEST): New.
17417 (struct thread_info) <while_stepping>: New field.
17418 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17419 Declare.
17420 (initialize_tracepoint, handle_tracepoint_general_set)
17421 (handle_tracepoint_query, tracepoint_finished_step)
17422 (tracepoint_was_hit, release_while_stepping_state_list):
17423 (current_traceframe): Declare.
17424 * server.c (handle_general_set): Handle tracepoint packets.
17425 (read_memory): New.
17426 (write_memory): New.
17427 (handle_search_memory_1): Use read_memory.
17428 (handle_query): Report support for conditional tracepoints, trace
17429 state variables, and tracepoint sources. Handle tracepoint
17430 queries.
17431 (main): Initialize the tracepoints module.
17432 (process_serial_event): Handle traceframe reads/writes.
17433
17434 * linux-low.c (handle_tracepoints): New.
17435 (linux_wait_1): Call it.
17436 (linux_resume_one_lwp): Handle while-stepping.
17437 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17438 (linux_target_ops): Install them.
17439 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17440 New field.
17441 * linux-x86-low.c (x86_supports_tracepoints): New.
17442 (the_low_target). Install it.
17443
17444 * mem-break.h (delete_breakpoint): Declare.
17445 * mem-break.c (delete_breakpoint): Make external.
17446
17447 * target.h (struct target_ops): Add `supports_tracepoints',
17448 `read_pc', and `write_pc' fields.
17449 (target_supports_tracepoints): Define.
17450 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17451 (phex_nz): New.
17452
17453 * regcache.h (struct regcache) <registers_owned>: New field.
17454 (init_register_cache, regcache_cpy): Declare.
17455 (regcache_read_pc, regcache_write_pc): Declare.
17456 (register_cache_size): Declare.
17457 (supply_regblock): Declare.
17458 * regcache.c (init_register_cache): New.
17459 (new_register_cache): Use it.
17460 (regcache_cpy): New.
17461 (register_cache_size): New.
17462 (supply_regblock): New.
17463 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 17464
219f2f23
PA
17465 * tracepoint.c: New.
17466
17467 * Makefile.in (OBS): Add tracepoint.o.
17468 (tracepoint.o): New rule.
17469
3a13a53b
L
174702010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17471
17472 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17473 (i386-mmx.o): New.
17474 (i386-mmx.c): Likewise.
17475 (i386-mmx-linux.o): Likewise.
17476 (i386-mmx-linux.c): Likewise.
17477
17478 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17479 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17480 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17481 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17482
17483 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17484 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17485 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17486
1570b33e
L
174872010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17488
17489 * Makefile.in (clean): Updated.
17490 (i386-avx.o): New.
17491 (i386-avx.c): Likewise.
17492 (i386-avx-linux.o): Likewise.
17493 (i386-avx-linux.c): Likewise.
17494 (amd64-avx.o): Likewise.
17495 (amd64-avx.c): Likewise.
17496 (amd64-avx-linux.o): Likewise.
17497 (amd64-avx-linux.c): Likewise.
17498
17499 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17500 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17501 (srv_amd64_regobj): Add amd64-avx.o.
17502 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17503 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17504 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17505 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17506 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17507 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17508 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17509
17510 * i387-fp.c: Include "i386-xstate.h".
17511 (i387_xsave): New.
17512 (i387_cache_to_xsave): Likewise.
17513 (i387_xsave_to_cache): Likewise.
17514 (x86_xcr0): Likewise.
17515
17516 * i387-fp.h (i387_cache_to_xsave): Likewise.
17517 (i387_xsave_to_cache): Likewise.
17518 (x86_xcr0): Likewise.
17519
17520 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17521 * linux-crisv32-low.c (target_regsets): Likewise.
17522 * linux-m68k-low.c (target_regsets): Likewise.
17523 * linux-mips-low.c (target_regsets): Likewise.
17524 * linux-ppc-low.c (target_regsets): Likewise.
17525 * linux-s390-low.c (target_regsets): Likewise.
17526 * linux-sh-low.c (target_regsets): Likewise.
17527 * linux-sparc-low.c (target_regsets): Likewise.
17528 * linux-xtensa-low.c (target_regsets): Likewise.
17529
17530 * linux-low.c: Include <sys/uio.h>.
17531 (regsets_fetch_inferior_registers): Support nt_type.
17532 (regsets_store_inferior_registers): Likewise.
17533 (linux_process_qsupported): New.
17534 (linux_target_ops): Add linux_process_qsupported.
17535
17536 * linux-low.h (regset_info): Add nt_type.
17537 (linux_target_ops): Add process_qsupported.
17538
17539 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17540 and <sys/uio.h>.
17541 (init_registers_i386_avx_linux): New.
17542 (init_registers_amd64_avx_linux): Likewise.
17543 (xmltarget_i386_linux_no_xml): Likewise.
17544 (xmltarget_amd64_linux_no_xml): Likewise.
17545 (PTRACE_GETREGSET): Likewise.
17546 (PTRACE_SETREGSET): Likewise.
17547 (x86_fill_xstateregset): Likewise.
17548 (x86_store_xstateregset): Likewise.
17549 (use_xml): Likewise.
17550 (x86_linux_update_xmltarget): Likewise.
17551 (x86_linux_process_qsupported): Likewise.
17552 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17553 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17554 init_registers_i386_linux here. Call
17555 x86_linux_update_xmltarget.
17556 (the_low_target): Add x86_linux_process_qsupported.
17557
17558 * server.c (handle_query): Call target_process_qsupported.
17559
17560 * target.h (target_ops): Add process_qsupported.
17561 (target_process_qsupported): New.
17562
fc7238bb
PA
175632010-04-03 Pedro Alves <pedro@codesourcery.com>
17564
17565 * inferiors.c (add_thread): Set last_status kind to
17566 TARGET_WAITKIND_IGNORE.
17567 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17568 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17569 (linux_wait_1): Move `thread' local definition to block that uses
17570 it. Don't NULL initialize `event_child'.
17571 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17572 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17573 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17574
bdabb078
PA
175752010-04-01 Pedro Alves <pedro@codesourcery.com>
17576
17577 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17578 an extended waitstatus, or by a watchpoint.
17579 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17580 thread was stepping or has been stopped by a watchpoint.
17581
d3bbe7a0
PA
175822010-04-01 Pedro Alves <pedro@codesourcery.com>
17583
17584 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17585 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17586 of another, then delete the previous, and validate all
17587 breakpoints.
17588 (validate_inserted_breakpoint): New.
17589 (delete_disabled_breakpoints): New.
17590 (validate_breakpoints): New.
17591 (check_mem_read): Validate breakpoints before trusting their
17592 shadow. Delete disabled breakpoints.
17593 (check_mem_write): Validate breakpoints before trusting they
17594 should be inserted. Delete disabled breakpoints.
17595 * mem-break.h (validate_breakpoints):
17596 * server.c (handle_query): Validate breakpoints when we see a
17597 qSymbol query.
17598
8b07ae33
PA
175992010-04-01 Pedro Alves <pedro@codesourcery.com>
17600
17601 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17602 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17603 if we could tell there's a GDB breakpoint at stop_pc.
17604 (need_step_over_p): Don't do a step over if we find a GDB
17605 breakpoint at the resume PC.
17606
17607 * mem-break.c (struct raw_breakpoint): New.
17608 (enum bkpt_type): New type `gdb_breakpoint'.
17609 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17610 fields. New field `raw'.
17611 (find_raw_breakpoint_at): New.
17612 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17613 breakpoint instead.
17614 (set_breakpoint_at): Adjust.
17615 (delete_raw_breakpoint): New.
17616 (release_breakpoint): New.
17617 (delete_breakpoint): Rename to...
17618 (delete_breakpoint_1): ... this. Add proc parameter. Use
17619 release_breakpoint. Return ENOENT.
17620 (delete_breakpoint): Reimplement.
17621 (find_breakpoint_at): Delete.
17622 (find_gdb_breakpoint_at): New.
17623 (delete_breakpoint_at): Delete.
17624 (set_gdb_breakpoint_at): New.
17625 (delete_gdb_breakpoint_at): New.
17626 (gdb_breakpoint_here): New.
17627 (set_reinsert_breakpoint): Use release_breakpoint.
17628 (uninsert_breakpoint): Rename to ...
17629 (uninsert_raw_breakpoint): ... this.
17630 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17631 (reinsert_raw_breakpoint): Change parameter type to
17632 raw_breakpoint.
17633 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17634 instead.
17635 (check_breakpoints): Adjust. Use release_breakpoint.
17636 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17637 (breakpoint_inserted_here): Ditto.
17638 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17639 Don't trust the breakpoint's shadow if it is not inserted.
17640 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17641 (delete_all_breakpoints): Adjust.
17642 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17643 use delete_breakpoint_1.
17644
17645 * mem-break.h (breakpoints_supported): Delete declaration.
17646 (set_gdb_breakpoint_at): Declare.
17647 (gdb_breakpoint_here): Declare.
17648 (delete_breakpoint_at): Delete.
17649 (delete_gdb_breakpoint_at): Declare.
17650
17651 * server.h (struct raw_breakpoint): Forward declare.
17652 (struct process_info): New field `raw_breakpoints'.
17653
17654 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17655 breakpoints.
17656
6bf5e0ba
PA
176572010-03-24 Pedro Alves <pedro@codesourcery.com>
17658
17659 * linux-low.c (status_pending_p_callback): Fix comment.
17660 (linux_wait_for_event_1): Move most of the internal breakpoint
17661 handling from here...
17662 (linux_wait_1): ... to here.
17663 (count_events_callback): New.
17664 (select_singlestep_lwp_callback): New.
17665 (select_event_lwp_callback): New.
17666 (cancel_breakpoints_callback): New.
17667 (select_event_lwp): New.
17668 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17669 priority to all LWPs that have had events that should be reported
17670 to the client. Cancel breakpoints when about to reporting the
17671 event to the client, not while stopping lwps. No longer cancel
17672 finished single-steps here.
17673 (cancel_finished_single_step): Delete.
17674 (cancel_finished_single_steps): Delete.
17675
414a389f
PA
176762010-03-24 Pedro Alves <pedro@codesourcery.com>
17677
17678 * mem-break.c (enum bkpt_type): New.
17679 (struct breakpoint): New field `type'.
17680 (set_breakpoint_at): Change return type to struct breakpoint
17681 pointer. Set type to `other_breakpoint' by default.
17682 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17683 in the breakpoint list.
17684 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17685 (reinsert_breakpoint): Rename to ...
17686 (reinsert_raw_breakpoint): ... this.
17687 (reinsert_breakpoints_at): Adjust.
17688 * mem-break.h (struct breakpoint): Declare.
17689 (set_breakpoint_at): Change return type to struct breakpoint
17690 pointer.
17691
2280c721
PA
176922010-03-24 Pedro Alves <pedro@codesourcery.com>
17693
17694 * server.c (handle_query): Assign, not compare.
17695
d50171e4
PA
176962010-03-24 Pedro Alves <pedro@codesourcery.com>
17697
17698 Teach linux gdbserver to step-over-breakpoints.
17699
17700 * linux-low.c (can_hardware_single_step): New.
17701 (supports_breakpoints): New.
17702 (handle_extended_wait): If stopping threads, read the stop pc of
17703 the new cloned LWP.
17704 (get_pc): New.
17705 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17706 low target doesn't support retrieving the PC.
17707 (add_lwp): Set last_resume_kind to resume_continue.
17708 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17709 (linux_attach): Don't clear stop_expected. Set the lwp's
17710 last_resume_kind to resume_stop.
17711 (linux_detach_one_lwp): Don't check for removed breakpoints.
17712 (check_removed_breakpoint): Delete.
17713 (status_pending_p): Rename to ...
17714 (status_pending_p_callback): ... this. Don't check for removed
17715 breakpoints. Don't consider threads that are stopped from GDB's
17716 perspective.
17717 (linux_wait_for_lwp): Always read the stop_pc here.
17718 (cancel_breakpoint): New.
17719 (step_over_bkpt): New global.
17720 (linux_wait_for_event_1): Implement stepping over breakpoints.
17721 (gdb_wants_lwp_stopped): New.
17722 (gdb_wants_all_stopped): New.
17723 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
17724 single-step traps here. Store the thread's last reported target
17725 wait status.
17726 (send_sigstop): Don't clear stop_expected. Always set it,
17727 instead.
17728 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
17729 (cancel_finished_single_step): New.
17730 (cancel_finished_single_steps): New.
17731 (wait_for_sigstop): Don't cancel finished single-step traps here.
17732 (linux_resume_one_lwp): Don't check for removed breakpoints.
17733 Don't set `step' on non-hardware step archs.
17734 (linux_set_resume_request): Ignore resume_stop requests if already
17735 stopping or stopped. Set the lwp's last_resume_kind.
17736 (resume_status_pending_p): Don't check for removed breakpoints.
17737 (need_step_over_p): New.
17738 (start_step_over): New.
17739 (finish_step_over): New.
17740 (linux_resume_one_thread): Always queue a sigstop for resume_stop
17741 requests. Clear the thread's last reported target waitstatus.
17742 Don't use the `suspended' flag. Don't consider pending breakpoints.
17743 (linux_resume): Start a step-over if necessary.
17744 (proceed_one_lwp): New.
17745 (proceed_all_lwps): New.
17746 (unstop_all_lwps): New.
17747 * linux-low.h (struct lwp_info): Rewrite comment for the
17748 `suspended' flag. Add the `stop_pc' field. Delete the
17749 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
17750 Add `'last_resume_kind' and `need_step_over' fields.
17751 * inferiors.c (struct thread_info): Delete, moved elsewhere.
17752 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
17753 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
17754 (set_raw_breakpoint_at): New.
17755 (set_breakpoint_at): Rewrite to use it.
17756 (reinsert_breakpoint_handler): Delete.
17757 (set_reinsert_breakpoint): New.
17758 (reinsert_breakpoint_by_bp): Delete.
17759 (delete_reinsert_breakpoints): New.
17760 (uninsert_breakpoint): Rewrite.
17761 (uninsert_breakpoints_at): New.
17762 (reinsert_breakpoint): Rewrite.
17763 (reinsert_breakpoints_at): New.
17764 (check_breakpoints): Rewrite.
17765 (breakpoint_here): New.
17766 (breakpoint_inserted_here): New.
17767 (check_mem_read): Adjust.
17768 * mem-break.h (breakpoints_supported, breakpoint_here)
17769 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
17770 (reinsert_breakpoint_by_bp): Delete declaration.
17771 (delete_reinsert_breakpoints): Declare.
17772 (reinsert_breakpoint): Delete declaration.
17773 (reinsert_breakpoints_at): Declare.
17774 (uninsert_breakpoint): Delete declaration.
17775 (uninsert_breakpoints_at): Declare.
17776 (check_breakpoints): Adjust prototype.
17777 * server.h: Adjust include order.
17778 (struct thread_info): Declare here. Add a `last_status' field.
17779
30ba68cb
MS
177802010-03-23 Michael Snyder <msnyder@vmware.com>
17781
17782 * server.c (crc32): New function.
17783 (handle_query): Add handling for 'qCRC:' request.
17784
b9a881c2
PA
177852010-03-23 Pedro Alves <pedro@codesourcery.com>
17786
17787 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
17788 lwp had been stopped by a watchpoint.
17789
e92d13d5
PA
177902010-03-16 Pedro Alves <pedro@codesourcery.com>
17791
17792 * server.h (internal_error): Declare.
17793 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
17794 * utils.c (internal_error): New function.
17795
64daa791
AS
177962010-03-15 Andreas Schwab <schwab@redhat.com>
17797
17798 * configure.srv: Fix typo setting srv_regobj.
17799
f52cd8cd
PA
178002010-03-15 Pedro Alves <pedro@codesourcery.com>
17801
17802 * linux-low.c (fetch_register): Avoid passing a non string literal
17803 format to `error'.
17804 (usr_store_inferior_registers): Ditto.
17805
93ae6fdc
PA
178062010-03-14 Pedro Alves <pedro@codesourcery.com>
17807
17808 * linux-low.c (linux_write_memory): Bail out early if peeking
17809 memory failed.
17810
c3adc08c
PA
178112010-03-14 Pedro Alves <pedro@codesourcery.com>
17812
17813 * linux-low.h (struct lwp_info): New fields
17814 `stopped_by_watchpoint' and `stopped_data_address'.
17815 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
17816 here, and cache them in the lwp object.
17817 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
17818 directly.
17819 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
17820 field.
17821 (linux_stopped_by_watchpoint): Rewrite.
17822 (linux_stopped_data_address): Rewrite.
17823
bce522a2
PA
178242010-03-06 Simo Melenius <simo.melenius@iki.fi>
17825
17826 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
17827 switching the current inferior, not before.
17828
90884b2b
L
178292010-03-01 H.J. Lu <hongjiu.lu@intel.com>
17830
17831 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
17832 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
17833 i386-linux.c and amd64-linux.c.
17834 (reg-i386.o): Removed.
17835 (reg-i386.c): Likewise.
17836 (reg-i386-linux.o): Likewise.
17837 (reg-i386-linux.c): Likewise.
17838 (reg-x86-64.o): Likewise.
17839 (reg-x86-64.c): Likewise.
17840 (reg-x86-64-linux.o): Likewise.
17841 (reg-x86-64-linux.c): Likewise.
17842 (i386.o): New.
17843 (i386.c): Likewise.
17844 (i386-linux.o): Likewise.
17845 (i386-linux.c): Likewise.
17846 (amd64.o): Likewise.
17847 (amd64.c): Likewise.
17848 (amd64-linux.o): Likewise.
17849 (amd64-linux.c): Likewise.
17850
17851 * configure.srv (srv_i386_regobj): New.
17852 (srv_i386_linux_regobj): Likewise.
17853 (srv_amd64_regobj): Likewise.
17854 (srv_amd64_linux_regobj): Likewise.
17855 (srv_i386_32bit_xmlfiles): Likewise.
17856 (srv_i386_64bit_xmlfiles): Likewise.
17857 (srv_i386_xmlfiles): Likewise.
17858 (srv_amd64_xmlfiles): Likewise.
17859 (srv_i386_linux_xmlfiles): Likewise.
17860 (srv_amd64_linux_xmlfiles): Likewise.
17861 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
17862 srv_xmlfiles to $srv_i386_xmlfiles.
17863 (i[34567]86-*-mingw32ce*): Likewise.
17864 (i[34567]86-*-mingw*): Likewise.
17865 (i[34567]86-*-nto*): Likewise.
17866 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
17867 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
17868 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
17869 (x86_64-*-linux*): Likewise.
17870
17871 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
17872 (init_registers_amd64_linux): New.
17873 (x86_arch_setup): Replace init_registers_x86_64_linux with
17874 init_registers_amd64_linux.
17875
193f13e6
MK
178762010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
17877
17878 * configure.ac: Check for libdl. If it is not available link against
17879 static libthread_db.
17880 * configure: Regenerate.
17881
85d721b8
PA
178822010-02-22 Pedro Alves <pedro@codesourcery.com>
17883
17884 PR9605
17885
17886 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
17887 handing a read watchpoint.
17888 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
17889
6076632b
DE
178902010-02-12 Doug Evans <dje@google.com>
17891
17892 * linux-low.c (linux_supports_tracefork_flag): Document.
17893 (linux_look_up_symbols): Add comment.
17894
3327ccf7
L
178952010-02-03 H.J. Lu <hongjiu.lu@intel.com>
17896
17897 * regcache.c (supply_register): Clear regcache if buf is NULL.
17898
0718675c 178992010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 17900 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
17901
17902 * inferiors.c (find_inferior): Add function documentation.
17903 (unloaded_dll): Handle the case where the unloaded dll has not
17904 been previously registered in the dll list.
17905
177321bd
DJ
179062010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
17907
17908 * linux-arm-low.c (thumb_breakpoint_len): Delete.
17909 (thumb2_breakpoint): New.
17910 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
17911
2b009048
DJ
179122010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17913
17914 * linux-low.c (get_stop_pc): Check for SIGTRAP.
17915 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
17916 breakpoints.
17917
3be029c7
PA
179182010-01-21 Pedro Alves <pedro@codesourcery.com>
17919
17920 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
17921
18f5de3b
JK
179222010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
17923
17924 * linux-s390-low.c (s390_collect_ptrace_register)
17925 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
17926
3743bb4f
DE
179272010-01-21 Doug Evans <dje@google.com>
17928
14ce3065
DE
17929 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
17930 (PTRACE_ARG4_TYPE): New macro.
17931 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
17932 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
17933 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
17934 (usr_store_inferior_registers): Ditto.
17935 (linux_read_memory, linux_write_memory): Ditto.
17936 (linux_test_for_tracefork): Ditto.
17937
3743bb4f
DE
17938 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
17939 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
17940
8b315be5
PA
179412010-01-21 Pedro Alves <pedro@codesourcery.com>
17942
17943 * proc-service.c (ps_lgetregs): Don't refetch registers from the
17944 target.
17945
85492558
PA
179462010-01-21 Pedro Alves <pedro@codesourcery.com>
17947
17948 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
17949 prototype to take a regcache. Adjust.
17950
442ea881
PA
179512010-01-20 Pedro Alves <pedro@codesourcery.com>
17952
17953 * regcache.h (struct thread_info): Forward declare.
17954 (struct regcache): New.
17955 (new_register_cache): Adjust prototype.
17956 (get_thread_regcache): Declare.
17957 (free_register_cache): Adjust prototype.
17958 (registers_to_string, registers_from_string): Ditto.
17959 (supply_register, supply_register_by_name, collect_register)
17960 (collect_register_as_string, collect_register_by_name): Ditto.
17961 * regcache.c (struct inferior_regcache_data): Delete.
17962 (get_regcache): Rename to ...
17963 (get_thread_regcache): ... this. Adjust. Switch inferior before
17964 fetching registers.
17965 (regcache_invalidate_one): Adjust.
17966 (regcache_invalidate): Fix prototype.
17967 (new_register_cache): Return the new register cache.
17968 (free_register_cache): Change prototype.
17969 (realloc_register_cache): Adjust.
17970 (registers_to_string): Change prototype to take a regcache. Adjust.
17971 (registers_from_string): Ditto.
17972 (register_data): Ditto.
17973 (supply_register): Ditto.
17974 (supply_register_by_name): Ditto.
17975 (collect_register): Ditto.
17976 (collect_register_as_string): Ditto.
17977 (collect_register_by_name): Ditto.
17978 * server.c (process_serial_event): Adjust.
17979 * linux-low.h (regset_fill_func, regset_store_func): Change
17980 prototype.
17981 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
17982 Change prototype.
17983 * linux-low.c (get_stop_pc): Adjust.
17984 (check_removed_breakpoint): Adjust.
17985 (linux_wait_for_event): Adjust.
17986 (linux_resume_one_lwp): Adjust.
17987 (fetch_register): Add regcache parameter. Adjust.
17988 (usr_store_inferior_registers): Ditto.
17989 (regsets_fetch_inferior_registers): Ditto.
17990 (regsets_store_inferior_registers): Ditto.
17991 (linux_fetch_registers, linux_store_registers): Ditto.
17992 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
17993 regcache. Adjust.
43aaf8b6
PA
17994 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
17995 Ditto.
442ea881
PA
17996 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
17997 prototype to take a regcache.
17998 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
17999 * remote-utils.c (convert_ascii_to_int, outreg)
18000 (prepare_resume_reply): Change prototype to take a regcache.
18001 Adjust.
18002 * target.h (struct target_ops) <fetch_registers, store_registers>:
18003 Change prototype to take a regcache.
18004 (fetch_inferior_registers, store_inferior_registers): Change
18005 prototype to take a regcache. Adjust.
18006 * proc-service.c (ps_lgetregs): Adjust.
18007 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18008 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18009 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18010 take a regcache. Adjust.
18011 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18012 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18013 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18014 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18015 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18016 (cris_cannot_fetch_register):
18017 (cris_breakpoint_at): Change prototype to take a regcache.
18018 Adjust.
18019 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18020 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18021 to take a regcache. Adjust.
18022 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18023 Adjust.
18024 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18025 take a regcache. Adjust.
18026 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18027 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18028 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18029 * linux-mips-low.c (mips_get_pc):
18030 (mips_set_pc): Change prototype to take a regcache. Adjust.
18031 (mips_reinsert_addr): Adjust.
18032 (mips_collect_register): Change prototype to take a regcache.
18033 Adjust.
18034 (mips_supply_register):
18035 (mips_collect_register_32bit, mips_supply_register_32bit)
18036 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18037 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18038 * linux-ppc-low.c (ppc_supply_ptrace_register)
18039 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18040 (parse_spufs_run): Adjust.
18041 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18042 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18043 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18044 take a regcache. Adjust.
18045 * linux-s390-low.c (s390_collect_ptrace_register)
18046 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18047 (s390_set_pc): Change prototype to take a regcache. Adjust.
18048 (s390_arch_setup): Adjust.
18049 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18050 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18051 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18052 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18053 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18054 regcache. Adjust.
18055 (sparc_breakpoint_at): Adjust.
18056 * linux-xtensa-low.c (xtensa_fill_gregset):
18057 (xtensa_store_gregset):
18058 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18059 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18060 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18061 prototype to take a regcache. Adjust.
18062 * win32-arm-low.c (arm_fetch_inferior_register)
18063 (arm_store_inferior_register): Change prototype to take a
18064 regcache. Adjust.
18065 * win32-i386-low.c (i386_fetch_inferior_register)
18066 (i386_store_inferior_register): Change prototype to take a
18067 regcache. Adjust.
18068 * win32-low.c (child_fetch_inferior_registers)
18069 (child_store_inferior_registers): Change prototype to take a
18070 regcache. Adjust.
18071 (win32_wait): Adjust.
18072 (win32_fetch_inferior_registers): Change prototype to take a
18073 regcache. Adjust.
18074 (win32_store_inferior_registers): Adjust.
18075 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18076 store_inferior_register>: Change prototype to take a regcache.
18077
60c3d7b0
DE
180782010-01-20 Doug Evans <dje@google.com>
18079
18080 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18081 #ifdef.
18082 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18083 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18084
dc146f7c
VP
180852010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18086
18087 * linux-low.c (linux_core_of_thread): New.
18088 (compare_ints, show_process, list_threads): New.
18089 (linux_qxfer_osdata): Report threads and cores.
18090 (linux_target_op): Register linux_core_of_thread.
18091 * remote-utils.c (prepare_resume_reply): Report the core.
18092 (buffer_xml_printf): Support %d specifier.
18093 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18094 New.
18095 (handle_query): Handle qXfer:threads. Announce availability
18096 thereof.
18097 * target.h (struct target_ops): New field core_of_thread.
18098
7803799a
UW
180992010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18100
18101 * Makefile.in (clean): Remove new generated files.
18102 (reg-s390.o, reg-s390.c): Remove rules.
18103 (reg-s390x.o, reg-s390x.c): Likewise.
18104 (s390-linux32.o, s390-linux32.c): Add rules.
18105 (s390-linux64.o, s390-linux64.c): Likewise.
18106 (s390x-linux64.o, s390x-linux64.c): Likewise.
18107 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18108 * linux-s390-low.c: Include <elf.h>.
18109 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18110 (init_registers_s390): Remove prototype.
18111 (init_registers_s390x): Likewise.
18112 (init_registers_s390_linux32): Add prototype.
18113 (init_registers_s390_linux64): Likewise.
18114 (init_registers_s390x_linux64): Likewise.
18115 (s390_num_regs_3264): New define.
18116 (s390_regmap_3264): New global variable.
18117 (s390_cannot_fetch_register): Remove obsolete check.
18118 (s390_cannot_store_register): Likewise.
18119 (s390_collect_ptrace_register): Handle upper/lower register halves.
18120 (s390_supply_ptrace_register): Likewise.
18121 (s390_fill_gregset): Update to register number changes.
18122 (s390_get_hwcap): New routine.
18123 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18124 Install appropriate regmap and register set.
18125
6e7ffa39
JB
181262010-01-01 Joel Brobecker <brobecker@adacore.com>
18127
18128 * server.c (gdbserver_version): Update copyright year to 2010.
18129 * gdbreplay.c (gdbreplay_version): Likewise.
18130
957f3f49
DE
181312009-12-28 Doug Evans <dje@google.com>
18132
18133 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18134 elf/external.h. Include <elf.h> instead but only if necessary.
18135
ca5c370d
PA
181362009-12-28 Pedro Alves <pedro@codesourcery.com>
18137
18138 * linux-low.c (linux_remove_process): Remove `detaching'
18139 parameter. Don't release/detach from thread_db here.
18140 (linux_kill): Release/detach from thread_db here, ...
18141 (linux_detach): ... and here, before actually detaching.
18142 (linux_wait_1): ... and here, when a process exits.
18143 * thread-db.c (any_thread_of): New.
18144 (thread_db_free): Switch the current inferior to a thread of the
18145 passed in process.
18146
4ee62156
DE
181472009-12-21 Doug Evans <dje@google.com>
18148
d90e6a88
DE
18149 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18150
c5f62d5f
DE
18151 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18152 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18153 warning ifndef __NR_tkill. Move setting of errno there too.
18154 Delete unnecessary resetting of errno after syscall.
18155 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18156
10e86dd7
DE
18157 * configure.ac: Check for dladdr.
18158 * config.in: Regenerate.
18159 * configure: Regenerate.
18160 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18161 (try_thread_db_load): Update.
18162
4ee62156
DE
18163 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18164
00f515da
DE
181652009-12-18 Doug Evans <dje@google.com>
18166
e9464885
DE
18167 * event-loop.c: Include unistd.h if it exists.
18168
07d4f67e
DE
18169 * linux-low.c (my_waitpid): Move definition away from being in
18170 between linux_tracefork_child/linux_test_for_tracefork.
18171
00f515da
DE
18172 * gdb_proc_service.h (psaddr_t): Fix type.
18173 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18174 signature to match glibc.
18175
1de1badb
DE
181762009-12-16 Doug Evans <dje@google.com>
18177
18178 * linux-low.c (linux_read_memory): Fix argument to read.
18179
aeeb81d1
PA
181802009-11-26 Pedro Alves <pedro@codesourcery.com>
18181
18182 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18183 events, don't leave current_inferior pointing at null.
18184
10357975
PA
181852009-11-26 Pedro Alves <pedro@codesourcery.com>
18186
18187 * win32-low.c (LOG): Delete.
18188 (OUTMSG): Output to stderr.
18189 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18190 on compile time LOG macro.
18191 (win32_wait): Fix debug output.
18192
cf6e3471
PA
181932009-11-26 Pedro Alves <pedro@codesourcery.com>
18194
18195 * win32-low.c (win32_add_one_solib): If the dll name is
18196 "ntdll.dll", prepend the system directory to the dll path.
18197
0c85e18e
MK
181982009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18199
18200 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18201
9ac544ce 182022009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18203 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18204
18205 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18206 * configure.ac: Check for __mcoldfire__ and set
18207 gdb_cv_m68k_is_coldfire.
18208 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18209 reg-cf.o and reg-m68k.o.
18210 * configure: Regenerated.
18211
fd7dd3e6
PA
182122009-11-16 Pedro Alves <pedro@codesourcery.com>
18213
18214 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18215 Pass it to thread_db_free.
18216 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18217 proper `detaching' argument to linux_remove_process.
18218 * linux-low.h (thread_db_free): Add `detaching' parameter.
18219 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18220 to thread_db_free.
18221 (thread_db_free): Add `detaching' parameter. Only
18222 call td_ta_clear_event if detaching from process.
18223
75aa492e
MK
182242009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18225
18226 * thread-db.c (thread_db_free): Fix typo.
18227
21e1bee4
PP
182282009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18229
18230 PR gdb/10838
18231 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18232
8838b45e
NS
182332009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18234
18235 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18236 with an i686 compiler.
18237 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18238 needed.
18239 * configure: Rebuilt.
18240
8a35fb51
SL
182412009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18242
18243 PR gdb/10783
18244
18245 * server.c (handle_search_memory_1): Correct read_addr initialization
18246 in loop for searching subsequent chunks.
18247
96f15937
PP
182482009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18249
18250 * configure.ac: New --with-libthread-db option.
18251 * thread-db.c: Allow direct dependence on libthread_db.
18252 (thread_db_free): Adjust.
18253 * config.in: Regenerate.
18254 * configure: Likewise.
889bf7c5 18255
5f7d1694
PP
182562009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18257
18258 PR gdb/10757
18259 * thread-db.c (attach_thread): New function.
18260 (maybe_attach_thread): Return success/failure.
18261 (find_new_threads_callback): Adjust.
889bf7c5
PA
18262 (thread_db_find_new_threads): Loop until no new threads.
18263
88e3b899
PA
182642009-10-13 Pedro Alves <pedro@codesourcery.com>
18265
18266 * proc-service.c (ps_lgetregs): Formatting.
18267
cdbfd419
PP
182682009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18269
18270 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18271 * configure.ac: Adjust.
18272 * linux-low.h (struct process_info_private): Move members to struct
18273 thread_db.
18274 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18275 * linux-low.c (linux_remove_process): Adjust.
18276 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18277 * server.c (handle_query): Move code ...
18278 (handle_monitor_command): ... here. New function.
18279 * target.h (struct target_ops): New member.
18280 * thread-db.c (struct thread_db): New.
18281 (libthread_db_search_path): New variable.
18282 (thread_db_create_event, thread_db_enable_reporting)
18283 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18284 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18285 (try_thread_db_load_1, dladdr_to_soname): New functions.
18286 (try_thread_db_load, thread_db_load_search): New functions.
18287 (thread_db_init): Search for libthread_db.
18288 (thread_db_free): New function.
18289 (thread_db_handle_monitor_command): Likewise.
18290 * config.in: Regenerate.
18291 * configure: Regenerate.
889bf7c5 18292
4168d2d6
UW
182932009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18294
18295 * spu-low.c (spu_kill): Wait for inferior to terminate.
18296 Call clear_inferiors.
18297 (spu_detach): Call clear_inferiors.
18298
81ecdfbb
RW
182992009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18300
18301 * aclocal.m4: Regenerate.
18302 * config.in: Likewise.
18303 * configure: Likewise.
18304
0b9ff2c0
UW
183052009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18306
18307 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18308 (parse_spufs_run): New function.
18309 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18310 (ppc_breakpoint_at): Handle SPU breakpoints.
18311
efcbbd14
UW
183122009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18313
18314 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18315 (SPUFS_MAGIC): Define.
18316 (spu_enumerate_spu_ids): New function.
18317 (linux_qxfer_spu): New function.
18318 (linux_target_ops): Install linux_qxfer_spu.
18319
f4d9bade
UW
183202009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18321
18322 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18323 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18324 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18325 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18326 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18327 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18328 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18329 (init_registers_powerpc_cell32l): Add prototype.
18330 (init_registers_powerpc_cell64l): Likewise.
18331 (ppc_arch_setup): Detect Cell/B.E. architecture.
18332
96e946ca
RW
183332009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18334
18335 * Makefile.in (datarootdir): New variable.
18336
58d6951d
DJ
183372009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18338
18339 * linux-low.c (linux_write_memory): Update debugging output.
18340 * Makefile.in (clean): Add new descriptions.
18341 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18342 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18343 * configure.srv: Add new files for arm*-*-linux*.
18344 * linux-arm-low.c: Add new declarations.
18345 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18346 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18347 (HWCAP_VFPv3D16): New.
18348 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18349 instead of __IWMMXT__.
18350 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18351 (arm_arch_setup): New.
18352 (target_regsets): Remove #ifdef. Add VFP regset.
18353 (the_low_target): Use arm_arch_setup.
18354
12b42a12
DJ
183552009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18356
18357 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18358 the main thread again.
18359
ac8c974e
AR
183602009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18361
18362 Adding Neutrino gdbserver.
18363 * configure: Regenerated.
18364 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18365 * configure.srv (i[34567]86-*-nto*): New target.
18366 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18367 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18368 (nto_comctrl) [__QNX__]: New function.
18369 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18370
4424e0c3 183712009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18372
18373 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18374 srv_tgtobj.
18375
912cf4ba
PA
183762009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18377 Pedro Alves <pedro@codesourcery.com>
18378
18379 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18380 don't support CONTEXT_EXTENDED_REGISTERS.
18381 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18382 (the_low_target): Install them.
18383 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18384 failing with ERROR_PIPE_NOT_CONNECTED.
18385
aa5ca48f
DE
183862009-06-30 Doug Evans <dje@google.com>
18387 Pierre Muller <muller@ics.u-strasbg.fr>
18388
18389 Add h/w watchpoint support to x86-linux, win32-i386.
18390 * Makefile.in (SFILES): Add i386-low.c
18391 (i386_low_h): Define.
18392 (i386-low.o): Add dependencies.
18393 (linux-x86-low.o): Add i386-low.h dependency.
18394 (win32-i386-low.o): Ditto.
18395 * i386-low.c: New file.
18396 * i386-low.h: New file.
18397 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18398 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18399 * linux-low.c (linux_add_process): Initialize arch_private.
18400 (linux_remove_process): Free arch_private.
18401 (add_lwp): Initialize arch_private.
18402 (delete_lwp): Free arch_private.
18403 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18404 provided.
18405 * linux-low.h (process_info_private): New member arch_private.
18406 (lwp_info): New member arch_private.
18407 (linux_target_ops): New members new_process, new_thread,
18408 prepare_to_resume.
18409 (ptid_of): New macro.
18410 * linux-x86-low.c: Include stddef.h, i386-low.h.
18411 (arch_process_info): New struct.
18412 (arch_lwp_info): New struct.
18413 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18414 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18415 (i386_dr_low_get_status): New function.
18416 (x86_insert_point, x86_remove_point): New functions.
18417 (x86_stopped_by_watchpoint): New function.
18418 (x86_stopped_data_address): New function.
18419 (x86_linux_new_process, x86_linux_new_thread): New functions.
18420 (x86_linux_prepare_to_resume): New function.
18421 (the_low_target): Add entries for insert_point, remove_point,
18422 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18423 prepare_to_resume.
18424 * server.c (debug_hw_points): New global.
18425 (monitor_show_help): Document set debug-hw-points.
18426 (handle_query): Process "set debug-hw-points".
18427 * server.h (debug_hw_points): Declare.
18428 (paddress): Declare.
18429 * utils.c (NUMCELLS, CELLSIZE): New macros.
18430 (get_sell, xsnprintf, paddress): New functions.
18431 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18432 remove_point, stopped_by_watchpoint, stopped_data_address.
18433 * win32-i386-low.c: Include i386-low.h.
18434 (debug_reg_state): Replaces dr.
18435 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18436 (i386_dr_low_get_status): New function.
18437 (i386_insert_point, i386_remove_point): New functions.
18438 (i386_stopped_by_watchpoint): New function.
18439 (i386_stopped_data_address): New function.
18440 (i386_initial_stuff): Update.
18441 (get_thread_context,set_thread_context,i386_thread_added): Update.
18442 (the_low_target): Add entries for insert_point,
18443 remove_point, stopped_by_watchpoint, stopped_data_address.
18444 * win32-low.c (win32_insert_watchpoint): New function.
18445 (win32_remove_watchpoint): New function.
18446 (win32_stopped_by_watchpoint): New function.
18447 (win32_stopped_data_address): New function.
18448 (win32_target_ops): Add entries for insert_watchpoint,
18449 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18450 * win32-low.h (win32_target_ops): New members insert_point,
18451 remove_point, stopped_by_watchpoint, stopped_data_address.
18452
d993e290
PA
184532009-06-25 Pedro Alves <pedro@codesourcery.com>
18454
18455 * server.c (process_serial_event): Re-return unsupported, not
18456 error, if the type isn't recognized. Re-allow supporting only
18457 insert or remove packets. Also call require_running for
18458 breakpoints. Add missing break statement to default case. Tidy.
18459 * target.h (struct target_ops): Rename insert_watchpoint to
18460 insert_point, and remove_watchpoint to remove_point.
18461
18462 * linux-low.h (struct linux_target_ops): Likewise.
18463 * linux-low.c (linux_insert_watchpoint): Rename to ...
18464 (linux_insert_point): ... this. Adjust.
18465 (linux_remove_watchpoint): Rename to ...
18466 (linux_remove_point): ... this. Adjust.
18467 (linux_target_ops): Adjust.
18468 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18469 (cris_insert_point): ... this.
18470 (cris_remove_watchpoint): Rename to ...
18471 (cris_remove_point): ... this.
18472 (the_low_target): Adjust.
18473
0f54c268
PM
184742009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18475
18476 * server.c (handle_v_kill): Pass signal_pid to
18477 kill_inferior if multi_process is zero.
18478
c6314022
AR
184792009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18480
18481 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18482 * target.h (target_ops): Comment for *_watchpoint to make it clear
18483 the functions can get types '0' and '1'.
18484
4463ce24
AR
184852009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18486
18487 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18488 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18489 * regcache.c (get_regcache): Likewise.
18490 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18491 * win32-low.c (child_fetch_inferior_registers): Remove check for
18492 regno 0.
18493
cf8fd78b
PA
184942009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18495 Pedro Alves <pedro@codesourcery.com>
18496
18497 * target.h (struct target_ops) <supports_multi_process>: New
18498 callback.
18499 (target_supports_multi_process): New.
18500 * server.c (handle_query): Even if GDB reports support, only
18501 enable multi-process if the target also supports it. Report
18502 multi-process support only if the target backend supports it.
18503 * linux-low.c (linux_supports_multi_process): New function.
18504 (linux_target_ops): Install it as target_supports_multi_process
18505 callback.
18506
47c0c975
DE
185072009-05-24 Doug Evans <dje@google.com>
18508
e09875d4
DE
18509 Global renaming of find_thread_pid to find_thread_ptid.
18510 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18511 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18512 All callers updated.
18513
e27d73f6
DE
18514 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18515 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18516 directly.
18517
47c0c975
DE
18518 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18519 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18520 (linux_resume_one_lwp): Ditto.
18521
2acc282a
DE
185222009-05-23 Doug Evans <dje@google.com>
18523
18524 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18525 from struct inferior_list_entry * to struct lwp_info *.
18526 All callers updated.
18527
9f1036c1
DE
185282009-05-13 Doug Evans <dje@google.com>
18529
18530 * linux-x86-low.c: Don't include assert.h.
18531 (x86_siginfo_fixup): Use fatal, not assert.
18532 (x86_arch_setup): Fix comment.
18533
d0722149
DE
185342009-05-12 Doug Evans <dje@google.com>
18535
18536 Biarch support for i386/amd64 gdbserver.
18537 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18538 Add linux-x86-low.c.
18539 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18540 (linux-x86-low.o): Add.
18541 * linux-x86-64-low.c: Delete.
18542 * linux-i386-low.c: Delete.
18543 * linux-x86-low.c: New file.
18544 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18545 linux-x86-low.o.
18546 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18547 linux-x86-low.o.
18548 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18549 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18550 (linux_child_pid_to_exec_file): New function.
18551 (elf_64_header_p, elf_64_file_p): New functions.
18552 (siginfo_fixup): New function.
18553 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18554 give target a chance to convert layout.
18555 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18556 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18557
fdeb2a12
DE
185582009-05-07 Doug Evans <dje@google.com>
18559
18560 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18561 (regsets_store_inferior_registers): Ditto.
18562
a6dbe5df
PA
185632009-05-06 Pedro Alves <pedro@codesourcery.com>
18564
18565 PR server/10048
18566
18567 * linux-low.c (must_set_ptrace_flags): Delete.
18568 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18569 of the global.
18570 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18571 `lwp->must_set_ptrace_flags' instead.
ba42693b 18572 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
18573 (linux_wait_1): ... not here.
18574
5091eb23
DE
185752009-04-30 Doug Evans <dje@google.com>
18576
9f767825
DE
18577 * inferiors.c (started_inferior_callback): New function.
18578 (attached_inferior_callback): New function.
18579 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18580 * server.c (print_started_pid, print_attached_pid): New functions.
18581 (detach_or_kill_for_exit): New function.
18582 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18583 * server.h (have_started_inferiors_p): Declare.
18584 (have_attached_inferiors_p): Declare.
18585
5091eb23
DE
18586 * inferiors.c (remove_process): Fix memory leak, free process.
18587 * linux-low.c (linux_remove_process): New function.
18588 (linux_kill): Call it instead of remove_process.
18589 (linux_detach, linux_wait_1): Ditto.
18590
155c8968
PA
185912009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18592
18593 * configure.srv: Add x86 Windows CE target.
18594
7fe519cb
UW
185952009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18596
18597 * inferiors.c (get_thread_process): Make global.
18598 * server.h (get_thread_process): Add prototype.
18599 * thread-db.c (find_one_thread): Use get_thread_process
18600 instead of current_process.
18601 (thread_db_get_tls_address): Do not crash if called when
18602 thread layer is not yet initialized.
18603
5472f405
UW
186042009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18605
18606 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18607 * spu-low.c (current_tid): Rename to ...
18608 (current_ptid): ... this.
18609 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18610 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18611 ptid_get_lwp (current_ptid) instead of current_tid.
18612 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18613 instead of current_tid. Use find_process_pid to verify pid
18614 argument is valid. Pass proper argument to remove_process.
18615 (spu_thread_alive): Compare current_ptid instead of current_tid.
18616 (spu_resume): Likewise.
18617
55ac2b99
PA
186182009-04-02 Pedro Alves <pedro@codesourcery.com>
18619
18620 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18621 variable.
18622
95954743
PA
186232009-04-01 Pedro Alves <pedro@codesourcery.com>
18624
18625 Implement the multiprocess extensions, and add linux multiprocess
18626 support.
18627
18628 * server.h (ULONGEST): Declare.
18629 (struct ptid, ptid_t): New.
18630 (minus_one_ptid, null_ptid): Declare.
18631 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18632 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18633 (struct inferior_list_entry): Change `id' type from unsigned from
18634 to ptid_t.
18635 (struct sym_cache, struct breakpoint, struct
18636 process_info_private): Forward declare.
18637 (struct process_info): Declare.
18638 (current_process): Declare.
18639 (all_processes): Declare.
18640 (initialize_inferiors): Declare.
18641 (add_thread): Adjust to use ptid_t.
18642 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18643 (add_process, remove_process, find_thread_pid): Declare.
18644 (find_inferior_id): Adjust to use ptid_t.
18645 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18646 (multi_process): Declare.
18647 (push_event): Adjust to use ptid_t.
18648 (read_ptid, write_ptid): Declare.
18649 (prepare_resume_reply): Adjust to use ptid_t.
18650 (clear_symbol_cache): Declare.
18651 * inferiors.c (all_processes): New.
18652 (null_ptid, minus_one_ptid): New.
18653 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18654 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18655 (add_thread): Change unsigned long to ptid. Remove gdb_id
18656 parameter. Adjust.
18657 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18658 (gdb_id_to_thread): Rename to ...
18659 (find_thread_pid): ... this. Change unsigned long to ptid.
18660 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18661 (loaded_dll, pull_pid_from_list): Adjust.
18662 (add_process, remove_process, find_process_pid)
18663 (get_thread_process, current_process, initialize_inferiors): New.
18664 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18665 (struct target_waitstatus) <related_pid>: Ditto.
18666 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18667 return type to int.
18668 (struct target_ops) <join>: Add `pid' argument.
18669 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18670 (struct target_ops) <wait>: Add `ptid' field. Change return type
18671 to ptid.
18672 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18673 (mywait): Add `ptid' argument. Change return type to ptid_t.
18674 (target_pid_to_str): Declare.
18675 * target.c (set_desired_inferior): Adjust to use ptids.
18676 (mywait): Add new `ptid' argument. Adjust.
18677 (target_pid_to_str): New.
18678 * mem-break.h (free_all_breakpoints): Declare.
18679 * mem-break.c (breakpoints): Delelete.
18680 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18681 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18682 to use per-process breakpoint list.
18683 (free_all_breakpoints): New.
18684 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18685 (symbol_cache, all_symbols_looked_up): Delete.
18686 (hexchars): New.
18687 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18688 read_ptid): New.
18689 (prepare_resume_reply): Change ptid argument's type from unsigned
18690 long to ptid_t. Adjust. Implement W;process and X;process.
18691 (free_sym_cache, clear_symbol_cache): New.
18692 (look_up_one_symbol): Adjust to per-process symbol cache. *
18693 * server.c (cont_thread, general_thread, step_thread): Change type
18694 to ptid_t.
18695 (attached): Delete.
18696 (multi_process): New.
18697 (last_ptid): Change type to ptid_t.
18698 (struct vstop_notif) <ptid>: Change type to ptid_t.
18699 (queue_stop_reply, push_event): Change `ptid' argument's type to
18700 ptid_t.
18701 (discard_queued_stop_replies): Add `pid' argument.
18702 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18703 changes. Don't reference the `attached' global.
18704 (attach_inferior): Adjust to mywait interface changes.
18705 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18706 features. Handle and report "multiprocess+". Handle
18707 "qAttached:PID".
18708 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18709 changes.
18710 (handle_v_kill): New.
18711 (handle_v_stopped): Adjust to use target_pid_to_str.
18712 (handle_v_requests): Allow multiple attaches and runs when
18713 multiprocess extensions are in effect. Handle "vKill".
18714 (myresume): Adjust to use ptids.
18715 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
18716 (handle_status): Adjust to discard_queued_stop_replies interface
18717 change.
18718 (first_thread_of, kill_inferior_callback)
18719 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
18720 (main): Call initialize_inferiors. Adjust to use ptids, killing
18721 and detaching from all inferiors. Handle multiprocess packet
18722 variants.
18723 * linux-low.h: Include gdb_proc_service.h.
18724 (struct process_info_private): New.
18725 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
18726 <lwpid_of>: Use ptid_get_lwp.
18727 (get_lwp_thread): Adjust.
18728 (struct lwp_info): Add `dead' member.
18729 (find_lwp_pid): Declare.
18730 * linux-low.c (thread_db_active): Delete.
18731 (new_inferior): Adjust comment.
18732 (inferior_pid): Delete.
18733 (linux_add_process): New.
18734 (handle_extended_wait): Adjust.
18735 (add_lwp): Change unsigned long to ptid.
18736 (linux_create_inferior): Add process to processes table. Adjust
18737 to use ptids. Don't set new_inferior here.
18738 (linux_attach_lwp): Rename to ...
18739 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
18740 it. Adjust to use ptids.
18741 (linux_attach_lwp): New.
18742 (linux_attach): Add process to processes table. Don't set
18743 new_inferior here.
18744 (struct counter): New.
18745 (second_thread_of_pid_p, last_thread_of_process_p): New.
18746 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
18747 multiple processes.
18748 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
18749 processes. Remove process from process table.
18750 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
18751 to multiple processes.
18752 (any_thread_of): New.
18753 (linux_detach): Add `pid' argument, and handle it. Remove process
18754 from processes table.
18755 (linux_join): Add `pid' argument. Handle it.
18756 (linux_thread_alive): Change unsighed long argument to ptid_t.
18757 Consider dead lwps as not being alive.
18758 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
18759 threads we're not interested in.
18760 (same_lwp, find_lwp_pid): New.
18761 (linux_wait_for_lwp): Change `pid' argument's type from int to
18762 ptid_t. Adjust.
18763 (linux_wait_for_event): Rename to ...
18764 (linux_wait_for_event_1): ... this. Change `pid' argument's type
18765 from int to ptid_t. Adjust.
18766 (linux_wait_for_event): New.
18767 (linux_wait_1): Add `ptid' argument. Change return type to
18768 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
18769 that exit from the process table.
18770 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
18771 Adjust.
18772 (mark_lwp_dead): New.
18773 (wait_for_sigstop): Adjust to use ptids. If a process exits while
18774 stopping all threads, mark its main lwp as dead.
18775 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
18776 ptids.
18777 (fetch_register, usr_store_inferior_registers)
18778 (regsets_fetch_inferior_registers)
18779 (regsets_store_inferior_registers, linux_read_memory)
18780 (linux_write_memory): Inline `inferior_pid'.
18781 (linux_look_up_symbols): Adjust to use per-process
18782 `thread_db_active'.
18783 (linux_request_interrupt): Adjust to use ptids.
18784 (linux_read_auxv): Inline `inferior_pid'.
18785 (initialize_low): Don't reference thread_db_active.
18786 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
18787 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
18788 (ps_getpid): Return the pid of the current inferior.
18789 * thread-db.c (proc_handle, thread_agent): Delete.
18790 (thread_db_create_event, thread_db_enable_reporting): Adjust to
18791 per-process data.
18792 (find_one_thread): Change argument type to ptid_t. Adjust to
18793 per-process data.
18794 (maybe_attach_thread): Adjust to per-process data and ptids.
18795 (thread_db_find_new_threads): Ditto.
18796 (thread_db_init): Ditto.
18797 * spu-low.c (spu_create_inferior, spu_attach): Add process to
18798 processes table. Adjust to use ptids.
18799 (spu_kill, spu_detach): Adjust interface. Remove process from
18800 processes table.
18801 (spu_join, spu_thread_alive): Adjust interface.
18802 (spu_wait): Adjust interface. Remove process from processes
18803 table. Adjust to use ptids.
18804 * win32-low.c (current_inferior_tid): Delete.
18805 (current_inferior_ptid): New.
18806 (debug_event_ptid): New.
18807 (thread_rec): Take a ptid. Adjust.
18808 (child_add_thread): Add `pid' argument. Adjust to use ptids.
18809 (child_delete_thread): Ditto.
18810 (do_initial_child_stuff): Add `attached' argument. Add process to
18811 processes table.
18812 (child_fetch_inferior_registers, child_store_inferior_registers):
18813 Adjust.
18814 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
18815 (win32_attach): Pass 1 to do_initial_child_stuff.
18816 (win32_kill): Adjust interface. Remove process from processes
18817 table.
18818 (win32_detach): Ditto.
18819 (win32_join): Adjust interface.
18820 (win32_thread_alive): Take a ptid.
18821 (win32_resume): Adjust to use ptids.
18822 (get_child_debug_event): Ditto.
18823 (win32_wait): Adjust interface. Remove exiting process from
18824 processes table.
18825
bd99dc85
PA
188262009-04-01 Pedro Alves <pedro@codesourcery.com>
18827
18828 Non-stop mode support.
18829
18830 * server.h (non_stop): Declare.
18831 (gdb_client_data, handler_func): Declare.
18832 (delete_file_handler, add_file_handler, start_event_loop):
18833 Declare.
18834 (handle_serial_event, handle_target_event, push_event)
18835 (putpkt_notif): Declare.
18836 * target.h (enum resume_kind): New.
18837 (struct thread_resume): Replace `step' field by `kind' field.
18838 (TARGET_WNOHANG): Define.
18839 (struct target_ops) <wait>: Add `options' argument.
18840 <supports_non_stop, async, start_non_stop>: New fields.
18841 (target_supports_non_stop, target_async): New.
18842 (start_non_stop): Declare.
18843 (mywait): Add `options' argument.
18844 * target.c (mywait): Add `options' argument. Print child exit
18845 notifications here.
18846 (start_non_stop): New.
18847 * server.c (non_stop, own_buf, mem_buf): New globals.
18848 (struct vstop_notif): New.
18849 (notif_queue): New global.
18850 (queue_stop_reply, push_event, discard_queued_stop_replies)
18851 (send_next_stop_reply): New.
18852 (start_inferior): Adjust to use resume_kind. Adjust to mywait
18853 interface changes.
18854 (attach_inferior): In non-stop mode, don't wait for the target
18855 here.
18856 (handle_general_set): Handle QNonStop.
18857 (handle_query): When handling qC, return the current general
18858 thread, instead of the first thread of the list.
18859 (handle_query): If the backend supports non-stop mode, include
18860 QNonStop+ in the qSupported query response.
18861 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
18862 and non-stop mode.
18863 (handle_v_attach, handle_v_run): Handle non-stop mode.
18864 (handle_v_stopped): New.
18865 (handle_v_requests): Report support for vCont;t. Handle vStopped.
18866 (myresume): Adjust to use resume_kind. Handle non-stop.
18867 (queue_stop_reply_callback): New.
18868 (handle_status): Handle non-stop mode.
18869 (main): Clear non_stop flag on reconnection. Use the event-loop.
18870 Refactor serial protocol handling from here ...
18871 (process_serial_event): ... to this new function. When GDB
18872 selects any thread, select one here. In non-stop mode, wait until
18873 GDB acks all pending events before exiting.
18874 (handle_serial_event, handle_target_event): New.
18875 * remote-utils.c (remote_open): Install remote_desc in the event
18876 loop.
18877 (remote_close): Remove remote_desc from the event loop.
18878 (putpkt_binary): Rename to...
18879 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
18880 (putpkt_binary): New as wrapper around putpkt_binary_1.
18881 (putpkt_notif): New.
18882 (prepare_resume_reply): In non-stop mode, don't change the
18883 general_thread.
18884 * event-loop.c: New.
18885 * Makefile.in (OBJ): Add event-loop.o.
18886 (event-loop.o): New rule.
18887
18888 * linux-low.h (pid_of): Moved here.
18889 (lwpid_of): New.
18890 (get_lwp_thread): Use lwpid_of.
18891 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
18892 * linux-low.c (pid_of): Delete.
18893 (inferior_pid): Use lwpid_of.
18894 (linux_event_pipe): New.
18895 (target_is_async_p): New.
18896 (delete_lwp): New.
18897 (handle_extended_wait): Use lwpid_of.
18898 (add_lwp): Don't set lwpid field.
18899 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
18900 (linux_kill_one_lwp): If killing a running lwp, stop it first.
18901 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
18902 (linux_detach_one_lwp): If detaching from a running lwp, stop it
18903 first. Adjust to linux_wait_for_event interface changes. Use
18904 lwpid_of.
18905 (linux_detach): Don't delete the main lwp here.
18906 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
18907 (status_pending_p): Don't consider explicitly suspended lwps.
18908 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
18909 pointer. Add OPTIONS argument. Change return type to int. Use
18910 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
18911 (linux_wait_for_event): Take an integer pid instead of a lwp_info
18912 pointer. Add status pointer argument. Return a pid instead of a
18913 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
18914 changes. In non-stop mode, don't switch to a random thread.
18915 (linux_wait): Rename to...
18916 (linux_wait_1): ... this. Add target_options argument, and handle
18917 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
18918 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
18919 clean exit and signal exit code. Don't stop all threads in
18920 non-stop mode. In all-stop mode, only stop all threads when
18921 reporting a stop to GDB. Handle explicit thread stop requests.
18922 (async_file_flush, async_file_mark): New.
18923 (linux_wait): New.
18924 (send_sigstop): Use lwpid_of.
18925 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
18926 interface changes. In non-stop mode, don't switch to a random
18927 thread.
18928 (linux_resume_one_lwp): Use lwpid_of.
18929 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
18930 (linux_resume_one_thread): ... this. Handle resume_stop. In
18931 non-stop mode, don't look for pending flag in all threads.
18932 (resume_status_pending_p): Don't consider explicitly suspended
18933 threads.
18934 (my_waitpid): Reimplement. Emulate __WALL.
18935 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
18936 Use lwpid_of.
18937 (sigchld_handler, linux_supports_non_stop, linux_async)
18938 (linux_start_non_stop): New.
18939 (linux_target_ops): Register linux_supports_non_stop, linux_async
18940 and linux_start_non_stop.
18941 (initialize_low): Install SIGCHLD handler.
18942 * thread-db.c (thread_db_create_event, find_one_thread)
18943 (thread_db_get_tls_address): Use lwpid_of.
18944 * win32-low.c (win32_detach): Adjust to use resume_kind.
18945 (win32_wait): Add `options' argument.
18946 * spu-low.c (spu_resume): Adjust to use resume_kind.
18947 (spu_wait): Add `options' argument.
18948
5b1c542e
PA
189492009-04-01 Pedro Alves <pedro@codesourcery.com>
18950
18951 Decouple target code from remote protocol.
18952
18953 * target.h (enum target_waitkind): New.
18954 (struct target_waitstatus): New.
18955 (struct target_ops) <wait>: Return an unsigned long. Take a
18956 target_waitstatus pointer instead of a char pointer.
18957 (mywait): Likewise.
18958 * target.c (mywait): Change prototype to return an unsigned long.
18959 Take a target_waitstatus pointer instead of a char pointer. Adjust.
18960 * server.h (thread_from_wait, old_thread_from_wait): Delete
18961 declarations.
18962 (prepare_resume_reply): Change prototype to take a
18963 target_waitstatus.
18964 * server.c (thread_from_wait, old_thread_from_wait): Delete.
18965 (last_status, last_ptid): New.
18966 (start_inferior): Remove "statusptr" argument. Adjust. Return a
18967 pid instead of a signal.
18968 (attach_inferior): Remove "status" and "signal" parameters.
18969 Adjust.
18970 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
18971 not as an address.
18972 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
18973 (handle_v_requests, myresume): Remove "status" and "signal"
18974 parameters. Adjust.
18975 (handle_status): New.
18976 (main): Delete local `status'. Adjust.
18977 * remote-utils.c: Include target.h.
18978 (prepare_resume_reply): Change prototype to take a
18979 target_waitstatus. Adjust.
18980
18981 * linux-low.c (linux_wait): Adjust to new target_ops->wait
18982 interface.
18983 * spu-low.c (spu_wait): Adjust.
18984 * win32-low.c (enum target_waitkind, struct target_waitstatus):
18985 Delete.
18986 (win32_wait): Adjust.
18987
2bd7c093
PA
189882009-04-01 Pedro Alves <pedro@codesourcery.com>
18989
18990 * target.h (struct thread_resume): Delete leave_stopped member.
18991 (struct target_ops): Add a `n' argument to the `resume' callback.
18992 * server.c (start_inferior): Adjust.
18993 (handle_v_cont, myresume): Adjust.
18994 * linux-low.c (check_removed_breakpoint): Adjust to resume
18995 interface change, and to removed leave_stopped field.
18996 (resume_ptr): Delete.
18997 (struct thread_resume_array): New.
18998 (linux_set_resume_request): Add new `arg' parameter. Adjust to
18999 resume interface change.
19000 (linux_continue_one_thread, linux_queue_one_thread)
19001 (resume_status_pending_p): Check if the resume field is NULL
19002 instead of checking the leave_stopped member.
19003 (linux_resume): Adjust to the target resume interface change.
19004 * spu-low.c (spu_resume): Adjust to the target resume interface
19005 change.
19006 * win32-low.c (win32_detach, win32_resume): Ditto.
19007
c35fafde
PA
190082009-04-01 Pedro Alves <pedro@codesourcery.com>
19009
19010 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19011 flag.
19012 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19013 pending.
19014 (linux_continue_one_thread): Only preserve the stepping flag if
19015 there's a pending breakpoint.
19016
0a59d50b
PA
190172009-03-31 Pedro Alves <pedro@codesourcery.com>
19018
19019 * server.c (main): After the inferior having exited, call
19020 remote_close before exiting gdbserver.
19021
f04c6d38
TJB
190222009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19023
19024 Fix size of FPSCR in Power 7 processors.
19025 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19026 (PPC_FEATURE_HAS_DFP): New #define.
19027 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19028 size of the FPSCR.
19029
78e5cee6
PA
190302009-03-23 Pedro Alves <pedro@codesourcery.com>
19031
19032 * server.c (handle_query) Whitespace and formatting.
19033
1b3f6016
PA
190342009-03-22 Pedro Alves <pedro@codesourcery.com>
19035
19036 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19037 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19038 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19039 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19040 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19041 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19042 Makefile.in, configure.ac: Fix whitespace throughout.
19043 * configure: Regenerate.
19044
a07b2135
PA
190452009-03-22 Pedro Alves <pedro@codesourcery.com>
19046
19047 * inferiors.c (find_inferior): Make it safe for the callback
19048 function to delete the currently iterated inferior.
19049
67cc2626
PA
190502009-03-22 Pedro Alves <pedro@codesourcery.com>
19051
19052 * Makefile.in (linuw_low_h): Move higher.
19053 (thread-db.o): Depend on $(linux_low_h).
19054
54a0b537
PA
190552009-03-17 Pedro Alves <pedro@codesourcery.com>
19056
19057 Rename "process" to "lwp" throughout.
19058
19059 * linux-low.c (all_processes): Rename to...
19060 (all_lwps): ... this.
19061 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19062 (add_process): Rename to ...
19063 (add_lwp): ... this. Adjust.
19064 (linux_create_inferior): Adjust.
19065 (linux_attach_lwp): Adjust.
19066 (linux_attach): Adjust.
19067 (linux_kill_one_process): Rename to ...
19068 (linux_kill_one_lwp): ... this. Adjust.
19069 (linux_kill): Adjust.
19070 (linux_detach_one_process): Rename to ...
19071 (linux_detach_one_lwp): ... this. Adjust.
19072 (linux_detach): Adjust.
19073 (check_removed_breakpoint): Adjust.
19074 (status_pending_p): Adjust.
19075 (linux_wait_for_process): Rename to ...
19076 (linux_wait_for_lwp): ... this. Adjust.
19077 (linux_wait_for_event): Adjust.
19078 (send_sigstop): Adjust.
19079 (wait_for_sigstop): Adjust.
19080 (stop_all_processes): Rename to ...
19081 (stop_all_lwps): ... this.
19082 (linux_resume_one_process): Rename to ...
19083 (linux_resume_one_lwp): ... this. Adjust.
19084 (linux_set_resume_request, linux_continue_one_thread)
19085 (linux_queue_one_thread, resume_status_pending_p)
19086 (usr_store_inferior_registers, regsets_store_inferior_registers)
19087 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19088 Adjust.
19089 * linux-low.h (get_process): Rename to ...
19090 (get_lwp): ... this. Adjust.
19091 (get_thread_process): Rename to ...
19092 (get_thread_lwp): ... this. Adjust.
19093 (get_process_thread): Rename to ...
19094 (get_lwp_thread): ... this. Adjust.
19095 (struct process_info): Rename to ...
19096 (struct lwp_info): ... this.
19097 (all_processes): Rename to ...
19098 (all_lwps): ... this.
19099 * proc-service.c (ps_lgetregs): Adjust.
19100 * thread-db.c (thread_db_create_event, find_one_thread)
19101 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19102
0b16c5cf
PA
191032009-03-14 Pedro Alves <pedro@codesourcery.com>
19104
19105 * server.c (handle_query): Handle "qAttached".
19106
32de4b9d
NS
191072009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19108
19109 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19110 GPLv3, update license URL.
19111
2aecd87f
DE
191122009-03-01 Doug Evans <dje@google.com>
19113
93efd302 19114 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19115 (server_h): Add gdb_signals.h.
19116 (signals.o): Update.
19117 * server.h (target_signal_from_host,target_signal_to_host_p)
19118 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19119
86b1f9c5
PM
191202009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19121
19122 * remote-utils.c (getpkt): Also generate remote-debug
19123 information if noack_mode is set.
19124
4aa995e1
PA
191252009-02-06 Pedro Alves <pedro@codesourcery.com>
19126
19127 * server.c (handle_query): Report qXfer:siginfo:read and
19128 qXfer:siginfo:write as supported and handle them.
19129 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19130 * linux-low.c (linux_xfer_siginfo): New.
19131 (linux_target_ops): Set it.
19132
62709adf
PA
191332009-01-26 Pedro Alves <pedro@codesourcery.com>
19134
19135 * server.c (gdbserver_usage): Mention --remote-debug.
19136 (main): Accept '--remote-debug' switch.
19137
aef93bd7
DE
191382009-01-18 Doug Evans <dje@google.com>
19139
19140 * regcache.c (new_register_cache): No need to check result of xcalloc.
19141 * server.c (handle_search_memory): Back out calls to xmalloc,
19142 result is checked and error is returned to user upon failure.
19143 (handle_query): Ditto. Add more checks for result of malloc.
19144 (handle_v_cont): Check result of malloc, report error back to
19145 user upon failure.
19146 (handle_v_run): Ditto. Call freeargv.
19147 * server.h (freeargv): Declare.
19148 * utils.c (freeargv): New fn.
19149
54363045
DE
191502009-01-15 Doug Evans <dje@google.com>
19151
f626972c
DE
19152 * gdbreplay.c (perror_with_name): Make arg const char *.
19153 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19154 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19155 * utils.c (perror_with_name): Make arg const char *.
54363045 19156
18aae699
PA
191572009-01-14 Pedro Alves <pedro@codesourcery.com>
19158
19159 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19160 when handling a EXIT_PROCESS_DEBUG_EVENT.
19161
ff703abe
JB
191622009-01-06 Joel Brobecker <brobecker@adacore.com>
19163
19164 * gdbreplay.c (gdbreplay_version): Update copyright year.
19165 * server.c (gdbserver_version): Likewise.
19166
f21cc1a2 191672009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19168
19169 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19170 (handle_extended_wait): Improve comment.
0e21c1ec 19171
bca929d3
DE
191722008-12-13 Doug Evans <dje@google.com>
19173
19174 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19175 * server.h (ATTR_MALLOC): New macro.
19176 (xmalloc,xcalloc,xstrdup): Declare.
19177 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19178 * inferiors.c: Ditto.
19179 * linux-low.c: Ditto.
19180 * mem-break.c: Ditto.
19181 * regcache.c: Ditto.
19182 * remote-utils.c: Ditto.
19183 * server.c: Ditto.
19184 * target.c: Ditto.
19185 * win32-low.c: Ditto.
19186
97438e3f
DE
191872008-12-12 Doug Evans <dje@google.com>
19188
896c7fbb
DE
19189 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19190 in debugging printf.
19191
97438e3f
DE
19192 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19193
e3b886f8
DE
191942008-12-09 Doug Evans <dje@google.com>
19195
19196 * linux-low.h (struct process_info): Delete member tid, unused.
19197 * thread-db.c (find_one_thread): Update.
19198 (maybe_attach_thread): Update.
19199
07e059b5
VP
192002008-12-02 Pedro Alves <pedro@codesourcery.com>
19201
889bf7c5
PA
19202 * target.h (struct target_ops): Add qxfer_osdata member.
19203 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19204 and dirent.h.
19205 (linux_qxfer_osdata): New functions.
19206 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19207 callback.
19208 * server.c (handle_query): Handle "qXfer:osdata:read:".
19209 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19210 (buffer_xml_printf): New functions.
19211 * server.h (struct buffer): New.
19212 (buffer_grow_str, buffer_grow_str0): New macros.
19213 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19214 (buffer_xml_printf): Declare.
07e059b5 19215
4cab47ab
DE
192162008-11-24 Doug Evans <dje@google.com>
19217
19218 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19219
f142445f
DJ
192202008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19221
19222 * server.c (handle_v_run): Always use the supplied argument list.
19223
d0107bb6 192242008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19225
d0107bb6
BW
19226 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19227 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19228
2c4ad781
TJB
192292008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19230
19231 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19232 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19233 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19234 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19235 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19236 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19237 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19238 XML target descriptions.
19239 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19240 when inferior is running on an ISA 2.05 or later processor. Add
19241 special case to return offset for full 64-bit slot of FPSCR when
19242 in 32-bits.
19243
dfb64f85
DJ
192442008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19245
19246 * Makefile.in (SFILES, clean): Added sparc64 files.
19247 (reg-sparc64.o, reg-sparc64.c): New.
19248 * configure.srv (sparc*-*-linux*): New configuration.
19249 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19250 syscall arguments for SPARC.
19251 (regsets_store_inferior_registers): Likewise.
19252 * linux-sparc-low.c: New file.
19253
66b6e1dd
DE
192542008-10-21 Doug Evans <dje@google.com>
19255
19256 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19257 (READLINE_DIR,READLINE_DEP): Delete.
19258 (INTERNAL_CFLAGS): Update.
19259 (LINTFLAGS): Update.
19260
9b710a42
PA
192612008-10-10 Pedro Alves <pedro@codesourcery.com>
19262
19263 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19264 whole argv from the last run, not just argv[0].
19265
5822d809
PA
192662008-09-08 Pedro Alves <pedro@codesourcery.com>
19267
19268 * regcache.c (new_register_cache): Return NULL if the register
19269 cache size isn't known yet.
19270 (free_register_cache): Avoid dereferencing a NULL regcache.
19271
74aac56f
DJ
192722008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19273
19274 * configure.srv: Merge MIPS and MIPS64.
19275
400b20f5
MR
192762008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19277
19278 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19279
677c5bb1
LM
192802008-08-18 Luis Machado <luisgpm@br.ibm.com>
19281
19282 * Makefile.in: Add required vsx dependencies.
19283
19284 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19285 Declare init_registers_powerpc_vsx32l.
19286 Declare init_registers_powerpc_vsx64l.
19287 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19288 (ppc_arch_setup): Check for VSX in hwcap.
19289 (ppc_fill_vsxregset): New function.
19290 (ppc_store_vsxregset): New function.
19291 Add new VSX entry in regset_info target_regsets.
19292
19293 * configure.srv: Add new VSX dependencies.
19294
a6f3e723
SL
192952008-08-12 Pedro Alves <pedro@codesourcery.com>
19296
19297 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19298 (remote_open): Set or clear transport_is_reliable.
19299 (putpkt_binary): Don't expect acks in noack mode.
19300 (getpkt): Don't send ack/nac in noack mode.
19301 * server.c (handle_general_set): Handle QStartNoAckMode.
19302 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19303 qSupported.
19304 (main): Reset noack_mode on every connection.
19305 * server.h (noack_mode): Declare.
19306
a417dc56
RW
193072008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19308
19309 * Makefile.in (GDBREPLAY_OBS): New variable.
19310 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19311
3221518c
UW
193122008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19313 Daniel Jacobowitz <dan@codesourcery.com>
19314
19315 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19316 (usr_store_inferior_registers): Likewise.
19317 (regsets_store_inferior_registers): Likewise.
19318
ec56be1b
PA
193192008-07-31 Rolf Jansen <rj@surtec.com>
19320 Pedro Alves <pedro@codesourcery.com>
19321
19322 * configure.ac: Check for memmem declaration.
19323 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19324 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19325 (disable_packet_qfThreadInfo): Unconditionally compile.
19326 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19327 * configure, config.in: Regenerate.
19328
2fe5e3ff
DE
193292008-07-28 Doug Kwan <dougkwan@google.com>
19330
19331 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19332 (linux_write_memory): Remove declaration of errno.
19333
836acd6d
UW
193342008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19335
19336 * linux-low.c (handle_extended_wait): Do not use "status"
19337 variable uninitialized.
19338
aeba519e
PA
193392008-07-07 Pedro Alves <pedro@codesourcery.com>
19340
19341 * server.c (handle_v_attach): Inhibit reporting dll changes.
19342
db42f210
PA
193432008-06-27 Pedro Alves <pedro@codesourcery.com>
19344
19345 * remote-utils.c (prepare_resume_reply): If requested, don't
19346 output "thread:TID" in the T stop reply.
19347
19348 * server.c (disable_packet_vCont, disable_packet_Tthread)
19349 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19350 (handle_query): If requested, disable support for qC, qfThreadInfo
19351 and qsThreadInfo.
19352 (handle_v_requests): If requested, disable support for vCont.
19353 (gdbserver_show_disableable): New.
19354 (main): Handle --disable-packet and --disable-packet=LIST.
19355
19356 * server.h (disable_packet_vCont, disable_packet_Tthread)
19357 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19358
8e4c5421
CD
193592008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19360
19361 * server.c (gdbserver_usage): Mention --version.
19362
6e23a804
DJ
193632008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19364
19365 * Makefile.in (gdbreplay.o): New rule.
19366
90aa6a40
JM
193672008-06-06 Joseph Myers <joseph@codesourcery.com>
19368
19369 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19370 message, not gdbserver.
19371
c16158bc 193722008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19373 Nathan Sidwell <nathan@codesourcery.com>
19374 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19375
19376 * acinclude.m4: Include ../../config/acx.m4.
19377 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19378 * configure, config.in: Regenerate.
19379 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19380 * server.c (gdbserver_version): Print PKGVERSION.
19381 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19382 (main): Adjust gdbserver_usage calls.
19383 * gdbreplay.c (version, host_name): Add declarations.
19384 (gdbreplay_version, gdbreplay_usage): New.
19385 (main): Accept --version and --help options.
19386
aeb75bf5
DJ
193872008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19388
19389 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19390 (arm_breakpoint_at): Handle Thumb.
19391 (the_low_target): Add comment.
19392
76b233dd
UW
193932008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19394
19395 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19396
08388c79
DE
193972008-05-09 Doug Evans <dje@google.com>
19398
a3c83fae
DE
19399 * server.h (decode_search_memory_packet): Declare.
19400 * remote-utils.c (decode_search_memory_packet): New fn.
19401 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19402 (handle_search_memory): New fn.
19403 (handle_query): Process qSearch:memory packets.
19404
bb9c3d36
UW
194052008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19406
19407 * regcache.c (registers_length): Remove.
19408 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19409 full register packet.
19410 * regcache.h (registers_length): Remove prototype.
19411 * server.h (PBUFSIZ): Define to 16384.
19412
7284e1be
UW
194132008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19414
19415 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19416 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19417 powerpc-64l.o, and powerpc-altivec64l.o.
19418 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19419 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19420 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19421 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19422 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19423 to srv_xmlfiles.
19424
19425 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19426 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19427 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19428 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19429 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19430 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19431 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19432 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19433 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19434 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19435 (clean): Update.
19436
19437 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19438 (init_registers_powerpc_32l): ... this new prototype.
19439 (init_registers_powerpc_32): Remove, replace by ...
19440 (init_registers_powerpc_altivec32l): ... this new prototype.
19441 (init_registers_powerpc_e500): Remove, replace by ...
19442 (init_registers_powerpc_e500l): ... this new prototype.
19443 (init_registers_ppc64): Remove, replace by ...
19444 (init_registers_powerpc_64l): ... this new prototype.
19445 (init_registers_powerpc_64): Remove, replace by ...
19446 (init_registers_powerpc_altivec64l): ... this new prototype.
19447 (ppc_num_regs): Set to 73.
19448 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19449 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19450 (ppc_cannot_store_register): Handle orig_r3 and trap.
19451 (ppc_arch_setup): Update init_registers_... calls.
19452 (ppc_fill_gregset): Handle orig_r3 and trap.
19453
19454 * inferiors.c (clear_inferiors): Reset current_inferior.
19455
fdc59709
PB
194562008-04-23 Paolo Bonzini <bonzini@gnu.org>
19457
889bf7c5
PA
19458 * acinclude.m4: Add override.m4.
19459 * configure: Regenerate.
fdc59709 19460
c9b2f845
UW
194612008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19462
19463 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19464 initial call to init_register_ppc64.
19465
550512b8
UW
194662008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19467
43aaf8b6
PA
19468 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19469 single powerpc*-*-linux* case.
550512b8
UW
19470 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19471
b6430ec3
UW
194722008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19473
19474 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 19475 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
19476 from reg_xmlfiles.
19477 * linux-ppc-low.c: Include <elf.h>.
19478 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19479 (ppc_hwcap): New global variable.
19480 (ppc_regmap): Remove __SPE__ #ifdef sections.
19481 (ppc_regmap_e500): New global variable.
19482 (ppc_cannot_store_register): Update __SPE__ special case.
19483 (ppc_get_hwcap): New function.
19484 (ppc_arch_setup): Use it to determine whether inferior supports
19485 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19486 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19487 Do not access registers if target does not support AltiVec.
19488 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19489 Do not access registers if target does not support SPE.
19490 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19491
52fa2412
UW
194922008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19493
19494 * linux-low.c (disabled_regsets, num_regsets): New.
19495 (use_regsets_p): Delete.
19496 (linux_wait_for_process): Clear disabled_regsets.
19497 (regsets_fetch_inferior_registers): Check and set it.
19498 (regsets_store_inferior_registers): Likewise.
19499 (linux_fetch_registers, linux_store_registers): Do not use
19500 use_regsets_p.
19501 (initialize_low): Allocate disabled_regsets.
19502
e28b3332
DJ
195032008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19504
19505 * Makefile.in (LIBOBJS): New.
19506 (OBS): Use LIBOBJS.
19507 (memmem.o): New rule.
19508 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19509 * configure: Regenerated.
19510
4536995d
UW
195112008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19512
19513 * server.c (handle_query): Never return "unsupported" for
19514 qXfer:features:read queries.
19515
221c031f
UW
195162008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19517
19518 * server.c (get_features_xml): Fix inverted condition.
19519 (handle_query): Always support qXfer:feature:read.
19520
ccd213ac
DJ
195212008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19522
19523 * server.c (wrapper_argv): New.
19524 (start_inferior): Handle wrapper_argv. If set, expect an extra
19525 trap.
19526 (gdbserver_usage): Document --wrapper.
19527 (main): Parse --wrapper.
19528
6fe305f7
UW
195292008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19530
19531 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19532 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19533 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19534 (ppc_set_pc): Likewise.
19535 (ppc_arch_setup): New function.
19536 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19537 of collect_register.
889bf7c5 19538 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 19539
5b0a002e
UW
195402008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19541
19542 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19543 instead of linux-ppc64-low.o.
19544 * linux-ppc64-low.c: Remove file.
19545 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19546 (linux-ppc64-low.o): Remove rule.
19547
19548 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19549 (init_registers_powerpc_64): Likewise.
19550 (ppc_regmap): Conditionally define depending on __powerpc64__.
19551 (ppc_cannot_store_register): Do not special-case "fpscr" when
19552 compiled on __powerpc64__.
19553 (ppc_collect_ptrace_register): New function.
19554 (ppc_supply_ptrace_register): New function.
19555 (ppc_breakpoint): Change type to "unsigned int".
19556 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19557 (the_low_target): Conditionally provide initializers for the
889bf7c5 19558 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
19559 collect_ptrace_register and supply_ptrace_register members.
19560
9b4b61c8
UW
195612008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19562
19563 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19564 * server.c (gdbserver_xmltarget): Define.
19565 (get_features_xml): Use it to replace "target.xml" and arch_string.
19566
19567 * configure.srv: Remove srv_xmltarget. Add XML files that were
19568 mentioned there to srv_xmlfiles instead. Remove conditional tests
19569 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19570 srv_xmlfiles and srv_regobj to include all possible choices.
19571 * configure.ac (srv_xmltarget): Remove.
19572 (srv_xmlfiles): Do not add "target.xml".
19573 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19574 checks for supplementary target information.
19575 * configure: Regenerate.
19576 * Makefile.in (XML_TARGET): Remove.
19577 (target.xml): Remove rule.
19578 (clean): Do not clean up target.xml.
19579 (.PRECIOUS): Do not mention target.xml.
19580
19581 * target.h (struct target_ops): Remove arch_string member.
19582 * linux-low.c (linux_arch_string): Remove.
19583 (linux_target_ops): Remove arch_string initializer.
19584 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19585 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19586 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19587 * spu-low.c (spu_arch_string): Remove.
19588 (spu_target_ops): Remove arch_string initializer.
19589 * win32-low.c (win32_arch_string): Remove.
19590 (win32_target_ops): Remove arch_string initializer.
19591 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19592 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19593 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19594
ee1a7ae4
UW
195952008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19596
19597 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19598 by collect_ptrace_register and supply_ptrace_register hooks.
19599 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19600 instead of checking for the_low_target.left_pad_xfer.
19601 (usr_store_inferior_registers): Use collect_ptrace_register callback
19602 instead of checking for the_low_target.left_pad_xfer.
19603
19604 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19605 (s390_supply_ptrace_register): Likewise.
19606 (s390_fill_gregset): Call s390_collect_ptrace_register.
19607 (the_low_target): Update.
19608
19609 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19610 (ppc_supply_ptrace_register): Likewise.
19611 (the_low_target): Update.
19612
19613 * linux-i386-low.c (the_low_target): Update.
19614 * linux-x86-64-low.c (the_low_target): Update.
19615
d61ddec4
UW
196162008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19617
19618 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19619 reg-s390.o and reg-s390x.o.
19620
19621 * linux-low.c (new_inferior): New global variable.
19622 (linux_create_inferior, linux_attach): Set it.
19623 (linux_wait_for_process): Call the_low_target.arch_setup after the
19624 target has stopped for the first time.
19625 (initialize_low): Do not call the_low_target.arch_setup.
19626
19627 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19628 (s390_set_pc): Likewise.
19629 (s390_arch_setup): New function.
19630 (the_low_target): Use s390_arch_setup as arch_setup routine.
19631
19632 * regcache.c (realloc_register_cache): New function.
19633 (set_register_cache): Call it for each existing regcache.
19634
d05b4ac3
UW
196352008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19636
19637 * server.h (init_registers): Remove prototype.
19638
19639 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19640 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19641 instead of init_registers ().
19642 * linux-arm-low.c (init_registers_arm): Add prototype.
19643 (init_registers_arm_with_iwmmxt): Likewise.
19644 (the_low_target): Add initializer for arch_setup field.
19645 * linux-cris-low.c (init_registers_cris): Add prototype.
19646 (the_low_target): Add initializer for arch_setup field.
19647 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19648 (the_low_target): Add initializer for arch_setup field.
19649 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19650 (the_low_target): Add initializer for arch_setup field.
19651 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19652 (the_low_target): Add initializer for arch_setup field.
19653 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19654 (the_low_target): Add initializer for arch_setup field.
19655 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19656 (the_low_target): Add initializer for arch_setup field.
19657 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19658 (init_registers_mips64_linux): Likewise.
19659 (the_low_target): Add initializer for arch_setup field.
19660 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19661 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19662 (the_low_target): Add initializer for arch_setup field.
19663 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19664 (init_registers_powerpc_64): Likewise.
19665 (the_low_target): Add initializer for arch_setup field.
19666 * linux-s390-low.c (init_registers_s390): Add prototype.
19667 (init_registers_s390x): Likewise.
19668 (the_low_target): Add initializer for arch_setup field.
19669 * linux-sh-low.c (init_registers_sh): Add prototype.
19670 (the_low_target): Add initializer for arch_setup field.
19671 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19672 (the_low_target): Add initializer for arch_setup field.
19673 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19674 (the_low_target): Add initializer for arch_setup field.
19675
19676 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19677 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19678 instead of init_registers ().
19679 * win32-arm-low.c (init_registers_arm): Add prototype.
19680 (the_low_target): Add initializer for arch_setup field.
19681 * win32-i386-low.c (init_registers_i386): Add prototype.
19682 (the_low_target): Add initializer for arch_setup field.
19683
19684 * spu-low.c (init_registers_spu): Add prototype.
19685 (initialize_low): Call initialie_registers_spu () instead of
19686 initialize_registers ().
19687
fd96d250
PA
196882008-02-19 Pedro Alves <pedro@codesourcery.com>
19689
19690 * server.c (handle_v_requests): When handling the vRun and vAttach
19691 packets, if already debugging a process, don't kill it. Return an
19692 error instead.
19693
d41b6bb4
DJ
196942008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19695
19696 * server.c (handle_query): Correct length check.
19697
5ac588cf
PA
196982008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19699
19700 * win32-low.c (do_initial_child_stuff): Add process handle
19701 parameter. Set current_process_handle and current_process_id from the
19702 parameters. Clear globals.
19703 (win32_create_inferior): Don't set current_process_handle and
19704 current_process_id here. Instead pass them on the call to
19705 do_initial_child_stuff.
19706 (win32_attach): Likewise.
19707 (win32_clear_inferiors): New.
19708 (win32_kill): Don't close the current process handle or the
19709 current thread handle here. Instead call win32_clear_inferiors.
19710 (win32_detach): Don't open a new handle to the process. Call
19711 win32_clear_inferiors.
19712 (win32_join): Don't rely on current_process_handle; open a new
19713 handle using the process id.
19714 (win32_wait): Call win32_clear_inferiors when the inferior process
19715 has exited.
19716
ecd7ecbc
DJ
197172008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
19718
19719 * server.c (monitor_show_help): Add "exit".
19720
1525d545
MG
197212008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
19722
ecd7ecbc 19723 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
19724 (clean): Add reg-xtensa.c.
19725 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
19726 * configure.srv (xtensa*-*-linux*) New target.
19727 * linux-xtensa-low.c: New.
19728 * xtensa-xtregs.c: New.
1525d545 19729
59a016f0
PA
197302008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
19731
19732 * hostio.c: Don't include errno.h.
19733 (errno_to_fileio_errno): Move to hostio-errno.
19734 * hostio.c: (hostio_error): Remove the error parameter. Defer the
19735 error number outputting to the target->hostio_last_error callback.
19736 (hostio_packet_error): Use FILEIO_EINVAL directly.
19737 (handle_open, handle_pread, hostio_error, handle_unlink): Update
19738 calls to hostio_error.
19739 * hostio-errno.c: New.
19740 * server.h (hostio_last_error_from_errno): Declare.
19741 * target.h (target_ops): Add hostio_last_error member.
19742 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
19743 as hostio_last_error handler.
889bf7c5 19744 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
19745 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
19746 (wince_hostio_last_error): New functions.
19747 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
19748 as hostio_last_error handler.
19749 (win32_target_ops) [!_WIN32_WCE]: Register
19750 hostio_last_error_from_errno as hostio_last_error handler.
19751 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
19752 (hostio-errno.o): New rule.
19753 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
19754 * configure.srv (srv_hostio_err_objs): New variable. Default to
19755 hostio-errno.o.
19756 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
19757 * configure: Regenerate.
19758
2d717e4f
DJ
197592008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19760
19761 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
19762 (linux_kill, linux_detach): Clean up the process list.
19763 * remote-utils.c (remote_open): Improve port number parsing.
19764 (putpkt_binary, input_interrupt): Only send interrupts if the target
19765 is running.
19766 * server.c (extended_protocol): Make static.
19767 (attached): Define earlier.
19768 (exit_requested, response_needed, program_argv): New variables.
19769 (target_running): New.
19770 (start_inferior): Clear attached here.
19771 (attach_inferior): Set attached here.
19772 (require_running): Define.
19773 (handle_query): Use require_running and target_running. Implement
19774 "monitor exit".
19775 (handle_v_attach, handle_v_run): New.
19776 (handle_v_requests): Use require_running. Handle vAttach and vRun.
19777 (gdbserver_usage): Update.
19778 (main): Redo argument parsing. Handle --debug and --multi. Handle
19779 --attach along with other options or after the port. Save
19780 program_argv. Support no initial program. Resynchronize
19781 communication with GDB after an error. Handle "monitor exit".
19782 Use require_running and target_running. Always allow the extended
19783 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
19784 restart in extended mode.
19785 * README: Refer to the GDB manual. Update --attach usage.
19786
7407e2de
AS
197872007-12-20 Andreas Schwab <schwab@suse.de>
19788
19789 * linux-low.c (STACK_SIZE): Define.
19790 (linux_tracefork_child): Use it. Use __clone2 on ia64.
19791 (linux_test_for_tracefork): Likewise.
19792
b65d95c5
DJ
197932007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
19794
19795 * linux-low.c (linux_wait_for_event): Update messages. Do not
19796 reinsert auto-delete breakpoints.
19797 * mem-break.c (struct breakpoint): Change return type of handler to
19798 int.
19799 (set_breakpoint_at): Update handler type.
19800 (reinsert_breakpoint_handler): Return 1 instead of calling
19801 delete_breakpoint.
19802 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
19803 setting a new one.
19804 (check_breakpoints): Delete auto-delete breakpoints and return 2.
19805 * mem-break.h (set_breakpoint_at): Update handler type.
19806 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
19807 * win32-low.c (auto_delete_breakpoint): New.
19808 (get_child_debug_event): Use it.
19809
4e799345
DJ
198102007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
19811
19812 * configure.ac: Check for pread and pwrite.
19813 * hostio.c (handle_pread): Fall back to lseek and read.
19814 (handle_pwrite): Fall back to lseek and write.
19815 * config.in, configure: Regenerated.
19816
27524b67
DJ
198172007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
19818
19819 * server.c (myresume): Add own_buf argument.
19820 (main): Update calls.
19821
a20d5e98
DJ
198222007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
19823
19824 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
19825 * remote-utils.c (remote_open): Do not call disable_async_io.
19826 (block_async_io): Delete.
19827 (unblock_async_io): Make static.
19828 (initialize_async_io): New.
19829 * server.c (handle_v_cont): Handle async I/O here.
19830 (myresume): Likewise. Move other common resume tasks here...
19831 (main): ... from here. Call initialize_async_io. Disable async
19832 I/O before the main loop.
19833 * server.h (initialize_async_io): Declare.
19834 (block_async_io, unblock_async_io): Delete prototypes.
19835 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
19836
b79d787e
DJ
198372007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
19838
19839 * remote-utils.c (readchar): Allow binary data in received messages.
19840
d97903b2
PA
198412007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19842
19843 * win32-low.c (attaching): New global.
19844 (win32_create_inferior): Clear the `attaching' global.
19845 (win32_attach): Set the `attaching' global.
19846 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
19847 attaching. Only set a breakpoint at the entry point if not
19848 attaching.
19849
311de423
PA
198502007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19851
19852 * server.c (main): Don't report dll events on the initial
19853 connection on attaches.
19854
6c2d16d2
PA
198552007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19856
19857 * server.c (main): Relax numerical bases supported for the pid of
19858 the --attach command line argument.
19859
5ca906e6
PA
198602007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19861
19862 * win32-low.c (win32_attach): Call OpenProcess before
19863 DebugActiveProcess, not after. Add last error output to error
19864 call.
19865
9c6c8194
PA
198662007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19867
19868 * win32-low.c (win32_get_thread_context)
19869 (win32_set_thread_context): New functions.
19870 (thread_rec): Use win32_get_thread_context.
19871 (continue_one_thread, win32_resume): Use win32_set_thread_context.
19872 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
19873 field.
19874
4d5d1aaa
PA
198752007-12-03 Leo Zayas
19876 Pedro Alves <pedro_alves@portugalmail.pt>
19877
19878 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
19879 global variables.
19880 (child_add_thread): Minor cleanup.
19881 (child_continue): Resume artificially suspended threads before
19882 calling ContinueDebugEvent.
19883 (suspend_one_thread): New.
19884 (fake_breakpoint_event): New.
19885 (get_child_debug_event): Change return type to int. Check here if
19886 gdb sent an interrupt request. If a soft interrupt was requested,
19887 fake a breakpoint event. Return 0 if there is no event to handle,
19888 and 1 otherwise.
19889 (win32_wait): Don't check here if gdb sent an interrupt request.
19890 Ensure there is a valid event to handle.
19891 (win32_request_interrupt): Add soft interruption method as last
19892 resort.
19893
c436e841
PA
198942007-12-03 Leo Zayas
19895 Pedro Alves <pedro_alves@portugalmail.pt>
19896
19897 * win32-low.h (win32_thread_info): Add descriptions to the
19898 structure members. Replace `suspend_count' counter by a
19899 `suspended' flag.
19900 * win32-low.c (thread_rec): Update condition of when to get the
19901 context from the inferior. Rely on ContextFlags being set if it
19902 has already been retrieved. Only suspend the inferior thread if
19903 we haven't already. Warn if that fails.
19904 (continue_one_thread): s/suspend_count/suspended/. Only call
19905 ResumeThread once. Warn if that fails.
19906
e7b5fa67
PA
199072007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
19908
19909 * win32-low.c (win32_wait): Don't read from the inferior when it
19910 has already exited.
19911
a385171d
PA
199122007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
19913
19914 * Makefile.in (win32_low_h): New variable.
19915 (win32-low.o): Add dependency on $(win32_low_h).
19916 (win32-arm-low.o, win32-i386-low.o): New rules.
19917
f80c84b3
DJ
199182007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
19919
19920 * hostio.c: Correct copyright year.
19921
a6b151f1
DJ
199222007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
19923
19924 * Makefile.in (OBS): Add hostio.o.
19925 (hostio.o): New rule.
19926 * server.h (handle_vFile): Declare.
19927 * hostio.c: New file.
19928 * server.c (handle_v_requests): Take packet_len and new_packet_len
19929 for binary packets. Call handle_vFile.
19930 (main): Update call to handle_v_requests.
19931
f9387fc3
DJ
199322007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
19933
19934 * linux-low.c: Include <sched.h>.
19935
51c2684e
DJ
199362007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
19937
19938 * linux-low.c (linux_tracefork_grandchild): New.
19939 (linux_tracefork_child): Use clone.
19940 (linux_test_for_tracefork): Use clone; allocate and free a stack.
19941
75f83163
JB
199422007-10-31 Joel Brobecker <brobecker@adacore.com>
19943
19944 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
19945
da5898ce
DJ
199462007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
19947
19948 * linux-low.c (handle_extended_wait): Handle unexpected signals.
19949
24a09b5f
DJ
199502007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
19951
19952 * inferiors.c (change_inferior_id): Delete.
19953 (add_pid_to_list, pull_pid_from_list): New.
19954 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
19955 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
19956 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
19957 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
19958 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
19959 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
19960 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
19961 (using_threads): Always set to 1.
19962 (handle_extended_wait): New.
19963 (add_process): Do not set TID.
19964 (linux_create_inferior): Set must_set_ptrace_flags.
19965 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
19966 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
19967 (linux_thread_alive): Rename TID argument to LWPID.
19968 (linux_wait_for_process): Handle unknown processes. Do not use TID.
19969 (linux_wait_for_event): Do not use TID or check using_threads. Update
19970 call to dead_thread_notify. Call handle_extended_wait.
19971 (linux_create_inferior): Use PTRACE_SETOPTIONS.
19972 (send_sigstop): Delete sigstop_sent.
19973 (wait_for_sigstop): Avoid TID.
19974 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
19975 (linux_test_for_tracefork): New.
19976 (linux_lookup_signals): Use thread_db_active and
19977 linux_supports_tracefork_flag.
19978 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
19979 * linux-low.h (get_process_thread): Avoid TID.
19980 (struct process_ifo): Move thread_known and tid to the end. Remove
19981 sigstop_sent.
19982 (linux_attach_lwp, thread_db_init): Update prototypes.
19983 * server.h (change_inferior_id): Delete prototype.
19984 (add_pid_to_list, pull_pid_from_list): New prototypes.
19985 * thread-db.c (thread_db_use_events): New.
19986 (find_first_thread): Rename to...
19987 (find_one_thread): ...this. Update callers and messages. Do not
19988 call fatal. Check thread_db_use_events. Do not call
19989 change_inferior_id or new_thread_notify.
19990 (maybe_attach_thread): Update. Do not call new_thread_notify.
19991 (thread_db_init): Set thread_db_use_events. Check use_events.
19992 * utils.c (fatal, warning): Correct message prefix.
19993
30ed0a8f
DJ
199942007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
19995
19996 * Makefile.in (clean): Remove new files.
19997 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
19998 (powerpc-64.o, powerpc-64.c): New rules.
19999 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20000 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20001 with SPE.
20002 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20003 SPE targets.
20004 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20005 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20006 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20007 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20008 (target_regsets): Add AltiVec and SPE register sets.
20009 * configure.ac: Check for AltiVec and SPE.
20010 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20011 (ppc_fill_vrregset, ppc_store_vrregset): New.
20012 (target_regsets): Add AltiVec register set.
20013 * configure: Regenerated.
20014
fd462a61
DJ
200152007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20016
20017 * linux-low.c (O_LARGEFILE): Define.
20018 (linux_read_memory): Use /proc/PID/mem.
20019 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20020 * configure, config.in: Regenerated.
20021
69f223ed
DJ
200222007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20023
20024 * linux-low.c (linux_wait_for_event): Do not pass signals while
20025 single-stepping.
20026
aec18585
PA
200272007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20028
20029 * win32-low.c (create_process): New.
20030 (win32_create_inferior): Use create_process instead of
20031 CreateProcess. If create_process failed retry appending an ".exe"
20032 suffix. Store the GetLastError result immediatelly after
20033 create_process calls and use it on the call to error.
20034
34d86ddd
PA
200352007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20036
20037 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20038
5a0e3bd0
JB
200392007-08-23 Joel Brobecker <brobecker@adacore.com>
20040
20041 * configure.ac: Switch license to GPLv3.
20042
f88c79e6
MS
200432007-08-01 Michael Snyder <msnyder@access-company.com>
20044
20045 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20046
6b3d9b83
PA
200472007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20048
20049 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20050 typedef.
20051 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20052 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20053 CloseToolhelp32Snapshot.
20054 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20055 CloseToolhelp32Snapshot.
20056
c588c53c
MS
200572007-07-27 Michael Snyder <michael.snyder@access-company.com>
20058
20059 * server.c (main): Check for inferior exit before main loop.
20060
aa0403d9
PA
200612007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20062
20063 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20064 instead of on tmp_desc.
20065
255e7678
DJ
200662007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20067 Daniel Jacobowitz <dan@codesourcery.com>
20068
20069 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20070 (add_thread): Minor cleanups.
20071 (clear_inferiors): Move lower in the file. Clear the DLL
20072 list.
20073 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20074 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20075 (xml_escape_text): New.
20076 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20077 for qSupported.
20078 (handle_v_cont): Report errors.
20079 (gdbserver_version): Update.
20080 (main): Correct size of own_buf. Do not report initial DLL events.
20081 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20082 (unloaded_dll, xml_escape_text): New.
20083 * win32-low.c (enum target_waitkind): Update comments.
20084 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20085 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20086 (win32_EnumProcessModules, win32_GetModuleInformation)
20087 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20088 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20089 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20090 (win32_Module32First, win32_Module32Next, load_toolhelp)
20091 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20092 (get_child_debug_event): Handle DLL events.
20093 (win32_wait): Likewise.
20094
0d37add9
DJ
200952007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20096
20097 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20098 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20099
45e2715e
PA
201002007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20101
20102 * win32-low.c (handle_output_debug_string): Ignore event if not
20103 waiting.
20104
c5674cf1
PA
201052007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20106
20107 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20108
2bbe3cc1
DJ
201092007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20110
20111 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20112
ae13219e
DJ
201132007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20114
20115 * inferiors.c (change_inferior_id): Add comment.
20116 * linux-low.c (check_removed_breakpoint): Add an early
20117 prototype. Improve debug output.
20118 (linux_attach): Doc update.
20119 (linux_detach_one_process, linux_detach): Clean up before releasing
20120 each process.
20121 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20122 * linux-low.h (struct process_info): Doc improvement.
20123 * mem-break.c (delete_all_breakpoints): New.
20124 * mem-break.h (delete_all_breakpoints): New prototype.
20125 * thread-db.c (find_first_thread): New.
20126 (thread_db_create_event): Call it instead of
20127 thread_db_find_new_threads. Clean up unused variables.
20128 (maybe_attach_thread): Remove first thread handling.
20129 (thread_db_find_new_threads): Use find_first_thread.
20130 (thread_db_get_tls_address): Likewise.
20131
4105de34
DJ
201322007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20133
20134 * thread-db.c (thread_db_find_new_threads): Add prototype.
20135 (thread_db_create_event): Check for the main thread before adding
20136 a new thread.
20137 (maybe_attach_thread): Only enable event reporting if TID == 0.
20138 (thread_db_get_tls_address): Check for new threads.
20139
2b876972
DJ
201402007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20141
20142 * linux-low.c (linux_create_inferior): Try execv before execvp.
20143 * spu-low.c (spu_create_inferior): Likewise.
20144
7a245884
DJ
201452007-06-13 Mike Frysinger <vapier@gentoo.org>
20146
20147 * linux-low.c (linux_create_inferior): Change execv to execvp.
20148 * spu-low.c (spu_create_inferior): Likewies.
20149
117ce543
DJ
201502007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20151
20152 * Makefile.in (clean): Clean new files instead of deleted ones.
20153 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20154 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20155 rules.
20156 * configure.srv: Specify XML files and new regformats for MIPS and
20157 MIPS64 GNU/Linux.
20158 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20159 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20160 an entry for the restart register.
20161 (mips_cannot_fetch_register, mips_cannot_store_register)
20162 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20163 register names to match the XML descriptions.
20164 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20165 restart register instead of $0.
20166
0e7f50da
UW
201672007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20168 Markus Deuling <deuling@de.ibm.com>
20169
20170 * remote-utils.c (decode_xfer_write): New function.
20171 * server.h (decode_xfer_write): Add prototype.
20172 * server.c (handle_query): Add PACKET_LEN argument. Support
20173 qXfer:spu:read and qXfer:spu:write packets.
20174 (main): Pass packet_len to handle_query.
20175 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20176 * target.h (target_ops): Add qxfer_spu.
20177
374c1d38
UW
201782007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20179
20180 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20181 accessing non-seekable spufs files.
20182
bb63802a
UW
201832007-05-16 Markus Deuling <deuling@de.ibm.com>
20184
889bf7c5 20185 * server.c (handle_query): Add reply for qC packet.
bb63802a 20186
7390519e
PA
201872007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20188 Leo Zayas <lerele@champenstudios@com>
20189
20190 * server.h (check_remote_input_interrupt_request): New function.
20191 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20192 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20193 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20194 (check_remote_input_interrupt_request): New function.
20195 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20196 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20197 winapi_GenerateConsoleCtrlEvent): New typedefs.
20198 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20199 to 250 ms.
20200 (win32_wait): Check for remote interrupt request
20201 with check_remote_input_interrupt_request.
20202 (win32_request_interrupt): New function.
20203 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20204
34b34921
PA
202052007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20206
20207 * win32-low.c (debug_registers_changed,
20208 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20209 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20210 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20211 (thread_rec): Get context using the low target.
20212 (child_add_thread): Call thread_added on the low target,
20213 which does the same thing.
20214 (regptr): Delete.
20215 (do_initial_child_stuff): Remove debug registers references.
20216 Set context using the low target. Resume threads after
20217 setting the contexts.
20218 (child_continue): Remove dead variable. Remove debug
20219 registers references.
20220 (child_fetch_inferior_registers): Go through the low target.
20221 (do_child_store_inferior_registers): Remove.
20222 (child_store_inferior_registers): Go through the low target.
20223 (win32_resume): Remove debug registers references.
20224 Set context using the low target.
20225 (handle_exception): Change return type to void. Don't record
20226 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20227 first chance exception.
889bf7c5 20228 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20229 goto loop. Always return after waiting for debug event.
20230 (win32_wait): Convert to switch statement. Handle spurious
20231 events.
20232
20233 * win32-i386-low.c (debug_registers_changed,
20234 debug_registers_used): New.
20235 (initial_stuff): Rename to ...
20236 (i386_initial_stuff): ... this. Clear debug registers
20237 state variables.
20238 (store_debug_registers): Delete.
20239 (i386_get_thread_context): New.
20240 (load_debug_registers): Delete.
20241 (i386_set_thread_context): New.
20242 (i386_thread_added): New.
20243 (single_step): Rename to ...
20244 (i386_single_step): ... this.
20245 (do_fetch_inferior_registers): Rename to ...
20246 (i386_fetch_inferior_register): ... this.
20247 (i386_store_inferior_register): New.
20248 (the_low_target): Adapt to new interface.
20249
20250 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20251 (arm_get_thread_context): New.
20252 (arm_set_thread_context): New.
20253 (regptr): New.
20254 (do_fetch_inferior_registers): Rename to ...
20255 (arm_fetch_inferior_register): ... this.
20256 (arm_store_inferior_register): New.
20257 (arm_wince_breakpoint): Reimplement as unsigned long.
20258 (arm_wince_breakpoint_len): Define.
20259 (the_low_target): Adapt to new interface.
20260
20261 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20262 load_debug_registers. Add get_thread_context, set_thread_context,
20263 thread_added and store_inferior_register. Rename
20264 fetch_inferior_registers to fetch_inferior_register.
20265 (regptr): Remove declaration.
20266
dd6953e1
PA
202672007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20268
20269 * linux-low.c (linux_detach): Change return type to int. Return 0.
20270 * spu-low.c (spu_detach): Likewise.
20271
444d6139
PA
202722007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20273
20274 * target.h (target_ops): Change return type of detach to int.
20275 Add join.
20276 (join_inferior): New.
20277 * server.c (main): Don't skip detach support on mingw32.
20278 If the inferior doesn't support detaching return error.
20279 Call join_inferior instead of using waitpid.
20280 * linux-low.c (linux_join): New.
20281 (linux_target_op): Add linux_join.
20282 * spu-low.c (spu_join): New.
20283 (spu_target_ops): Add spu_join.
20284 * win32-low.c (win32_detach): Adapt to new interface.
20285 Reopen current_process_handle before detaching. Issue a child
20286 resume before detaching.
20287 (win32_join): New.
20288 (win32_target_op): Add win32_join.
20289
1d5315fe
PA
202902007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20291
20292 * win32-low.c (win32-attach): Fix return value.
20293 * target.h (target_ops): Describe ATTACH return values.
20294
bf914831
PA
202952007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20296
20297 * win32-low.c (GETPROCADDRESS): Define.
20298 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20299 (winapi_DebugSetProcessKillOnExit): Likewise.
20300 (win32_create_inferior): Force usage of ansi CreateProcessA.
20301 (win32_attach): Use GETPROCADDRESS.
20302 (win32_detach): Likewise.
20303
f72f3e60
PA
203042007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20305
20306 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20307
ed50f18f
PA
203082007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20309
20310 * win32-low.c: Commit leftover changes from 2007-03-29.
20311
0c2ead7e
DJ
203122007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20313
20314 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20315 fields short instead of int. Add explicit padding.
20316 (i387_cache_to_fsave): Remove unnecessary casts.
20317 (i387_fsave_to_cache): Doc fix.
20318 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20319
73725ff3
DJ
203202007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20321
20322 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20323 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20324
d99f33d8
PA
203252007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20326
20327 * configure.srv (arm*-*-mingw32ce*): Move near the other
20328 arm targets.
20329
68070c10
PA
203302007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20331
2482afc6 20332 * configure.ac: Add errno checking.
68070c10
PA
20333 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20334 sys/file.h and malloc.h.
20335 (AC_CHECK_DECLS): Add perror.
20336 (srv_mingwce): Handle.
2482afc6 20337 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20338 win32-i386-low.o to srv_tgtobj.
20339 (i[34567]86-*-mingw*): Likewise.
20340 (arm*-*-mingw32ce*): Add case.
20341 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20342 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20343 [__MINGW32CE__] (strerror): New function.
20344 [__MINGW32CE__] (errno): Define to GetLastError.
20345 [__MINGW32CE__] (COUNTOF): New macro.
20346 (remote_open): Remove extra close call.
20347 * mem-break.c (delete_breakpoint_at): New function.
20348 * mem-break.h (delete_breakpoint_at): Declare.
20349 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20350 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20351 [USE_WIN32API] (read, write): Add char* casts.
20352 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20353 * server.h: Include wincecompat.h on Windows CE.
20354 [HAVE_ERRNO_H]: Check.
20355 (perror): Declare if not declared.
20356 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20357 (perror_with_name): Remove errno declaration.
20358 * wincecompat.h: New.
20359 * wincecompat.c: New.
20360 * win32-low.h: New.
20361 * win32-arm-low.c: New.
20362 * win32-i386-low.c: New.
20363 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20364 (OUTMSG2): Make it safe.
20365 (_T): New macro.
20366 (COUNTOF): New macro.
20367 (NUM_REGS): Get it from the low target.
20368 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20369 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20370 (thread_rec): Let low target handle debug registers.
20371 (child_add_thread): Likewise.
20372 (child_init_thread_list): Likewise.
20373 (continue_one_thread): Likewise.
20374 (regptr): New.
20375 (do_child_fetch_inferior_registers): Move to ...
20376 * win32-i386-low.c: ... here, and rename to ...
20377 (do_fetch_inferior_registers): ... this.
889bf7c5 20378 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20379 Go through the low target.
20380 (do_child_store_inferior_registers): Use regptr.
20381 (strwinerror): New function.
20382 (win32_create_inferior): Handle Windows CE.
20383 Use strwinerror instead of strerror on Windows error
20384 codes. Add program to the error output.
20385 Don't close the main thread handle on Windows CE.
20386 (win32_attach): Use coredll.dll on Windows CE.
20387 (win32_kill): Close current process and current
20388 thread handles.
20389 (win32_detach): Use coredll.dll on Windows CE.
20390 (win32_resume): Let low target handle debug registers, and
20391 step request.
20392 (handle_exception): Add/Remove initial breakpoint. Avoid
20393 non-existant WSTOPSIG on Windows CE.
20394 (win32_read_inferior_memory): Cast to remove warning.
20395 (win32_arch_string): Go through the low target.
20396 (initialize_low): Call set_breakpoint_data with the low
20397 target's breakpoint.
20398 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20399 FOP_REGNUM, mappings): Move to ...
20400 * win32-i386-low.c: ... here.
20401 * win32-low.c (win32_thread_info): Move to ...
20402 * win32-low.h: ... here.
20403 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20404 win32-arm-low.c and wincecompat.c.
20405 (all:): Add $EXEEXT.
20406 (install-only:): Likewise.
20407 (gdbserver:): Likewise.
20408 (gdbreplay:): Likewise.
20409 * config.in: Regenerate.
20410 * configure: Regenerate.
20411
41093d81
PA
204122007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20413
20414 * win32-low.c: Rename typedef thread_info to
20415 win32_thread_info throughout.
20416
544afa54
PA
204172007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20418
20419 * win32-i386-low.c: Rename to ...
20420 * win32-low.c: ... this.
20421 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20422 * Makefile.in: Likewise.
20423
bce7165d
PA
204242007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20425
20426 * remote-utils.c (monitor_output): Constify msg parameter.
20427 * server.h (monitor_output): Likewise.
20428 * win32-i386-low.c (handle_output_debug_string): New.
20429 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20430 handle_output_debug_string.
20431 (get_child_debug_event): Likewise.
20432
506c7aa0
DJ
204332007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20434
20435 * server.c (main): Correct strtoul check.
20436
42c81e2a
DJ
204372007-03-27 Jon Ringle <jon@ringle.org>
20438
20439 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20440
9453113a
DJ
204412007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20442
20443 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20444
64a69107
DJ
204452007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20446
20447 * terminal.h: Check HAVE_SGTTY_H.
20448
204492007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
20450
20451 * remote-utils.c (remote_open): Print out the assigned port number.
20452
c74d0ad8
DJ
204532007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20454
20455 * remote-utils.c (monitor_output): New function.
20456 * server.c (debug_threads): Define here.
20457 (monitor_show_help): New function.
20458 (handle_query): Handle qRcmd.
20459 (main): Do not handle 'd' packet.
20460 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20461 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20462 of debug_threads.
20463
de7c3b4a
PA
204642007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20465
20466 * Makefile.in (EXEEXT): New.
20467 (clean): Use $(EXEEXT).
20468
ef57601b
PA
204692007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20470
20471 * target.h (target_ops): Rename send_signal to request_interrupt,
20472 and remove enum target_signal parameter.
20473 * linux-low.c (linux_request_interrupt): Rename from
20474 linux_send_signal, and always send SIGINT.
20475 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20476 and always send SIGINT.
20477 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20478 of send_signal.
20479 (input_interrupt): Likewise.
20480
820f2bda
PA
204812007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20482
20483 * server.c (get_features_xml): Check if target implemented
20484 arch_string.
20485 * win32-i386-low.c (win32_arch_string): New.
20486 (win32_target_ops): Add win32_arch_string as arch_string member.
20487
ab39bf24
UW
204882007-02-22 Markus Deuling <deuling@de.ibm.com>
20489
20490 * spu-low.c (spu_arch_string): New.
20491 (spu_target_ops): Add spu_arch_string.
20492
61ff6e04
DJ
204932007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20494
20495 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20496 * configure.ac: Do not check for terminal.h.
20497 * configure, config.in: Regenerated.
20498
fb1e4ffc
DJ
204992007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20500
20501 * Makefile.in (OBS): Add $(XML_BUILTIN).
20502 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20503 (clean): Update.
20504 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20505 (arm-with-iwmmxt.c): New.
20506 * config.in, configure: Regenerate.
20507 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20508 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20509 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20510 (arm*-*-linux*): Add iWMMXt and regset support.
20511 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20512 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20513 (arm_store_wmmxregset, target_regsets): New.
20514 * server.c (get_features_xml): Take annex argument. Check builtin
20515 XML documents.
20516 (handle_query): Handle multiple annexes.
20517
0f48aa01
DJ
205182007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20519
20520 * remote-utils.c [USE_WIN32API] (read, write): Define.
20521 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20522 write.
20523
23181151
DJ
205242007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20525
20526 * linux-i386-low.c (the_low_target): Set arch_string.
20527 * linux-x86-64-low.c (the_low_target): Likewise.
20528 * linux-low.c (linux_arch_string): New.
20529 (linux_target_ops): Add it.
20530 * linux-low.h (struct linux_target_ops): Add arch_string.
20531 * server.c (write_qxfer_response): Use const void * for DATA.
20532 (get_features_xml): New.
20533 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20534 * target.h (struct target_ops): Add arch_string method.
20535
9d606399
DJ
205362007-01-03 Denis Pilat <denis.pilat@st.com>
20537 Daniel Jacobowitz <dan@codesourcery.com>
20538
20539 * linux-low.c (linux_kill): Handle being called with no threads.
20540 * win32-i386-low.c (win32_kill): Likewise.
20541 (get_child_debug_event): Clear current_process_handle.
20542
205432006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
20544 Daniel Jacobowitz <dan@codesourcery.com>
20545
20546 * remote-utils.c (remote_open): Check the type of specified
20547 serial port devices before opening them.
20548 * server.c (main): Kill the inferior if an error occurs during
20549 the first remote_open.
20550
a5e13d24
DJ
205512006-12-05 Markus Deuling <deuling@de.ibm.com>
20552
20553 * README: Update supported targets.
20554
186947f7
DJ
205552006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20556
20557 * Makefile.in (clean): Remove reg-mips64.c.
20558 (reg-mips64.c, reg-mips64.o): New rules.
20559 * configure.srv: Handle mips64. Include regset support for mips.
20560 * linux-mips-low.c (union mips_register): New.
20561 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20562 (mips_breakpoint, mips_breakpoint_at): Use int.
20563 (mips_collect_register, mips_supply_register)
20564 (mips_collect_register_32bit, mips_supply_register_32bit)
20565 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20566 (mips_store_fpregset, target_regsets): New.
20567 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20568
a13e2c95
UW
205692006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20570
20571 * configure.srv: Add target "spu*-*-*".
20572 * Makefile.in (clean): Remove reg-spu.c.
20573 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20574 * spu-low.c: New file.
20575
cb7283db
DJ
205762006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20577
20578 * configure.ac: Correct td_thr_tls_get_addr test.
20579 * configure: Regenerated.
20580
89be2091
DJ
205812006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20582
20583 * linux-low.c (linux_wait_for_event): Reformat. Use the
20584 pass_signals array.
20585 * remote-utils.c (decode_address_to_semicolon): New.
20586 * server.c (pass_signals, handle_general_set): New.
20587 (handle_query): Mention QPassSignals for qSupported.
20588 (main): Call handle_general_set.
20589 * server.h (pass_signals, decode_address_to_semicolon): New.
20590
000ef4f0
DJ
205912006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20592
20593 * server.c (handle_query): Correct error handling for read_auxv.
20594
b7149293
UW
205952005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20596
20597 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20598 and srv_linux_thread_db to yes.
20599 * linux-s390-low.c (s390_fill_gregset): New function.
20600 (target_regsets): Define data structure.
20601
dae5f5cf
DJ
206022006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20603
20604 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20605 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20606 * config.in, configure: Regenerated.
20607 * inferiors.c (gdb_id_to_thread): New function.
20608 (gdb_id_to_thread_id): Use it.
20609 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20610 * linux-low.h (struct process_info): Add th member.
20611 (thread_db_get_tls_address): New prototype.
20612 * remote-utils.c (decode_address): Make non-static.
20613 * server.c (handle_query): Handle qGetTLSAddr.
20614 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20615 * target.h (struct target_ops): Add get_tls_address.
20616 * thread-db.c (maybe_attach_thread): Save the thread handle.
20617 (thread_db_get_tls_address): New.
20618
32ca6d61
DJ
206192006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20620
20621 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20622 (linux_resume_one_process): Take a siginfo_t *. Update all
20623 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20624 (struct pending_signals): Add a siginfo_t.
20625 (linux_wait_for_process): Always set last_status.
20626 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20627 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20628 * linux-low.h (struct process_info): Add last_status.
20629
5ffff7c1
DJ
206302006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20631
20632 * remote-utils.c (try_rle): New function.
20633 (putpkt_binary): Use it.
20634
8695c747
DJ
206352006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20636
20637 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20638 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20639 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20640 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20641 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20642 point registers.
20643
290fadea
RS
206442006-08-08 Richard Sandiford <richard@codesourcery.com>
20645
20646 * server.c (terminal_fd): New variable.
20647 (old_foreground_pgrp): Likewise.
20648 (restore_old_foreground_pgrp): New function.
20649 (start_inferior): Record the terminal file descriptor in terminal_fd
20650 and its original foreground group in old_foreground_pgrp. Register
20651 restore_old_foreground_pgrp with atexit().
20652
9f2e1e63
DJ
206532006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20654
20655 * server.c (handle_query): Correct qPart to qXfer.
20656
b80864fb
DJ
206572006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20658
20659 * configure.ac: Check for more headers which are missing on
20660 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20661 * configure.srv: Add Cygwin and mingw32.
20662 * remote-utils.c: Don't include headers unconditionally which
20663 are missing on mingw32. Include <winsock.h> for mingw32.
20664 (remote_open): Adjust for mingw32 support. Flush
20665 standard error after writing to it.
20666 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20667 (unblock_async_io, enable_async_io, disable_async_io)
20668 (readchar, getpkt): Update for Winsock support.
20669 (prepare_resume_reply): Expect a protocol signal number.
20670 * server.c: Disable <sys/wait.h> on mingw32.
20671 (start_inferior): Adjust for mingw32 support. Flush
20672 standard error after writing to it.
20673 (attach_inferior): Likewise. Use protocol signal
20674 numbers.
20675 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20676 and names.
20677 * win32-i386-low.c: New file.
20678 * Makefile.in (XM_CLIBS): Set.
20679 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20680 (win32-i386-low.o): New dependency rule.
20681 * linux-low.c (linux_wait): Use target signal numbers.
20682 * target.h (struct target_ops): Doc fix.
20683 * server.h (target_signal_to_name): New prototype.
20684 * gdbreplay.c: Don't include headers unconditionally which
20685 are missing on mingw32. Include <winsock.h> for mingw32.
20686 (remote_close, remote_open): Adjust for Winsock support.
20687 * configure, config.in: Regenerated.
20688
0876f84a
DJ
206892006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20690
20691 * server.c (decode_xfer_read, write_qxfer_response): New.
20692 (handle_query): Take a packet length argument. Handle
20693 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20694 the qSupported response.
20695 (main): Update call to handle_query.
20696
01f9e8fa
DJ
206972006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20698
20699 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20700 (putpkt_binary): Renamed from putpkt and adjusted for binary
20701 data.
20702 (putpkt): New wrapper for putpkt_binary.
20703 (readchar): Don't mask off the high bit.
20704 (decode_X_packet): New function.
20705 * server.c (main): Call putpkt_binary if a handler sets the packet
20706 length. Save the length of the incoming packet. Handle 'X'.
20707 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20708
be2a5f71
DJ
207092006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20710
20711 * server.c (handle_query): Handle qSupported.
20712
ea025f5f
DJ
207132006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20714
20715 * remote-utils.c (all_symbols_looked_up): New variable.
20716 (look_up_one_symbol): Check it.
20717 * server.h (look_up_one_symbol): New declaration.
20718 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
20719
9308fc88
DJ
207202006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20721
20722 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 20723 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
20724 (PTRACE_GET_THREAD_AREA): Define.
20725 (ps_get_thread_area): New function.
20726
52fb6437
NS
207272006-05-09 Nathan Sidwell <nathan@codesourcery.com>
20728
20729 * configure.srv (m68k*-*-uclinux*): New target.
20730 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
20731 (linux_resume_one_process): Remove extraneous cast.
20732 (linux_read_offsets): New.
20733 (linux_target_op): Add linux_read_offsets on mmuless systems.
20734 * server.c (handle_query): Add qOffsets logic.
20735 * target.h (struct target_ops): Add read_offsets.
20736
21b0f40c
DJ
207372006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20738
20739 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
20740 (PTRACE_GET_THREAD_AREA): Define.
20741 (ps_get_thread_area): New function.
20742 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
20743 (linux-x86-64-low.o): Update.
20744
0050a760
DJ
207452006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20746
20747 * configure.ac: Remove checks for prfpregset_t.
20748 * gdb_proc_service.h: New file.
20749 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
20750 new "gdb_proc_service.h".
20751 * proc-service.c: Likewise.
20752 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
20753 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
20754 * Makefile.in (gdb_proc_service_h): Updated.
20755 * configure, config.in: Regenerated.
20756
b92a518e
DJ
207572006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20758
20759 * remote-utils.c (prepare_resume_reply): Move declaration
20760 of gdb_id_from_wait to the top of the block.
20761
545587ee
DJ
207622006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
20763
20764 * linux-low.c (regsets_store_inferior_registers): Read the regset
20765 from the target before filling it.
20766
9db87ebd
DJ
207672006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20768
20769 * server.c (attach_inferior): Return SIGTRAP for a successful
20770 attach.
20771
dd24457d
DJ
207722006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
20773
20774 * Makefile.in (OBS): Add version.o.
20775 (STAGESTUFF): Delete.
20776 (version.o): Add dependencies.
20777 (version.c): Replace rule.
20778 (clean): Remove version.c.
20779 * server.c (gdbserver_version): New.
20780 (gdbserver_usage): Use printf.
20781 (main): Handle --version and --help.
20782 * server.h (version, host_name): Add declarations.
20783
6f0f660e
EZ
207842005-12-23 Eli Zaretskii <eliz@gnu.org>
20785
889bf7c5
PA
20786 * linux-arm-low.c:
20787 * linux-arm-low.c:
20788 * inferiors.c:
20789 * i387-fp.h:
20790 * i387-fp.c:
20791 * gdbreplay.c:
20792 * regcache.c:
20793 * proc-service.c:
20794 * mem-break.h:
20795 * mem-break.c:
20796 * linux-x86-64-low.c:
20797 * linux-sh-low.c:
20798 * linux-s390-low.c:
20799 * linux-ppc64-low.c:
20800 * linux-ppc-low.c:
20801 * linux-mips-low.c:
20802 * linux-m68k-low.c:
20803 * linux-m32r-low.c:
20804 * linux-low.h:
20805 * linux-low.c:
20806 * linux-ia64-low.c:
20807 * linux-i386-low.c:
20808 * linux-crisv32-low.c:
20809 * thread-db.c:
20810 * terminal.h:
20811 * target.h:
20812 * target.c:
20813 * server.h:
20814 * server.c:
20815 * remote-utils.c:
20816 * regcache.h:
20817 * utils.c:
20818 * Makefile.in:
20819 * configure.ac:
6f0f660e
EZ
20820 * gdbserver.1: Add (C) after Copyright. Update the FSF
20821 address.
20822
9d1fb177
DJ
208232005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
20824
20825 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
20826 (arm_breakpoint_at): Recognize both breakpoints.
20827 (the_low_target): Use the correct breakpoint instruction.
20828
011a70c2
DJ
208292005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
20830
20831 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
20832 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
20833 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
20834 (the_low_target): Update.
20835
7fb85e41
AS
208362005-10-25 Andreas Schwab <schwab@suse.de>
20837
20838 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
20839
20840 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
20841 (ia64_num_regs): Reduce to 462.
20842
3db0444b
DJ
208432005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
20844
20845 * acinclude.m4: Correct quoting.
20846 * aclocal.m4: Regenerated.
20847
20848 Suggested by SZOKOVACS Robert <szo@ies.hu>:
20849 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
20850 (thread_db_init): Call thread_db_err_str.
20851 * configure.ac: Check for TD_VERSION.
20852 * config.in, configure: Regenerated.
20853
bee0189a
DJ
208542005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20855
20856 * server.h (error, fatal, warning): Add ATTR_FORMAT.
20857
e9d25b98
DJ
208582005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20859
20860 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
20861 is not available. Define HAVE_PTRACE_GETREGS if it is.
20862 * config.in, configure: Regenerated.
20863 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
20864 * linux-i386-low.c, linux-m68k-low.c: Update to use
20865 HAVE_PTRACE_GETREGS.
20866 * linux-low.c (regsets_fetch_inferior_registers)
20867 (regsets_store_inferior_registers): Only return 0 if we processed
20868 GENERAL_REGS.
20869 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
20870 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
20871
a06660f7
DJ
208722005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20873
20874 * inferiors.c (struct thread_info): Add gdb_id.
20875 (add_thread): Add gdb_id argument.
20876 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
20877 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
20878 calls to add_thread.
20879 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
20880 * server.c (handle_query): Use thread_to_gdb_id.
20881 (handle_v_cont, main): Use gdb_id_to_thread_id.
20882 * server.h (add_thread): Update prototype.
20883 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
20884 prototypes.
20885
5a1f5858
DJ
208862005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20887
20888 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
20889 left-padded registers.
20890 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
20891 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
20892
e122f1f5
SE
208932005-07-01 Steve Ellcey <sje@cup.hp.com>
20894
20895 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
20896 * configure: Regenerate.
20897 * config.in: Regenerate.
20898 * server.h (NEED_DECLARATION_STRERROR):
20899 Replace with !HAVE_DECL_STRERROR.
20900
d592fa2f
DJ
209012005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
20902
20903 * linux-low.c (linux_wait, linux_send_signal): Don't test
20904 an unsigned long variable for > 0 if it could be MAX_ULONG.
20905 * server.c (myresume): Likewise.
20906 * target.c (set_desired_inferior): Likewise.
20907
ccbd4912
MK
209082005-06-13 Mark Kettenis <kettenis@gnu.org>
20909
20910 * configure.ac: Simplify and improve check for socklen_t.
20911 * configure, config.in: Regenerate.
20912
f450004a
DJ
209132005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
20914
20915 * acconfig.h: Remove.
20916 * configure.ac: Add a test for socklen_t. Use three-argument
20917 AC_DEFINE throughout.
20918 * config.in: Regenerated using autoheader 2.59.
20919 * configure: Regenerated.
20920
20921 * gdbreplay.c (socklen_t): Provide a default.
20922 (remote_open): Use socklen_t.
20923 * remote-utils.c (socklen_t): Provide a default.
20924 (remote_open): Use socklen_t.
20925 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
20926 unsigned char.
20927
20928 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
20929 char for buffers.
20930 * linux-low.c (linux_read_memory, linux_write_memory)
20931 (linux_read_auxv): Likewise.
20932 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
20933 (check_mem_write): Likewise.
20934 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
20935 Likewise.
20936 * regcache.c (struct inferior_rgcache_data, registers_to_string)
20937 (registers_from_string, register_data): Likewise.
20938 * server.c (handle_query, main): Likewise.
20939 * server.h (convert_ascii_to_int, convert_int_to_ascii)
20940 (decode_M_packet): Likewise.
20941 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
20942 * target.h (struct target_ops): Update read_memory, write_memory,
20943 and read_auxv.
20944 (read_inferior_memory, write_inferior_memory): Update.
20945 * linux-low.h (struct linux_target_ops): Change type of breakpoint
20946 to unsigned char *.
20947 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
20948 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
20949 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
20950 linux-s390-low.c, linux-sh-low.c: Update for changes in
20951 read_inferior_memory and the_low_target->breakpoint.
20952
eee84df1
DJ
209532005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
20954
20955 * Makefile.in (SFILES): Add linux-ppc64-low.c.
20956 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
20957 * configure.srv: Add powerpc64-*-linux*.
20958 * linux-ppc64-low.c: New file.
20959
45b134e5
OF
209602005-05-23 Orjan Friberg <orjanf@axis.com>
20961
20962 * linux-cris-low.c: New file with support for CRIS.
20963 * linux-crisv32-low.c: Ditto for CRISv32.
20964 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
20965 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 20966 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
20967 reg-crisv32.o, and reg-crisv32.c to make rules.
20968 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
20969 recognized targets.
20970
48d93c75
UW
209712005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
20972
20973 * linux-low.c (fetch_register): Ensure buffer size is a multiple
20974 of sizeof (PTRACE_XFER_TYPE).
20975 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
20976
e013ee27
OF
209772005-05-12 Orjan Friberg <orjanf@axis.com>
20978
889bf7c5 20979 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
20980 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
20981 pointers for hardware watchpoint support.
20982 * linux-low.h (struct linux_target_ops): Ditto.
20983 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
20984 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
20985 to linux_target_ops.
20986 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
20987 reply packet.
20988 * server.c (main): Recognize 'Z' and 'z' packets.
20989
b0ded00b
UW
209902005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
20991
20992 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
20993 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
20994 (the_low_target): Add new members.
20995
8643e2ad
DJ
209962005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
20997
20998 * proc-service.c (ps_lgetregs): Search all_processes instead of
20999 all_threads.
21000
fc620387
DJ
210012005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21002
21003 * server.c (start_inferior): Change return type to int.
21004 (attach_inferior): Change sigptr to int *.
21005 (handle_v_cont, handle_v_requests): Change signal to int *.
21006 (main): Change signal to int.
21007
210082005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21009
21010 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21011 * configure.srv: Add m32r*-*-linux*.
21012 * linux-m32r-low.c: New file.
21013
e0e76420
DJ
210142005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21015
21016 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21017
a1928bad
DJ
210182005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21019
21020 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21021 Take unsigned long arguments for PIDs.
21022 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21023 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21024 (wait_for_sigstop, linux_resume_one_process)
21025 (regsets_fetch_inferior_registers, linux_send_signal)
21026 (linux_read_auxv): Likewise. Update the types of variables holding
21027 PIDs. Update format string specifiers.
21028 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21029 * remote-utils.c (prepare_resume_reply): Likewise.
21030 * server.c (cont_thread, general_thread, step_thread)
21031 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21032 unsigned long.
21033 (handle_query): Update format specifiers.
21034 (handle_v_cont, main): Use strtoul for thread IDs.
21035 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21036 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21037 (general_thread, step_thread, thread_from_wait)
21038 (old_thread_from_wait): Update.
21039 * target.h (struct thread_resume): Use unsigned long for THREAD.
21040 (struct target_ops): Use unsigned long for arguments to attach and
21041 thread_alive.
21042
dcdb98d2
DJ
210432005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21044
21045 * acinclude.m4: Include bfd/bfd.m4 directly.
21046 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21047 <agriffis@toolchain.org>.
21048 * aclocal.m4, configure: Regenerated.
21049
bec39cab
AC
210502005-01-07 Andrew Cagney <cagney@gnu.org>
21051
21052 * configure.ac: Rename configure.in, require autoconf 2.59.
21053 * configure: Re-generate.
21054
434c4c77
DJ
210552004-12-08 Daniel Jacobowitz <dan@debian.org>
21056
21057 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21058 LIBS when finished.
21059 * aclocal.m4: Regenerated.
21060 * configure: Regenerated.
21061
db1d3e1b
AS
210622004-11-21 Andreas Schwab <schwab@suse.de>
21063
21064 * linux-m68k-low.c (m68k_num_gregs): Define.
21065 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21066 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21067 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21068 (m68k_breakpoint_at): New. Add to the_low_target.
21069
21070 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21071 srv_linux_thread_db to yes.
21072
43360365
JB
210732004-10-20 Joel Brobecker <brobecker@gnat.com>
21074
21075 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21076 (ARCH_SET_FS): Likewise.
21077 (ARCH_GET_FS): Likewise.
21078 (ARCH_GET_GS): Likewise.
21079
fd500816
DJ
210802004-10-16 Daniel Jacobowitz <dan@debian.org>
21081
21082 * linux-i386-low.c (ps_get_thread_area): New.
21083 * linux-x86-64-low.c (ps_get_thread_area): New.
21084 * linux-low.c: Include <sys/syscall.h>.
21085 (linux_kill_one_process): Don't kill the first thread here.
21086 (linux_kill): Kill the first thread here.
21087 (kill_lwp): New function.
21088 (send_sigstop, linux_send_signal): Use it.
21089 * proc-service.c: Clean up #ifdefs.
21090 (fpregset_info): Delete.
21091 (ps_lgetregs): Update and enable implementation.
21092 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21093 implementations.
21094 * remote-utils.c (struct sym_cache, symbol_cache): New.
21095 (input_interrupt): Print a clearer message.
21096 (async_io_enabled): New variable.
21097 (enable_async_io, disable_async_io): Use it. Update comments.
21098 (look_up_one_symbol): Use the symbol cache.
21099 * thread-db.c (thread_db_look_up_symbols): New function.
21100 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21101
f6de3c42
DJ
211022004-10-16 Daniel Jacobowitz <dan@debian.org>
21103
21104 * configure.in: Test for -rdynamic.
21105 * configure: Regenerated.
21106 * Makefile (INTERNAL_LDFLAGS): New.
21107 (gdbserver, gdbreplay): Use it.
21108
2c0fc042
AC
211092004-09-02 Andrew Cagney <cagney@gnu.org>
21110
21111 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21112
075b3282
DJ
211132004-03-23 Daniel Jacobowitz <drow@mvista.com>
21114
21115 * linux-low.c (linux_wait): Clear all_processes list also.
21116
fa6a77dc
DJ
211172004-03-12 Daniel Jacobowitz <drow@mvista.com>
21118
21119 * linux-low.c: Include <errno.h>. Remove extern declaration of
21120 errno.
21121
6d782a97
DJ
211222004-03-12 Daniel Jacobowitz <drow@mvista.com>
21123
21124 * gdbreplay.c, server.h, utils.c: Update copyright years.
21125
3a7fb99b
DJ
211262004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21127
21128 * server.c (main): Print child status or termination signal from
21129 variable 'signal', not 'sig'.
21130
c3e735a6
DJ
211312004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21132
21133 * linux-low.c (linux_read_memory): Change return type to
21134 int. Check for and return error from ptrace().
21135 * target.c (read_inferior_memory): Change return type to int. Pass
21136 back return status from the_target->read_memory().
21137 * target.h (struct target_ops): Adapt *read_memory() prototype.
21138 Update comment.
21139 (read_inferior_memory): Adapt prototype.
21140 * server.c (main): Return an error packet if
21141 read_inferior_memory() returns an error.
21142
a59d1c82
DJ
211432004-03-04 Daniel Jacobowitz <drow@mvista.com>
21144
21145 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21146 Unify with other clean targets.
21147
dc3f8883
DJ
211482004-02-29 Daniel Jacobowitz <drow@mvista.com>
21149
21150 * server.c (handle_v_cont): Call set_desired_inferior.
21151
89a208da
DJ
211522004-02-29 Daniel Jacobowitz <drow@mvista.com>
21153
21154 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21155
62ea82f5
DJ
211562004-02-29 Daniel Jacobowitz <drow@mvista.com>
21157
21158 * linux-low.c (linux_wait): Unblock async I/O.
21159 (linux_resume): Block and enable async I/O.
21160 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21161 * server.h (block_async_io, unblock_async_io): Add prototypes.
21162
6910d122
DJ
211632004-02-29 Daniel Jacobowitz <drow@mvista.com>
21164
21165 * remote-utils.c (remote_open): Print a status notice after
21166 opening a TCP port.
21167 * server.c (attach_inferior): Print a status notice after
21168 attaching.
21169
211702004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21171
21172 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21173
c89dc5d4
DJ
211742004-02-26 Daniel Jacobowitz <drow@mvista.com>
21175
21176 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21177 error packet.
21178 * server.c, target.h: Update copyright years.
21179
4b8dad4a
RM
211802004-02-25 Roland McGrath <roland@redhat.com>
21181
21182 * target.h (struct target_ops): New member `read_auxv'.
21183 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21184 * linux-low.c (linux_read_auxv): New function.
21185 (linux_target_ops): Initialize `read_auxv' member to that.
21186
d7446758
JB
211872004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21188
21189 Committed by Jim Blandy <jimb@redhat.com>.
21190
21191 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21192 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21193 instead of GPR_SIZE to distiguish s390 and s390x targets.
21194
5544ad89
DJ
211952004-01-31 Daniel Jacobowitz <drow@mvista.com>
21196
21197 * linux-low.c: Update copyright year.
21198 (check_removed_breakpoint): Clear pending_is_breakpoint.
21199 (linux_set_resume_request, linux_queue_one_thread)
21200 (resume_status_pending_p): New functions.
21201 (linux_continue_one_thread): Use process->resume.
21202 (linux_resume): Only resume threads if there are no pending events.
21203 * linux-low.h (struct process_info): Add resume request
21204 pointer.
21205
2a68b70e
DJ
212062004-01-30 Daniel Jacobowitz <drow@mvista.com>
21207
21208 * regcache.c (new_register_cache): Clear the allocated register
21209 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21210
64386c31
DJ
212112003-10-13 Daniel Jacobowitz <drow@mvista.com>
21212
21213 * linux-low.c (linux_resume): Take a struct thread_resume *
21214 argument.
21215 (linux_wait): Update call.
21216 (resume_ptr): New static variable.
21217 (linux_continue_one_thread): Renamed from
21218 linux_continue_one_process. Use resume_ptr.
21219 (linux_resume): Use linux_continue_one_thread.
21220 * server.c (handle_v_cont, handle_v_requests): New functions.
21221 (myresume): New function.
21222 (main): Handle 'v' case.
21223 * target.h (struct thread_resume): New type.
21224 (struct target_ops): Change argument of "resume" to struct
21225 thread_resume *.
21226 (myresume): Delete macro.
21227
c938e9b0
L
212282003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21229
21230 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21231 (uninstall): Support DESTDIR.
21232
7f313d07
BC
21233Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21234
21235 * configure.srv: Add xscale*linux copy of arm*linux entry.
21236
3b2fc2ea
DJ
212372003-07-24 Daniel Jacobowitz <drow@mvista.com>
21238
21239 * linux-arm-low.c (arm_reinsert_addr): New function.
21240 (the_low_target): Add arm_reinsert_addr.
21241
1c0a559e
MK
212422003-07-08 Mark Kettenis <kettenis@gnu.org>
21243
21244 * mem-break.c: Remove whitespace at end of file.
21245
43d5792c
DJ
212462003-06-28 Daniel Jacobowitz <drow@mvista.com>
21247
21248 * configure.in: Check whether we need to prototype strerror.
21249 * server.h: Optionally prototype strerror.
21250 * gdbreplay.c (perror_with_name): Use strerror.
21251 * linux-low.c (linux_attach_lwp): Use strerror.
21252 * utils.c (perror_with_name): Use strerror.
21253 * config.in, configure: Regenerated.
21254
c8a86edf
DJ
212552003-06-28 Daniel Jacobowitz <drow@mvista.com>
21256
21257 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21258 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21259
73d37363
DJ
212602003-06-20 Daniel Jacobowitz <drow@mvista.com>
21261
21262 * Makefile.in (SFILES): Update.
21263 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21264 low-sun3.c: Remove files.
21265
6ad8ae5c
DJ
212662003-06-17 Daniel Jacobowitz <drow@mvista.com>
21267
21268 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21269 (linux_detach_one_process, linux_detach): New functions.
21270 (linux_target_ops): Add linux_detach.
21271 * server.c (main): Handle 'D' packet.
21272 * target.h (struct target_ops): Add "detach" member.
21273 (detach_inferior): Define.
21274
1581182a
MK
212752003-06-13 Mark Kettenis <kettenis@gnu.org>
21276
21277 From Kelley Cook <kelleycook@wideopenwest.com>:
21278 * configure.srv: Accept i[34567]86 variants.
21279
e5379b03
DJ
212802003-06-05 Daniel Jacobowitz <drow@mvista.com>
21281
21282 * linux-low.c (linux_wait_for_event): Correct comment typos.
21283 (linux_resume_one_process): Call check_removed_breakpoint.
21284 (linux_send_signal): New function.
21285 (linux_target_ops): Add linux_send_signal.
21286 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21287 of kill.
21288 * target.h (struct target_ops): Add send_signal.
21289
2ff29de4
JB
212902003-05-29 Jim Blandy <jimb@redhat.com>
21291
21292 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21293 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21294 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21295 away part of the register's value.
21296
254787d4
DJ
212972003-03-26 Daniel Jacobowitz <drow@mvista.com>
21298
21299 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21300 (linux_wait_for_event, linux_init_signals): Likewise.
21301
94e10508
DJ
213022003-03-17 Daniel Jacobowitz <drow@mvista.com>
21303
21304 * configure.in: Check for stdlib.h.
21305 * configure: Regenerated.
21306 * config.in: Regenerated.
21307
4c0711e0
DJ
213082003-01-04 Andreas Schwab <schwab@suse.de>
21309
21310 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21311
ef66e766
AC
213122003-01-02 Andrew Cagney <ac131313@redhat.com>
21313
21314 * Makefile.in: Remove obsolete code.
21315
a1358604
DJ
213162002-11-20 Daniel Jacobowitz <drow@mvista.com>
21317
21318 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21319 defined(PT_FPR0_HI).
21320
23ce3b1c
DJ
213212002-11-17 Stuart Hughes <seh@zee2.com>
21322
21323 * linux-arm-low.c (arm_num_regs): Increase.
21324 (arm_regmap): Include status register.
21325
213262002-11-17 Daniel Jacobowitz <drow@mvista.com>
21327
21328 * linux-low.c (register_addr): Remove incorrect -1 check.
21329
a9fa9f7d
DJ
213302002-08-29 Daniel Jacobowitz <drow@mvista.com>
21331
21332 * linux-low.c (linux_create_inferior): Call setpgid. Return
21333 the new PID.
21334 (unstopped_p, linux_signal_pid): Remove.
21335 (linux_target_ops): Remove linux_signal_pid.
21336 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21337 global instead of target method.
21338 * target.h (struct target_ops): Remove signal_pid. Update comment
21339 for create_inferior.
21340 * server.c (signal_pid): New variable.
21341 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21342 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21343 (attach_inferior): Set signal_pid.
21344
17574093
DJ
213452002-08-23 Daniel Jacobowitz <drow@mvista.com>
21346
21347 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21348
213492002-08-20 Jim Blandy <jimb@redhat.com>
21350
21351 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21352 default for this.
21353
213542002-08-01 Andrew Cagney <cagney@redhat.com>
21355
21356 * Makefile.in: Make chill references obsolete.
21357
213582002-07-24 Kevin Buettner <kevinb@redhat.com>
21359
21360 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21361 * configure: Regenerate.
21362 * config.in: Regenerate.
21363
213642002-07-09 David O'Brien <obrien@FreeBSD.org>
21365
21366 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21367 (perror_with_name, remote_close, remote_open, expect, play): Static.
21368
213692002-07-04 Michal Ludvig <mludvig@suse.cz>
21370
4b8dad4a 21371 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21372 byte offsets instead of an array of indexes.
21373 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21374
213752002-06-13 Daniel Jacobowitz <drow@mvista.com>
21376
21377 * regcache.c: Add comment.
21378
213792002-06-11 Daniel Jacobowitz <drow@mvista.com>
21380
21381 * thread-db.c: New file.
21382 * proc-service.c: New file.
21383 * acinclude.m4: New file.
21384 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21385 proc-service.o, and thread-db.o.
21386 (linux-low.o): Add USE_THREAD_DB.
21387 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21388 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21389 * aclocal.m4: Regenerated.
21390 * config.in: Regenerated.
21391 * configure: Regenerated.
21392 * configure.in: Check for proc_service.h, sys/procfs.h,
21393 thread_db.h, and linux/elf.h headrs.
21394 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21395 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21396 Check for -lthread_db and thread support.
21397 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21398 PowerPC, and SuperH.
21399 * i387-fp.c: Constify arguments.
21400 * i387-fp.h: Likewise.
21401 * inferiors.c: (struct thread_info): Renamed from
21402 `struct inferior_info'. Remove PID member. Use generic inferior
21403 list header. All uses updated.
21404 (inferiors, signal_pid): Removed.
21405 (all_threads): New variable.
21406 (get_thread): Define.
21407 (add_inferior_to_list): New function.
21408 (for_each_inferior): New function.
21409 (change_inferior_id): New function.
21410 (add_inferior): Removed.
21411 (remove_inferior): New function.
21412 (add_thread): New function.
21413 (free_one_thread): New function.
21414 (remove_thread): New function.
21415 (clear_inferiors): Use for_each_inferior and free_one_thread.
21416 (find_inferior): New function.
21417 (find_inferior_id): New function.
21418 (inferior_target_data): Update argument type.
21419 (set_inferior_target_data): Likewise.
21420 (inferior_regcache_data): Likewise.
21421 (set_inferior_regcache_data): Likewise.
21422 * linux-low.c (linux_bp_reinsert): Remove.
21423 (all_processes, stopping_threads, using_thrads)
21424 (struct pending_signals, debug_threads, pid_of): New.
21425 (inferior_pid): Replace with macro.
21426 (struct inferior_linux_data): Remove.
21427 (get_stop_pc, add_process): New functions.
21428 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21429 Use add_process and add_thread.
21430 (linux_attach_lwp): New function, based on old linux_attach. Use
21431 add_process and add_thread. Set stop_expected for new threads.
21432 (linux_attach): New function.
21433 (linux_kill_one_process): New function.
21434 (linux_kill): Kill all LWPs.
21435 (linux_thread_alive): Use find_inferior_id.
21436 (check_removed_breakpoints, status_pending_p): New functions.
21437 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21438 Update. Use WNOHANG. Wait for cloned processes also. Update process
21439 struct for the found process.
21440 (linux_wait_for_event): New function.
21441 (linux_wait): Use it. Support LWPs.
21442 (send_sigstop, wait_for_sigstop, stop_all_processes)
21443 (linux_resume_one_process, linux_continue_one_process): New functions.
21444 (linux_resume): Support LWPs.
21445 (REGISTER_RAW_SIZE): Remove.
21446 (fetch_register): Use register_size instead. Call supply_register.
21447 (usr_store_inferior_registers): Likewise. Call collect_register.
21448 Fix recursive case.
21449 (regsets_fetch_inferior_registers): Improve error message.
21450 (regsets_store_inferior_registers): Add debugging.
21451 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21452 (unstopped_p, linux_signal_pid): New functions.
21453 (linux_target_ops): Add linux_signal_pid.
21454 (linux_init_signals): New function.
21455 (initialize_low): Call it. Initialize using_threads.
21456 * regcache.c (inferior_regcache_data): Add valid
21457 flag.
21458 (get_regcache): Fetch registers lazily. Add fetch argument
21459 and update all callers.
21460 (regcache_invalidate_one, regcache_invalidate): New
21461 functions.
21462 (new_register_cache): Renamed from create_register_cache.
21463 Return the new regcache.
21464 (free_register_cache): Change argument to a void *.
21465 (registers_to_string, registers_from_string): Call get_regcache
21466 with fetch flag set.
21467 (register_data): Make static. Pass fetch flag to get_regcache.
21468 (supply_register): Call get_regcache with fetch flag clear.
21469 (collect_register): Call get_regcache with fetch flag set.
21470 (collect_register_as_string): New function.
21471 * regcache.h: Update.
21472 * remote-utils.c (putpkt): Flush after debug output and use
21473 stderr.
21474 Handle input interrupts while waiting for an ACK.
21475 (input_interrupt): Use signal_pid method.
21476 (getpkt): Flush after debug output and use stderr.
21477 (outreg): Use collect_register_as_string.
21478 (new_thread_notify, dead_thread_notify): New functions.
21479 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21480 and general_thread.
21481 (look_up_one_symbol): Flush after debug output.
21482 * server.c (step_thread, server_waiting): New variables.
21483 (start_inferior): Don't use signal_pid. Update call to mywait.
21484 (attach_inferior): Update call to mywait.
21485 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21486 (main): Don't fetch/store registers explicitly. Use
21487 set_desired_inferior. Support proposed ``Hs'' packet. Update
21488 calls to mywait.
21489 * server.h: Update.
21490 (struct inferior_list, struct_inferior_list_entry): New.
21491 * target.c (set_desired_inferior): New.
21492 (write_inferior_memory): Constify.
21493 (mywait): New function.
21494 * target.h: Update.
21495 (struct target_ops): New signal_pid method.
21496 (mywait): Removed macro, added prototype.
21497
21498 * linux-low.h (regset_func): Removed.
21499 (regset_fill_func, regset_store_func): New.
21500 (enum regset_type): New.
21501 (struct regset_info): Add type field. Use new operation types.
21502 (struct linux_target_ops): stop_pc renamed to get_pc.
21503 Add decr_pc_after_break and breakpoint_at.
21504 (get_process, get_thread_proess, get_process_thread)
21505 (strut process_info, all_processes, linux_attach_lwp)
21506 (thread_db_init): New.
21507
21508 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21509 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21510 (the_low_target): Add new members.
21511 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21512 (i386_store_fpxregset): Constify.
21513 (target_regsets): Add new kind identifier.
21514 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21515 (i386_set_pc): Add debugging.
21516 (i386_breakpoint_at): New function.
21517 (the_low_target): Add new members.
21518 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21519 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21520 (mips_breakpoint_at): New.
21521 (the_low_target): Add new members.
21522 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21523 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21524 (the_low_target): Add new members.
21525 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21526 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21527 (the_low_target): Add new members.
21528 * linux-x86-64-low.c (target_regsets): Add new kind
21529 identifier.
21530
215312002-05-15 Daniel Jacobowitz <drow@mvista.com>
21532
21533 From Martin Pool <mbp@samba.org>:
21534 * server.c (gdbserver_usage): New function.
21535 (main): Call it.
21536
215372002-05-14 Daniel Jacobowitz <drow@mvista.com>
21538
21539 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21540 stop_at -> stop_pc.
21541
215422002-05-04 Andrew Cagney <ac131313@redhat.com>
21543
21544 * Makefile.in: Remove obsolete code.
21545
215462002-04-24 Michal Ludvig <mludvig@suse.cz>
21547
21548 * linux-low.c (regsets_fetch_inferior_registers),
21549 (regsets_store_inferior_registers): Removed cast to int from
21550 ptrace() calls.
21551 * regcache.h: Added declaration of struct inferior_info.
21552
215532002-04-20 Daniel Jacobowitz <drow@mvista.com>
21554
21555 * inferiors.c (struct inferior_info): Add regcache_data.
21556 (add_inferior): Call create_register_cache.
21557 (clear_inferiors): Call free_register_cache.
21558 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21559 * regcache.c (struct inferior_regcache_data): New.
21560 (registers): Remove.
21561 (get_regcache): New function.
21562 (create_register_cache, free_register_cache): New functions.
21563 (set_register_cache): Don't initialize the register cache here.
21564 (registers_to_string, registers_from_string, register_data): Call
21565 get_regcache.
21566 * regcache.h: Add prototypes.
21567 * server.h: Likewise.
21568
215692002-04-20 Daniel Jacobowitz <drow@mvista.com>
21570
21571 * mem-break.c: New file.
21572 * mem-break.h: New file.
21573 * Makefile.in: Add mem-break.o rule; update server.h
21574 dependencies.
21575 * inferiors.c (struct inferior_info): Add target_data
21576 member.
21577 (clear_inferiors): Free target_data member if set.
21578 (inferior_target_data, set_inferior_target_data): New functions.
21579 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21580 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21581 * linux-low.c (linux_bp_reinsert): New variable.
21582 (struct inferior_linux_data): New.
21583 (linux_create_inferior): Use set_inferior_target_data.
21584 (linux_attach): Likewise. Call add_inferior.
21585 (linux_wait_for_one_inferior): New function.
21586 (linux_wait): Call it.
21587 (linux_write_memory): Add const.
21588 (initialize_low): Call set_breakpoint_data.
21589 * linux-low.h (struct linux_target_ops): Add breakpoint
21590 handling members.
21591 * server.c (attach_inferior): Remove extra add_inferior
21592 call.
21593 * server.h: Include mem-break.h. Update inferior.c
21594 prototypes.
21595 * target.c (read_inferior_memory)
21596 (write_inferior_memory): New functions.
21597 * target.h (read_inferior_memory)
21598 (write_inferior_memory): Change macros to prototypes.
21599 (struct target_ops): Update comments. Add const to write_memory
21600 definition.
21601
216022002-04-11 Daniel Jacobowitz <drow@mvista.com>
21603
21604 * linux-low.c (usr_store_inferior_registers): Support
21605 registers which are allowed to fail to store.
21606 * linux-low.h (linux_target_ops): Likewise.
21607 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21608 (ppc_cannot_store_register): FPSCR may not be storable.
21609
216102002-04-09 Daniel Jacobowitz <drow@mvista.com>
21611
21612 * server.h: Include <string.h> if HAVE_STRING_H.
21613 * ChangeLog: Correct paths in last ChangeLog entry.
21614
216152002-04-09 Daniel Jacobowitz <drow@mvista.com>
21616
21617 * linux-low.h: Remove obsolete prototypes.
21618 (struct linux_target_ops): New.
21619 (extern the_low_target): New.
21620 * linux-low.c (num_regs, regmap): Remove declarations.
21621 (register_addr): Use the_low_target explicitly.
21622 (fetch_register): Likewise.
21623 (usr_fetch_inferior_registers): Likewise.
21624 (usr_store_inferior_registers): Likewise.
21625 * linux-arm-low.c (num_regs): Remove.
21626 (arm_num_regs): Define.
21627 (arm_regmap): Renamed from regmap, made static.
21628 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21629 made static.
21630 (arm_cannot_store_register): Renamed from cannot_store_register,
21631 made static.
21632 (the_low_target): New.
21633 * linux-i386-low.c (num_regs): Remove.
21634 (i386_num_regs): Define.
21635 (i386_regmap): Renamed from regmap, made static.
21636 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21637 made static.
21638 (i386_cannot_store_register): Renamed from cannot_store_register,
21639 made static.
21640 (the_low_target): New.
21641 * linux-ia64-low.c (num_regs): Remove.
21642 (ia64_num_regs): Define.
21643 (ia64_regmap): Renamed from regmap, made static.
21644 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21645 made static.
21646 (ia64_cannot_store_register): Renamed from cannot_store_register,
21647 made static.
21648 (the_low_target): New.
21649 * linux-m68k-low.c (num_regs): Remove.
21650 (m68k_num_regs): Define.
21651 (m68k_regmap): Renamed from regmap, made static.
21652 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21653 made static.
21654 (m68k_cannot_store_register): Renamed from cannot_store_register,
21655 made static.
21656 (the_low_target): New.
21657 * linux-mips-low.c (num_regs): Remove.
21658 (mips_num_regs): Define.
21659 (mips_regmap): Renamed from regmap, made static.
21660 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21661 made static.
21662 (mips_cannot_store_register): Renamed from cannot_store_register,
21663 made static.
21664 (the_low_target): New.
21665 * linux-ppc-low.c (num_regs): Remove.
21666 (ppc_num_regs): Define.
21667 (ppc_regmap): Renamed from regmap, made static.
21668 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21669 made static.
21670 (ppc_cannot_store_register): Renamed from cannot_store_register,
21671 made static.
21672 (the_low_target): New.
21673 * linux-s390-low.c (num_regs): Remove.
21674 (s390_num_regs): Define.
21675 (s390_regmap): Renamed from regmap, made static.
21676 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21677 made static.
21678 (s390_cannot_store_register): Renamed from cannot_store_register,
21679 made static.
21680 (the_low_target): New.
21681 * linux-sh-low.c (num_regs): Remove.
21682 (sh_num_regs): Define.
21683 (sh_regmap): Renamed from regmap, made static.
21684 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21685 made static.
21686 (sh_cannot_store_register): Renamed from cannot_store_register,
21687 made static.
21688 (the_low_target): New.
21689 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21690 (the_low_target): New.
21691
216922002-04-09 Daniel Jacobowitz <drow@mvista.com>
21693
21694 * Makefile.in: Add stamp-h target.
21695 * configure.in: Create stamp-h.
21696 * configure: Regenerated.
21697
216982002-04-09 Daniel Jacobowitz <drow@mvista.com>
21699
21700 * inferiors.c: New file.
21701 * target.c: New file.
21702 * target.h: New file.
21703 * Makefile.in: Add target.o and inferiors.o. Update
21704 dependencies.
21705 * linux-low.c (inferior_pid): New static variable,
21706 moved from server.c.
21707 (linux_create_inferior): Renamed from create_inferior.
21708 Call add_inferior. Return 0 on success instead of a PID.
21709 (linux_attach): Renamed from myattach.
21710 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
21711 (linux_thread_alive): Renamed from mythread_alive.
21712 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
21713 child dies.
21714 (linux_resume): Renamed from myresume. Add missing ``return 0''.
21715 (regsets_store_inferior_registers): Correct error message.
21716 Add missing ``return 0''.
21717 (linux_fetch_registers): Renamed from fetch_inferior_registers.
21718 (linux_store_registers): Renamed from store_inferior_registers.
21719 (linux_read_memory): Renamed from read_inferior_memory.
21720 (linux_write_memory): Renamed from write_inferior_memory.
21721 (linux_target_ops): New structure.
21722 (initialize_low): Call set_target_ops ().
21723 * remote-utils.c (unhexify): New function.
21724 (hexify): New function.
21725 (input_interrupt): Send signals to ``signal_pid''.
21726 * server.c (inferior_pid): Remove.
21727 (start_inferior): Update create_inferior call.
21728 (attach_inferior): Call add_inferior.
21729 (handle_query): New function.
21730 (main): Call handle_query for `q' packets.
21731 * server.h: Include "target.h". Remove obsolete prototypes.
21732 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
21733
217342002-04-09 Daniel Jacobowitz <drow@mvista.com>
21735
21736 * Makefile.in: Add WARN_CFLAGS. Update configury
21737 dependencies.
21738 * configure.in: Check for <string.h>
21739 * configure: Regenerate.
21740 * config.in: Regenerate.
21741 * gdbreplay.c: Include needed system headers.
21742 (remote_open): Remove strchr prototype.
21743 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
21744 * regcache.c (supply_register): Change buf argument to const void *.
21745 (supply_register_by_name): Likewise.
21746 (collect_register): Change buf argument to void *.
21747 (collect_register_by_name): Likewise.
21748 * regcache.h: Add missing prototypes.
21749 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
21750 * server.c (handle_query): New function.
21751 (attached): New static variable, moved out of main.
21752 (main): Quiet longjmp clobber warnings.
21753 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
21754 * utils.c (error): Remove NORETURN.
21755 (fatal): Likewise.
This page took 2.698424 seconds and 4 git commands to generate.