gdbserver/linux-low: turn 'supports_tracepoints' into a method
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
47f70aa7
TBA
12020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 Remote the 'supports_tracepoints' linux target op and let the
4 concrete linux target define it by overriding the op declared in
5 process_stratum_target.
6
7 * linux-low.h (struct linux_target_ops): Remove the op.
8 (class linux_process_target) <supports_tracepoints>: Remove.
9 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
10 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
11 Declare.
12 (x86_supports_tracepoints): Turn into...
13 (x86_target::supports_tracepoints): ...this.
14 (the_low_target): Remove the op field.
15 * linux-aarch64-low.cc (class aarch64_target)
16 <supports_tracepoints>: Declare.
17 (aarch64_supports_tracepoints): Turn into...
18 (aarch64_target::supports_tracepoints): ...this.
19 (the_low_target): Remove the op field.
20 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
21 Declare.
22 (ppc_supports_tracepoints): Turn into...
23 (ppc_target::supports_tracepoints): ...this.
24 (the_low_target): Remove the op field.
25 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
26 Declare.
27 (s390_supports_tracepoints): Turn into...
28 (s390_target::supports_tracepoints): ...this.
29 (the_low_target): Remove the op field.
30 * linux-arm-low.cc (the_low_target): Remove the op field.
31 * linux-bfin-low.cc (the_low_target): Ditto.
32 * linux-crisv32-low.cc (the_low_target): Ditto.
33 * linux-m32r-low.cc (the_low_target): Ditto.
34 * linux-m68k-low.cc (the_low_target): Ditto.
35 * linux-sh-low.cc (the_low_target): Ditto.
36 * linux-tic6x-low.cc (the_low_target): Ditto.
37 * linux-tile-low.cc (the_low_target): Ditto.
38 * linux-xtensa-low.cc (the_low_target): Ditto.
39
a5b5da92
TBA
402020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
41
42 Remove the 'process_qsupported' linux target op and let a concrete
43 linux target define the op by overriding the op declaration in
44 process_stratum_target.
45
46 * linux-low.h (struct linux_target_ops): Remove the op.
47 (class linux_process_target) <process_qsupported>: Remove.
48 * linux-low.cc (linux_process_target::process_qsupported): Remove.
49 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
50 (x86_linux_process_qsupported): Turn into...
51 (x86_target::process_qsupported): ...this.
52 (the_low_target): Remove the op field.
53 * linux-aarch64-low.cc (the_low_target): Remove the op
54 field.
55 * linux-arm-low.cc (the_low_target): Ditto.
56 * linux-bfin-low.cc (the_low_target): Ditto.
57 * linux-crisv32-low.cc (the_low_target): Ditto.
58 * linux-m32r-low.cc (the_low_target): Ditto.
59 * linux-m68k-low.cc (the_low_target): Ditto.
60 * linux-ppc-low.cc (the_low_target): Ditto.
61 * linux-s390-low.cc (the_low_target): Ditto.
62 * linux-sh-low.cc (the_low_target): Ditto.
63 * linux-tic6x-low.cc (the_low_target): Ditto.
64 * linux-tile-low.cc (the_low_target): Ditto.
65 * linux-xtensa-low.cc (the_low_target): Ditto.
66
d7599cc0
TBA
672020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
68
69 Turn the 'prepare_to_resume' linux target op into a method of
70 linux_process_target.
71
72 * linux-low.h (struct linux_target_ops): Remove the op.
73 (class linux_process_target) <low_prepare_to_resume>: Declare.
74 * linux-low.cc (linux_process_target::low_prepare_to_resume):
75 Define.
76
77 Update the callers below:
78
79 (linux_process_target::resume_one_lwp_throw)
80 (linux_process_target::low_prepare_to_resume)
81
82 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
83 Declare.
84 (x86_target::low_prepare_to_resume): Define.
85 (the_low_target): Remove the op field.
86 * linux-aarch64-low.cc (class aarch64_target)
87 <low_prepare_to_resume>: Declare.
88 (aarch64_target::low_prepare_to_resume): Define.
89 (the_low_target): Remove the op field.
90 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
91 Declare.
92 (arm_prepare_to_resume): Turn into...
93 (arm_target::low_prepare_to_resume): ...this.
94 (the_low_target): Remove the op field.
95 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
96 Declare.
97 (mips_linux_prepare_to_resume): Turn into...
98 (mips_target::low_prepare_to_resume): ...this.
99 (the_low_target): Remove the op field.
100 * linux-bfin-low.cc (the_low_target): Remove the op field.
101 * linux-crisv32-low.cc (the_low_target): Ditto.
102 * linux-m32r-low.cc (the_low_target): Ditto.
103 * linux-m68k-low.cc (the_low_target): Ditto.
104 * linux-ppc-low.cc (the_low_target): Ditto.
105 * linux-s390-low.cc (the_low_target): Ditto.
106 * linux-sh-low.cc (the_low_target): Ditto.
107 * linux-tic6x-low.cc (the_low_target): Ditto.
108 * linux-tile-low.cc (the_low_target): Ditto.
109 * linux-xtensa-low.cc (the_low_target): Ditto.
110
fd000fb3
TBA
1112020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
112
113 Turn the 'new_process', 'delete_process', 'new_thread',
114 'delete_thread', and 'new_fork' linux target ops into methods
115 of linux_process_target.
116
117 * linux-low.h (struct linux_target_ops): Remove the ops.
118 (class linux_process_target) <add_linux_process>
119 <add_lwp>
120 <delete_lwp>
121 <attach_lwp>
122 <detach_one_lwp>
123 <check_zombie_leaders>
124 <filter_exit_event>
125 <low_new_process>
126 <low_delete_process>
127 <low_new_thread>
128 <low_delete_thread>
129 <low_new_fork>: Declare.
130 * linux-low.cc (delete_lwp): Turn into...
131 (linux_process_target::delete_lwp): ...this.
132 (linux_process_target::low_delete_thread): Define.
133 (linux_add_process): Turn into...
134 (linux_process_target::add_linux_process): ...this.
135 (linux_process_target::low_new_process): Define.
136 (linux_process_target::low_delete_process): Define.
137 (linux_process_target::low_new_fork): Define.
138 (add_lwp): Turn into...
139 (linux_process_target::add_lwp): ...this.
140 (linux_process_target::low_new_thread): Define.
141 (linux_attach_lwp): Turn into...
142 (linux_process_target::attach_lwp): ...this.
143 (linux_detach_one_lwp): Turn into...
144 (linux_process_target::detach_one_lwp): ...this.
145 (linux_detach_lwp_callback): Remove and inline...
146 (linux_process_target::detach): ...here.
147 (check_zombie_leaders): Turn into...
148 (linux_process_target::check_zombie_leaders): ...this.
149 (filter_exit_event): Turn into...
150 (linux_process_target::filter_exit_event): ...this.
151
152 Update the callers below.
153
154 (linux_process_target::handle_extended_wait)
155 (linux_process_target::create_inferior)
156 (attach_proc_task_lwp_callback)
157 (linux_process_target::attach)
158 (linux_process_target::detach)
159 (linux_process_target::mourn)
160 * thread-db.cc (attach_thread)
161
162 * linux-x86-low.cc (class x86_target) <low_new_process>
163 <low_delete_process>
164 <low_new_thread>
165 <low_delete_thread>
166 <low_new_fork>: Declare.
167 (x86_linux_new_process): Turn into...
168 (x86_target::low_new_process): ...this.
169 (x86_linux_delete_process): Turn into...
170 (x86_target::low_delete_process): ...this.
171 (x86_target::low_new_thread): Define.
172 (x86_target::low_delete_thread): Define.
173 (x86_linux_new_fork): Turn into...
174 (x86_target::low_new_fork): ...this.
175 (the_low_target): Remove the op fields.
176 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
177 <low_delete_process>
178 <low_new_thread>
179 <low_delete_thread>
180 <low_new_fork>: Declare.
181 (aarch64_linux_new_process): Turn into...
182 (aarch64_target::low_new_process): ...this.
183 (aarch64_linux_delete_process): Turn into...
184 (aarch64_target::low_delete_process): ...this.
185 (aarch64_target::low_new_thread): Define.
186 (aarch64_target::low_delete_thread): Define.
187 (aarch64_linux_new_fork): Turn into...
188 (aarch64_target::low_new_fork): ...this.
189 (the_low_target): Remove the op fields.
190 * linux-arm-low.cc (class arm_target) <low_new_process>
191 <low_delete_process>
192 <low_new_thread>
193 <low_delete_thread>
194 <low_new_fork>: Declare.
195 (arm_new_process): Turn into...
196 (arm_target::low_new_process): ...this.
197 (arm_delete_process): Turn into...
198 (arm_target::low_delete_process): ...this.
199 (arm_new_thread): Turn into...
200 (arm_target::low_new_thread): ...this.
201 (arm_delete_thread): Turn into...
202 (arm_target::low_delete_thread): ...this.
203 (arm_new_fork): Turn into...
204 (arm_target::low_new_fork): ...this.
205 (the_low_target): Remove the op fields.
206 * linux-mips-low.cc (class mips_target) <low_new_process>
207 <low_delete_process>
208 <low_new_thread>
209 <low_delete_thread>
210 <low_new_fork>: Declare.
211 (mips_linux_new_process): Turn into...
212 (mips_target::low_new_process): ...this.
213 (mips_linux_delete_process): Turn into...
214 (mips_target::low_delete_process): ...this.
215 (mips_linux_new_thread): Turn into...
216 (mips_target::low_new_thread): ...this.
217 (mips_linux_delete_thread): Turn into...
218 (mips_target::low_delete_thread): ...this.
219 (mips_linux_new_fork): Turn into...
220 (mips_target::low_new_fork): ...this.
221 (the_low_target): Remove the op fields.
222 * linux-bfin-low.cc (the_low_target): Remove the op fields.
223 * linux-crisv32-low.cc (the_low_target): Ditto.
224 * linux-m32r-low.cc (the_low_target): Ditto.
225 * linux-m68k-low.cc (the_low_target): Ditto.
226 * linux-ppc-low.cc (the_low_target): Ditto.
227 * linux-s390-low.cc (the_low_target): Ditto.
228 * linux-sh-low.cc (the_low_target): Ditto.
229 * linux-tic6x-low.cc (the_low_target): Ditto.
230 * linux-tile-low.cc (the_low_target): Ditto.
231 * linux-xtensa-low.cc (the_low_target): Ditto.
232
cb63de7c
TBA
2332020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
234
235 Turn the 'siginfo_fixup' linux target op into a method of
236 linux_process_target.
237
238 * linux-low.h (struct linux_target_ops): Remove the op.
239 (class linux_process_target) <siginfo_fixup>
240 <low_siginfo_fixup>: Declare.
241 * linux-low.cc (siginfo_fixup): Turn into...
242 (linux_process_target::siginfo_fixup): ...this.
243 (linux_process_target::low_siginfo_fixup): Define.
244 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
245 (x86_siginfo_fixup): Turn into...
246 (x86_target::low_siginfo_fixup): ...this.
247 (the_low_target): Remove the op field.
248 * linux-aarch64-low.cc (class aarch64_target):
249 <low_siginfo_fixup>: Declare.
250 (aarch64_linux_siginfo_fixup): Turn into...
251 (aarch64_target::low_siginfo_fixup): ...this.
252 (the_low_target): Remove the op field.
253 * linux-arm-low.cc (the_low_target): Remove the op field.
254 * linux-bfin-low.cc (the_low_target): Ditto.
255 * linux-crisv32-low.cc (the_low_target): Ditto.
256 * linux-m32r-low.cc (the_low_target): Ditto.
257 * linux-m68k-low.cc (the_low_target): Ditto.
258 * linux-mips-low.cc (the_low_target): Ditto.
259 * linux-ppc-low.cc (the_low_target): Ditto.
260 * linux-s390-low.cc (the_low_target): Ditto.
261 * linux-sh-low.cc (the_low_target): Ditto.
262 * linux-tic6x-low.cc (the_low_target): Ditto.
263 * linux-tile-low.cc (the_low_target): Ditto.
264 * linux-xtensa-low.cc (the_low_target): Ditto.
265
b35db733
TBA
2662020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
267
268 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
269 linux target ops into methods of linux_process_target.
270
271 * linux-low.h (struct linux_target_ops): Remove the ops.
272 (class linux_process_target) <low_collect_ptrace_register>
273 <low_store_ptrace_register>: Declare.
274 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
275 (linux_process_target::low_supply_ptrace_register): Define.
276
277 Update the callers below.
278
279 (linux_process_target::fetch_register)
280 (linux_process_target::store_register)
281
282 * linux-x86-low.cc (the_low_target): Remove the op fields.
283 * linux-aarch64-low.cc (the_low_target): Ditto.
284 * linux-arm-low.cc (the_low_target): Ditto.
285 * linux-bfin-low.cc (the_low_target): Ditto.
286 * linux-crisv32-low.cc (the_low_target): Ditto.
287 * linux-m32r-low.cc (the_low_target): Ditto.
288 * linux-m68k-low.cc (the_low_target): Ditto.
289 * linux-sh-low.cc (the_low_target): Ditto.
290 * linux-sparc-low.cc (the_low_target): Ditto.
291 * linux-tic6x-low.cc (the_low_target): Ditto.
292 * linux-tile-low.cc (the_low_target): Ditto.
293 * linux-xtensa-low.cc (the_low_target): Ditto.
294 * linux-mips-low.cc (class mips_target)
295 <low_collect_ptrace_register>
296 <low_supply_ptrace_register>: Declare.
297 (mips_collect_ptrace_register): Turn into ...
298 (mips_target::low_collect_ptrace_register): ...this.
299 (mips_supply_ptrace_register): Turn into...
300 (mips_target::low_supply_ptrace_register): ...this.
301 (the_low_target): Remove the op fields.
302 * linux-ppc-low.cc (class ppc_target)
303 <low_collect_ptrace_register>
304 <low_supply_ptrace_register>: Declare.
305 (ppc_collect_ptrace_register): Turn into ...
306 (ppc_target::low_collect_ptrace_register): ...this.
307 (ppc_supply_ptrace_register): Turn into ...
308 (ppc_target::low_supply_ptrace_register): ...this.
309 (ppc_fill_gregset): Update for the calls to
310 low_collect_ptrace_register.
311 (the_low_target): Remove the op fields.
312 * linux-s390-low.cc (class s390_target)
313 <low_collect_ptrace_register>
314 <low_supply_ptrace_register>: Declare.
315 (s390_collect_ptrace_register): Turn into ...
316 (s390_target::low_collect_ptrace_register): ...this.
317 (s390_supply_ptrace_register): Turn into ...
318 (s390_target::low_supply_ptrace_register): ...this.
319 (s390_fill_gregset): Update for the calls to
320 low_collect_ptrace_register.
321 (the_low_target): Remove the op fields.
322
ac1bbaca
TBA
3232020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
324
325 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
326 target ops into methods of linux_process_target.
327
328 * linux-low.h (struct linux_target_ops): Remove the ops.
329 (class linux_process_target) <check_stopped_by_watchpoint>
330 <low_stopped_by_watchpoint>
331 <low_stopped_data_address>: Declare.
332 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
333 (linux_process_target::check_stopped_by_watchpoint): ...this.
334 (linux_process_target::low_stopped_by_watchpoint): Define.
335 (linux_process_target::low_stopped_data_address): Define.
336 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
337 <low_stopped_data_address>: Declare.
338 (x86_stopped_by_watchpoint): Turn into...
339 (x86_target::low_stopped_by_watchpoint): ...this.
340 (x86_stopped_data_address): Turn into...
341 (x86_target::low_stopped_data_address): ...this.
342 (the_low_target): Remove the op fields.
343 * linux-aarch64-low.cc (class aarch64_target)
344 <low_stopped_by_watchpoint>
345 <low_stopped_data_address>: Declare.
346 (aarch64_stopped_by_watchpoint): Turn into...
347 (aarch64_target::low_stopped_by_watchpoint): ...this.
348 (aarch64_stopped_data_address): Turn into...
349 (aarch64_target::low_stopped_data_address): ...this.
350 (the_low_target): Remove the op fields.
351 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
352 <low_stopped_data_address>: Declare.
353 (arm_stopped_by_watchpoint): Turn into...
354 (arm_target::low_stopped_by_watchpoint): ...this.
355 (arm_stopped_data_address): Turn into...
356 (arm_target::low_stopped_data_address): ...this.
357 (the_low_target): Remove the op fields.
358 * linux-crisv32-low.cc (class crisv32_target)
359 <low_stopped_by_watchpoint>
360 <low_stopped_data_address>: Declare.
361 (cris_stopped_by_watchpoint): Turn into...
362 (crisv32_target::low_stopped_by_watchpoint): ...this.
363 (cris_stopped_data_address): Turn into...
364 (crisv32_target::low_stopped_data_address): ...this.
365 (the_low_target): Remove the op fields.
366 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
367 <low_stopped_data_address>: Declare.
368 (mips_stopped_by_watchpoint): Turn into...
369 (mips_target::low_stopped_by_watchpoint): ...this.
370 (mips_stopped_data_address): Turn into...
371 (mips_target::low_stopped_data_address): ...this.
372 (the_low_target): Remove the op fields.
373 * linux-bfin-low.cc (the_low_target): Remove the op fields.
374 * linux-m32r-low.cc (the_low_target): Ditto.
375 * linux-m68k-low.cc (the_low_target): Ditto.
376 * linux-ppc-low.cc (the_low_target): Ditto.
377 * linux-s390-low.cc (the_low_target): Ditto.
378 * linux-sh-low.cc (the_low_target): Ditto.
379 * linux-sparc-low.cc (the_low_target): Ditto.
380 * linux-tic6x-low.cc (the_low_target): Ditto.
381 * linux-tile-low.cc (the_low_target): Ditto.
382 * linux-xtensa-low.cc (the_low_target): Ditto.
383
9db9aa23
TBA
3842020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
385
386 Turn the 'insert_point' and 'remove_point' linux target ops into
387 methods of linux_process_target.
388
389 * linux-low.h (struct linux_target_ops): Remove the ops.
390 (class linux_process_target) <low_insert_point>
391 <low_remove_point>: Declare.
392 * linux-low.cc (linux_process_target::low_insert_point)
393 (linux_process_target::low_remove_point): Define.
394 (linux_process_target::insert_point)
395 (linux_process_target::remove_point): Update for calls to
396 low_insert_point and low_remove_point.
397 * linux-x86-low.cc (class x86_target) <low_insert_point>
398 <low_remove_point>: Declare.
399 (x86_insert_point): Turn into...
400 (x86_target::low_insert_point): ...this.
401 (x86_remove_point): Turn into...
402 (x86_target::low_remove_point): ...this.
403 (the_low_target): Remove the op fields.
404 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
405 <low_remove_point>: Declare.
406 (aarch64_insert_point): Turn into...
407 (aarch64_target::low_insert_point): ...this.
408 (aarch64_remove_point): Turn into...
409 (aarch64_target::low_remove_point): ...this.
410 (the_low_target): Remove the op fields.
411 * linux-arm-low.cc (class arm_target) <low_insert_point>
412 <low_remove_point>: Declare.
413 (arm_insert_point): Turn into...
414 (arm_target::low_insert_point): ...this.
415 (arm_remove_point): Turn into...
416 (arm_target::low_remove_point): ...this.
417 (the_low_target): Remove the op fields.
418 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
419 <low_remove_point>: Declare.
420 (crisv32_insert_point): Turn into...
421 (crisv32_target::low_insert_point): ...this.
422 (crisv32_remove_point): Turn into...
423 (crisv32_target::low_remove_point): ...this.
424 (the_low_target): Remove the op fields.
425 * linux-mips-low.cc (class mips_target) <low_insert_point>
426 <low_remove_point>: Declare.
427 (mips_insert_point): Turn into...
428 (mips_target::low_insert_point): ...this.
429 (mips_remove_point): Turn into...
430 (mips_target::low_remove_point): ...this.
431 (the_low_target): Remove the op fields.
432 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
433 <low_remove_point>: Declare.
434 (ppc_insert_point): Turn into...
435 (ppc_target::low_insert_point): ...this.
436 (ppc_remove_point): Turn into...
437 (ppc_target::low_remove_point): ...this.
438 (the_low_target): Remove the op fields.
439 * linux-bfin-low.cc (the_low_target): Remove the op fields.
440 * linux-m32r-low.cc (the_low_target): Ditto.
441 * linux-m68k-low.cc (the_low_target): Ditto.
442 * linux-s390-low.cc (the_low_target): Ditto.
443 * linux-sh-low.cc (the_low_target): Ditto.
444 * linux-sparc-low.cc (the_low_target): Ditto.
445 * linux-tic6x-low.cc (the_low_target): Ditto.
446 * linux-tile-low.cc (the_low_target): Ditto.
447 * linux-xtensa-low.cc (the_low_target): Ditto.
448
007c9b97
TBA
4492020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
450
451 Remove the 'supports_z_point_type' linux target op and let the
452 concrete linux target define it by overriding the op declared in
453 process_stratum_target.
454
455 * linux-low.cc (linux_process_target::supports_z_point_type):
456 Remove.
457 * linux-low.h (struct linux_target_ops): Remove the op.
458 (class linux_process_target) <supports_z_point_type>: Remove.
459 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
460 Declare.
461 (x86_supports_z_point_type): Turn into...
462 (x86_target::supports_z_point_type): ...this.
463 (the_low_target): Remove the op field.
464 * linux-aarch64-low.cc (class aarch64_target)
465 <supports_z_point_type>: Declare.
466 (aarch64_supports_z_point_type): Turn into...
467 (aarch64_target::supports_z_point_type): ...this.
468 (the_low_target): Remove the op field.
469 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
470 Declare.
471 (arm_supports_z_point_type): Turn into...
472 (arm_target::supports_z_point_type): ...this.
473 (the_low_target): Remove the op field.
474 * linux-crisv32-low.cc (class crisv32_target)
475 <supports_z_point_type>: Declare.
476 (cris_supports_z_point_type): Turn into...
477 (crisv32_target::supports_z_point_type): ...this.
478 (the_low_target): Remove the op field.
479 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
480 Declare.
481 (mips_supports_z_point_type): Turn into...
482 (mips_target::supports_z_point_type): ...this.
483 (the_low_target): Remove the op field.
484 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
485 Declare.
486 (ppc_supports_z_point_type): Turn into...
487 (ppc_target::supports_z_point_type): ...this.
488 (the_low_target): Remove the op field.
489 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
490 Declare.
491 (s390_supports_z_point_type): Turn into...
492 (s390_target::supports_z_point_type): ...this.
493 (the_low_target): Remove the op field.
494 * linux-bfin-low.cc (the_low_target): Remove the op field.
495 * linux-m32r-low.cc (the_low_target): Ditto.
496 * linux-m68k-low.cc (the_low_target): Ditto.
497 * linux-sh-low.cc (the_low_target): Ditto.
498 * linux-sparc-low.cc (the_low_target): Ditto.
499 * linux-tic6x-low.cc (the_low_target): Ditto.
500 * linux-tile-low.cc (the_low_target): Ditto.
501 * linux-xtensa-low.cc (the_low_target): Ditto.
502
d7146cda
TBA
5032020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
504
505 Turn the 'breakpoint_at' linux target op into a method of
506 linux_process_target.
507
508 * linux-low.h (struct linux_target_ops): Remove the op.
509 (class linux_process_target) <low_breakpoint_at>: Declare.
510
511 Update the callers below:
512
513 * linux-low.cc (linux_process_target::save_stop_reason)
514 (linux_process_target::thread_still_has_status_pending)
515 (linux_process_target::wait_1)
516
517 * linux-x86-low.cc (class x86_target)
518 <low_breakpoint_at>: Declare.
519 (x86_breakpoint_at): Turn into...
520 (x86_target::low_breakpoint_at): ...this.
521 (the_low_target): Remove the op field.
522 * linux-aarch64-low.cc (class aarch64_target)
523 <low_breakpoint_at>: Declare.
524 (aarch64_breakpoint_at): Turn into...
525 (aarch64_target::low_breakpoint_at): ...this.
526 (the_low_target): Remove the op field.
527 * linux-arm-low.cc (class arm_target)
528 <low_breakpoint_at>: Declare.
529 (arm_target::low_breakpoint_at): Define.
530 (the_low_target): Remove the op field.
531 * linux-bfin-low.cc (class bfin_target)
532 <low_breakpoint_at>: Declare.
533 (bfin_breakpoint_at): Turn into...
534 (bfin_target::low_breakpoint_at): ...this.
535 (the_low_target): Remove the op field.
536 * linux-cris-low.cc (class cris_target)
537 <low_breakpoint_at>: Declare.
538 (cris_breakpoint_at): Turn into...
539 (cris_target::low_breakpoint_at): ...this.
540 (the_low_target): Remove the op field.
541 * linux-crisv32-low.cc (class crisv32_target)
542 <low_breakpoint_at>: Declare.
543 (crisv32_breakpoint_at): Turn into...
544 (crisv32_target::low_breakpoint_at): ...this.
545 (the_low_target): Remove the op field.
546 * linux-ia64-low.cc (class ia64_target)
547 <low_breakpoint_at>: Declare.
548 (ia64_target::low_breakpoint_at): Define.
549 * linux-m32r-low.cc (class m32r_target)
550 <low_breakpoint_at>: Declare.
551 (m32r_breakpoint_at): Turn into...
552 (m32r_target::low_breakpoint_at): ...this.
553 (the_low_target): Remove the op field.
554 * linux-m68k-low.cc (class m68k_target)
555 <low_breakpoint_at>: Declare.
556 (m68k_breakpoint_at): Turn into...
557 (m68k_target::low_breakpoint_at): ...this.
558 (the_low_target): Remove the op field.
559 * linux-mips-low.cc (class mips_target)
560 <low_breakpoint_at>: Declare.
561 (mips_breakpoint_at): Turn into...
562 (mips_target::low_breakpoint_at): ...this.
563 (the_low_target): Remove the op field.
564 * linux-nios2-low.cc (class nios2_target)
565 <low_breakpoint_at>: Declare.
566 (nios2_breakpoint_at): Turn into...
567 (nios2_target::low_breakpoint_at): ...this.
568 (the_low_target): Remove the op field.
569 * linux-ppc-low.cc (class ppc_target)
570 <low_breakpoint_at>: Declare.
571 (ppc_breakpoint_at): Turn into...
572 (ppc_target::low_breakpoint_at): ...this.
573 (the_low_target): Remove the op field.
574 * linux-riscv-low.cc (class riscv_target)
575 <low_breakpoint_at>: Declare.
576 (riscv_breakpoint_at): Turn into...
577 (riscv_target::low_breakpoint_at): ...this.
578 (the_low_target): Remove the op field.
579 * linux-s390-low.cc (class s390_target)
580 <low_breakpoint_at>: Declare.
581 (s390_breakpoint_at): Turn into...
582 (s390_target::low_breakpoint_at): ...this.
583 (the_low_target): Remove the op field.
584 * linux-sh-low.cc (class sh_target)
585 <low_breakpoint_at>: Declare.
586 (sh_breakpoint_at): Turn into...
587 (sh_target::low_breakpoint_at): ...this.
588 (the_low_target): Remove the op field.
589 * linux-sparc-low.cc (class sparc_target)
590 <low_breakpoint_at>: Declare.
591 (sparc_breakpoint_at): Turn into...
592 (sparc_target::low_breakpoint_at): ...this.
593 (the_low_target): Remove the op field.
594 * linux-tic6x-low.cc (class tic6x_target)
595 <low_breakpoint_at>: Declare.
596 (tic6x_breakpoint_at): Turn into...
597 (tic6x_target::low_breakpoint_at): ...this.
598 (the_low_target): Remove the op field.
599 * linux-tile-low.cc (class tile_target)
600 <low_breakpoint_at>: Declare.
601 (tile_breakpoint_at): Turn into...
602 (tile_target::low_breakpoint_at): ...this.
603 (the_low_target): Remove the op field.
604 * linux-xtensa-low.cc (class xtensa_target)
605 <low_breakpoint_at>: Declare.
606 (xtensa_breakpoint_at): Turn into...
607 (xtensa_target::low_breakpoint_at): ...this.
608 (the_low_target): Remove the op field.
609
d4807ea2
TBA
6102020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
611
612 Turn the 'decr_pc_after_break' linux_target_ops field into
613 a method of linux_process_target.
614
615 * linux-low.h (struct linux_target_ops)
616 <decr_pc_after_break>: Remove.
617 (class linux_process_target) <low_decr_pc_after_break>: New method
618 declaration.
619 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
620 New method implementation.
621
622 Update the users below.
623
624 (linux_process_target::save_stop_reason)
625 (linux_process_target::wait_1)
626 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
627 New declaration.
628 (x86_target::low_decr_pc_after_break): New method implementation.
629 (the_low_target): Remove the field.
630 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
631 New declaration.
632 (bfin_target::low_decr_pc_after_break): New method implementation.
633 (the_low_target): Remove the field.
634 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
635 New declaration.
636 (m68k_target::low_decr_pc_after_break): New method implementation.
637 (the_low_target): Remove the field.
638 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
639 New declaration.
640 (s390_target::low_decr_pc_after_break): New method implementation.
641 (the_low_target): Remove the field.
642 * linux-aarch64-low.cc (the_low_target): Remove the field.
643 * linux-arm-low.cc (the_low_target): Remove the field.
644 * linux-cris-low.cc (the_low_target): Remove the field.
645 * linux-crisv32-low.cc (the_low_target): Remove the field.
646 * linux-m32r-low.cc (the_low_target): Remove the field.
647 * linux-mips-low.cc (the_low_target): Remove the field.
648 * linux-nios2-low.cc (the_low_target): Remove the field.
649 * linux-ppc-low.cc (the_low_target): Remove the field.
650 * linux-riscv-low.cc (the_low_target): Remove the field.
651 * linux-sh-low.cc (the_low_target): Remove the field.
652 * linux-sparc-low.cc (the_low_target): Remove the field.
653 * linux-tic6x-low.cc (the_low_target): Remove the field.
654 * linux-tile-low.cc (the_low_target): Remove the field.
655 * linux-xtensa-low.cc (the_low_target): Remove the field.
656
7582c77c
TBA
6572020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
658
659 Remove the 'supports_software_single_step' linux target op and let
660 the concrete linux target define it by overriding the op in
661 process_stratum_target.
662 Turn the 'get_next_pcs' linux target op into a method of
663 linux_process_target.
664
665 * linux-low.h (struct linux_target_ops): Remove the ops.
666 (class linux_process_target) <supports_software_single_step>:
667 Remove.
668 <low_get_next_pcs>: Declare.
669 * linux-low.cc (can_software_single_step): Remove.
670 (linux_process_target::low_get_next_pcs): Define.
671 (linux_process_target::supports_software_single_step): Remove.
672
673 Update the callers below.
674
675 (linux_process_target::handle_extended_wait)
676 (linux_process_target::wait_1)
677 (linux_process_target::install_software_single_step_breakpoints)
678 (linux_process_target::single_step)
679 (linux_process_target::thread_needs_step_over)
680 (linux_process_target::proceed_one_lwp)
681 (linux_process_target::supports_range_stepping)
682
683 * linux-x86-low.cc (the_low_target): Remove the op field.
684 * linux-aarch64-low.cc (the_low_target): Ditto.
685 * linux-bfin-low.cc (the_low_target): Ditto.
686 * linux-cris-low.cc (the_low_target): Ditto.
687 * linux-crisv32-low.cc (the_low_target): Ditto.
688 * linux-m32r-low.cc (the_low_target): Ditto.
689 * linux-m68k-low.cc (the_low_target): Ditto.
690 * linux-mips-low.cc (the_low_target): Ditto.
691 * linux-nios2-low.cc (the_low_target): Ditto.
692 * linux-ppc-low.cc (the_low_target): Ditto.
693 * linux-riscv-low.cc (the_low_target): Ditto.
694 * linux-s390-low.cc (the_low_target): Ditto.
695 * linux-sh-low.cc (the_low_target): Ditto.
696 * linux-sparc-low.cc (the_low_target): Ditto.
697 * linux-tic6x-low.cc (the_low_target): Ditto.
698 * linux-tile-low.cc (the_low_target): Ditto.
699 * linux-xtensa-low.cc (the_low_target): Ditto.
700 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
701 <supports_software_single_step>: Declare.
702 (arm_target::supports_software_single_step): Define.
703 (arm_gdbserver_get_next_pcs): Turn into...
704 (arm_target::low_get_next_pcs): ...this.
705 (the_low_target): Remove the op field.
706
3ca4edb6
TBA
7072020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
708
709 Remove the 'sw_breakpoint_from_kind' linux target op, and let
710 the concrete linux target define it by overriding the op
711 in process_stratum_target.
712
713 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
714 Remove.
715 * linux-low.h (struct linux_target_ops): Remove the op.
716 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
717 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
718 Declare.
719 (x86_sw_breakpoint_from_kind): Turn into...
720 (x86_target::sw_breakpoint_from_kind): ...this.
721 (the_low_target): Remove the op field.
722 * linux-aarch64-low.cc (class aarch64_target)
723 <sw_breakpoint_from_kind>: Declare.
724 (aarch64_sw_breakpoint_from_kind): Turn into...
725 (aarch64_target::sw_breakpoint_from_kind): ...this.
726 (the_low_target): Remove the op field.
727 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
728 Declare.
729 (arm_target::sw_breakpoint_from_kind): Define.
730 (the_low_target): Remove the op field.
731 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
732 Declare.
733 (bfin_sw_breakpoint_from_kind): Turn into...
734 (bfin_target::sw_breakpoint_from_kind): ...this.
735 (the_low_target): Remove the op field.
736 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
737 Declare.
738 (cris_sw_breakpoint_from_kind): Turn into...
739 (cris_target::sw_breakpoint_from_kind): ...this.
740 (the_low_target): Remove the op field.
741 * linux-crisv32-low.cc (class crisv32_target)
742 <sw_breakpoint_from_kind>: Declare.
743 (cris_sw_breakpoint_from_kind): Turn into...
744 (crisv32_target::sw_breakpoint_from_kind): ...this.
745 (the_low_target): Remove the op field.
746 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
747 Declare.
748 (ia64_target::sw_breakpoint_from_kind): Define.
749 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
750 Declare.
751 (m32r_sw_breakpoint_from_kind): Turn into...
752 (m32r_target::sw_breakpoint_from_kind): ...this.
753 (the_low_target): Remove the op field.
754 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
755 Declare.
756 (m68k_sw_breakpoint_from_kind): Turn into...
757 (m68k_target::sw_breakpoint_from_kind): ...this.
758 (the_low_target): Remove the op field.
759 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
760 Declare.
761 (mips_sw_breakpoint_from_kind): Turn into...
762 (mips_target::sw_breakpoint_from_kind): ...this.
763 (the_low_target): Remove the op field.
764 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
765 Declare.
766 (nios2_sw_breakpoint_from_kind): Turn into...
767 (nios2_target::sw_breakpoint_from_kind): ...this.
768 (the_low_target): Remove the op field.
769 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
770 Declare.
771 (ppc_sw_breakpoint_from_kind): Turn into...
772 (ppc_target::sw_breakpoint_from_kind): ...this.
773 (the_low_target): Remove the op field.
774 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
775 Declare.
776 (riscv_sw_breakpoint_from_kind): Turn into...
777 (riscv_target::sw_breakpoint_from_kind): ...this.
778 (the_low_target): Remove the op field.
779 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
780 Declare.
781 (s390_sw_breakpoint_from_kind): Turn into...
782 (s390_target::sw_breakpoint_from_kind): ...this.
783 (the_low_target): Remove the op field.
784 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
785 Declare.
786 (sh_sw_breakpoint_from_kind): Turn into...
787 (sh_target::sw_breakpoint_from_kind): ...this.
788 (the_low_target): Remove the op field.
789 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
790 Declare.
791 (sparc_sw_breakpoint_from_kind): Turn into...
792 (sparc_target::sw_breakpoint_from_kind): ...this.
793 (the_low_target): Remove the op field.
794 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
795 Declare.
796 (tic6x_sw_breakpoint_from_kind): Turn into...
797 (tic6x_target::sw_breakpoint_from_kind): ...this.
798 (the_low_target): Remove the op field.
799 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
800 Declare.
801 (tile_sw_breakpoint_from_kind): Turn into...
802 (tile_target::sw_breakpoint_from_kind): ...this.
803 (the_low_target): Remove the op field.
804 * linux-xtensa-low.cc (class xtensa_target)
805 <sw_breakpoint_from_kind>: Declare.
806 (xtensa_sw_breakpoint_from_kind): Turn into...
807 (xtensa_target::sw_breakpoint_from_kind): ...this.
808 (the_low_target): Remove the op field.
809
06250e4e
TBA
8102020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
811
812 Remove the 'breakpoint_kind_from_pc' and
813 'breakpoint_kind_from_current_state' linux target ops, and let the
814 concrete linux target define them by overriding the ops of
815 process_stratum_target.
816
817 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
818 Remove.
819 (linux_process_target::breakpoint_kind_from_current_state): Remove.
820 * linux-low.h (struct linux_target_ops): Remove ops.
821 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
822 <breakpoint_kind_from_current_state>: Remove.
823 * linux-x86-low.cc (the_low_target): Remove the op fields.
824 * linux-bfin-low.cc (the_low_target): Ditto.
825 * linux-cris-low.cc (the_low_target): Ditto.
826 * linux-crisv32-low.cc (the_low_target): Ditto.
827 * linux-m32r-low.cc (the_low_target): Ditto.
828 * linux-m68k-low.cc (the_low_target): Ditto.
829 * linux-mips-low.cc (the_low_target): Ditto.
830 * linux-nios2-low.cc (the_low_target): Ditto.
831 * linux-ppc-low.cc (the_low_target): Ditto.
832 * linux-s390-low.cc (the_low_target): Ditto.
833 * linux-sh-low.cc (the_low_target): Ditto.
834 * linux-sparc-low.cc (the_low_target): Ditto.
835 * linux-tic6x-low.cc (the_low_target): Ditto.
836 * linux-tile-low.cc (the_low_target): Ditto.
837 * linux-xtensa-low.cc (the_low_target): Ditto.
838 * linux-aarch64-low.cc (class aarch64_target)
839 <breakpoint_kind_from_pc>
840 <breakpoint_kind_from_current_state>: Declare.
841 (aarch64_breakpoint_kind_from_pc): Turn into...
842 (aarch64_target::breakpoint_kind_from_pc): ...this.
843 (aarch64_breakpoint_kind_from_current_state): Turn into...
844 (aarch64_target::breakpoint_kind_from_current_state): ...this.
845 (the_low_target): Remove the op fields.
846 * linux-arm-low.cc (class arm_target):
847 <breakpoint_kind_from_pc>
848 <breakpoint_kind_from_current_state>: Declare.
849 (arm_target::breakpoint_kind_from_pc): Define.
850 (arm_target::breakpoint_kind_from_current_state): Define.
851 (the_low_target): Remove the op fields.
852 * linux-riscv-low.cc (class riscv_target):
853 <breakpoint_kind_from_pc>: Declare.
854 (riscv_breakpoint_kind_from_pc): Turn into...
855 (riscv_target::breakpoint_kind_from_pc): ...this.
856 (the_low_target): Remove the op fields.
857
bf9ae9d8
TBA
8582020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
859
860 Turn the 'get_pc' and 'set_pc' linux target ops into methods
861 of linux_process_target.
862
863 * linux-low.h (struct linux_target_ops): Remove the ops.
864 (class linux_process_target) <low_supports_breakpoints>
865 <low_get_pc>
866 <low_set_pc>: Declare.
867 * linux-low.cc (supports_breakpoints): Turn into...
868 (linux_process_target::low_supports_breakpoints): ...this.
869 (linux_process_target::low_get_pc): Define.
870 (linux_process_target::low_set_pc): Define.
871
872 Update the callers below.
873
874 (linux_process_target::get_pc)
875 (linux_process_target::save_stop_reason)
876 (linux_process_target::maybe_move_out_of_jump_pad)
877 (linux_process_target::wait_1)
878 (linux_process_target::resume_one_lwp_throw)
879 (linux_process_target::resume)
880 (linux_process_target::proceed_all_lwps)
881 (linux_process_target::read_pc)
882 (linux_process_target::write_pc)
883
884 * linux-x86-low.cc (class linux_process_target)
885 <low_supports_breakpoints>
886 <low_get_pc>
887 <low_set_pc>: Declare.
888 (x86_target::low_supports_breakpoints): Define.
889 (x86_get_pc): Turn into...
890 (x86_target::low_get_pc): ...this.
891 (x86_set_pc): Turn into...
892 (x86_target::low_set_pc): ...this.
893 (the_low_target): Remove the op fields.
894 * linux-arm-low.cc (class arm_target)
895 <low_supports_breakpoints>
896 <low_get_pc>
897 <low_set_pc>: Declare.
898 (arm_target::low_supports_breakpoints)
899 (arm_target::low_get_pc)
900 (arm_target::low_set_pc): Define.
901 (the_low_target): Remove the op fields.
902 * linux-bfin-low.cc (class bfin_target)
903 <low_supports_breakpoints>
904 <low_get_pc>
905 <low_set_pc>: Declare.
906 (bfin_target::low_supports_breakpoints)
907 (bfin_target::low_get_pc)
908 (bfin_target::low_set_pc): Define.
909 (the_low_target): Remove the op fields.
910 * linux-cris-low.cc (class cris_target)
911 <low_supports_breakpoints>
912 <low_get_pc>
913 <low_set_pc>: Declare.
914 (cris_target::low_supports_breakpoints)
915 (cris_target::low_get_pc)
916 (cris_target::low_set_pc): Define.
917 (the_low_target): Remove the op fields.
918 * linux-crisv32-low.cc (class crisv32_target)
919 <low_supports_breakpoints>
920 <low_get_pc>
921 <low_set_pc>: Declare.
922 (crisv32_target::low_supports_breakpoints)
923 (crisv32_target::low_get_pc)
924 (crisv32_target::low_set_pc): Define.
925 (the_low_target): Remove the op fields.
926 * linux-m32r-low.cc (class m32r_target)
927 <low_supports_breakpoints>
928 <low_get_pc>
929 <low_set_pc>: Declare.
930 (m32r_target::low_supports_breakpoints)
931 (m32r_target::low_get_pc)
932 (m32r_target::low_set_pc): Define.
933 (the_low_target): Remove the op fields.
934 * linux-m68k-low.cc (class m68k_target)
935 <low_supports_breakpoints>
936 <low_get_pc>
937 <low_set_pc>: Declare.
938 (m68k_target::low_supports_breakpoints)
939 (m68k_target::low_get_pc)
940 (m68k_target::low_set_pc): Define.
941 (the_low_target): Remove the op fields.
942 * linux-nios2-low.cc (class nios2_target)
943 <low_supports_breakpoints>
944 <low_get_pc>
945 <low_set_pc>: Declare.
946 (nios2_target::low_supports_breakpoints)
947 (nios2_target::low_get_pc)
948 (nios2_target::low_set_pc): Define.
949 (the_low_target): Remove the op fields.
950 * linux-sh-low.cc (class sh_target)
951 <low_supports_breakpoints>
952 <low_get_pc>
953 <low_set_pc>: Declare.
954 (sh_target::low_supports_breakpoints)
955 (sh_target::low_get_pc)
956 (sh_target::low_set_pc): Define.
957 (the_low_target): Remove the op fields.
958 * linux-xtensa-low.cc (class xtensa_target)
959 <low_supports_breakpoints>
960 <low_get_pc>
961 <low_set_pc>: Declare.
962 (xtensa_target::low_supports_breakpoints)
963 (xtensa_target::low_get_pc)
964 (xtensa_target::low_set_pc): Define.
965 (the_low_target): Remove the op fields.
966 * linux-sparc-low.cc (class sparc_target)
967 <low_supports_breakpoints>
968 <low_get_pc>: Declare.
969 (sparc_target::low_supports_breakpoints)
970 (sparc_target::low_get_pc): Define.
971 (the_low_target): Remove the op fields.
972 * linux-tile-low.cc (class tile_target)
973 <low_supports_breakpoints>
974 <low_get_pc>
975 <low_set_pc>: Declare.
976 (tile_target::low_supports_breakpoints)
977 (tile_target::low_get_pc)
978 (tile_target::low_set_pc): Define.
979 (the_low_target): Remove the op fields.
980 * linux-aarch64-low.cc (class aarch64_target)
981 <low_supports_breakpoints>
982 <low_get_pc>
983 <low_set_pc>: Declare.
984 (aarch64_target::low_supports_breakpoints): Define.
985 (aarch64_get_pc): Turn into...
986 (aarch64_target::low_get_pc): ...this.
987 (aarch64_set_pc): Turn into...
988 (aarch64_target::low_set_pc): ...this.
989 (the_low_target): Remove the op fields.
990 * linux-mips-low.cc (class mips_target)
991 <low_supports_breakpoints>
992 <low_get_pc>
993 <low_set_pc>: Declare.
994 (mips_target::low_supports_breakpoints): Define.
995 (mips_get_pc): Turn into...
996 (mips_target::low_get_pc): ...this.
997 (mips_set_pc): Turn into...
998 (mips_target::low_set_pc): ...this.
999 (the_low_target): Remove the op fields.
1000 * linux-ppc-low.cc (class ppc_target)
1001 <low_supports_breakpoints>
1002 <low_get_pc>
1003 <low_set_pc>: Declare.
1004 (ppc_target::low_supports_breakpoints): Define.
1005 (ppc_get_pc): Turn into...
1006 (ppc_target::low_get_pc): ...this.
1007 (ppc_set_pc): Turn into...
1008 (ppc_target::low_set_pc): ...this.
1009 (the_low_target): Remove the op fields.
1010 * linux-riscv-low.cc (class riscv_target)
1011 <low_supports_breakpoints>
1012 <low_get_pc>
1013 <low_set_pc>: Declare.
1014 (riscv_target::low_supports_breakpoints): Define.
1015 (riscv_get_pc): Turn into...
1016 (riscv_target::low_get_pc): ...this.
1017 (riscv_set_pc): Turn into...
1018 (riscv_target::low_set_pc): ...this.
1019 (the_low_target): Remove the op fields.
1020 * linux-s390-low.cc (class s390_target)
1021 <low_supports_breakpoints>
1022 <low_get_pc>
1023 <low_set_pc>: Declare.
1024 (s390_target::low_supports_breakpoints): Define.
1025 (s390_get_pc): Turn into...
1026 (s390_target::low_get_pc): ...this.
1027 (s390_set_pc): Turn into...
1028 (s390_target::low_set_pc): ...this.
1029 (the_low_target): Remove the op fields.
1030 * linux-tic6x-low.cc (class tic6x_target)
1031 <low_supports_breakpoints>
1032 <low_get_pc>
1033 <low_set_pc>: Declare.
1034 (tic6x_target::low_supports_breakpoints): Define.
1035 (tic6x_get_pc): Turn into...
1036 (tic6x_target::low_get_pc): ...this.
1037 (tic6x_set_pc): Turn into...
1038 (tic6x_target::low_set_pc): ...this.
1039 (the_low_target): Remove the op fields.
1040
df95181f
TBA
10412020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1042
1043 Turn some more static methods in linux-low into private methods
1044 of linux_process_target.
1045
1046 * linux-low.cc (get_pc): Turn into...
1047 (linux_process_target::get_pc): ...this.
1048 (save_stop_reason): Turn into...
1049 (linux_process_target::save_stop_reason): ...this.
1050 (thread_still_has_status_pending_p): Turn into...
1051 (linux_process_target::thread_still_has_status_pending): ...this.
1052 (status_pending_p_callback): Turn into...
1053 (linux_process_target::status_pending_p_callback): ...this.
1054 (resume_stopped_resumed_lwps): Turn into...
1055 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1056 (install_software_single_step_breakpoints): Turn into...
1057 (linux_process_target::install_software_single_step_breakpoints):
1058 ...this.
1059 (single_step): Turn into...
1060 (linux_process_target::single_step): ...this.
1061 (linux_resume_one_lwp_throw): Turn into...
1062 (linux_process_target::resume_one_lwp_throw): ...this.
1063 (linux_resume_one_lwp): Turn into...
1064 (linux_process_target::resume_one_lwp): ...this.
1065 (resume_status_pending_p): Turn into...
1066 (linux_process_target::resume_status_pending): ...this.
1067 (need_step_over_p): Turn into...
1068 (linux_process_target::thread_needs_step_over): ...this.
1069 (linux_resume_one_thread): Turn into...
1070 (linux_process_target::resume_one_thread): ...this.
1071 (proceed_one_lwp): Turn into...
1072 (linux_process_target::proceed_one_lwp): ...this.
1073 (unsuspend_and_proceed_one_lwp): Turn into...
1074 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1075
1076 Update the calls/references to the above functions below.
1077
1078 (linux_process_target::handle_extended_wait)
1079 (linux_process_target::filter_event)
1080 (linux_process_target::wait_for_event_filtered)
1081 (linux_process_target::wait_1)
1082 (linux_process_target::move_out_of_jump_pad)
1083 (linux_process_target::start_step_over)
1084 (linux_process_target::resume)
1085 (linux_process_target::proceed_all_lwps)
1086 (regsets_store_inferior_registers)
1087 (linux_process_target::store_register)
1088
1089 * linux-low.h (class linux_process_target)
1090 <get_pc>
1091 <save_stop_reason>
1092 <thread_still_has_status_pending>
1093 <status_pending_p_callback>
1094 <resume_stopped_resumed_lwps>
1095 <install_software_single_step_breakpoints>
1096 <single_step>
1097 <resume_one_lwp_throw>
1098 <resume_one_lwp>
1099 <resume_status_pending>
1100 <thread_needs_step_over>
1101 <resume_one_thread>
1102 <proceed_one_lwp>
1103 <unsuspend_and_proceed_one_lwp>: Declare.
1104
bd70b1f2
TBA
11052020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1106
1107 Turn the 'fetch_register' linux target op into a method of
1108 linux_process_target.
1109
1110 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1111 (class linux_process_target) <low_fetch_register>: Declare.
1112 * linux-x86-low.cc (the_low_target)
1113 * linux-aarch64-low.cc (the_low_target)
1114 * linux-arm-low.cc (the_low_target)
1115 * linux-bfin-low.cc (the_low_target)
1116 * linux-cris-low.cc (the_low_target)
1117 * linux-crisv32-low.cc (the_low_target)
1118 * linux-m32r-low.cc (the_low_target)
1119 * linux-m68k-low.cc (the_low_target)
1120 * linux-nios2-low.cc (the_low_target)
1121 * linux-ppc-low.cc (the_low_target)
1122 * linux-s390-low.cc (the_low_target)
1123 * linux-sh-low.cc (the_low_target)
1124 * linux-sparc-low.cc (the_low_target)
1125 * linux-tic6x-low.cc (the_low_target)
1126 * linux-tile-low.cc (the_low_target)
1127 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1128 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1129 Declare.
1130 (ia64_fetch_register): Turn into...
1131 (ia64_target::low_fetch_register): ...this.
1132 (the_low_target): Remove the op field.
1133 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1134 Declare.
1135 (mips_fetch_register): Turn into...
1136 (mips_target::low_fetch_register): ...this.
1137 (the_low_target): Remove the op field.
1138 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1139 Declare.
1140 (riscv_fetch_register): Turn into...
1141 (riscv_target::low_fetch_register): ...this.
1142 (the_low_target): Remove the op field.
1143
1144 Update the callers below.
1145
1146 * linux-low.cc (linux_process_target::fetch_registers)
1147 (linux_process_target::low_fetch_register)
1148
daca57a7
TBA
11492020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1150
1151 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1152 linux target ops into methods of linux_process_target.
1153
1154 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1155 (class linux_process_target) <fetch_register>
1156 <store_register>
1157 <usr_fetch_inferior_registers>
1158 <usr_store_inferior_registers>
1159 <low_cannot_fetch_register>
1160 <low_cannot_fetch_register> Declare.
1161 * linux-low.cc (fetch_register): Turn into...
1162 (linux_process_target::fetch_register): ...this.
1163 (store_register): Turn into ...
1164 (linux_process_target::store_register): ...this.
1165 (usr_fetch_inferior_registers): Turn into...
1166 (linux_process_target::usr_fetch_inferior_registers): ...this.
1167 (usr_store_inferior_registers): Turn into...
1168 (linux_process_target::usr_store_inferior_registers): ...this.
1169 * linux-x86-low.cc (class x86_target)
1170 <low_cannot_fetch_register>
1171 <low_cannot_store_register>: Declare.
1172 (x86_cannot_store_register): Turn into...
1173 (x86_target::low_cannot_store_register): ...this.
1174 (x86_cannot_fetch_register): Turn into...
1175 (x86_target::low_cannot_fetch_register): ...this.
1176 (the_low_target): Remove the target op fields.
1177 * linux-aarch64-low.cc (class aarch64_target)
1178 <low_cannot_fetch_register>
1179 <low_cannot_store_register>: Declare.
1180 (aarch64_target::low_cannot_fetch_register)
1181 (aarch64_target::low_cannot_store_register): Define.
1182 (the_low_target): Remove the op fields.
1183 * linux-arm-low.cc (class arm_target)
1184 <low_cannot_fetch_register>
1185 <low_cannot_store_register>: Declare.
1186 (arm_cannot_fetch_register): Turn into...
1187 (arm_target::low_cannot_fetch_register): ...this.
1188 (arm_cannot_store_register): Turn into...
1189 (arm_target::low_cannot_store_register): ...this.
1190 (the_low_target): Remove the op fields.
1191 * linux-bfin-low.cc (class bfin_target)
1192 <low_cannot_fetch_register>
1193 <low_cannot_store_register>: Declare.
1194 (bfin_cannot_fetch_register): Turn into...
1195 (bfin_target::low_cannot_fetch_register): ...this.
1196 (bfin_cannot_store_register): Turn into...
1197 (bfin_target::low_cannot_store_register): ...this.
1198 (the_low_target): Remove the op fields.
1199 * linux-cris-low.cc (class cris_target)
1200 <low_cannot_fetch_register>
1201 <low_cannot_store_register>: Declare.
1202 (cris_cannot_fetch_register): Turn into...
1203 (cris_target::low_cannot_fetch_register): ...this.
1204 (cris_cannot_store_register): Turn into...
1205 (cris_target::low_cannot_store_register): ...this.
1206 (the_low_target): Remove the op fields.
1207 * linux-crisv32-low.cc (class crisv32_target)
1208 <low_cannot_fetch_register>
1209 <low_cannot_store_register>: Declare.
1210 (crisv32_target::low_cannot_fetch_register)
1211 (crisv32_target::low_cannot_store_register): Define.
1212 (the_low_target): Remove the op fields.
1213 * linux-ia64-low.cc (class ia64_target)
1214 <low_cannot_fetch_register>
1215 <low_cannot_store_register>: Declare.
1216 (ia64_cannot_fetch_register): Turn into...
1217 (ia64_target::low_cannot_fetch_register): ...this.
1218 (ia64_cannot_store_register): Turn into...
1219 (ia64_target::low_cannot_store_register): ...this.
1220 (the_low_target): Remove the op fields.
1221 * linux-m32r-low.cc (class m32r_target)
1222 <low_cannot_fetch_register>
1223 <low_cannot_store_register>: Declare.
1224 (m32r_cannot_fetch_register): Turn into...
1225 (m32r_target::low_cannot_fetch_register): ...this.
1226 (m32r_cannot_store_register): Turn into...
1227 (m32r_target::low_cannot_store_register): ...this.
1228 (the_low_target): Remove the op fields.
1229 * linux-m68k-low.cc (class m68k_target)
1230 <low_cannot_fetch_register>
1231 <low_cannot_store_register>: Declare.
1232 (m68k_cannot_fetch_register): Turn into...
1233 (m68k_target::low_cannot_fetch_register): ...this.
1234 (m68k_cannot_store_register): Turn into...
1235 (m68k_target::low_cannot_store_register): ...this.
1236 (the_low_target): Remove the op fields.
1237 * linux-mips-low.cc (class mips_target)
1238 <low_cannot_fetch_register>
1239 <low_cannot_store_register>: Declare.
1240 (mips_cannot_fetch_register): Turn into...
1241 (mips_target::low_cannot_fetch_register): ...this.
1242 (mips_cannot_store_register): Turn into...
1243 (mips_target::low_cannot_store_register): ...this.
1244 (get_usrregs_info): Inline at the call sites in
1245 low_cannot_fetch_register and low_cannot_store_register,
1246 and remove.
1247 (the_low_target): Remove the op fields.
1248 * linux-nios2-low.cc (class nios2_target)
1249 <low_cannot_fetch_register>
1250 <low_cannot_store_register>: Declare.
1251 (nios2_cannot_fetch_register): Turn into...
1252 (nios2_target::low_cannot_fetch_register): ...this.
1253 (nios2_cannot_store_register): Turn into...
1254 (nios2_target::low_cannot_store_register): ...this.
1255 (the_low_target): Remove the op fields.
1256 * linux-ppc-low.cc (class ppc_target)
1257 <low_cannot_fetch_register>
1258 <low_cannot_store_register>: Declare.
1259 (ppc_cannot_fetch_register): Turn into...
1260 (ppc_target::low_cannot_fetch_register): ...this.
1261 (ppc_cannot_store_register): Turn into...
1262 (ppc_target::low_cannot_store_register): ...this.
1263 (the_low_target): Remove the op fields.
1264 * linux-riscv-low.cc (class riscv_target)
1265 <low_cannot_fetch_register>
1266 <low_cannot_store_register>: Declare.
1267 (riscv_target::low_cannot_fetch_register)
1268 (riscv_target::low_cannot_store_register): Define.
1269 (the_low_target): Remove the op fields.
1270 * linux-s390-low.cc (class s390_target)
1271 <low_cannot_fetch_register>
1272 <low_cannot_store_register>: Declare.
1273 (s390_cannot_fetch_register): Turn into...
1274 (s390_target::low_cannot_fetch_register): ...this.
1275 (s390_cannot_store_register): Turn into...
1276 (s390_target::low_cannot_store_register): ...this.
1277 (the_low_target): Remove the op fields.
1278 * linux-sh-low.cc (class sh_target)
1279 <low_cannot_fetch_register>
1280 <low_cannot_store_register>: Declare.
1281 (sh_cannot_fetch_register): Turn into...
1282 (sh_target::low_cannot_fetch_register): ...this.
1283 (sh_cannot_store_register): Turn into...
1284 (sh_target::low_cannot_store_register): ...this.
1285 (the_low_target): Remove the op fields.
1286 * linux-sparc-low.cc (class sparc_target)
1287 <low_cannot_fetch_register>
1288 <low_cannot_store_register>: Declare.
1289 (sparc_cannot_fetch_register): Turn into...
1290 (sparc_target::low_cannot_fetch_register): ...this.
1291 (sparc_cannot_store_register): Turn into...
1292 (sparc_target::low_cannot_store_register): ...this.
1293 (the_low_target): Remove the op fields.
1294 * linux-tic6x-low.cc (class tic6x_target)
1295 <low_cannot_fetch_register>
1296 <low_cannot_store_register>: Declare.
1297 (tic6x_cannot_fetch_register): Turn into...
1298 (tic6x_target::low_cannot_fetch_register): ...this.
1299 (tic6x_cannot_store_register): Turn into...
1300 (tic6x_target::low_cannot_store_register): ...this.
1301 (the_low_target): Remove the op fields.
1302 * linux-tile-low.cc (class tile_target)
1303 <low_cannot_fetch_register>
1304 <low_cannot_store_register>: Declare.
1305 (tile_cannot_fetch_register): Turn into...
1306 (tile_target::low_cannot_fetch_register): ...this.
1307 (tile_cannot_store_register): Turn into...
1308 (tile_target::low_cannot_store_register): ...this.
1309 (the_low_target): Remove the op fields.
1310 * linux-xtensa-low.cc (class xtensa_target)
1311 <low_cannot_fetch_register>
1312 <low_cannot_store_register>: Declare.
1313 (xtensa_target::low_cannot_fetch_register)
1314 (xtensa_target::low_cannot_store_register): Define.
1315 (the_low_target): Remove the op fields.
1316
aa8d21c9
TBA
13172020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1318
1319 Turn the 'regs_info' linux target op into a method of
1320 linux_process_target.
1321
1322 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1323 (class linux_process_target) <get_regs_info>: Define.
1324
1325 Update the callers below.
1326
1327 * linux-low.cc (linux_process_target::fetch_registers)
1328 (linux_process_target::store_registers)
1329 * proc-service.cc (gregset_info)
1330
1331 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1332 (x86_linux_regs_info): Turn into ...
1333 (x86_target::get_regs_info): ...this.
1334 (the_low_target): Remove the op field.
1335 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1336 Declare.
1337 (aarch64_regs_info): Turn into ...
1338 (aarch64_target::get_regs_info): ...this.
1339 (the_low_target): Remove the op field.
1340 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1341 (arm_regs_info): Turn into ...
1342 (arm_target::get_regs_info): ...this.
1343 (the_low_target): Remove the op field.
1344 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1345 (bfin_regs_info): Turn into ...
1346 (bfin_target::get_regs_info): ...this.
1347 (the_low_target): Remove the op field.
1348 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1349 (cris_regs_info): Turn into ...
1350 (cris_target::get_regs_info): ...this.
1351 (the_low_target): Remove the op field.
1352 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1353 Declare.
1354 (crisv32_regs_info): Turn into ...
1355 (crisv32_target::get_regs_info): ...this.
1356 (the_low_target): Remove the op field.
1357 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1358 (ia64_regs_info): Turn into ...
1359 (ia64_target::get_regs_info): ...this.
1360 (the_low_target): Remove the op field.
1361 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1362 (m32r_regs_info): Turn into ...
1363 (m32r_target::get_regs_info): ...this.
1364 (the_low_target): Remove the op field.
1365 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1366 (m68k_regs_info): Turn into ...
1367 (m68k_target::get_regs_info): ...this.
1368 (the_low_target): Remove the op field.
1369 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1370 (mips_regs_info): Turn into ...
1371 (mips_target::get_regs_info): ...this.
1372 (the_low_target): Remove the op field.
1373 (get_usrregs_info): Update the call to the op.
1374 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1375 (nios2_regs_info): Turn into ...
1376 (nios2_target::get_regs_info): ...this.
1377 (the_low_target): Remove the op field.
1378 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1379 (ppc_regs_info): Turn into ...
1380 (ppc_target::get_regs_info): ...this.
1381 (the_low_target): Remove the op field.
1382 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1383 (riscv_regs_info): Turn into ...
1384 (riscv_target::get_regs_info): ...this.
1385 (the_low_target): Remove the op field.
1386 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1387 (s390_regs_info): Turn into ...
1388 (s390_target::get_regs_info): ...this.
1389 (the_low_target): Remove the op field.
1390 (s390_collect_ptrace_register)
1391 (s390_supply_ptrace_register)
1392 (s390_fill_gregset): Update the call to the op.
1393 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1394 (sh_regs_info): Turn into ...
1395 (sh_target::get_regs_info): ...this.
1396 (the_low_target): Remove the op field.
1397 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1398 (sparc_regs_info): Turn into ...
1399 (sparc_target::get_regs_info): ...this.
1400 (the_low_target): Remove the op field.
1401 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1402 (tic6x_regs_info): Turn into ...
1403 (tic6x_target::get_regs_info): ...this.
1404 (the_low_target): Remove the op field.
1405 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1406 (tile_regs_info): Turn into ...
1407 (tile_target::get_regs_info): ...this.
1408 (the_low_target): Remove the op field.
1409 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1410 Declare.
1411 (xtensa_regs_info): Turn into ...
1412 (xtensa_target::get_regs_info): ...this.
1413 (the_low_target): Remove the op field.
1414
797bcff5
TBA
14152020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1416
1417 Turn the 'arch_setup' linux target op into a method of
1418 linux_process_target.
1419
1420 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1421 (class linux_process_target) <arch_setup_thread>
1422 <low_arch_setup>: New declarations.
1423 * linux-low.cc (linux_arch_setup): Delete.
1424 (linux_arch_setup_thread): Turn into...
1425 (linux_process_target::arch_setup_thread): ... this.
1426
1427 Update the callers below.
1428
1429 (linux_process_target::handle_extended_wait)
1430 (linux_process_target::post_create_inferior)
1431 (linux_process_target::filter_event)
1432
1433 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1434 declaration.
1435 (x86_linux_update_xmltarget): Turn into...
1436 (x86_target::update_xmltarget): ...this.
1437 (x86_linux_process_qsupported): Update the call to
1438 x86_linux_update_xmltarget.
1439 (x86_arch_setup): Turn into ...
1440 (x86_target::low_arch_setup): ...this.
1441 (the_low_target): Remove the op field.
1442 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1443 declaration.
1444 (aarch64_arch_setup): Turn into ...
1445 (aarch64_target::low_arch_setup): ...this.
1446 (the_low_target): Remove the op field.
1447 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1448 declaration.
1449 (arm_arch_setup): Turn into ...
1450 (arm_target::low_arch_setup): ...this.
1451 (the_low_target): Remove the op field.
1452 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1453 declaration.
1454 (bfin_arch_setup): Turn into ...
1455 (bfin_target::low_arch_setup): ...this.
1456 (the_low_target): Remove the op field.
1457 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1458 declaration.
1459 (cris_arch_setup): Turn into ...
1460 (cris_target::low_arch_setup): ...this.
1461 (the_low_target): Remove the op field.
1462 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1463 declaration.
1464 (crisv32_arch_setup): Turn into ...
1465 (crisv32_target::low_arch_setup): ...this.
1466 (the_low_target): Remove the op field.
1467 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1468 declaration.
1469 (ia64_arch_setup): Turn into ...
1470 (ia64_target::low_arch_setup): ...this.
1471 (the_low_target): Remove the op field.
1472 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1473 declaration.
1474 (m32r_arch_setup): Turn into ...
1475 (m32r_target::low_arch_setup): ...this.
1476 (the_low_target): Remove the op field.
1477 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1478 declaration.
1479 (m68k_arch_setup): Turn into ...
1480 (m68k_target::low_arch_setup): ...this.
1481 (the_low_target): Remove the op field.
1482 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1483 declaration.
1484 (mips_arch_setup): Turn into ...
1485 (mips_target::low_arch_setup): ...this.
1486 (the_low_target): Remove the op field.
1487 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1488 declaration.
1489 (nios2_arch_setup): Turn into ...
1490 (nios2_target::low_arch_setup): ...this.
1491 (the_low_target): Remove the op field.
1492 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1493 declaration.
1494 (ppc_arch_setup): Turn into ...
1495 (ppc_target::low_arch_setup): ...this.
1496 (the_low_target): Remove the op field.
1497 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1498 declaration.
1499 (riscv_arch_setup): Turn into ...
1500 (riscv_target::low_arch_setup): ...this.
1501 (the_low_target): Remove the op field.
1502 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1503 declaration.
1504 (s390_arch_setup): Turn into ...
1505 (s390_target::low_arch_setup): ...this.
1506 (the_low_target): Remove the op field.
1507 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1508 declaration.
1509 (sh_arch_setup): Turn into ...
1510 (sh_target::low_arch_setup): ...this.
1511 (the_low_target): Remove the op field.
1512 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1513 declaration.
1514 (sparc_arch_setup): Turn into ...
1515 (sparc_target::low_arch_setup): ...this.
1516 (the_low_target): Remove the op field.
1517 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1518 declaration.
1519 (tic6x_arch_setup): Turn into ...
1520 (tic6x_target::low_arch_setup): ...this.
1521 (the_low_target): Remove the op field.
1522 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1523 declaration.
1524 (tile_arch_setup): Turn into ...
1525 (tile_target::low_arch_setup): ...this.
1526 (the_low_target): Remove the op field.
1527 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1528 declaration.
1529 (xtensa_arch_setup): Turn into ...
1530 (xtensa_target::low_arch_setup): ...this.
1531 (the_low_target): Remove the op field.
1532
ef0478f6
TBA
15332020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1534
1535 * linux-low.h (the_linux_target): New extern declaration.
1536 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
1537 'the_target'.
1538 (the_linux_target): Remove.
1539 * linux-x86-low.cc (class x86_target): New class.
1540 (the_x86_target): New static object.
1541 (the_linux_target): Define as pointer to the_x86_target.
1542 * linux-aarch64-low.cc (class aarch64_target): New class.
1543 (the_aarch64_target): New static object.
1544 (the_linux_target): Define as pointer to the_aarch64_target.
1545 * linux-arm-low.cc (class arm_target): New class.
1546 (the_arm_target): New static object.
1547 (the_linux_target): Define as pointer to the_arm_target.
1548 * linux-bfin-low.cc (class bfin_target): New class.
1549 (the_bfin_target): New static object.
1550 (the_linux_target): Define as pointer to the_bfin_target.
1551 * linux-cris-low.cc (class cris_target): New class.
1552 (the_cris_target): New static object.
1553 (the_linux_target): Define as pointer to the_cris_target.
1554 * linux-crisv32-low.cc (class crisv32_target): New class.
1555 (the_crisv32_target): New static object.
1556 (the_linux_target): Define as pointer to the_crisv32_target.
1557 * linux-ia64-low.cc (class ia64_target): New class.
1558 (the_ia64_target): New static object.
1559 (the_linux_target): Define as pointer to the_ia64_target.
1560 * linux-m32r-low.cc (class m32r_target): New class.
1561 (the_m32r_target): New static object.
1562 (the_linux_target): Define as pointer to the_m32r_target.
1563 * linux-m68k-low.cc (class m68k_target): New class.
1564 (the_m68k_target): New static object.
1565 (the_linux_target): Define as pointer to the_m68k_target.
1566 * linux-mips-low.cc (class mips_target): New class.
1567 (the_mips_target): New static object.
1568 (the_linux_target): Define as pointer to the_mips_target.
1569 * linux-nios2-low.cc (class nios2_target): New class.
1570 (the_nios2_target): New static object.
1571 (the_linux_target): Define as pointer to the_nios2_target.
1572 * linux-ppc-low.cc (class ppc_target): New class.
1573 (the_ppc_target): New static object.
1574 (the_linux_target): Define as pointer to the_ppc_target.
1575 * linux-riscv-low.cc (class riscv_target): New class.
1576 (the_riscv_target): New static object.
1577 (the_linux_target): Define as pointer to the_riscv_target.
1578 * linux-s390-low.cc (class s390_target): New class.
1579 (the_s390_target): New static object.
1580 (the_linux_target): Define as pointer to the_s390_target.
1581 * linux-sh-low.cc (class sh_target): New class.
1582 (the_sh_target): New static object.
1583 (the_linux_target): Define as pointer to the_sh_target.
1584 * linux-sparc-low.cc (class sparc_target): New class.
1585 (the_sparc_target): New static object.
1586 (the_linux_target): Define as pointer to the_sparc_target.
1587 * linux-tic6x-low.cc (class tic6x_target): New class.
1588 (the_tic6x_target): New static object.
1589 (the_linux_target): Define as pointer to the_tic6x_target.
1590 * linux-tile-low.cc (class tile_target): New class.
1591 (the_tile_target): New static object.
1592 (the_linux_target): Define as pointer to the_tile_target.
1593 * linux-xtensa-low.cc (class xtensa_target): New class.
1594 (the_xtensa_target): New static object.
1595 (the_linux_target): Define as pointer to the_xtensa_target.
1596
d16f3f6c
TBA
15972020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1598
1599 Turn some static functions in linux-low.cc into private methods of
1600 linux_process_target.
1601
1602 * linux-low.cc (handle_extended_wait): Turn into ...
1603 (linux_process_target::handle_extended_wait): ...this. Call
1604 'mourn' on 'this' object instead of 'the_target'.
1605 (maybe_move_out_of_jump_pad): Turn into...
1606 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
1607 (linux_low_filter_event): Turn into...
1608 (linux_process_target::filter_event): ...this.
1609 (linux_wait_for_event_filtered): Turn into...
1610 (linux_process_target::wait_for_event_filtered): ...this.
1611 (linux_wait_for_event): Turn into...
1612 (linux_process_target::wait_for_event): ...this.
1613 (linux_wait_1): Turn into...
1614 (linux_process_target::wait_1): ...this.
1615 (wait_for_sigstop): Turn into...
1616 (linux_process_target::wait_for_sigstop): ...this.
1617 (move_out_of_jump_pad_callback): Turn into...
1618 (linux_process_target::move_out_of_jump_pad): ...this.
1619 (stop_all_lwps): Turn into...
1620 (linux_process_target::stop_all_lwps): ...this.
1621 (start_step_over): Turn into...
1622 (linux_process_target::start_step_over): ...this.
1623 (complete_ongoing_step_over): Turn into...
1624 (linux_process_target::complete_ongoing_step_over): ...this.
1625 (proceed_all_lwps): Turn into...
1626 (linux_process_target::proceed_all_lwps): ...this.
1627 (unstop_all_lwps): Turn into...
1628 (linux_process_target::unstop_all_lwps): ...this.
1629
1630 * linux-low.h (class linux_process_target)
1631 <handle_extended_wait>
1632 <maybe_move_out_of_jump_pad>
1633 filter_event>
1634 <wait_for_event_filtered>
1635 <wait_for_event>
1636 <wait_1>
1637 <wait_for_sigstop>
1638 <move_out_of_jump_pad>
1639 <stop_all_lwps>
1640 <start_step_over>
1641 <complete_ongoing_step_over>
1642 <proceed_all_lwps>
1643 <unstop_all_lwps>: Declare.
1644
1645 Update the callers below.
1646
1647 * linux-low.cc (linux_process_target::attach): Update.
1648 (linux_process_target::stabilize_threads): Ditto.
1649 (linux_process_target::wait): Ditto.
1650
a5863204
TBA
16512020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1652
1653 * linux-low.h (struct linux_target_ops): Update the comment for
1654 'cannot_store_register' to return 0 or 1.
1655 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
1656 of 2.
1657
c884cc46
SM
16582020-03-20 Simon Marchi <simon.marchi@efficios.com>
1659
1660 * config.in: Re-generate.
1661 * configure: Re-generate.
1662
5a82b8a1
KR
16632020-03-17 Kamil Rytarowski <n54@gmx.com>
1664
1665 * regcache.cc (find_register_by_number): Update.
1666 * tdesc.cc (init_target_desc): Likewise.
1667 * tdesc.h (target_desc::reg_defs): Likewise.
1668
4635ff97
TT
16692020-03-12 Tom Tromey <tom@tromey.com>
1670
1671 * configure: Rebuild.
1672 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
1673 (WIN32APILIBS): New subst.
1674 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
1675 gdbsupport files.
1676 (gdbsupport/%.o): Remove target.
1677 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
1678 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
1679 (WIN32APILIBS): New variable.
1680 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
1681 (gdbreplay$(EXEEXT)): Likewise.
1682
9a665d62
TT
16832020-03-12 Tom Tromey <tom@tromey.com>
1684
1685 * config.in, configure: Rebuild.
1686 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
1687 * acinclude.m4: Include gettext-sister.m4.
1688 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
1689 variables.
1690 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
1691 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
1692
272cd5a3
SM
16932020-03-12 Simon Marchi <simon.marchi@efficios.com>
1694
1695 * acinclude.m4: Update path to selftest.m4.
1696
db6878ac
SM
16972020-03-12 Simon Marchi <simon.marchi@efficios.com>
1698
1699 * configure.ac: Don't source bfd/development.sh, move
1700 GDB_AC_COMMON higher.
1701 * configure: Re-generate.
1702
4d696a5c
SM
17032020-03-12 Simon Marchi <simon.marchi@efficios.com>
1704
1705 * configure: Re-generate.
1706
a0761e34
SM
17072020-03-11 Simon Marchi <simon.marchi@efficios.com>
1708
1709 * configure: Re-generate.
1710
20ea4a60
AB
17112020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1712
1713 * .dir-locals.el: New file.
1714
842806cb
TBA
17152020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1716
1717 * .gitattributes: New file.
1718
442131c1
AB
17192020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
1720
1721 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
1722 reply into an S reply.
1723 * server.cc (disable_packet_T): New global.
1724 (captured_main): Set new global when appropriate.
1725 * server.h (disable_packet_T): Declare.
1726
dda42c0b
TT
17272020-02-21 Tom Tromey <tom@tromey.com>
1728
1729 * Makefile.in (mostlyclean): New target.
1730
52405d85
TBA
17312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1732
1733 * target.h (struct process_stratum_target): Remove.
1734 (class process_target): Rename to ...
1735 (class process_stratum_target): ... this.
1736 * linux-low.h (class linux_process_target): Derive from
1737 'process_stratum_target'.
1738 * linux-low.cc (linux_target_ops): Remove.
1739 (initialize_low): Set the_target to the singleton instance of
1740 linux_process_target.
1741 * lynx-low.h (class lynx_process_target): Derive from
1742 'process_stratum_target'.
1743 * lynx-low.cc (lynx_target_ops): Remove.
1744 (initialize_low): Set the_target to the singleton instance of
1745 lynx_process_target.
1746 * nto-low.h (class nto_process_target): Derive from
1747 'process_stratum_target'.
1748 * nto-low.cc (nto_target_ops): Remove.
1749 (initialize_low): Set the_target to the singleton instance of
1750 nto_process_target.
1751 * win32-low.h (class win32_process_target): Derive from
1752 'process_stratum_target'.
1753 * win32-low.cc (win32_target_ops): Remove.
1754 (initialize_low): Set the_target to the singleton instance of
1755 win32_process_target.
1756
1757 Replace 'the_target->pt' with 'the_target' in the uses below.
1758
1759 * hostio.cc (hostio_error)
1760 (handle_setfs)
1761 (handle_open)
1762 (handle_unlink)
1763 (handle_readlink)
1764 * linux-aarch32-low.cc (arm_breakpoint_at)
1765 * linux-aarch64-low.cc (aarch64_breakpoint_at)
1766 * linux-arm-low.cc (arm_sigreturn_next_pc)
1767 (arm_get_hwcap)
1768 (arm_get_syscall_trapinfo)
1769 * linux-cris-low.cc (cris_breakpoint_at)
1770 * linux-crisv32-low.cc (cris_breakpoint_at)
1771 * linux-low.cc (handle_extended_wait)
1772 (linux_wait_1)
1773 (linux_read_memory)
1774 (linux_process_target::breakpoint_kind_from_pc)
1775 (linux_get_auxv)
1776 * linux-m32r-low.cc (m32r_breakpoint_at)
1777 * linux-mips-low.cc (mips_breakpoint_at)
1778 * linux-nios2-low.cc (nios2_breakpoint_at)
1779 * linux-ppc-low.cc (ppc_breakpoint_at)
1780 * linux-s390-low.cc (s390_get_hwcap)
1781 * linux-sh-low.cc (sh_breakpoint_at)
1782 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
1783 (sparc_store_gregset_from_stack)
1784 (sparc_breakpoint_at)
1785 * linux-tic6x-low.cc (tic6x_breakpoint_at)
1786 * linux-tile-low.cc (tile_breakpoint_at)
1787 * linux-x86-low.cc (x86_breakpoint_at)
1788 * linux-xtensa-low.cc (xtensa_breakpoint_at)
1789 * mem-break.cc (bp_size)
1790 (bp_opcode)
1791 (insert_memory_breakpoint)
1792 (set_raw_breakpoint_at)
1793 (delete_raw_breakpoint)
1794 (z_type_supported)
1795 (uninsert_raw_breakpoint)
1796 (reinsert_raw_breakpoint)
1797 (validate_inserted_breakpoint)
1798 * regcache.cc (regcache_read_pc)
1799 (regcache_write_pc)
1800 * remote-utils.cc (putpkt_binary_1)
1801 (input_interrupt)
1802 (getpkt)
1803 (prepare_resume_reply)
1804 * server.cc (handle_general_set)
1805 (handle_detach)
1806 (handle_qxfer_auxv)
1807 (handle_qxfer_exec_file)
1808 (handle_qxfer_libraries_svr4)
1809 (handle_qxfer_osdata)
1810 (handle_qxfer_siginfo)
1811 (handle_qxfer_fdpic)
1812 (handle_query)
1813 (resume)
1814 (handle_v_requests)
1815 (queue_stop_reply_callback)
1816 (captured_main)
1817 * target.cc (prepare_to_access_memory)
1818 (done_accessing_memory)
1819 (read_inferior_memory)
1820 (target_write_memory)
1821 (target_stop_and_wait)
1822 (target_wait)
1823 (target_mourn_inferior)
1824 (target_continue_no_signal)
1825 (target_continue)
1826 (target_supports_multi_process)
1827 (kill_inferior)
1828 * target.h
1829 (target_create_inferior)
1830 (target_post_create_inferior)
1831 (myattach)
1832 (target_supports_fork_events)
1833 (target_supports_vfork_events)
1834 (target_supports_exec_events)
1835 (target_handle_new_gdb_connection)
1836 (detach_inferior)
1837 (mythread_alive)
1838 (fetch_inferior_registers)
1839 (store_inferior_registers)
1840 (join_inferior)
1841 (target_supports_non_stop)
1842 (target_async)
1843 (target_process_qsupported)
1844 (target_supports_catch_syscall)
1845 (target_get_ipa_tdesc_idx)
1846 (target_supports_tracepoints)
1847 (target_supports_fast_tracepoints)
1848 (target_get_min_fast_tracepoint_insn_len)
1849 (target_thread_stopped)
1850 (target_pause_all)
1851 (target_unpause_all)
1852 (target_stabilize_threads)
1853 (target_install_fast_tracepoint_jump_pad)
1854 (target_emit_ops)
1855 (target_supports_disable_randomization)
1856 (target_supports_agent)
1857 (target_enable_btrace)
1858 (target_disable_btrace)
1859 (target_read_btrace)
1860 (target_read_btrace_conf)
1861 (target_supports_range_stepping)
1862 (target_supports_stopped_by_sw_breakpoint)
1863 (target_stopped_by_sw_breakpoint)
1864 (target_supports_stopped_by_hw_breakpoint)
1865 (target_supports_hardware_single_step)
1866 (target_stopped_by_hw_breakpoint)
1867 (target_breakpoint_kind_from_pc)
1868 (target_breakpoint_kind_from_current_state)
1869 (target_supports_software_single_step)
1870 (target_core_of_thread)
1871 (target_thread_name)
1872 (target_thread_handle)
1873 * win32-low.cc (do_initial_child_stuff)
1874
1875 Rename target op default definitions listed below.
1876
1877 * target.cc (process_target::post_create_inferior): Rename as ...
1878 (process_stratum_target::post_create_inferior): ... this.
1879 (process_target::prepare_to_access_memory): Rename as ...
1880 (process_stratum_target::prepare_to_access_memory): ... this.
1881 (process_target::done_accessing_memory): Rename as ...
1882 (process_stratum_target::done_accessing_memory): ... this.
1883 (process_target::look_up_symbols): Rename as ...
1884 (process_stratum_target::look_up_symbols): ... this.
1885 (process_target::supports_read_auxv): Rename as ...
1886 (process_stratum_target::supports_read_auxv): ... this.
1887 (process_target::read_auxv): Rename as ...
1888 (process_stratum_target::read_auxv): ... this.
1889 (process_target::supports_z_point_type): Rename as ...
1890 (process_stratum_target::supports_z_point_type): ... this.
1891 (process_target::insert_point): Rename as ...
1892 (process_stratum_target::insert_point): ... this.
1893 (process_target::remove_point): Rename as ...
1894 (process_stratum_target::remove_point): ... this.
1895 (process_target::stopped_by_sw_breakpoint): Rename as ...
1896 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
1897 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
1898 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
1899 (process_target::stopped_by_hw_breakpoint): Rename as ...
1900 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
1901 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
1902 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
1903 (process_target::supports_hardware_single_step): Rename as ...
1904 (process_stratum_target::supports_hardware_single_step): ... this.
1905 (process_target::stopped_by_watchpoint): Rename as ...
1906 (process_stratum_target::stopped_by_watchpoint): ... this.
1907 (process_target::stopped_data_address): Rename as ...
1908 (process_stratum_target::stopped_data_address): ... this.
1909 (process_target::supports_read_offsets): Rename as ...
1910 (process_stratum_target::supports_read_offsets): ... this.
1911 (process_target::read_offsets): Rename as ...
1912 (process_stratum_target::read_offsets): ... this.
1913 (process_target::supports_get_tls_address): Rename as ...
1914 (process_stratum_target::supports_get_tls_address): ... this.
1915 (process_target::get_tls_address): Rename as ...
1916 (process_stratum_target::get_tls_address): ... this.
1917 (process_target::hostio_last_error): Rename as ...
1918 (process_stratum_target::hostio_last_error): ... this.
1919 (process_target::supports_qxfer_osdata): Rename as ...
1920 (process_stratum_target::supports_qxfer_osdata): ... this.
1921 (process_target::qxfer_osdata): Rename as ...
1922 (process_stratum_target::qxfer_osdata): ... this.
1923 (process_target::supports_qxfer_siginfo): Rename as ...
1924 (process_stratum_target::supports_qxfer_siginfo): ... this.
1925 (process_target::qxfer_siginfo): Rename as ...
1926 (process_stratum_target::qxfer_siginfo): ... this.
1927 (process_target::supports_non_stop): Rename as ...
1928 (process_stratum_target::supports_non_stop): ... this.
1929 (process_target::async): Rename as ...
1930 (process_stratum_target::async): ... this.
1931 (process_target::start_non_stop): Rename as ...
1932 (process_stratum_target::start_non_stop): ... this.
1933 (process_target::supports_multi_process): Rename as ...
1934 (process_stratum_target::supports_multi_process): ... this.
1935 (process_target::supports_fork_events): Rename as ...
1936 (process_stratum_target::supports_fork_events): ... this.
1937 (process_target::supports_vfork_events): Rename as ...
1938 (process_stratum_target::supports_vfork_events): ... this.
1939 (process_target::supports_exec_events): Rename as ...
1940 (process_stratum_target::supports_exec_events): ... this.
1941 (process_target::handle_new_gdb_connection): Rename as ...
1942 (process_stratum_target::handle_new_gdb_connection): ... this.
1943 (process_target::handle_monitor_command): Rename as ...
1944 (process_stratum_target::handle_monitor_command): ... this.
1945 (process_target::core_of_thread): Rename as ...
1946 (process_stratum_target::core_of_thread): ... this.
1947 (process_target::supports_read_loadmap): Rename as ...
1948 (process_stratum_target::supports_read_loadmap): ... this.
1949 (process_target::read_loadmap): Rename as ...
1950 (process_stratum_target::read_loadmap): ... this.
1951 (process_target::process_qsupported): Rename as ...
1952 (process_stratum_target::process_qsupported): ... this.
1953 (process_target::supports_tracepoints): Rename as ...
1954 (process_stratum_target::supports_tracepoints): ... this.
1955 (process_target::read_pc): Rename as ...
1956 (process_stratum_target::read_pc): ... this.
1957 (process_target::write_pc): Rename as ...
1958 (process_stratum_target::write_pc): ... this.
1959 (process_target::supports_thread_stopped): Rename as ...
1960 (process_stratum_target::supports_thread_stopped): ... this.
1961 (process_target::thread_stopped): Rename as ...
1962 (process_stratum_target::thread_stopped): ... this.
1963 (process_target::supports_get_tib_address): Rename as ...
1964 (process_stratum_target::supports_get_tib_address): ... this.
1965 (process_target::get_tib_address): Rename as ...
1966 (process_stratum_target::get_tib_address): ... this.
1967 (process_target::pause_all): Rename as ...
1968 (process_stratum_target::pause_all): ... this.
1969 (process_target::unpause_all): Rename as ...
1970 (process_stratum_target::unpause_all): ... this.
1971 (process_target::stabilize_threads): Rename as ...
1972 (process_stratum_target::stabilize_threads): ... this.
1973 (process_target::supports_fast_tracepoints): Rename as ...
1974 (process_stratum_target::supports_fast_tracepoints): ... this.
1975 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
1976 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
1977 (process_target::emit_ops): Rename as ...
1978 (process_stratum_target::emit_ops): ... this.
1979 (process_target::supports_disable_randomization): Rename as ...
1980 (process_stratum_target::supports_disable_randomization): ... this.
1981 (process_target::supports_qxfer_libraries_svr4): Rename as ...
1982 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
1983 (process_target::qxfer_libraries_svr4): Rename as ...
1984 (process_stratum_target::qxfer_libraries_svr4): ... this.
1985 (process_target::supports_agent): Rename as ...
1986 (process_stratum_target::supports_agent): ... this.
1987 (process_target::enable_btrace): Rename as ...
1988 (process_stratum_target::enable_btrace): ... this.
1989 (process_target::disable_btrace): Rename as ...
1990 (process_stratum_target::disable_btrace): ... this.
1991 (process_target::read_btrace): Rename as ...
1992 (process_stratum_target::read_btrace): ... this.
1993 (process_target::read_btrace_conf): Rename as ...
1994 (process_stratum_target::read_btrace_conf): ... this.
1995 (process_target::supports_range_stepping): Rename as ...
1996 (process_stratum_target::supports_range_stepping): ... this.
1997 (process_target::supports_pid_to_exec_file): Rename as ...
1998 (process_stratum_target::supports_pid_to_exec_file): ... this.
1999 (process_target::pid_to_exec_file): Rename as ...
2000 (process_stratum_target::pid_to_exec_file): ... this.
2001 (process_target::supports_multifs): Rename as ...
2002 (process_stratum_target::supports_multifs): ... this.
2003 (process_target::multifs_open): Rename as ...
2004 (process_stratum_target::multifs_open): ... this.
2005 (process_target::multifs_unlink): Rename as ...
2006 (process_stratum_target::multifs_unlink): ... this.
2007 (process_target::multifs_readlink): Rename as ...
2008 (process_stratum_target::multifs_readlink): ... this.
2009 (process_target::breakpoint_kind_from_pc): Rename as ...
2010 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2011 (process_target::breakpoint_kind_from_current_state): Rename as ...
2012 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2013 (process_target::thread_name): Rename as ...
2014 (process_stratum_target::thread_name): ... this.
2015 (process_target::thread_handle): Rename as ...
2016 (process_stratum_target::thread_handle): ... this.
2017 (process_target::supports_software_single_step): Rename as ...
2018 (process_stratum_target::supports_software_single_step): ... this.
2019 (process_target::supports_catch_syscall): Rename as ...
2020 (process_stratum_target::supports_catch_syscall): ... this.
2021 (process_target::get_ipa_tdesc_idx): Rename as ...
2022 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2023
478f9adf
PA
20242020-02-20 Pedro Alves <palves@redhat.com>
2025
2026 * target.cc (set_target_ops): Simply copy the given target pointer
2027 instead of creating a copy of the pointed object.
2028
d633e831
TBA
20292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2030
2031 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2032 of process_target.
2033
2034 * target.h (struct process_stratum_target): Remove the target op.
2035 (class process_target): Add the target op.
2036 (target_get_ipa_tdesc_idx): Update the macro.
2037 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2038
2039 Update the derived classes and callers below.
2040
2041 * linux-low.cc (linux_target_ops): Update.
2042 (linux_get_ipa_tdesc_idx): Turn into ...
2043 (linux_process_target::get_ipa_tdesc_idx): ... this.
2044 * linux-low.h (class linux_process_target): Update.
2045 * lynx-low.cc (lynx_target_ops): Update.
2046 * nto-low.cc (nto_target_ops): Update.
2047 * win32-low.cc (win32_target_ops): Update.
2048
bc8d3ae4
TBA
20492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2050
2051 Turn process_stratum_target's supports_catch_syscall op into a
2052 method of process_target.
2053
2054 * target.h (struct process_stratum_target): Remove the target op.
2055 (class process_target): Add the target op.
2056 (target_supports_catch_syscall): Update the macro.
2057 * target.cc (process_target::supports_catch_syscall): Define.
2058
2059 Update the derived classes and callers below.
2060
2061 * linux-low.cc (linux_target_ops): Update.
2062 (linux_supports_catch_syscall): Turn into ...
2063 (linux_process_target::supports_catch_syscall): ... this.
2064 * linux-low.h (class linux_process_target): Update.
2065 * lynx-low.cc (lynx_target_ops): Update.
2066 * nto-low.cc (nto_target_ops): Update.
2067 * win32-low.cc (win32_target_ops): Update.
2068
5303a34f
TBA
20692020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2070
2071 Turn process_stratum_target's supports_software_single_step op
2072 into a method of process_target.
2073
2074 * target.h (struct process_stratum_target): Remove the target op.
2075 (class process_target): Add the target op.
2076 (target_supports_software_single_step): Update the macro.
2077 * target.cc (process_target::supports_software_single_step): Define.
2078
2079 Update the derived classes and callers below.
2080
2081 * linux-low.cc (linux_target_ops): Update.
2082 (linux_supports_software_single_step): Turn into ...
2083 (linux_process_target::supports_software_single_step): ... this.
2084 * linux-low.h (class linux_process_target): Update.
2085 * lynx-low.cc (lynx_target_ops): Update.
2086 * nto-low.cc (nto_target_ops): Update.
2087 * win32-low.cc (win32_target_ops): Update.
2088
7f63b89b
TBA
20892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2090
2091 Turn process_stratum_target's thread_name and thread_handle ops
2092 into methods of process_target.
2093
2094 * target.h (struct process_stratum_target): Remove the target ops.
2095 (class process_target): Add the target ops.
2096 (target_thread_name): Update the macro.
2097 (target_thread_handle): Update the macro.
2098 * target.cc (process_target::thread_name): Define.
2099 (process_target::thread_handle): Define.
2100
2101 Update the derived classes and callers below.
2102
2103 * linux-low.cc (linux_target_ops): Update.
2104 (linux_process_target::thread_name): Define.
2105 (linux_process_target::thread_handle): Define.
2106 * linux-low.h (class linux_process_target): Update.
2107 * lynx-low.cc (lynx_target_ops): Update.
2108 * nto-low.cc (nto_target_ops): Update.
2109 * win32-low.cc (win32_target_ops): Update.
2110
d367006f
TBA
21112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2112
2113 Turn process_stratum_target's breakpoint_kind_from_pc,
2114 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2115 ops into methods of process_target.
2116
2117 * target.h (struct process_stratum_target): Remove the target op.
2118 (class process_target): Add the target op.
2119 (target_breakpoint_kind_from_pc): Update the macro.
2120 (target_breakpoint_kind_from_current_state): Update the macro.
2121 (default_breakpoint_kind_from_pc): Remove declaration.
2122 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2123 (process_target::breakpoint_kind_from_pc): ... this.
2124 (process_target::breakpoint_kind_from_current_state): Define.
2125
2126 Update the derived classes and callers below.
2127
2128 * mem-break.cc (bp_size): Update.
2129 (bp_opcode): Update.
2130 * linux-low.cc (linux_target_ops): Update.
2131 (linux_wait_1): Update.
2132 (linux_breakpoint_kind_from_pc): Turn into ...
2133 (linux_process_target::breakpoint_kind_from_pc): ... this.
2134 (linux_sw_breakpoint_from_kind): Turn into ...
2135 (linux_process_target::sw_breakpoint_from_kind): ... this.
2136 (linux_breakpoint_kind_from_current_state): Turn into ...
2137 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2138 * linux-low.h (class linux_process_target): Update.
2139 * lynx-low.cc (lynx_target_ops): Update.
2140 (lynx_process_target::sw_breakpoint_from_kind): Define.
2141 * lynx-low.h (class lynx_process_target): Update.
2142 * nto-low.cc (nto_target_ops): Update.
2143 (nto_sw_breakpoint_from_kind): Turn into ...
2144 (nto_process_target::sw_breakpoint_from_kind): ... this.
2145 * nto-low.h (class nto_process_target): Update.
2146 * win32-low.cc (win32_target_ops): Update.
2147 (win32_sw_breakpoint_from_kind): Turn into ...
2148 (win32_process_target::sw_breakpoint_from_kind): ... this.
2149 * win32-low.h (class win32_process_target): Update.
2150
c9b7b804
TBA
21512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2152
2153 Turn process_stratum_target's multifs_open, multifs_readlink,
2154 multifs_unlink ops into methods of process_target.
2155
2156 * target.h (struct process_stratum_target): Remove the target ops.
2157 (class process_target): Add the target ops. Also add
2158 'supports_multifs'.
2159 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2160 "sys/stat.h".
2161 (process_target::supports_multifs): Define.
2162 (process_target::multifs_open): Define.
2163 (process_target::multifs_readlink): Define.
2164 (process_target::multifs_unlink): Define.
2165
2166 Update the derived classes and callers below.
2167
2168 * hostio.cc (handle_setfs): Update.
2169 (handle_open): Update.
2170 (handle_unlink): Update.
2171 (handle_readlink): Update.
2172 * linux-low.cc (linux_target_ops): Update.
2173 (linux_process_target::supports_multifs): Define.
2174 (linux_process_target::multifs_open): Define.
2175 (linux_process_target::multifs_readlink): Define.
2176 (linux_process_target::multifs_unlink): Define.
2177 * linux-low.h (class linux_process_target): Update.
2178 * lynx-low.cc (lynx_target_ops): Update.
2179 * nto-low.cc (nto_target_ops): Update.
2180 * win32-low.cc (win32_target_ops): Update.
2181
8247b823
TBA
21822020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2183
2184 Turn process_stratum_target's pid_to_exec_file op into a method
2185 of process_target.
2186
2187 * target.h (struct process_stratum_target): Remove the target op.
2188 (class process_target): Add the target op. Also add
2189 'supports_pid_to_exec_file'.
2190 * target.cc (process_target::pid_to_exec_file): Define.
2191 (process_target::supports_pid_to_exec_file): Define.
2192
2193 Update the derived classes and callers below.
2194
2195 * server.cc (handle_qxfer_exec_file): Update.
2196 (handle_query): Update.
2197 * linux-low.cc (linux_target_ops): Update.
2198 (linux_process_target::supports_pid_to_exec_file): Define.
2199 (linux_process_target::pid_to_exec_file): Define.
2200 * linux-low.h (class linux_process_target): Update.
2201 * lynx-low.cc (lynx_target_ops): Update.
2202 * nto-low.cc (nto_target_ops): Update.
2203 * win32-low.cc (win32_target_ops): Update.
2204
2526e0cd
TBA
22052020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2206
2207 Turn process_stratum_target's supports_range_stepping op into a
2208 method of process_target.
2209
2210 * target.h (struct process_stratum_target): Remove the target op.
2211 (class process_target): Add the target op.
2212 (target_supports_range_stepping): Update the macro.
2213 * target.cc (process_target::supports_range_stepping): Define.
2214
2215 Update the derived classes and callers below.
2216
2217 * linux-low.cc (linux_target_ops): Update.
2218 (linux_supports_range_stepping): Turn into ...
2219 (linux_process_target::supports_range_stepping): ... this.
2220 * linux-low.h (class linux_process_target): Update.
2221 * lynx-low.cc (lynx_target_ops): Update.
2222 * nto-low.cc (nto_target_ops): Update.
2223 * win32-low.cc (win32_target_ops): Update.
2224
79597bdd
TBA
22252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2226
2227 Turn process_stratum_target's btrace-related ops (enable_btrace,
2228 disable_btrace, read_btrace, read_btrace_conf) into methods of
2229 process_target.
2230
2231 * target.h (struct process_stratum_target): Remove the target ops.
2232 (class process_target): Add the target ops.
2233 (target_enable_btrace): Update.
2234 (target_disable_btrace): Update.
2235 (target_read_btrace): Update.
2236 (target_read_btrace_conf): Update.
2237 * target.cc (process_target::enable_btrace): Define.
2238 (process_target::disable_btrace): Define.
2239 (process_target::read_btrace): Define.
2240 (process_target::read_btrace_conf): Define.
2241
2242 Update the derived classes and callers below.
2243
2244 * linux-low.cc (linux_target_ops): Update.
2245 (linux_process_target:enable_btrace): Define as a wrapper around
2246 linux_enable_btrace.
2247 (linux_low_disable_btrace): Turn into ...
2248 (linux_process_target::disable_btrace): ... this.
2249 (linux_low_read_btrace): Turn into ...
2250 (linux_process_target::read_btrace): ... this.
2251 (linux_low_btrace_conf): Turn into ...
2252 (linux_process_target::read_btrace_conf): ... this.
2253 * linux-low.h (class linux_process_target): Update.
2254 * lynx-low.cc (lynx_target_ops): Update.
2255 * nto-low.cc (nto_target_ops): Update.
2256 * win32-low.cc (win32_target_ops): Update.
2257
c0245cb9
TBA
22582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2259
2260 Turn process_stratum_target's supports_agent op into a method of
2261 process_target.
2262
2263 * target.h (struct process_stratum_target): Remove the target op.
2264 (class process_target): Add the target op.
2265 (target_supports_agent): Update the macro.
2266 * target.cc (process_target::supports_agent): Define.
2267
2268 Update the derived classes and callers below.
2269
2270 * linux-low.cc (linux_target_ops): Update.
2271 (linux_supports_agent): Turn into ...
2272 (linux_process_target::supports_agent): ... this.
2273 * linux-low.h (class linux_process_target): Update.
2274 * lynx-low.cc (lynx_target_ops): Update.
2275 * nto-low.cc (nto_target_ops): Update.
2276 * win32-low.cc (win32_target_ops): Update.
2277
974387bb
TBA
22782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2279
2280 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2281 method of process_target.
2282
2283 * target.h (struct process_stratum_target): Remove the target op.
2284 (class process_target): Add the target op. Also add
2285 'supports_qxfer_libraries_svr4'.
2286 * target.cc (process_target::qxfer_libraries_svr4): Define.
2287 (process_target::supports_qxfer_libraries_svr4): Define.
2288
2289 Update the derived classes and callers below.
2290
2291 * server.cc (handle_qxfer_libraries_svr4): Update.
2292 (handle_query): Update.
2293 * linux-low.cc (linux_target_ops): Update.
2294 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2295 (linux_qxfer_libraries_svr4): Turn into ...
2296 (linux_process_target::qxfer_libraries_svr4): ... this.
2297 * linux-low.h (class linux_process_target): Update.
2298 * lynx-low.cc (lynx_target_ops): Update.
2299 * nto-low.cc (nto_target_ops): Update.
2300 * win32-low.cc (win32_target_ops): Update.
2301
c756403b
TBA
23022020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2303
2304 Turn process_stratum_target's supports_disable_randomization op
2305 into a method of process_target.
2306
2307 * target.h (struct process_stratum_target): Remove the target op.
2308 (class process_target): Add the target op.
2309 (target_supports_disable_randomization): Update the macro.
2310 * target.cc (process_target::supports_disable_randomization): Define.
2311
2312 Update the derived classes and callers below.
2313
2314 * linux-low.cc (linux_target_ops): Update.
2315 (linux_supports_disable_randomization): Turn into ...
2316 (linux_process_target::supports_disable_randomization): ... this.
2317 * linux-low.h (class linux_process_target): Update.
2318 * lynx-low.cc (lynx_target_ops): Update.
2319 * nto-low.cc (nto_target_ops): Update.
2320 * win32-low.cc (win32_target_ops): Update.
2321
345dafad
TBA
23222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2323
2324 Turn process_stratum_target's emit_ops op into a method of
2325 process_target.
2326
2327 * target.h (struct process_stratum_target): Remove the target op.
2328 (class process_target): Add the target op.
2329 (target_emit_ops): Update the macro.
2330 * target.cc (process_target::emit_ops): Define.
2331
2332 Update the derived classes and callers below.
2333
2334 * linux-low.cc (linux_target_ops): Update.
2335 (linux_emit_ops): Turn into ...
2336 (linux_process_target::emit_ops): ... this.
2337 * linux-low.h (class linux_process_target): Update.
2338 * lynx-low.cc (lynx_target_ops): Update.
2339 * nto-low.cc (nto_target_ops): Update.
2340 * win32-low.cc (win32_target_ops): Update.
2341
c23c9391
TBA
23422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2343
2344 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2345 and get_min_fast_tracepoint_insn_len ops into methods of
2346 process_target.
2347
2348 * target.h (struct process_stratum_target): Remove the target ops.
2349 (class process_target): Add the target ops. Also add
2350 'supports_fast_tracepoints'.
2351 (target_supports_fast_tracepoints): Update the macro.
2352 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2353 (install_fast_tracepoint_jump_pad): Update and rename the macro
2354 to ...
2355 (target_install_fast_tracepoint_jump_pad): ... this.
2356 * target.cc (process_target::supports_fast_tracepoints): Define.
2357 (process_target::install_fast_tracepoint_jump_pad): Define.
2358 (process_target::get_min_fast_tracepoint_insn_len): Define.
2359
2360 Update the derived classes and callers below.
2361
2362 * tracepoint.cc (install_fast_tracepoint): Update.
2363 * linux-low.cc (linux_target_ops): Update.
2364 (linux_process_target::supports_fast_tracepoints): Define.
2365 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2366 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2367 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2368 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2369 * linux-low.h (class linux_process_target): Update.
2370 * lynx-low.cc (lynx_target_ops): Update.
2371 * nto-low.cc (nto_target_ops): Update.
2372 * win32-low.cc (win32_target_ops): Update.
2373
5c9eb2f2
TBA
23742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2375
2376 Turn process_stratum_target's stabilize_threads op into a
2377 method of process_target.
2378
2379 * target.h (struct process_stratum_target): Remove the target op.
2380 (class process_target): Add the target op.
2381 (target_stabilize_threads): Update the macro.
2382 * target.cc (process_target::stabilize_threads): Define.
2383
2384 Update the derived classes and callers below.
2385
2386 * server.cc (handle_status): Update.
2387 * tracepoint.cc (cmd_qtdp): Update.
2388 (cmd_qtstart): Update.
2389 * linux-low.cc (linux_target_ops): Update.
2390 (linux_stabilize_threads): Turn into ...
2391 (linux_process_target::stabilize_threads): ... this.
2392 (linux_wait_1): Update.
2393 * linux-low.h (class linux_process_target): Update.
2394 * lynx-low.cc (lynx_target_ops): Update.
2395 * nto-low.cc (nto_target_ops): Update.
2396 * win32-low.cc (win32_target_ops): Update.
2397
29e8dc09
TBA
23982020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2399
2400 Turn process_stratum_target's pause_all and unpause_all ops
2401 into methods of process_target.
2402
2403 * target.h (struct process_stratum_target): Remove the target ops.
2404 (class process_target): Add the target ops.
2405 (pause_all): Update the macro and rename to...
2406 (target_pause_all): ... this.
2407 (unpause_all): Update the macro and rename to...
2408 (target_unpause_all): ... this.
2409 * target.cc (process_target::pause_all): Define.
2410 (process_target::unpause_all): Define.
2411
2412 Update the derived classes and callers below.
2413
2414 * server.cc (handle_status): Update.
2415 * tracepoint.cc (clear_installed_tracepoints): Update.
2416 (cmd_qtdp): Update.
2417 (cmd_qtstart): Update.
2418 (stop_tracing): Update.
2419 (cmd_qtstatus): Update.
2420 (upload_fast_traceframes): Update.
2421 (run_inferior_command): Update.
2422 * linux-low.cc (linux_target_ops): Update.
2423 (linux_pause_all): Turn into ...
2424 (linux_process_target::pause_all): ... this.
2425 (linux_unpause_all): Turn into ...
2426 (linux_process_target::unpause_all): ... this.
2427 (linux_process_target::prepare_to_access_memory): Update.
2428 (linux_process_target::done_accessing_memory): Update.
2429 * linux-low.h (class linux_process_target): Update.
2430 * lynx-low.cc (lynx_target_ops): Update.
2431 * nto-low.cc (nto_target_ops): Update.
2432 * win32-low.cc (win32_target_ops): Update.
2433
4e2e869c
TBA
24342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2435
2436 Turn process_stratum_target's get_tib_address op into a method of
2437 process_target.
2438
2439 * target.h (struct process_stratum_target): Remove the target op.
2440 (class process_target): Add the target op. Also add
2441 'supports_get_tib_address'.
2442 * target.cc (process_target::get_tib_address): Define.
2443 (process_target::supports_get_tib_address): Define.
2444
2445 Update the derived classes and callers below.
2446
2447 * server.cc (handle_query): Update.
2448 * linux-low.cc (win32_target_ops): Update.
2449 * lynx-low.cc (lynx_target_ops): Update.
2450 * nto-low.cc (nto_target_ops): Update.
2451 * win32-low.cc (win32_target_ops): Update.
2452 (win32_process_target::supports_get_tib_address): Define.
2453 (win32_get_tib_address): Turn into ...
2454 (win32_process_target::get_tib_address): ... this.
2455 * win32-low.h (class win32_process_target): Update.
2456
68119632
TBA
24572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2458
2459 Turn process_stratum_target's thread_stopped op into a method of
2460 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_thread_stopped'.
2465 (target_thread_stopped): Update the macro.
2466 * target.cc (process_target::thread_stopped): Define.
2467 (process_target::supports_thread_stopped): Define.
2468 (prepare_to_access_memory): Update.
2469
2470 Update the derived classes and callers below.
2471
2472 * server.cc (queue_stop_reply_callback): Update.
2473 * linux-low.cc (linux_target_ops): Update.
2474 (linux_process_target::supports_thread_stopped): Define.
2475 (linux_thread_stopped): Turn into ...
2476 (linux_process_target::thread_stopped): ... this.
2477 * linux-low.h (class linux_process_target): Update.
2478 * lynx-low.cc (lynx_target_ops): Update.
2479 * nto-low.cc (nto_target_ops): Update.
2480 * win32-low.cc (win32_target_ops): Update.
2481
770d8f6a
TBA
24822020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2483
2484 Turn process_stratum_target's read_pc and write_pc ops into
2485 methods of process_target.
2486
2487 * target.h (struct process_stratum_target): Remove the target ops.
2488 (class process_target): Add the target ops.
2489 * target.cc (process_target::read_pc): Define.
2490 (process_target::write_pc): Define.
2491
2492 Update the derived classes and callers below.
2493
2494 * regcache.cc (regcache_read_pc): Update.
2495 (regcache_write_pc): Update.
2496 * linux-low.cc (linux_target_ops): Update.
2497 (linux_read_pc): Turn into ...
2498 (linux_process_target::read_pc): ... this.
2499 (linux_write_pc): Turn into ...
2500 (linux_process_target::write_pc): ... this.
2501 * linux-low.h (class linux_process_target): Update.
2502 * lynx-low.cc (lynx_target_ops): Update.
2503 * nto-low.cc (nto_target_ops): Update.
2504 * win32-low.cc (win32_target_ops): Update.
2505
290732bf
TBA
25062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2507
2508 Turn process_stratum_target's supports_tracepoints op into a
2509 method of process_target.
2510
2511 * target.h (struct process_stratum_target): Remove the target op.
2512 (class process_target): Add the target op.
2513 (target_supports_tracepoints): Update the macro.
2514 * target.cc (process_target::supports_tracepoints): Define.
2515
2516 Update the derived classes and callers below.
2517
2518 * linux-low.cc (linux_target_ops): Update.
2519 (linux_supports_tracepoints): Turn into ...
2520 (linux_process_target::supports_tracepoints): ... this.
2521 * linux-low.h (class linux_process_target): Update.
2522 * lynx-low.cc (lynx_target_ops): Update.
2523 * nto-low.cc (nto_target_ops): Update.
2524 * win32-low.cc (win32_target_ops): Update.
2525
0df28b1b
TBA
25262020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2527
2528 Turn process_stratum_target's process_qsupported op into a method
2529 of process_target.
2530
2531 * target.h (struct process_stratum_target): Remove the target op.
2532 (class process_target): Add the target op.
2533 (target_process_qsupported): Update the macro.
2534 * target.cc (process_target::process_qsupported): Define.
2535
2536 Update the derived classes and callers below.
2537
2538 * linux-low.cc (linux_target_ops): Update.
2539 (linux_process_qsupported): Turn into ...
2540 (linux_process_target::process_qsupported): ... this.
2541 * linux-low.h (class linux_process_target): Update.
2542 * lynx-low.cc (lynx_target_ops): Update.
2543 * nto-low.cc (nto_target_ops): Update.
2544 * win32-low.cc (win32_target_ops): Update.
2545
9da41fda
TBA
25462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2547
2548 Turn process_stratum_target's read_loadmap op into a method of
2549 process_target.
2550
2551 * target.h (struct process_stratum_target): Remove the target op.
2552 (class process_target): Add the target op. Also add
2553 'supports_read_loadmap'.
2554 * target.cc (process_target::read_loadmap): Define.
2555 (process_target::supports_read_loadmap): Define.
2556
2557 Update the derived classes and callers below.
2558
2559 * server.cc (handle_qxfer_fdpic): Update.
2560 (handle_query): Update.
2561 * linux-low.cc (linux_target_ops): Update.
2562 (linux_process_target::supports_read_loadmap): Define.
2563 (linux_read_loadmap): Turn into ...
2564 (linux_process_target::read_loadmap): ... this.
2565 * linux-low.h (class linux_process_target): Update.
2566 * lynx-low.cc (lynx_target_ops): Update.
2567 * nto-low.cc (nto_target_ops): Update.
2568 * win32-low.cc (win32_target_ops): Update.
2569
95a45fc1
TBA
25702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2571
2572 Turn process_stratum_target's core_of_thread op into a method of
2573 process_target.
2574
2575 * target.h (struct process_stratum_target): Remove the target op.
2576 (class process_target): Add the target op.
2577 (target_core_of_thread): Update the macro.
2578 * target.cc (process_target::core_of_thread): Define.
2579
2580 Update the derived classes and callers below.
2581
2582 * linux-low.cc (linux_target_ops): Update.
2583 (linux_process_target::core_of_thread): Define.
2584 * linux-low.h (class linux_process_target): Update.
2585 * lynx-low.cc (lynx_target_ops): Update.
2586 * nto-low.cc (nto_target_ops): Update.
2587 * win32-low.cc (win32_target_ops): Update.
2588
55cf3021
TBA
25892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2590
2591 Turn process_stratum_target's handle_monitor_command op into a
2592 method of process_target.
2593
2594 * target.h (struct process_stratum_target): Remove the target op.
2595 (class process_target): Add the target op.
2596 (target_handle_monitor_command): Update the macro.
2597 * target.cc (process_target::handle_monitor_command): Define.
2598
2599 Update the derived classes and callers below.
2600
2601 * server.cc (handle_query): Update.
2602 * linux-low.cc (linux_target_ops): Update.
2603 (linux_process_target::handle_monitor_command): Define.
2604 * linux-low.h (class linux_process_target): Update.
2605 * lynx-low.cc (lynx_target_ops): Update.
2606 * nto-low.cc (nto_target_ops): Update.
2607 * win32-low.cc (win32_target_ops): Update.
2608
fb00dfce
TBA
26092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2610
2611 Turn process_stratum_target's handle_new_gdb_connection op into a
2612 method of process_target.
2613
2614 * target.h (struct process_stratum_target): Remove the target op.
2615 (class process_target): Add the target op.
2616 (target_handle_new_gdb_connection): Update the macro.
2617 * target.cc (process_target::handle_new_gdb_connection): Define.
2618
2619 Update the derived classes and callers below.
2620
2621 * linux-low.cc (linux_target_ops): Update.
2622 (linux_handle_new_gdb_connection): Turn into ...
2623 (linux_process_target::handle_new_gdb_connection): ... this.
2624 * linux-low.h (class linux_process_target): Update.
2625 * lynx-low.cc (lynx_target_ops): Update.
2626 * nto-low.cc (nto_target_ops): Update.
2627 * win32-low.cc (win32_target_ops): Update.
2628
9690a72a
TBA
26292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2630
2631 Turn process_stratum_target's supports_fork_events,
2632 supports_vfork_events, and supports_exec_events ops into methods
2633 of process_target.
2634
2635 * target.h (struct process_stratum_target): Remove the target ops.
2636 (class process_target): Add the target ops.
2637 (target_supports_fork_events): Update the macro.
2638 (target_supports_vfork_events): Update the macro.
2639 (target_supports_exec_events): Update the macro.
2640 * target.cc (process_target::supports_fork_events): Define.
2641 (process_target::supports_vfork_events): Define.
2642 (process_target::supports_exec_events): Define.
2643
2644 Update the derived classes and callers below.
2645
2646 * linux-low.cc (linux_target_ops): Update.
2647 (linux_supports_fork_events): Turn into ...
2648 (linux_process_target::supports_fork_events): ... this.
2649 (linux_supports_vfork_events): Turn into ...
2650 (linux_process_target::supports_vfork_events): ... this.
2651 (linux_supports_exec_events): Turn into ...
2652 (linux_process_target::supports_exec_events): ... this.
2653 * linux-low.h (class linux_process_target): Update.
2654 * lynx-low.cc (lynx_target_ops): Update.
2655 * nto-low.cc (nto_target_ops): Update.
2656 * win32-low.cc (win32_target_ops): Update.
2657
652aef77
TBA
26582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2659
2660 Turn process_stratum_target's supports_multi_process op into a
2661 method of process_target.
2662
2663 * target.h (struct process_stratum_target): Remove the target op.
2664 (class process_target): Add the target op.
2665 * target.cc (process_target::supports_multi_process): Define.
2666 (target_supports_multi_process): Update.
2667
2668 Update the derived classes and callers below.
2669
2670 * linux-low.cc (linux_target_ops): Update.
2671 (linux_supports_multi_process): Turn into ...
2672 (linux_process_target::supports_multi_process): ... this.
2673 * linux-low.h (class linux_process_target): Update.
2674 * lynx-low.cc (lynx_target_ops): Update.
2675 * nto-low.cc (nto_target_ops): Update.
2676 * win32-low.cc (win32_target_ops): Update.
2677
0dc587d4
TBA
26782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2679
2680 Turn process_stratum_target's supports_non_stop, async, and
2681 start_non_stop ops into methods of process_target.
2682
2683 * target.h (struct process_stratum_target): Remove the target ops.
2684 (class process_target): Add the target ops.
2685 (target_supports_non_stop): Update the macro.
2686 (target_async): Update the macro.
2687 (start_non_stop): Remove declaration.
2688 * target.cc (process_target::supports_non_stop): Define.
2689 (process_target::async): Define.
2690 (process_target::start_non_stop): Define.
2691 (start_non_stop): Remove.
2692
2693 Update the derived classes and callers below.
2694
2695 * server.cc (handle_qxfer_siginfo): Update.
2696 (handle_query): Update.
2697 * linux-low.cc (linux_target_ops): Update.
2698 (linux_supports_non_stop): Turn into ...
2699 (linux_process_target::supports_non_stop): ... this.
2700 (linux_async): Turn into ...
2701 (linux_process_target::async): ... this.
2702 (linux_start_non_stop): Turn into ...
2703 (linux_process_target::start_non_stop): ... this.
2704 * linux-low.h (class linux_process_target): Update.
2705 * lynx-low.cc (lynx_target_ops): Update.
2706 * nto-low.cc (nto_target_ops): Update.
2707 (nto_supports_non_stop): Remove; rely on the default behavior
2708 instead.
2709 * win32-low.cc (win32_target_ops): Update.
2710
d7abedf7
TBA
27112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2712
2713 Turn process_stratum_target's qxfer_siginfo op into a method of
2714 process_target.
2715
2716 * target.h (struct process_stratum_target): Remove the target op.
2717 (class process_target): Add the target op. Also add
2718 'supports_qxfer_siginfo'.
2719 * target.cc (process_target::qxfer_siginfo): Define.
2720 (process_target::supports_qxfer_siginfo): Define.
2721
2722 Update the derived classes and callers below.
2723
2724 * server.cc (handle_qxfer_siginfo): Update.
2725 (handle_query): Update.
2726 * linux-low.cc (linux_target_ops): Update.
2727 (linux_process_target::supports_qxfer_siginfo): Define.
2728 (linux_xfer_siginfo): Turn into ...
2729 (linux_process_target::qxfer_siginfo): ... this.
2730 * linux-low.h (class linux_process_target): Update.
2731 * lynx-low.cc (lynx_target_ops): Update.
2732 * nto-low.cc (nto_target_ops): Update.
2733 * win32-low.cc (win32_target_ops): Update.
2734
2d0795ee
TBA
27352020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2736
2737 Turn process_stratum_target's qxfer_osdata op into a method of
2738 process_target.
2739
2740 * target.h (struct process_stratum_target): Remove the target op.
2741 (class process_target): Add the target op. Also add
2742 'supports_qxfer_osdata'.
2743 * target.cc (process_target::qxfer_osdata): Define.
2744 (process_target::supports_qxfer_osdata): Define.
2745
2746 Update the derived classes and callers below.
2747
2748 * server.cc (handle_qxfer_osdata): Update.
2749 (handle_query): Update.
2750 * linux-low.cc (linux_target_ops): Update.
2751 (linux_process_target::supports_qxfer_osdata): Define.
2752 (linux_qxfer_osdata): Turn into ...
2753 (linux_process_target::qxfer_osdata): ... this.
2754 * linux-low.h (class linux_process_target): Update.
2755 * lynx-low.cc (lynx_target_ops): Update.
2756 * nto-low.cc (nto_target_ops): Update.
2757 * win32-low.cc (win32_target_ops): Update.
2758
ea06bbaa
TBA
27592020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2760
2761 Turn process_stratum_target's hostio_last_error op into a
2762 method of process_target.
2763
2764 * target.h (struct process_stratum_target): Remove the target op.
2765 (class process_target): Add the target op.
2766 * target.cc: Add "hostio.h" to includes.
2767 (process_target::hostio_last_error): Define.
2768
2769 Update the derived classes and callers below.
2770
2771 * hostio.cc (hostio_error): Update.
2772 * linux-low.cc: Remove "hostio.h" from includes.
2773 (linux_target_ops): Update.
2774 * lynx-low.cc (lynx_target_ops): Update.
2775 * nto-low.cc (nto_target_ops): Update.
2776 * win32-low.h (class win32_process_target): Update.
2777 * win32-low.cc (win32_target_ops): Update.
2778 (wince_hostio_last_error): Turn into ...
2779 (win32_process_target::hostio_last_error): ... this.
2780
6e3fd7e9
TBA
27812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2782
2783 Turn process_stratum_target's get_tls_address op into a method of
2784 process_target.
2785
2786 * target.h (struct process_stratum_target): Remove the target op.
2787 (class process_target): Add the target op. Also add
2788 'supports_get_tls_address'.
2789 * target.cc (process_target::get_tls_address): Define.
2790 (process_target::supports_get_tls_address): Define.
2791
2792 Update the derived classes and callers below.
2793
2794 * server.cc (handle_query): Update.
2795 * linux-low.cc (linux_target_ops): Update.
2796 (linux_process_target::supports_get_tls_address): Define.
2797 (linux_process_target::get_tls_address): Define.
2798 * linux-low.h (class linux_process_target): Update.
2799 * lynx-low.cc (lynx_target_ops): Update.
2800 * nto-low.cc (nto_target_ops): Update.
2801 * win32-low.cc (win32_target_ops): Update.
2802
5203ae1e
TBA
28032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2804
2805 Turn process_stratum_target's read_offsets op into a method of
2806 process_target.
2807
2808 * target.h (struct process_stratum_target): Remove the target op.
2809 (class process_target): Add the target op. Also add
2810 'supports_read_offsets'.
2811 * target.cc (process_target::read_offsets): Define.
2812 (process_target::supports_read_offsets): Define.
2813
2814 Update the derived classes and callers below.
2815
2816 * server.cc (handle_query): Update.
2817 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
2818 (linux_target_ops): Update.
2819 (linux_process_target::supports_read_offsets): Define.
2820 (linux_read_offsets): Turn into ...
2821 (linux_process_target::read_offsets): ... this.
2822 * linux-low.h (class linux_process_target): Update.
2823 * lynx-low.cc (lynx_target_ops): Update.
2824 * nto-low.cc (nto_target_ops): Update.
2825 * win32-low.cc (win32_target_ops): Update.
2826
6eeb5c55
TBA
28272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2828
2829 Turn process_stratum_target's stopped_by_watchpoint and
2830 stopped_data_address ops into methods of process_target.
2831
2832 * target.h (struct process_stratum_target): Remove the target ops.
2833 (class process_target): Add the target ops.
2834 * target.cc (process_target::stopped_by_watchpoint): Define.
2835 (process_target::stopped_data_address): Define.
2836
2837 Update the derived classes and callers below.
2838
2839 * remote-utils.cc (prepare_resume_reply): Update.
2840 * linux-low.cc (linux_target_ops): Update.
2841 (linux_stopped_by_watchpoint): Turn into ...
2842 (linux_process_target::stopped_by_watchpoint): ... this.
2843 (linux_stopped_data_address): Turn into ...
2844 (linux_process_target::stopped_data_address): ... this.
2845 * linux-low.h (class linux_process_target): Update.
2846 * lynx-low.cc (lynx_target_ops): Update.
2847 * nto-low.cc (nto_target_ops): Update.
2848 (nto_stopped_by_watchpoint): Turn into ...
2849 (nto_process_target::stopped_by_watchpoint): ... this.
2850 (nto_stopped_data_address): Turn into ...
2851 (nto_process_target::stopped_data_address): ... this.
2852 * nto-low.h (class nto_process_target): Update.
2853 * win32-low.cc (win32_target_ops): Update.
2854 (win32_stopped_by_watchpoint): Turn into ...
2855 (win32_process_target::stopped_by_watchpoint): ... this.
2856 (win32_stopped_data_address): Turn into ...
2857 (win32_process_target::stopped_data_address): ... this.
2858 * win32-low.h (class win32_process_target): Update.
2859
22aa6223
TBA
28602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2861
2862 Turn process_stratum_target's supports_hardware_single_step op into
2863 a method of process_target.
2864
2865 * target.h (struct process_stratum_target): Remove the target op.
2866 (class process_target): Add the target op.
2867 (target_supports_hardware_single_step): Update the macro.
2868 (target_can_do_hardware_single_step): Remove declaration.
2869 * target.cc (process_target::supports_hardware_single_step): Define.
2870 (target_can_do_hardware_single_step): Remove.
2871
2872 Update the derived classes and callers below.
2873
2874 * linux-low.h (class linux_process_target): Update.
2875 * linux-low.cc (linux_target_ops): Update.
2876 (linux_supports_hardware_single_step): Turn into ...
2877 (linux_process_target::supports_hardware_single_step): ... this.
2878 * lynx-low.h (class lynx_process_target): Update.
2879 * lynx-low.cc (lynx_target_ops): Update.
2880 (lynx_process_target::supports_hardware_single_step): Define.
2881 * nto-low.h (class nto_process_target): Update.
2882 * nto-low.cc (nto_target_ops): Update.
2883 (nto_process_target::supports_hardware_single_step): Define.
2884 * win32-low.h (class win32_process_target): Update.
2885 * win32-low.cc (win32_target_ops): Update.
2886 (win32_process_target::supports_hardware_single_step): Define.
2887
93fe88b2
TBA
28882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2889
2890 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
2891 ops into methods of process_target.
2892
2893 * target.h (struct process_stratum_target): Remove the target ops.
2894 (class process_target): Add the target ops.
2895 (target_stopped_by_hw_breakpoint): Update the macro.
2896 (target_supports_stopped_by_hw_breakpoint): Update the macro.
2897 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
2898 (process_target::supports_stopped_by_hw_breakpoint): Define.
2899
2900 Update the derived classes and callers below.
2901
2902 * linux-low.cc (linux_target_ops): Update.
2903 (linux_stopped_by_hw_breakpoint): Turn into ...
2904 (linux_process_target::stopped_by_hw_breakpoint): ... this.
2905 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
2906 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
2907 * linux-low.h (class linux_process_target): Update.
2908 * lynx-low.cc (lynx_target_ops): Update.
2909 * nto-low.cc (nto_target_ops): Update.
2910 * win32-low.cc (win32_target_ops): Update.
2911
84320c4e
TBA
29122020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2913
2914 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
2915 ops into methods of process_target.
2916
2917 * target.h (struct process_stratum_target): Remove the target ops.
2918 (class process_target): Add the target ops.
2919 (target_stopped_by_sw_breakpoint): Update the macro.
2920 (target_supports_stopped_by_sw_breakpoint): Update the macro.
2921 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
2922 (process_target::supports_stopped_by_sw_breakpoint): Define.
2923
2924 Update the derived classes and callers below.
2925
2926 * linux-low.cc (linux_target_ops): Update.
2927 (linux_stopped_by_sw_breakpoint): Turn into ...
2928 (linux_process_target::stopped_by_sw_breakpoint): ... this.
2929 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
2930 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
2931 * linux-low.h (class linux_process_target): Update.
2932 * lynx-low.cc (lynx_target_ops): Update.
2933 * nto-low.cc (nto_target_ops): Update.
2934 * win32-low.cc (win32_target_ops): Update.
2935
7e0bde70
TBA
29362020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2937
2938 Turn process_stratum_target's insert_point and remove_point ops
2939 into methods of process_target.
2940
2941 * target.h (struct process_stratum_target): Remove the target ops.
2942 (class process_target): Add the target ops.
2943 * target.cc (process_target::insert_point): Define.
2944 (process_target::remove_point): Define.
2945
2946 Update the derived classes and callers below.
2947
2948 * mem-break.cc (set_raw_breakpoint_at): Update.
2949 (delete_raw_breakpoint): Update.
2950 (uninsert_raw_breakpoint): Update.
2951 (reinsert_raw_breakpoint): Update.
2952 * linux-low.cc (linux_target_ops): Update.
2953 (linux_insert_point): Turn into ...
2954 (linux_process_target::insert_point): ... this.
2955 (linux_remove_point): Turn into ...
2956 (linux_process_target::remove_point): ... this.
2957 * linux-low.h (class linux_process_target): Update.
2958 * lynx-low.cc (lynx_target_ops): Update.
2959 * nto-low.cc (nto_target_ops): Update.
2960 (nto_insert_point): Turn into ...
2961 (nto_process_target::insert_point): ... this.
2962 (nto_remove_point): Turn into ...
2963 (nto_process_target::remove_point): ... this.
2964 * nto-low.h (class nto_process_target): Update.
2965 * win32-low.cc (win32_target_ops): Update.
2966 (win32_insert_point): Turn into ...
2967 (win32_process_target::insert_point): ... this.
2968 (win32_remove_point): Turn into ...
2969 (win32_process_target::remove_point): ... this.
2970 * win32-low.h (class win32_process_target): Update.
2971
a2b2297a
TBA
29722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2973
2974 Turn process_stratum_target's supports_z_point_type op into a
2975 method of process_target.
2976
2977 * target.h (struct process_stratum_target): Remove the target op.
2978 (class process_target): Add the target op.
2979 * target.cc (process_target::supports_z_point_type): Define.
2980
2981 Update the derived classes and callers below.
2982
2983 * mem-break.cc (z_type_supported): Update.
2984 * linux-low.cc (linux_target_ops): Update.
2985 (linux_supports_z_point_type): Turn into ...
2986 (linux_process_target::supports_z_point_type): ... this.
2987 * linux-low.h (class linux_process_target): Update.
2988 * lynx-low.cc (lynx_target_ops): Update.
2989 * nto-low.cc (nto_target_ops): Update.
2990 (nto_supports_z_point_type): Turn into ...
2991 (nto_process_target::supports_z_point_type): ... this.
2992 * nto-low.h (class nto_process_target): Update.
2993 * win32-low.cc (win32_target_ops): Update.
2994 (win32_supports_z_point_type): Turn into ...
2995 (win32_process_target::supports_z_point_type): ... this.
2996 * win32-low.h (class win32_process_target): Update.
2997
eac215cc
TBA
29982020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2999
3000 Turn process_stratum_target's read_auxv op into a method of
3001 process_target.
3002
3003 * target.h (class process_stratum_target): Remove the target op.
3004 (struct process_target): Add the target op. Also add
3005 'supports_read_auxv'.
3006 * target.cc (process_target::read_auxv): Define.
3007 (process_target::supports_read_auxv): Define.
3008
3009 Update the derived classes and callers below.
3010
3011 * server.cc (handle_qxfer_auxv): Update.
3012 (handle_query): Update.
3013 * linux-low.cc (linux_target_ops): Update.
3014 (linux_process_target::supports_read_auxv): Define.
3015 (linux_read_auxv): Turn into ...
3016 (linux_process_target::read_auxv): ... this.
3017 * linux-low.h (class linux_process_target): Update.
3018 * lynx-low.cc (lynx_target_ops): Update.
3019 * nto-low.cc (nto_target_ops): Update.
3020 (nto_process_target::supports_read_auxv): Define.
3021 (nto_read_auxv): Turn into ...
3022 (nto_process_target::read_auxv): ... this.
3023 * nto-low.h (class nto_process_target): Update.
3024 * win32-low.cc (win32_target_ops): Update.
3025
eb497a2a
TBA
30262020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3027
3028 Turn process_stratum_target's request_interrupt op into a method of
3029 process_target.
3030
3031 * target.h (struct process_stratum_target): Remove the target op.
3032 (class process_target): Add the target op.
3033
3034 Update the derived classes and callers below.
3035
3036 * remote-utils.cc (putpkt_binary_1): Update.
3037 (input_interrupt): Update.
3038 (getpkt): Update.
3039 * server.cc (handle_v_requests): Update.
3040 * linux-low.cc (linux_target_ops): Update.
3041 (linux_request_interrupt): Turn into ...
3042 (linux_process_target::request_interrupt): ... this.
3043 * linux-low.h (class linux_process_target): Update.
3044 * lynx-low.cc (lynx_target_ops): Update.
3045 (lynx_request_interrupt): Turn into ...
3046 (lynx_process_target::request_interrupt): ... this.
3047 * lynx-low.h (class lynx_process_target): Update.
3048 * nto-low.cc (nto_target_ops): Update.
3049 (nto_request_interrupt): Turn into ...
3050 (nto_process_target::request_interrupt): ... this.
3051 * nto-low.h (class nto_process_target): Update.
3052 * win32-low.cc (win32_target_ops): Update.
3053 (win32_request_interrupt): Turn into ...
3054 (win32_process_target::request_interrupt): ... this.
3055 * win32-low.h (class win32_process_target): Update.
3056
2a31c7aa
TBA
30572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3058
3059 Turn process_stratum_target's look_up_symbols op into a method of
3060 process_target.
3061
3062 * target.h (struct process_stratum_target): Remove the target op.
3063 (class process_target): Add the target op.
3064 * target.cc (process_target::look_up_symbols): Define.
3065
3066 Update the derived classes and callers below.
3067
3068 * server.cc (handle_query): Update.
3069 * linux-low.cc (linux_target_ops): Update.
3070 (linux_look_up_symbols): Turn into ...
3071 (linux_process_target::look_up_symbols): ... this.
3072 * linux-low.h (class linux_process_target): Update.
3073 * lynx-low.cc (lynx_target_ops): Update.
3074 * nto-low.cc (nto_target_ops): Update.
3075 * win32-low.cc (win32_target_ops): Update.
3076
e2558df3
TBA
30772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3078
3079 Turn process_stratum_target's read_memory and write_memory
3080 ops into methods of process_target.
3081
3082 * target.h (struct process_stratum_target): Remove the target ops.
3083 (class process_target): Add the target ops.
3084
3085 Update the derived classes and callers below.
3086
3087 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3088 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3089 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3090 (arm_get_syscall_trapinfo): Update.
3091 * linux-cris-low.cc (cris_breakpoint_at): Update.
3092 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3093 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3094 * linux-mips-low.cc (mips_breakpoint_at): Update.
3095 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3096 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3097 * linux-sh-low.cc (sh_breakpoint_at): Update.
3098 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3099 (sparc_store_gregset_from_stack): Update.
3100 (sparc_breakpoint_at): Update.
3101 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3102 * linux-tile-low.cc (tile_breakpoint_at): Update.
3103 * linux-x86-low.cc (x86_breakpoint_at): Update.
3104 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3105 * mem-brea.cc (insert_memory_breakpoint): Update.
3106 (validate_inserted_breakpoint): Update.
3107 * target.cc (read_inferior_memory): Update.
3108 (target_write_memory): Update.
3109 * linux-low.cc (linux_target_ops): Update.
3110 (linux_read_memory): Make a wrapper around the read_memory target
3111 op call.
3112 (linux_process_target::read_memory): Rename from linux_read_memory.
3113 (linux_write_memory): Turn into ...
3114 (linux_process_target::write_memory): ... this.
3115 * linux-low.h (class linux_process_target): Update.
3116 * lynx-low.cc (lynx_target_ops): Update.
3117 (lynx_read_memory): Turn into ...
3118 (lynx_process_target::read_memory): ... this.
3119 (lynx_write_memory): Turn into ...
3120 (lynx_process_target::write_memory): ... this.
3121 * lynx-low.h (class lynx_process_target): Update.
3122 * nto-low.cc (nto_target_ops): Update.
3123 (nto_read_memory): Turn into ...
3124 (nto_process_target::read_memory): ... this.
3125 (nto_write_memory): Turn into ...
3126 (nto_process_target::write_memory): ... this.
3127 * nto-low.h (class nto_process_target): Update.
3128 * win32-low.cc (win32_target_ops): Update.
3129 (win32_read_inferior_memory): Turn into ...
3130 (win32_process_target::read_memory): ... this.
3131 (win32_write_inferior_memory): Turn into ...
3132 (win32_process_target::write_memory): ... this.
3133 * win32-low.h (class win32_process_target): Update.
3134
79b44087
TBA
31352020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3136
3137 Turn process_stratum_target's prepare_to_access_memory and
3138 done_accessing_memory ops into methods of process_target.
3139
3140 * target.h (struct process_stratum_target): Remove the target ops.
3141 (class process_target): Add the target ops.
3142 * target.cc (process_target::prepare_to_access_memory): Define.
3143 (process_target::done_accessing_memory): Define.
3144 (prepare_to_access_memory): Update.
3145 (done_accessing_memory): Update.
3146
3147 Update the derived classes and callers below.
3148
3149 * linux-low.cc (linux_target_ops): Update.
3150 (linux_prepare_to_access_memory): Turn into ...
3151 (linux_process_target::prepare_to_access_memory): ... this.
3152 (linux_done_accessing_memory): Turn into ...
3153 (linux_process_target::done_accessing_memory): ... this.
3154 * linux-low.h (class linux_process_target): Update.
3155 * lynx-low.cc (lynx_target_ops): Update.
3156 * nto-low.cc (nto_target_ops): Update.
3157 * win32-low.cc (win32_target_ops): Update.
3158
a5a4d4cd
TBA
31592020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3160
3161 Turn process_stratum_target's fetch_registers and store_registers
3162 ops into methods of process_target.
3163
3164 * target.h (struct process_stratum_target): Remove the target ops.
3165 (class process_target): Add the target ops.
3166 (fetch_inferior_registers): Update the macro.
3167 (store_inferior_registers): Update the macro.
3168
3169 Update the derived classes and callers below.
3170
3171 * linux-low.cc (linux_target_ops): Update.
3172 (linux_fetch_registers): Turn into ...
3173 (linux_process_target::fetch_registers): ... this.
3174 (linux_store_registers): Turn into ...
3175 (linux_process_target::store_registers): ... this.
3176 * linux-low.h (class linux_process_target): Update.
3177 * lynx-low.cc (lynx_target_ops): Update.
3178 (lynx_fetch_registers): Turn into ...
3179 (lynx_process_target::fetch_registers): ... this.
3180 (lynx_store_registers): Turn into ...
3181 (lynx_process_target::store_registers): ... this.
3182 * lynx-low.h (class lynx_process_target): Update.
3183 * nto-low.cc (nto_target_ops): Update.
3184 (nto_fetch_registers): Turn into ...
3185 (nto_process_target::fetch_registers): ... this.
3186 (nto_store_registers): Turn into ...
3187 (nto_process_target::store_registers): ... this.
3188 * nto-low.h (class nto_process_target): Update.
3189 * win32-low.cc (win32_target_ops): Update.
3190 (win32_fetch_inferior_registers): Turn into ...
3191 (win32_process_target::fetch_registers): ... this.
3192 (win32_store_inferior_registers): Turn into ...
3193 (win32_process_target::store_registers): ... this.
3194 * win32-low.h (class win32_process_target): Update.
3195
6532e7e3
TBA
31962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3197
3198 Turn process_stratum_target's wait op into a method of
3199 process_target.
3200
3201 * target.h (struct process_stratum_target): Remove the target op.
3202 (class process_target): Add the target op.
3203
3204 Update the derived classes and callers below.
3205
3206 * target.cc (target_wait): Update.
3207 * linux-low.cc (linux_target_ops): Update.
3208 (linux_wait): Turn into ...
3209 (linux_process_target::wait): ... this.
3210 * linux-low.h (class linux_process_target): Update.
3211 * lynx-low.cc (lynx_target_ops): Update.
3212 (lynx_wait): Turn into ...
3213 (lynx_process_target::wait): ... this.
3214 * lynx-low.h (class lynx_process_target): Update.
3215 * nto-low.cc (nto_target_ops): Update.
3216 (nto_wait): Turn into ...
3217 (nto_process_target::wait): ... this.
3218 * nto-low.h (class nto_process_target): Update.
3219 * win32-low.cc (win32_target_ops): Update.
3220 (win32_wait): Turn into ...
3221 (win32_process_target::wait): ... this.
3222 (do_initial_child_stuff): Update.
3223 * win32-low.h (class win32_process_target): Update.
3224
0e4d7e35
TBA
32252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3226
3227 Turn process_stratum_target's resume op into a method of
3228 process_target.
3229
3230 * target.h (struct process_stratum_target): Remove the target op.
3231 (class process_target): Add the target op.
3232
3233 Update the derived classes and callers below.
3234
3235 * server.cc (resume): Update.
3236 * target.cc (target_stop_and_wait): Update.
3237 (target_continue_no_signal): Update.
3238 (target_continue): Update.
3239 * linux-low.cc (linux_target_ops): Update.
3240 (linux_resume): Turn into ...
3241 (linux_process_target::resume): ... this.
3242 * linux-low.h (class linux_process_target): Update.
3243 * lynx-low.cc (lynx_target_ops): Update.
3244 (lynx_resume): Turn into ...
3245 (lynx_process_target::resume): ... this.
3246 * lynx-low.h (class lynx_process_target): Update.
3247 * nto-low.cc (nto_target_ops): Update.
3248 (nto_resume): Turn into ...
3249 (nto_process_target::resume): ... this.
3250 * nto-low.h (class nto_process_target): Update.
3251 * win32-low.cc (win32_target_ops): Update.
3252 (win32_resume): Turn into ...
3253 (win32_process_target::resume): ... this.
3254 (win32_process_target::detach): Update.
3255 (do_initial_child_stuff): Update.
3256 * win32-low.h (class win32_process_target): Update.
3257
13d3d99b
TBA
32582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3259
3260 Turn process_stratum_target's thread_alive op into a method of
3261 process_target.
3262
3263 * target.h (struct process_stratum_target): Remove the target op.
3264 (class process_target): Add the target op.
3265 (mythread_alive): Update the macro.
3266
3267 Update the derived classes and callers below.
3268
3269 * linux-low.cc (linux_target_ops): Update.
3270 (linux_thread_alive): Turn into ...
3271 (linux_process_target::thread_alive): ... this.
3272 (wait_for_sigstop): Update.
3273 * linux-low.h (class linux_process_target): Update.
3274 * lynx-low.cc (lynx_target_ops): Update.
3275 (lynx_thread_alive): Turn into ...
3276 (lynx_process_target::thread_alive): ... this.
3277 * lynx-low.h (class lynx_process_target): Update.
3278 * nto-low.cc (nto_target_ops): Update.
3279 (nto_thread_alive): Turn into ...
3280 (nto_process_target::thread_alive): ... this.
3281 * nto-low.h (class nto_process_target): Update.
3282 * win32-low.cc (win32_target_ops): Update.
3283 (win32_thread_alive): Turn into ...
3284 (win32_process_target::thread_alive): ... this.
3285 * win32-low.h (class win32_process_target): Update.
3286
95a49a39
TBA
32872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3288
3289 Turn process_stratum_target's join op into a method of
3290 process_target.
3291
3292 * target.h (struct process_stratum_target): Remove the target op.
3293 (class process_target): Add the target op.
3294 (join_inferior): Update the macro.
3295
3296 Update the derived classes and callers below.
3297
3298 * linux-low.cc (linux_target_ops): Update.
3299 (linux_join): Turn into ...
3300 (linux_process_target::join): ... this.
3301 * linux-low.h (class linux_process_target): Update.
3302 * lynx-low.cc (lynx_target_ops): Update.
3303 (lynx_join): Turn into ...
3304 (lynx_process_target::join): ... this.
3305 * lynx-low.h (class lynx_process_target): Update.
3306 * nto-low.cc (nto_target_ops): Update.
3307 (nto_process_target::join): Define.
3308 * nto-low.h (class nto_process_target): Update.
3309 * win32-low.cc (win32_target_ops): Update.
3310 (win32_join): Turn into ...
3311 (win32_process_target::join): ... this.
3312 * win32-low.h (class win32_process_target): Update.
3313
8adb37b9
TBA
33142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3315
3316 Turn process_stratum_target's mourn op into a method of
3317 process_target.
3318
3319 * target.h (struct process_stratum_target): Remove the target op.
3320 (class process_target): Add the target op.
3321
3322 Update the derived classes and callers below.
3323
3324 * target.cc (target_mourn_inferior): Update.
3325 * linux-low.cc (linux_target_ops): Update.
3326 (linux_mourn): Turn into ...
3327 (linux_process_target::mourn): ... this.
3328 (handle_extended_wait): Update.
3329 (linux_process_target::kill): Update.
3330 (linux_process_target::detach): Update.
3331 * linux-low.h (class linux_process_target): Update.
3332 * lynx-low.cc (lynx_target_ops): Update.
3333 (lynx_mourn): Turn into ...
3334 (lynx_process_target::mourn): ... this.
3335 * lynx-low.h (class lynx_process_target): Update.
3336 * nto-low.cc (nto_target_ops): Update.
3337 (nto_mourn): Turn into ...
3338 (nto_process_target::mourn): ... this.
3339 * nto-low.h (class nto_process_target): Update.
3340 * win32-low.cc (win32_target_ops): Update.
3341 (win32_mourn): Turn into ...
3342 (win32_process_target::mourn): ... this.
3343 * win32-low.h (class win32_process_target): Update.
3344
9061c9cf
TBA
33452020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3346
3347 Turn process_stratum_target's detach op into a method of
3348 process_target.
3349
3350 * target.h (struct process_stratum_target): Remove the target op.
3351 (class process_target): Add the target op.
3352 (detach_inferior): Update the macro.
3353
3354 Update the derived classes and callers below.
3355
3356 * linux-low.cc (linux_target_ops): Update.
3357 (linux_detach): Turn into ...
3358 (linux_process_target::detach): ... this.
3359 * linux-low.h (class linux_process_target): Update.
3360 * lynx-low.cc (lynx_target_ops): Update.
3361 (lynx_detach): Turn into ...
3362 (lynx_process_target::detach): ... this.
3363 * lynx-low.h (class lynx_process_target): Update.
3364 * nto-low.cc (nto_target_ops): Update.
3365 (nto_detach): Turn into ...
3366 (nto_process_target::detach): ... this.
3367 * nto-low.h (class nto_process_target): Update.
3368 * win32-low.cc (win32_target_ops): Update.
3369 (win32_detach): Turn into ...
3370 (win32_process_target::detach): ... this.
3371 * win32-low.h (class win32_process_target): Update.
3372
c6885a57
TBA
33732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3374
3375 Turn process_stratum_target's kill op into a method of
3376 process_target.
3377
3378 * target.h (struct process_stratum_target): Remove the target op.
3379 (class process_target): Add the target op.
3380
3381 Update the derived classes and callers below.
3382
3383 * target.cc (kill_inferior): Update.
3384 * linux-low.cc (linux_target_ops): Update.
3385 (linux_kill): Turn into ...
3386 (linux_process_target::kill): ... this.
3387 * linux-low.h (class linux_process_target): Update.
3388 * lynx-low.cc (lynx_target_ops): Update.
3389 (lynx_kill): Turn into ...
3390 (lynx_process_target::kill): ... this.
3391 * lynx-low.h (class lynx_process_target): Update.
3392 * nto-low.cc (nto_target_ops): Update.
3393 (nto_kill): Turn into ...
3394 (nto_process_target::kill): ... this.
3395 * nto-low.h (class nto_process_target): Update.
3396 * win32-low.cc (win32_target_ops): Update.
3397 (win32_kill): Turn into ...
3398 (win32_process_target::kill): ... this.
3399 * win32-low.h (class win32_process_target): Update.
3400
ef03dad8
TBA
34012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3402
3403 Turn process_stratum_target's attach op into a method of
3404 process_target.
3405
3406 * target.h (struct process_stratum_target): Remove the target op.
3407 (class process_target): Add the target op.
3408 (myattach): Update the macro.
3409
3410 Update the derived classes and callers below.
3411
3412 * linux-low.cc (linux_target_ops): Update.
3413 (linux_attach): Turn into ...
3414 (linux_process_target::attach): ... this.
3415 * linux-low.h (class linux_process_target): Update.
3416 * lynx-low.cc (lynx_target_ops): Update.
3417 (lynx_attach): Turn into ...
3418 (lynx_process_target::attach): ... this.
3419 * lynx-low.h (class lynx_process_target): Update.
3420 * nto-low.cc (nto_target_ops): Update.
3421 (nto_attach): Turn into ...
3422 (nto_process_target::attach): ... this.
3423 * nto-low.h (class nto_process_target): Update.
3424 * win32-low.cc (win32_target_ops): Update.
3425 (win32_attach): Turn into ...
3426 (win32_process_target::attach): ... this.
3427 * win32-low.h (class win32_process_target): Update.
3428
6dee9afb
TBA
34292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3430
3431 Turn process_stratum_target's post_create_inferior op into a method
3432 of process_target.
3433
3434 * target.h (struct process_stratum_target): Remove the target op.
3435 (class process_target): Add the target op.
3436 (target_post_create_inferior): Update the macro.
3437 * target.cc (process_target::post_create_inferior): Define.
3438
3439 Update the derived classes and callers below.
3440
3441 * linux-low.cc (linux_target_ops): Update.
3442 (linux_post_create_inferior): Turn into ...
3443 (linux_process_target::post_create_inferior): ... this.
3444 * linux-low.h (class linux_process_target): Update.
3445 * lynx-low.cc (lynx_target_ops): Update.
3446 * nto-low.cc (nto_target_ops): Update.
3447 * win32-low.cc (win32_target_ops): Update.
3448
15295543
TBA
34492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3450
3451 Turn process_stratum_target's create_inferior op into a method of
3452 process_target.
3453
3454 * target.h (struct process_stratum_target): Remove the target op.
3455 (class process_target): Add the target op.
3456 (create_inferior): Rename the macro to ...
3457 (target_create_inferior): ... this.
3458
3459 Update the derived classes and callers below.
3460
3461 * server.cc (handle_v_run): Update.
3462 (captured_main): Update.
3463 (process_serial_event): Update.
3464 * linux-low.cc (linux_target_ops): Update.
3465 (linux_create_inferior): Turn into ...
3466 (linux_process_target::create_inferior): ... this.
3467 * linux-low.h (class linux_process_target): Update.
3468 * lynx-low.cc (lynx_target_ops): Update.
3469 (lynx_create_inferior): Turn into ...
3470 (lynx_process_target::create_inferior): ... this.
3471 * lynx-low.h (class lynx_process_target): Update.
3472 * nto-low.cc (nto_target_ops): Update.
3473 (nto_create_inferior): Turn into ...
3474 (nto_process_target::create_inferior): ... this.
3475 * nto-low.h (class nto_process_target): Update.
3476 * win32-low.cc (win32_target_ops): Update.
3477 (win32_create_inferior): Turn into ...
3478 (win32_process_target::create_inferior): ... this.
3479 * win32-low.h (class win32_process_target): Update.
3480
5ef9273d
TBA
34812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3482
3483 * target.h (class process_target): New class definition.
3484 (struct process_stratum_target) <pt>: New field with type
3485 'process_target*'.
3486 * linux-low.h (class linux_process_target): Define as a derived
3487 class of 'process_target'.
3488 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3489 as the 'pt' field.
3490 * lynx-low.h (class lynx_process_target): Define as a derived
3491 class of 'process_target'.
3492 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3493 as the 'pt' field.
3494 * nto-low.h (class nto_process_target): Define as a derived
3495 class of 'process_target'.
3496 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3497 as the 'pt' field.
3498 * win32-low.h (class win32_process_target): Define as a derived
3499 class of 'process_target'.
3500 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3501 as the 'pt' field.
3502
9f1528a1
AB
35032020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3504
3505 * configure: Regenerate.
3506
bf84f706
MR
35072020-02-19 Maciej W. Rozycki <macro@wdc.com>
3508 Andrew Burgess <andrew.burgess@embecosm.com>
3509
3510 * linux-riscv-low.cc: New file.
3511 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3512 and nat/riscv-linux-tdesc.c.
3513 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3514 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3515 Define.
3516
1a627e7e
TT
35172020-02-14 Tom Tromey <tom@tromey.com>
3518
3519 * acinclude.m4: Don't include acx_configure_dir.m4.
3520 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3521 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3522 (all, install-only, uninstall, clean-info, clean)
3523 (maintainer-clean): Don't recurse.
3524 (subdir_do, all-lib): Remove.
3525 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3526 (GNULIB_H): Remove.
3527 (generated_files): Update.
3528 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3529 * configure: Rebuild.
3530 * configure.ac: Don't configure gnulib or libiberty.
3531 (GNULIB): Update.
3532
a9b34532
EZ
35332020-02-14 Eli Zaretskii <eliz@gnu.org>
3534
3535 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
3536 preparing the command line for CreateProcess.
3537 (win32_create_inferior): Reflect the program name in debugging
3538 output that shows the process and its command line.
3539
feacfcac
SM
35402020-02-13 Simon Marchi <simon.marchi@efficios.com>
3541
3542 * Makefile.in: Rename source files from .c to .cc.
3543 * %.c: Rename to %.cc.
3544 * configure.ac: Rename server.c to server.cc.
3545 * configure: Re-generate.
3546
06b3c5bd
SM
35472020-02-13 Simon Marchi <simon.marchi@efficios.com>
3548
3549 * Makefile.in: Rename gdbsupport source files from .c to .cc.
3550
052793ad
HD
35512020-02-12 Hannes Domani <ssbssa@yahoo.de>
3552
3553 * win32-low.c (win32_create_inferior): Set signal_pid.
3554
f20e3e82
MR
35552020-02-12 Maciej W. Rozycki <macro@wdc.com>
3556 Pedro Alves <palves@redhat.com>
3557
3558 Skip building gdbserver in a cross-configuration.
3559 * configure.srv: Set $gdbserver_host depending on whether $target
3560 is $host. Use $gdbserver_host instead of $host.
3561
8ddd8e0e
SM
35622020-02-11 Simon Marchi <simon.marchi@efficios.com>
3563
3564 * configure: Re-generate.
3565
898e7f60
SM
35662020-02-11 Simon Marchi <simon.marchi@efficios.com>
3567
3568 * configure: Re-generate.
3569
58df732b
SM
35702020-02-11 Simon Marchi <simon.marchi@efficios.com>
3571
3572 * acinclude.m4: Update warning.m4 path.
3573
7928d571
HD
35742020-02-09 Hannes Domani <ssbssa@yahoo.de>
3575
3576 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
3577 (handle_exception): Set siginfo_er.
3578 (win32_xfer_siginfo): New function.
3579
919adfe8
TT
35802020-02-07 Tom Tromey <tom@tromey.com>
3581 Pedro Alves <palves@redhat.com>
3582
3583 * README: Update build documentation.
3584 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
3585 host, not target.
3586 * configure.ac: Update paths.
3587 * configure: Rebuild.
3588 * acinclude.m4: Update paths.
3589 * Makefile.in: Update include paths.
3590 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
3591 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
3592 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
3593 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
3594 (%-generated.c): Update paths.
3595 * Move entire directory from ../gdb/gdbserver.
3596
287c844a
MR
35972020-01-29 Maciej W. Rozycki <macro@wdc.com>
3598
3599 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
3600
548a204f
PFC
36012020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3602
3603 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
3604 assignment instead of srv_linux_obj.
3605
a2236a08
HD
36062020-01-28 Hannes Domani <ssbssa@yahoo.de>
3607
3608 * server.c (handle_qxfer_libraries): Write segment-address with
3609 paddress.
3610
bdaed379
HD
36112020-01-24 Hannes Domani <ssbssa@yahoo.de>
3612
3613 * Makefile.in (install-strip): New target.
3614 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
3615 * aclocal.m4: Regenerate.
3616 * configure: Regenerate.
3617 * configure.ac: Add AM_PROG_INSTALL_STRIP.
3618
42cd72aa
MR
36192020-01-24 Maciej W. Rozycki <macro@wdc.com>
3620
3621 * Makefile.in (SFILES): Adjust paths to point to real files.
3622 (OBS): Move waitstatus.o to target/waitstatus.o.
3623 (TAGS): Transform paths appropriately.
3624 (%.o): Rename to...
3625 (nat/%.o): ... this pattern rule.
3626 (%.o): Rename to...
3627 (target/%.o): ... this pattern rule.
3628 * configure.srv: Adjust paths throughout to include nat/ prefix
3629 with the revant files.
3630 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
3631 * configure: Regenerate.
3632
42ba50ec
MR
36332020-01-24 Maciej W. Rozycki <macro@wdc.com>
3634
3635 * Makefile.in (TAGS): Remove config files from the recipe.
3636
05ea2a05
TT
36372020-01-14 Tom Tromey <tom@tromey.com>
3638
3639 * configure: Rebuild.
3640 * configure.ac: Remove any checks that were added to common.m4.
3641 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
3642 lib-link.m4.
3643
01027315
TT
36442020-01-14 Tom Tromey <tom@tromey.com>
3645
3646 * server.h: Include config.h.
3647 * gdbreplay.c: Include config.h.
3648 * configure: Rebuild.
3649 * configure.ac: Don't source common.host.
3650 * acinclude.m4: Update path.
3651 * Makefile.in (INCSUPPORT): New variable.
3652 (INCLUDE_CFLAGS): Add INCSUPPORT.
3653 (SFILES): Update paths.
3654 (version-generated.c): Update path to create-version.sh.
3655 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
3656
b2ceabe8
TT
36572020-01-14 Tom Tromey <tom@tromey.com>
3658
3659 * configure.ac (LIBS): Use WIN32APILIBS.
3660 (USE_WIN32API): Don't define.
3661 * configure: Rebuild.
3662
25c51f71
TT
36632020-01-14 Tom Tromey <tom@tromey.com>
3664
3665 * configure: Rebuild.
3666
c0bd321d
SM
36672020-01-13 Simon Marchi <simon.marchi@efficios.com>
3668
3669 * Makefile.in (%-generated.c): Remove rule for files from
3670 regformats/i386.
3671
bb564c58
SM
36722020-01-13 Simon Marchi <simon.marchi@efficios.com>
3673
3674 * configure: Re-generate.
3675
6e37c371
SM
36762020-01-13 Simon Marchi <simon.marchi@efficios.com>
3677
3678 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
3679 Define to static.
3680 * tracepoint.c (stop_tracing, flush_trace_buffer,
3681 about_to_request_buffer_space, get_trace_state_variable_value,
3682 set_trace_state_variable_value, gdb_collect): Add declaration.
3683
df4a0200
SM
36842020-01-13 Simon Marchi <simon.marchi@efficios.com>
3685
3686 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
3687 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
3688 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
3689 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
3690 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
3691 static.
3692
89e94ec9
SM
36932020-01-13 Simon Marchi <simon.marchi@efficios.com>
3694
3695 * inferiors.c: Include gdbsupport/common-inferior.h.
3696
2552728a
SM
36972020-01-13 Simon Marchi <simon.marchi@efficios.com>
3698
3699 * hostio-errno.c: Include hostio.h.
3700
4025fa09
SM
37012020-01-13 Simon Marchi <simon.marchi@efficios.com>
3702
3703 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
3704 prerequisite.
3705
c0b0a142
SM
37062020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3707
3708 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
3709 * linux-arm-tdesc.h: Include arch/arm.h.
3710
bb1183e2
SM
37112020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3712
3713 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
3714
f5df0b5f
SM
37152020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3716
3717 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
3718 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
3719
5b6d1e4f
PA
37202020-01-10 Pedro Alves <palves@redhat.com>
3721
3722 * fork-child.c (post_fork_inferior): Pass target down to
3723 startup_inferior.
3724 * inferiors.c (switch_to_thread): Add process_stratum_target
3725 parameter.
3726 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
3727 * nto-low.c (nto_target_ops): Now a process_stratum_target.
3728 * linux-low.c (linux_target_ops): Now a process_stratum_target.
3729 * remote-utils.c (prepare_resume_reply): Pass the target to
3730 switch_to_thread.
3731 * target.c (the_target): Now a process_stratum_target.
3732 (done_accessing_memory): Pass the target to switch_to_thread.
3733 (set_target_ops): Ajust to use process_stratum_target.
3734 * target.h (struct target_ops): Rename to ...
3735 (struct process_stratum_target): ... this.
3736 (the_target, set_target_ops): Adjust.
3737 (prepare_to_access_memory): Adjust comment.
3738 * win32-low.c (child_xfer_memory): Adjust to use
3739 process_stratum_target.
3740 (win32_target_ops): Now a process_stratum_target.
3741
559e7e50
EZ
37422020-01-06 Eli Zaretskii <eliz@gnu.org>
3743 Pedro Alves <palves@redhat.com>
3744
3745 * win32-low.c (get_child_debug_event): Extract the fatal exception
3746 from the exit status and convert to the equivalent Posix signal
3747 number.
3748 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
3749 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
3750
48189bec
HD
37512020-01-01 Hannes Domani <ssbssa@yahoo.de>
3752
3753 * Makefile.in: Use INSTALL_PROGRAM_ENV.
3754
5dd8bf88
JB
37552020-01-01 Joel Brobecker <brobecker@adacore.com>
3756
3757 * server.c (gdbserver_version): Change copyright year to 2020.
3758 * gdbreplay.c (gdbreplay_version): Likewise.
3759
0ad6b8ee
CB
37602019-12-19 Christian Biesinger <cbiesinger@google.com>
3761
3762 * configure: Regenerate.
3763 * configure.ac: Quote variable arguments of test.
3764
1ee7b812
BE
37652019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
3766
3767 * Makefile.in: Fix build with GNU Make 3.81
3768
d9fa87f4
TT
37692019-12-16 Tom Tromey <tromey@adacore.com>
3770
3771 * server.c (get_exec_file): Constify result.
3772
ab7d13f0
CB
37732019-12-10 Christian Biesinger <cbiesinger@google.com>
3774
3775 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
3776 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
3777 * config.in: Regenerate.
3778 * configure: Regenerate.
3779 * configure.ac: Don't check for strerror.
3780 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
3781 Call safe_strerror instead of strerror.
3782 * server.h (strerror): Remove this now-unnecessary declaration.
3783 * tracepoint.c (init_named_socket): Call safe_strerror instead of
3784 strerror.
3785 (gdb_agent_helper_thread): Likewise.
3786 * utils.c (perror_with_name): Likewise.
3787
4da8c3a8
TT
37882019-11-26 Tom Tromey <tom@tromey.com>
3789
3790 * configure, config.in: Rebuild.
3791
21987b9c
TT
37922019-11-26 Tom Tromey <tom@tromey.com>
3793
3794 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
3795 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
3796 gdb_sigmask.
3797 * configure, config.in: Rebuild.
3798
5e030278
TT
37992019-11-26 Tom Tromey <tom@tromey.com>
3800
3801 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
3802 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
3803 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
3804 * acinclude.m4: Include ax_pthread.m4.
3805 * config.in, configure: Rebuild.
3806
6d91ce9a
CB
38072019-11-26 Christian Biesinger <cbiesinger@google.com>
3808
3809 * debug.c (debug_set_output): Call safe_strerror instead of
3810 strerror.
3811 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
3812 (linux_kill_one_lwp): Likewise.
3813 (linux_detach_one_lwp): Likewise.
3814 (linux_wait_for_event_filtered): Likewise.
3815 (store_register): Likewise.
3816 * lynx-low.c (lynx_attach): Likewise.
3817 * mem-break.c (insert_memory_breakpoint): Likewise.
3818 (remove_memory_breakpoint): Likewise.
3819 (delete_fast_tracepoint_jump): Likewise.
3820 (set_fast_tracepoint_jump): Likewise.
3821 (uninsert_fast_tracepoint_jumps_at): Likewise.
3822 (reinsert_fast_tracepoint_jumps_at): Likewise.
3823 * nto-low.c (nto_xfer_memory): Likewise.
3824 (nto_resume): Likewise.
3825
6cdd651f
LM
38262019-11-20 Luis Machado <luis.machado@linaro.org>
3827
3828 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
3829 instead of register count.
3830 * tdesc.c (tdesc_contains_feature): New function.
3831 * tdesc.h (tdesc_contains_feature): New prototype.
3832
cd850b40
CB
38332019-11-15 Christian Biesinger <cbiesinger@google.com>
3834
3835 * Makefile.in: Add safe-strerror.c.
3836 * configure: Regenerate.
3837 * configure.ac: Don't source common.host.
3838
5abebf3c
CB
38392019-11-15 Christian Biesinger <cbiesinger@google.com>
3840
3841 * config.in: Regenerate.
3842 * configure: Regenerate.
3843
e06f3d6e
AB
38442019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
3845
3846 * ax.c (ax_printf): Handle size_t_arg.
3847
ca3a04f6
CB
38482019-11-06 Christian Biesinger <cbiesinger@google.com>
3849
3850 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
3851 * mi/mi-main.c (output_cores): Likewise.
3852 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
3853 (linux_xfer_osdata_modules): Likewise.
3854 * remote.c (register_remote_support_xml): Likewise.
3855 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
3856 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
3857
e48f6033
CB
38582019-11-01 Christian Biesinger <cbiesinger@google.com>
3859
3860 * configure: Regenerate.
3861 * configure.ac: Remove check for strerror_r.
3862
e7e97a2e
CB
38632019-10-31 Christian Biesinger <cbiesinger@google.com>
3864
3865 * config.in: Regenerate.
3866 * configure: Regenerate.
3867 * configure.ac: Also check for strerror_r.
3868
75cafaa6
CB
38692019-10-31 Christian Biesinger <cbiesinger@google.com>
3870
3871 * ax.h (debug_agent): Remove duplicate declaration.
3872
30baf67b
TV
38732019-10-26 Tom de Vries <tdevries@suse.de>
3874
3875 * linux-aarch64-low.c: Fix typos in comments.
3876 * linux-arm-low.c: Same.
3877 * linux-low.c: Same.
3878 * linux-ppc-low.c: Same.
3879 * proc-service.c: Same.
3880 * regcache.h: Same.
3881 * server.c: Same.
3882 * tracepoint.c: Same.
3883 * win32-low.c: Same.
3884
52c64cf7
TT
38852019-10-25 Tom Tromey <tromey@adacore.com>
3886
3887 * utils.c (xstrdup): Remove.
3888
c12d372d
TT
38892019-10-23 Tom Tromey <tom@tromey.com>
3890
3891 * configure, config.in: Rebuild.
3892
4d0b984b
TT
38932019-10-23 Tom Tromey <tom@tromey.com>
3894
3895 * configure: Rebuild.
3896 * acinclude.m4: Use m4_include, not sinclude.
3897
c5adaa19
TT
38982019-10-17 Tom Tromey <tromey@adacore.com>
3899
3900 * configure: Rebuild.
3901 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
3902 in AC_CONFIG_FILES invocation.
3903 * Makefile.in (stamp-h, Makefile): Use new-style config.status
3904 invocation.
3905
fec4e896
CB
39062019-10-16 Christian Biesinger <cbiesinger@google.com>
3907
3908 * server.c: Include xml-builtin.h.
3909 (get_xml_features): Don't declare xml_builtins here.
3910
00975ff6
AB
39112019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3912
3913 * Makefile.in: Remove references to vec-ipa.o.
3914
0dc32745
AB
39152019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3916
3917 * Makefile.in: Remove references to vec.c.
3918
3e6ec53a
CB
39192019-10-02 Christian Biesinger <cbiesinger@google.com>
3920
3921 * server.c (server_waiting): Change to bool.
3922 (extended_protocol): Likewise.
3923 (response_needed): Likewise.
3924 (exit_requested): Likewise.
3925 (run_once): Likewise.
3926 (report_no_resumed): Likewise.
3927 (non_stop): Likewise.
3928 (disable_packet_vCont): Likewise.
3929 (disable_packet_Tthread): Likewise.
3930 (disable_packet_qC): Likewise.
3931 (disable_packet_qfThreadInfo): Likewise.
3932 (handle_general_set): Update.
3933 (handle_detach): Update.
3934 (handle_monitor_command): Update.
3935 (handle_query): Update.
3936 (captured_main): Update.
3937 (process_serial_event): Update.
3938 * server.h (server_waiting): Change to bool.
3939 (disable_packet_vCont): Likewise.
3940 (disable_packet_Tthread): Likewise.
3941 (disable_packet_qC): Likewise.
3942 (disable_packet_qfThreadInfo): Likewise.
3943 (run_once): Likewise.
3944 (non_stop): Likewise.
3945 * target.c (target_stop_and_wait): Update.
3946
80fd2826
TT
39472019-10-02 Tom Tromey <tromey@adacore.com>
3948
3949 * Makefile.in (SFILES): Add common-inferior.c.
3950 (OBS): Add common-inferior.o.
3951 * server.c (startup_with_shell): Don't define.
3952
46f29a9a
AB
39532019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3954
3955 * linux-low.c (linux_low_read_btrace): Update for change to
3956 std::vector.
3957
f9d949fb
CB
39582019-09-20 Christian Biesinger <cbiesinger@google.com>
3959
3960 * debug.c (debug_threads): Remove comment in favor of the header.
3961 * debug.h (using_threads): Add declaration.
3962 (debug_threads): Add comment.
3963 * linux-aarch64-low.c: Include debug.h and remove declaration of
3964 debug_threads.
3965 * nto-low.c: Likewise.
3966 * remote-utils.c: Likewise.
3967 * thread-db.c: Likewise.
3968
abf516c6
UW
39692019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3970
3971 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
3972 and powerpc-cell64l-ipa.o.
3973 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
3974 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
3975 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
3976 (spu*-*-*): Remove.
3977
3978 * spu-low.c: Remove file.
3979
3980 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
3981 (parse_spufs_run): Remove.
3982 (ppc_get_pc): Remove Cell/B.E. support.
3983 (ppc_set_pc): Likewise.
3984 (ppc_breakpoint_at): Likewise.
3985 (ppc_arch_setup): Likewise.
3986 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
3987 tdesc_powerpc_cell32l.
3988 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
3989 or init_registers_powerpc_cell32l.
3990 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
3991 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
3992 or init_registers_powerpc_cell32l.
3993 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
3994 (init_registers_powerpc_cell32l): Remove prototype.
3995 (init_registers_powerpc_cell64l): Likewise.
3996
3997 * target.h (struct target_ops): Remove qxfer_spu member.
3998 * server.c (handle_qxfer_spu): Remove.
3999 (qxfer_packets): Remove entry for "spu".
4000 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4001 * linux-low.c (SPUFS_MAGIC): Remove.
4002 (spu_enumerate_spu_ids): Remove.
4003 (linux_qxfer_spu): Remove.
4004 (linux_target_ops): Remove qxfer_spu member.
4005 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4006 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4007 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4008
2d41fa11
SDJ
40092019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4010
4011 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4012 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4013 * config.in: Regenerate.
4014 * configure: Regenerate.
4015
d59b55f0
TT
40162019-08-15 Tom Tromey <tromey@adacore.com>
4017
4018 * target.c (target_write_memory): Use gdb::byte_vector.
4019
4196ab2a
TT
40202019-08-15 Tom Tromey <tromey@adacore.com>
4021
4022 * tracepoint.c (write_inferior_data_pointer)
4023 (write_inferior_integer, write_inferior_int8)
4024 (write_inferior_uinteger, m_tracepoint_action_download)
4025 (r_tracepoint_action_download, x_tracepoint_action_download)
4026 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4027 (download_agent_expr, download_tracepoint_1)
4028 (download_trace_state_variables, upload_fast_traceframes): Update.
4029 * server.c (gdb_write_memory): Update.
4030 * remote-utils.c (relocate_instruction): Update.
4031 * proc-service.c (ps_pdwrite): Update.
4032 * mem-break.c (remove_memory_breakpoint)
4033 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4034 (uninsert_fast_tracepoint_jumps_at)
4035 (reinsert_fast_tracepoint_jumps_at): Update.
4036 * linux-x86-low.c (append_insns)
4037 (i386_install_fast_tracepoint_jump_pad)
4038 (amd64_write_goto_address, i386_write_goto_address): Update.
4039 * linux-s390-low.c (append_insns, s390_write_goto_address):
4040 Update.
4041 * linux-ppc-low.c (ppc_relocate_instruction)
4042 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4043 (ppc_write_goto_address): Update.
4044 * linux-aarch64-low.c (append_insns): Update.
4045 * target.h (struct target_ops): Update.
4046 (write_inferior_memory): Don't declare.
4047 * target.c (target_write_memory): Rename from
4048 write_inferior_memory. Remove old target_write_memory.
4049
c6778d00
TT
40502019-08-15 Tom Tromey <tromey@adacore.com>
4051
4052 * target.c (write_inferior_memory): Use std::vector.
4053
404f2902
FCE
40542019-08-06 Frank Ch. Eigler <fche@redhat.com>
4055
4056 PR build/24886
4057 * configure.ac: Drop enable-libmcheck support.
4058 * configure, config.in: Rebuild.
4059 * acinclude.m4: Don't include it.
4060
4c5aa8e0
AH
40612019-07-19 Alan Hayward <alan.hayward@arm.com>
4062
4063 * configure.srv: Remove Arm xml files.
4064
7cc17433
AH
40652019-07-19 Alan Hayward <alan.hayward@arm.com>
4066
4067 * configure.srv: Add new files. Remove xml generated files.
4068 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4069 registers.
4070 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4071 * linux-aarch32-tdesc.c: New file.
4072 * linux-aarch32-tdesc.h: New file.
4073 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4074 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4075 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4076 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4077 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4078 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4079 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4080 (arm_read_description): Call arm_linux_read_description.
4081 (initialize_low_arch): Don't init registers.
4082 * linux-arm-tdesc.c: New file.
4083 * linux-arm-tdesc.h: New file.
4084
166a82be
AH
40852019-07-10 Alan Hayward <alan.hayward@arm.com>
4086
4087 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4088 Move counter inside for.
4089 (arm_read_description): Check ptrace earlier.
4090 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4091
268a13a5
TT
40922019-07-09 Tom Tromey <tom@tromey.com>
4093
4094 * configure: Rebuild.
4095 * configure.ac: Change common to gdbsupport.
4096 * acinclude.m4: Change common to gdbsupport.
4097 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4098 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4099 common to gdbsupport.
4100 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4101 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4102 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4103 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4104 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4105 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4106 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4107 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4108 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4109 common to gdbsupport.
4110
350fab54
AH
41112019-07-04 Alan Hayward <alan.hayward@arm.com>
4112
4113 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4114 defines.
4115 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4116
2b40fda7
AH
41172019-07-04 Alan Hayward <alan.hayward@arm.com>
4118
4119 * configure.srv: Remove legacy xml.
4120 * linux-aarch64-low.c (initialize_low_arch): Remove
4121 initialize_low_tdesc call.
4122 * linux-aarch64-tdesc-selftest.c: Remove file.
4123 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4124 * linux-x86-low.c (initialize_low_arch): Remove
4125 initialize_low_tdesc call.
4126 * linux-x86-tdesc-selftest.c: Remove file.
4127 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4128
7d10623d
TV
41292019-06-20 Tom de Vries <tdevries@suse.de>
4130
4131 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4132 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4133
8d6a48df
TV
41342019-06-19 Tom de Vries <tdevries@suse.de>
4135
4136 * debug.h (debug_write): Change return type to ssize_t.
4137 * debug.c (debug_write): Same.
4138
73cc7272
TT
41392019-06-14 Tom Tromey <tom@tromey.com>
4140
4141 * configure.ac: Use new path to gnulib.
4142 * configure: Rebuild.
4143 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4144 to gnulib.
4145
08f10e02
TT
41462019-06-11 Tom Tromey <tom@tromey.com>
4147
4148 * Makefile.in (SFILES): Add alloc.c.
4149 (OBS): Add alloc.o.
4150 (IPA_OBJS): Add alloc-ipa.o.
4151 (alloc-ipa.o): New target.
4152 (%.o: ../%.c): New pattern rule.
4153
422186a9
TT
41542019-06-10 Tom Tromey <tromey@adacore.com>
4155
4156 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4157 end warning with a newline.
4158 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4159 newline.
4160 * thread-db.c (attach_thread): Don't end warning with a newline.
4161 (thread_db_notice_clone): Likewise.
4162 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4163 newline.
4164 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4165 end warning with a newline.
4166
b02f78f9
PA
41672019-06-04 Pedro Alves <palves@redhat.com>
4168
4169 * server.c (captured_main): Use make_unique_xstrdup.
4170
88ed7edb
TT
41712019-06-02 Tom Tromey <tom@tromey.com>
4172
4173 * gdbreplay.c (fromhex): Remove.
4174 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4175
33a6bc35
TT
41762019-05-29 Tom Tromey <tromey@adacore.com>
4177
4178 * configure: Rebuild.
4179
e90a813d
KB
41802019-05-06 Kevin Buettner <kevinb@redhat.com>
4181
4182 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4183 sign extension code on 32-bit builds.
4184
353ea2d1
EZ
41852019-05-03 Eli Zaretskii <eliz@gnu.org>
4186
4187 * remote-utils.c:
4188 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4189
b494cdff
TT
41902019-04-19 Tom Tromey <tom@tromey.com>
4191
4192 * server.c (struct vstop_notif): Derive from notif_event.
4193 <base>: Remove.
4194 (queue_stop_reply): Update.
4195 (remove_all_on_match_ptid): Change type. Rewrite.
4196 (discard_queued_stop_replies): Rewrite.
4197 (in_queued_stop_replies_ptid): Change type.
4198 (in_queued_stop_replies): Rewrite.
4199 (notif_stop): Update.
4200 (queue_stop_reply_callback): Update.
4201 (captured_main): Don't call initialize_notif.
4202 (push_stop_notification): Update.
4203 * notif.c (notif_write_event, handle_notif_ack)
4204 (notif_event_enque, notif_push): Update.
4205 (notif_event_xfree, initialize_notif): Remove.
4206 * notif.h (struct notif_event): Include <list>, not
4207 "common/queue.h".
4208 (struct notif_server) <queue>: Now a std::list.
4209 (notif_event_p): Remove typedef.
4210 (initialize_notif): Don't declare.
4211 (struct notif_event): Add virtual destructor.
4212
a7e559cc
AH
42132019-04-17 Alan Hayward <alan.hayward@arm.com>
4214
4215 * ax.c (ax_vdebug): Call debug_printf.
4216 * debug.c (debug_write): New function.
4217 * debug.h (debug_write): New declaration.
4218 * linux-low.c (sigchld_handler): Call debug_write.
4219
aeb2e706
AH
42202019-04-17 Alan Hayward <alan.hayward@arm.com>
4221
4222 * debug.c (debug_set_output): New function.
4223 (debug_vprintf): Send output to debug_file.
4224 (debug_flush): Likewise.
4225 * debug.h (debug_set_output): New declaration.
4226 * server.c (handle_monitor_command): Add debug-file option.
4227 (captured_main): Likewise.
4228
c1bc0935
AH
42292019-04-17 Alan Hayward <alan.hayward@arm.com>
4230
4231 * debug.c (remote_debug): Add definition.
4232 * debug.h (remote_debug): Add declaration.
4233 * hostio.c (remote_debug): Remove declaration.
4234 * remote-utils.c (struct ui_file): Likewise.
4235 (remote_debug): Likewise.
4236 * remote-utils.h (remote_debug): Likewise,
4237 * server.c (remote_debug): Remove definition.
4238
3f52fdbc
KB
42392019-04-10 Kevin Buettner <kevinb@redhat.com>
4240
4241 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4242 when using a 64-bit gdbserver.
4243
b0319eaa
TT
42442019-04-09 Tom Tromey <tromey@adacore.com>
4245
4246 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4247
eedc3f4f
TT
42482019-04-08 Tom Tromey <tom@tromey.com>
4249
4250 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4251 throw.
4252 (linux_resume_one_lwp): Likewise.
4253
230d2906
TT
42542019-04-08 Tom Tromey <tom@tromey.com>
4255
4256 * gdbreplay.c: Update.
4257 * linux-low.c: Update.
4258 * server.c: Update.
4259
a70b8144
TT
42602019-04-08 Tom Tromey <tom@tromey.com>
4261
4262 * server.c: Use C++ exception handling.
4263 * linux-low.c: Use C++ exception handling.
4264 * gdbreplay.c: Use C++ exception handling.
4265
3d6e9d23
TT
42662019-04-08 Tom Tromey <tom@tromey.com>
4267
4268 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4269 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4270 (captured_main, main): Update.
4271 * gdbreplay.c (main): Update.
4272
0570503d
PFC
42732019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4274
4275 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4276 value in argument pointer, return 1 if the entry is found and 0
4277 otherwise. Move comment.
4278 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4279 * linux-low.h (linux_get_auxv): Declare.
4280 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4281
227a9e65
TT
42822019-04-05 Tom Tromey <tromey@adacore.com>
4283
4284 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4285 variables.
4286
69f4c9cc
AH
42872019-03-28 Alan Hayward <alan.hayward@arm.com>
4288
4289 * linux-low.c (AT_HWCAP2): Add define if not already included.
4290
974c89e0
AH
42912019-03-26 Alan Hayward <alan.hayward@arm.com>
4292
4293 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4294 (aarch64_arch_setup): Call linux_get_hwcap.
4295 * linux-arm-low.c (arm_get_hwcap): Remove function.
4296 (arm_read_description): Call linux_get_hwcap.
4297 * linux-low.c (linux_get_auxv): New function.
4298 (linux_get_hwcap): Likewise.
4299 (linux_get_hwcap2): Likewise.
4300 * linux-low.h (linux_get_hwcap): New declaration.
4301 (linux_get_hwcap2): Likewise.
4302 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4303 (ppc_arch_setup): Call linux_get_hwcap.
4304 * linux-s390-low.c (s390_get_hwcap): Remove function.
4305 (s390_arch_setup): Call linux_get_hwcap.
4306
1ef53e6b
AH
43072019-03-22 Alan Hayward <alan.hayward@arm.com>
4308 Jiong Wang <jiong.wang@arm.com>
4309
4310 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4311 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4312 to fail.
4313 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4314
ee4fbcfa
AH
43152019-03-22 Alan Hayward <alan.hayward@arm.com>
4316 Jiong Wang <jiong.wang@arm.com>
4317
4318 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4319 (aarch64_get_hwcap): New function.
4320 (aarch64_arch_setup): Read APIA hwcap.
4321
6dc0ebde
AH
43222019-03-22 Alan Hayward <alan.hayward@arm.com>
4323 Jiong Wang <jiong.wang@arm.com>
4324
4325 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4326 (initialize_low_tracepoint): Likewise.
4327 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4328 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4329 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4330 (aarch64_linux_read_description): Likewise.
4331 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4332
1163a4b7
JB
43332019-03-12 John Baldwin <jhb@FreeBSD.org>
4334
4335 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4336 i386_create_target_description for 'segments' parameter.
4337 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4338 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4339 * win32-i386-low.c (i386_arch_setup): Likewise.
4340
d3a70e03
TT
43412019-03-12 Tom Tromey <tromey@adacore.com>
4342
4343 * linux-low.c (iterate_over_lwps): Update.
4344
37991b4f
TT
43452019-03-06 Tom Tromey <tom@tromey.com>
4346
4347 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4348 (captured_main): Use SCOPE_EXIT.
4349
45950eb6
SDJ
43502019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4351
4352 * configure.srv: Use '$enable_unittest' instead of '$development'
4353 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4354 case.
4355
43ac54fc
TT
43562019-02-27 Tom Tromey <tromey@adacore.com>
4357
4358 * gdbreplay.c (logchar): Handle \r\n.
4359
df0da8a2
AH
43602019-02-07 Alan Hayward <alan.hayward@arm.com>
4361
4362 * linux-low.c (linux_attach): Add process before lwp.
4363 * server.c (attach_inferior): Check if already attached.
4364
1a5c2598
TT
43652019-02-07 Tom Tromey <tom@tromey.com>
4366
4367 * x86-tdesc.h: Rename include guard.
4368 * x86-low.h: Add include guard.
4369 * wincecompat.h: Rename include guard.
4370 * win32-low.h: Add include guard.
4371 * utils.h: Rename include guard.
4372 * tracepoint.h: Rename include guard.
4373 * tdesc.h: Rename include guard.
4374 * target.h: Rename include guard.
4375 * server.h: Rename include guard.
4376 * remote-utils.h: Rename include guard.
4377 * regcache.h: Rename include guard.
4378 * nto-low.h: Rename include guard.
4379 * notif.h: Add include guard.
4380 * mem-break.h: Rename include guard.
4381 * lynx-low.h: Add include guard.
4382 * linux-x86-tdesc.h: Add include guard.
4383 * linux-s390-tdesc.h: Add include guard.
4384 * linux-ppc-tdesc-init.h: Add include guard.
4385 * linux-low.h: Add include guard.
4386 * linux-aarch64-tdesc.h: Add include guard.
4387 * linux-aarch32-low.h: Add include guard.
4388 * inferiors.h: Rename include guard.
4389 * i387-fp.h: Rename include guard.
4390 * hostio.h: Rename include guard.
4391 * gdbthread.h: Rename include guard.
4392 * gdb_proc_service.h: Rename include guard.
4393 * event-loop.h: Rename include guard.
4394 * dll.h: Rename include guard.
4395 * debug.h: Rename include guard.
4396 * ax.h: Rename include guard.
4397
956cc47c
SN
43982018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4399
4400 PR gdb/23985
4401 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4402 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4403
a0707f3c
TT
44042019-01-25 Tom Tromey <tom@tromey.com>
4405
4406 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4407
0747795c
TT
44082019-01-25 Tom Tromey <tom@tromey.com>
4409
4410 * win32-low.c: Fix common/ includes.
4411 * win32-i386-low.c: Fix common/ includes.
4412 * tracepoint.c: Fix common/ includes.
4413 * thread-db.c: Fix common/ includes.
4414 * target.h: Fix common/ includes.
4415 * symbol.c: Fix common/ includes.
4416 * spu-low.c: Fix common/ includes.
4417 * server.h: Fix common/ includes.
4418 * server.c: Fix common/ includes.
4419 * remote-utils.c: Fix common/ includes.
4420 * regcache.h: Fix common/ includes.
4421 * regcache.c: Fix common/ includes.
4422 * nto-x86-low.c: Fix common/ includes.
4423 * notif.h: Fix common/ includes.
4424 * mem-break.h: Fix common/ includes.
4425 * lynx-low.c: Fix common/ includes.
4426 * lynx-i386-low.c: Fix common/ includes.
4427 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4428 * linux-x86-low.c: Fix common/ includes.
4429 * linux-low.c: Fix common/ includes.
4430 * inferiors.h: Fix common/ includes.
4431 * i387-fp.c: Fix common/ includes.
4432 * hostio.c: Fix common/ includes.
4433 * hostio-errno.c: Fix common/ includes.
4434 * gdbthread.h: Fix common/ includes.
4435 * gdbreplay.c: Fix common/ includes.
4436 * fork-child.c: Fix common/ includes.
4437 * event-loop.c: Fix common/ includes.
4438 * ax.c:
4439 (enum gdb_agent_op): Fix common/ includes.
4440
be6d4f74
TT
44412019-01-21 Tom Tromey <tom@tromey.com>
4442
4443 * tracepoint.c: Fix includes.
4444 * remote-utils.c: Fix includes.
4445 * linux-x86-low.c: Fix includes.
4446
66d91b39
JB
44472019-01-01 Joel Brobecker <brobecker@adacore.com>
4448
4449 * gdbreplay.c (gdbreplay_version): Update copyright year in
4450 version message.
4451 * server.c (gdbserver_version): Likewise.
4452
754e3168
AH
44532018-12-05 Alan Hayward <alan.hayward@arm.com>
4454
4455 * linux-low.c (add_lwp): Switch ordering.
4456
d105de22
TT
44572018-11-29 Tom Tromey <tom@tromey.com>
4458
4459 * win32-low.c (win32_join): Take pid, not process.
4460 * target.h (struct target_ops) <join>: Change argument type.
4461 (join_inferior): Change argument name.
4462 * spu-low.c (spu_join): Take pid, not process.
4463 * server.c (handle_detach): Preserve pid before destroying
4464 process.
4465 * lynx-low.c (lynx_join): Take pid, not process.
4466 * linux-low.c (linux_join): Take pid, not process.
4467
50138245
AH
44682018-11-23 Alan Hayward <alan.hayward@arm.com>
4469
4470 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4471 (aarch64_cannot_fetch_register): Likewise.
4472 (struct linux_target_ops): Update references.
4473
64f57f3d
PFC
44742018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4475
4476 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4477
8d619c01
EBM
44782018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4479
4480 * configure.srv (ipa_ppc_linux_regobj): Add
4481 powerpc-isa207-htm-vsx32l-ipa.o and
4482 powerpc-isa207-htm-vsx64l-ipa.o.
4483 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4484 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4485 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4486 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4487 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4488 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4489 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4490 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4491 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4492 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4493 (init_registers_powerpc_isa207_htm_vsx32l)
4494 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4495 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4496 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4497 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4498 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4499 (ppc_store_tm_ctarregset): New functions.
4500 (ppc_regsets): Add entries for HTM regsets.
4501 (ppc_arch_setup): Set htm in features struct when needed. Set
4502 sizes for the HTM regsets.
4503 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4504 (initialize_low_arch): Call
4505 init_registers_powerpc_isa207_htm_vsx32l and
4506 init_registers_powerpc_isa207_htm_vsx64l.
4507 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4508 PPC_TDESC_ISA207_HTM_VSX.
4509 (initialize_low_tracepoint): Call
4510 init_registers_powerpc_isa207_htm_vsx32l and
4511 init_registers_powerpc_isa207_htm_vsx64l.
4512
232bfb86
EBM
45132018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4514
4515 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4516 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4517 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4518 (ppc_store_pmuregset): New functions.
4519 (ppc_regsets): Add entries for ebb and pmu regsets.
4520 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4521 pmu regsets are available. Set sizes for these regsets.
4522
f2cf6173
EBM
45232018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4524
4525 * configure.srv (ipa_ppc_linux_regobj): Add
4526 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4527 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4528 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4529 rs6000/powerpc-isa207-vsx32l.xml, and
4530 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
4531 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4532 <PPC_TDESC_ISA207_VSX>: New enum value.
4533 (init_registers_powerpc_isa207_vsx32l): Declare.
4534 (init_registers_powerpc_isa207_vsx64l): Declare.
4535 * linux-ppc-low.c (ppc_fill_tarregset): New function.
4536 (ppc_store_tarregset): New function.
4537 (ppc_regsets): Add entry for the TAR regset.
4538 (ppc_arch_setup): Set isa207 in features struct when needed. Set
4539 size for the TAR regsets.
4540 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
4541 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
4542 and init_registers_powerpc_isa207_vsx64l.
4543 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
4544 (initialize_low_tracepoint): Call
4545 init_registers_powerpc_isa207_vsx32l and
4546 init_registers_powerpc_isa207_vsx64l.
4547
7ca18ed6
EBM
45482018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4549 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4550
4551 * configure.srv (ipa_ppc_linux_regobj): Add
4552 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
4553 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
4554 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
4555 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
4556 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
4557 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
4558 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
4559 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4560 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
4561 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
4562 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
4563 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
4564 (ppc_hwcap): Add comment.
4565 (ppc_hwcap2): New global.
4566 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
4567 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
4568 (ppc_regsets): Add entries for the DSCR and PPR regsets.
4569 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
4570 when needed. Set sizes for the the DSCR and PPR regsets.
4571 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
4572 (initialize_low_arch): Call
4573 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4574 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4575 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4576 PPC_TDESC_ISA205_PPR_DSCR_VSX.
4577 (initialize_low_tracepoint): Call
4578 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4579 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4580
5c849b22
PFC
45812018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4582
4583 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
4584
8ecfd7bd
SDJ
45852018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
4586 Simon Marchi <simark@simark.ca>
4587
4588 * acinclude.m4: Include "../selftest.m4".
4589 * configure: Regenerate.
4590 * configure.ac: Use "GDB_AC_SELFTEST".
4591 * configure.srv: Use "$enable_unittests" instead of
4592 "$development" when checking whether unit tests have been
4593 enabled.
4594 * server.c (captured_main): Update message informing that
4595 selftests have been disabled.
4596
96643e35
TT
45972018-10-04 Tom Tromey <tom@tromey.com>
4598
4599 * configure: Rebuild.
4600
da4ae14a
TT
46012018-10-04 Tom Tromey <tom@tromey.com>
4602
4603 * server.c (handle_status): Rename inner "thread".
4604 (process_serial_event): Declare "res" in 'm' case.
4605 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
4606 (iterate_over_lwps): Rename inner "thread".
4607 (linux_qxfer_libraries_svr4): Rename inner "len".
4608 * gdbthread.h (find_thread_in_random): Rename inner "thread".
4609
7c619dbd
GB
46102018-10-01 Gary Benson <gbenson@redhat.com>
4611
4612 * gdb_proc_service.h: Moved common code to
4613 common/gdb_proc_service.h.
4614
3795e814
GB
46152018-10-01 Gary Benson <gbenson@redhat.com>
4616
4617 * gdb_proc_service.h: Synchronize comments and whitespace with
4618 GDB's version of this file.
4619
49b036f1
TT
46202018-09-25 Tom Tromey <tom@tromey.com>
4621
4622 * configure: Rebuild.
4623 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
4624
8ff03f0b
SM
46252018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4626
4627 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
4628 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
4629 ($(IPA_LIB)): Sort IPA_OBJS.
4630
a1cd91dc
SM
46312018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4632
4633 * Makefile.in: Remove references to $(ADD_DEPS).
4634
752312ba
TT
46352018-09-16 Tom Tromey <tom@tromey.com>
4636
4637 * remote-utils.c (remote_open): Use GNU style for metasyntactic
4638 variables.
4639 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
4640 variables.
4641
f1628857
TT
46422018-09-05 Tom Tromey <tom@tromey.com>
4643
4644 * configure: Rebuild.
4645
ad202fcc
SM
46462018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
4647
4648 PR build/23399
4649 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
4650
d3d8724a
TT
46512018-08-27 Tom Tromey <tom@tromey.com>
4652
4653 PR build/23087:
4654 * configure: Rebuild.
4655
b4f183d2
TT
46562018-08-27 Tom Tromey <tom@tromey.com>
4657
4658 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
4659 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
4660 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
4661 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
4662 (s390x_emit_stack_adjust): Add casts to unsigned char.
4663
4e2aa472
SM
46642018-08-22 Simon Marchi <simon.marchi@ericsson.com>
4665
4666 PR gdb/23374
4667 PR gdb/23375
4668 * server.h (struct client_state) <disable_randomization>:
4669 Initialize to 1.
4670
cf4088a9
SM
46712018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4672
4673 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
4674 variable.
4675 (mips_supply_ptrace_register): Likewise.
4676
a0de763e
TT
46772018-07-22 Tom Tromey <tom@tromey.com>
4678
4679 * configure: Rebuild.
4680
b0a7723d
TT
46812018-07-22 Tom Tromey <tom@tromey.com>
4682
4683 * win32-low.c (win32_create_inferior): Remove unused variables.
4684 * gdbreplay.c (remote_open): Remove unused variable.
4685 * remote-utils.c (remote_prepare): Remove unused variable.
4686 * x86-tdesc.h (X86_TDESC_H): Define.
4687 (amd64_expedite_regs): Define conditionally.
4688 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
4689 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
4690 * remote-utils.c (readchar): Remove unused variable.
4691
a780ef4f
PA
46922018-07-13 Pedro Alves <palves@redhat.com>
4693
4694 * linux-low.c (linux_kill): Change parameter to process_info
4695 pointer instead of pid. Adjust.
4696 * lynx-low.c (lynx_kill): Likewise.
4697 * nto-low.c (nto_kill): Likewise.
4698 * spu-low.c (spu_kill): Likewise.
4699 * win32-low.c (win32_kill): Likewise.
4700 * server.c (handle_v_kill, kill_inferior_callback)
4701 (detach_or_kill_for_exit): Adjust.
4702 * target.c (kill_inferior): Change parameter to process_info
4703 pointer instead of pid. Adjust.
4704 * target.h (struct target_ops) <kill>: Change parameter to
4705 process_info pointer instead of pid. Adjust all implementations
4706 and callers.
4707 (kill_inferior): Likewise.
4708
ef2ddb33
PA
47092018-07-13 Pedro Alves <palves@redhat.com>
4710
4711 * linux-low.c (linux_detach, linux_join): Change parameter to
4712 process_info pointer instead of pid. Adjust.
4713 * lynx-low.c (lynx_detach, lynx_join): Likewise.
4714 * nto-low.c (nto_detach): Likewise.
4715 * spu-low.c (spu_detach, spu_join): Likewise.
4716 * win32-low.c (win32_detach, win32_join): Likewise.
4717 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
4718 * target.h (struct target_ops) <detach, join>: Change parameter to
4719 process_info pointer instead of pid. Adjust all implementations
4720 and callers.
4721 (detach_inferior, join_inferior): Rename 'pid' parameter to
4722 'proc'.
4723
c7ab0aef
SDJ
47242018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4725 Jan Kratochvil <jan.kratochvil@redhat.com>
4726 Paul Fertser <fercerpav@gmail.com>
4727 Tsutomu Seki <sekiriki@gmail.com>
4728
4729 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
4730 (OBS): Add 'common/netstuff.o'.
4731 (GDBREPLAY_OBS): Likewise.
4732 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
4733 (remote_open): Implement support for IPv6
4734 connections.
4735 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
4736 and 'wspiapi.h'.
4737 (handle_accept_event): Accept connections from IPv6 sources.
4738 (remote_prepare): Handle IPv6-style hostnames; implement
4739 support for IPv6 connections.
4740 (remote_open): Implement support for printing connections from
4741 IPv6 sources.
4742
31445d10
PA
47432018-07-11 Pedro Alves <palves@redhat.com>
4744
4745 PR gdb/23377
4746 * mem-break.c (any_persistent_commands): Add process_info
4747 parameter and use it instead of relying on the current process.
4748 Change return type to bool.
4749 * mem-break.h (any_persistent_commands): Add process_info
4750 parameter and change return type to bool.
4751 * server.c (handle_detach): Remove require_running_or_return call.
4752 Look up the process_info for the process we're about to detach.
4753 If not found, return back error to GDB. Adjust
4754 any_persistent_commands call to pass down a process pointer.
4755
cb197132
PA
47562018-07-11 Pedro Alves <palves@redhat.com>
4757
4758 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
4759 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
4760 instead of collect_register_by_name.
4761 * regcache.c (regcache_raw_get_unsigned_by_name): New.
4762 * regcache.h (regcache_raw_get_unsigned_by_name): New.
4763
1b919490
VB
47642018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4765 Pedro Alves <palves@redhat.com>
4766
4767 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
4768
d7e15655
TT
47692018-07-03 Tom Tromey <tom@tromey.com>
4770
4771 * linux-low.c: Update.
4772 * lynx-low.c: Update.
4773 * mem-break.c: Update.
4774 * nto-low.c: Update.
4775 * remote-utils.c: Update.
4776 * server.c: Update.
4777 * spu-low.c: Update.
4778 * target.c: Update.
4779 * win32-low.c: Update.
4780
26a57c92
TT
47812018-07-03 Tom Tromey <tom@tromey.com>
4782
4783 * server.c: Update.
4784
0e998d96
TT
47852018-07-03 Tom Tromey <tom@tromey.com>
4786
4787 * linux-low.c: Update.
4788
cc6bcb54
TT
47892018-07-03 Tom Tromey <tom@tromey.com>
4790
4791 * target.c: Update.
4792
e38504b3
TT
47932018-07-03 Tom Tromey <tom@tromey.com>
4794
4795 * linux-low.c: Update.
4796 * linux-mips-low.c: Update.
4797 * lynx-low.c: Update.
4798 * nto-low.c: Update.
4799 * remote-utils.c: Update.
4800 * server.c: Update.
4801 * spu-low.c: Update.
4802 * target.c: Update.
4803 * thread-db.c: Update.
4804
e99b03dc
TT
48052018-07-03 Tom Tromey <tom@tromey.com>
4806
4807 * linux-low.c: Update.
4808 * linux-mips-low.c: Update.
4809 * lynx-low.c: Update.
4810 * mem-break.c: Update.
4811 * nto-low.c: Update.
4812 * remote-utils.c: Update.
4813 * server.c: Update.
4814 * spu-low.c: Update.
4815 * target.c: Update.
4816 * tracepoint.c: Update.
4817
f2907e49
TT
48182018-07-03 Tom Tromey <tom@tromey.com>
4819
4820 * linux-low.c: Update.
4821 * linux-ppc-low.c: Update.
4822 * linux-x86-low.c: Update.
4823 * proc-service.c: Update.
4824 * server.c: Update.
4825 * spu-low.c: Update.
4826 * thread-db.c: Update.
4827 * win32-low.c: Update.
4828
fd79271b
TT
48292018-07-03 Tom Tromey <tom@tromey.com>
4830
4831 * linux-low.c: Update.
4832 * lynx-low.c: Update.
4833 * nto-low.c: Update.
4834 * remote-utils.c: Update.
4835 * spu-low.c: Update.
4836 * thread-db.c: Update.
4837 * win32-low.c: Update.
4838
c0867626
SDJ
48392018-06-29 Joel Brobecker <brobecker@adacore.com>
4840
4841 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
4842 parameter in call to 'amd64_create_target_description'.
4843
2512d7ef
JK
48442018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4845
4846 * x86-tdesc.h: Remove executable permission flag.
4847
d0ac1c44
SM
48482018-06-19 Simon Marchi <simon.marchi@ericsson.com>
4849
4850 * configure.ac: Remove AC_PREREQ, add missing quoting.
4851 * configure: Re-generate.
4852 * config.in: Re-generate.
4853 * aclocal.m4: Re-generate.
4854
c4eb05ff
SM
48552018-06-18 Simon Marchi <simon.marchi@ericsson.com>
4856
4857 * tracepoint.h (current_traceframe): Remove declaration.
4858
02895270
AH
48592018-06-18 Alan Hayward <alan.hayward@arm.com>
4860
4861 * linux-aarch64-low.c (is_sve_tdesc): New function.
4862 (aarch64_sve_regs_copy_to_regcache): Likewise.
4863 (aarch64_sve_regs_copy_from_regcache): Likewise.
4864 (aarch64_regs_info): Add SVE checks.
4865 (initialize_low_arch): Initialize SVE.
4866
e9902bfc
AH
48672018-06-18 Alan Hayward <alan.hayward@arm.com>
4868
4869 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
4870
fefa175e
AH
48712018-06-11 Alan Hayward <alan.hayward@arm.com>
4872
4873 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
4874 (initialize_low_tracepoint): Likewise
4875 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
4876 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
4877 param.
4878 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
4879 checks.
4880 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
4881
b91ad3ff
AH
48822018-06-11 Alan Hayward <alan.hayward@arm.com>
4883
4884 * server.h (PBUFSIZ): Increase size
4885
f868386e
AH
48862018-06-11 Alan Hayward <alan.hayward@arm.com>
4887
4888 * regcache.c (regcache::raw_compare): New function.
4889 * regcache.h (regcache::raw_compare): New declaration.
4890
9c861883
AH
48912018-06-11 Alan Hayward <alan.hayward@arm.com>
4892
4893 * regcache.c (new_register_cache): Use new.
4894 (free_register_cache): Use delete.
4895 (register_data): Use const.
4896 (supply_register): Move body inside regcache.
4897 (regcache::raw_supply): New override function.
4898 (collect_register): Move body inside regcache.
4899 (regcache::raw_collect): New override function.
4900 (regcache::get_register_status): New override function.
4901 * regcache.h (struct regcache): Inherit from reg_buffer_common.
4902
40591844
TT
49032018-06-09 Tom Tromey <tom@tromey.com>
4904
4905 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
4906 declare queue.
4907 (event_queue): Use std::queue.
4908 (gdb_event_xfree): Remove.
4909 (initialize_event_loop, process_event, wait_for_event): Update.
4910
6341380d
SC
49112018-06-08 Stan Cox <scox@redhat.com>
4912
4913 * win32-low.c (win32_create_inferior): last_ptid and last_status
4914 moved to client_state.
4915
03349c93
PA
49162018-06-08 Pedro Alves <palves@redhat.com>
4917
4918 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
4919 common/common-exceptions.o, common/common-utils.o,
4920 common/errors.o, common/print-utils.o and utils.o.
4921 * gdbreplay.c: Include "common-defs.h" instead of the two
4922 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
4923 string.h or alloca.h.
4924 (perror_with_name): Delete.
4925 (remote_open): Use xstrdup instead of strdup.
4926 (main): Rename to ...
4927 (captured_main): ... this.
4928 (main): New.
4929
8dcc53b3
TT
49302018-06-08 Tom Tromey <tom@tromey.com>
4931
4932 * linux-low.c (linux_low_read_btrace): Update.
4933
c12a5089
SC
49342018-06-04 Stan Cox <scox@redhat.com>
4935
4936 * server.h (struct client_state): New.
4937 * server.c (cont_thread, general_thread, multi_process)
4938 (report_fork_events, report_vfork_events, report_exec_events)
4939 (report_thread_events, swbreak_feature, hwbreak_feature)
4940 (vCont_supported, disable_randomization, pass_signals)
4941 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
4942 Moved to client_state.
4943 * remote-utils.c (remote_debug, noack_mode)
4944 (transport_is_reliable): Moved to client_state.
4945 * tracepoint.c (current_traceframe): Moved to client_state.
4946
4947 Update all callers.
4948 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
4949 linux-low.c, remote-utils.h, target.c: Use client_state.
4950
122394f1
AH
49512018-05-31 Alan Hayward <alan.hayward@arm.com>
4952
4953 * configure.srv: Add new c/h file.
4954
95228a0d
AH
49552018-05-31 Alan Hayward <alan.hayward@arm.com>
4956
4957 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
4958 null VQ.
4959
d8dab6c3
MR
49602018-05-25 Maciej W. Rozycki <macro@mips.com>
4961
4962 * gdb.arch/mips-fpregset-core.exp: New test.
4963 * gdb.arch/mips-fpregset-core.c: New test source.
4964
81e25b7c
EK
49652018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
4966
4967 PR server/23198
4968 * hostio.c (require_int): Do not report overflow for integers
4969 between 0xfffffff and 0x7fffffff.
4970
7e947ad3
MR
49712018-05-22 Maciej W. Rozycki <macro@mips.com>
4972
4973 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
4974 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
4975 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
4976 functions.
4977 (the_low_target): Wire them.
4978
1d75a658
PFC
49792018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4980
4981 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
4982 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
4983 mode. Call collect_register_by_name with vscr using
4984 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
4985 (ppc_store_vrregset): Add and set vscr_offset variable as in
4986 ppc_fill_vrregset. Call supply_register_by_name with vscr using
4987 vscr_offset.
4988
d078308a
PFC
49892018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4990
4991 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
4992 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
4993 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
4994
7273b5fc
PFC
49952018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4996
4997 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
4998 (ppc_store_vsxregset): Likewise.
4999 (ppc_fill_vrregset): Likewise.
5000 (ppc_store_vrregset): Likewise.
5001 (ppc_fill_evrregset): Likewise.
5002 (ppc_store_evrregset): Likewise.
5003 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5004 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5005 needed.
5006
2e077f5e
PFC
50072018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5008
5009 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5010 wordsize of the inferior. Call ppc_linux_target_wordsize.
5011
bd64614e
PFC
50122018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5013
5014 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5015 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5016 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5017 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5018 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5019 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5020 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5021 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5022 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5023 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5024 (tdesc_powerpc_e500l): Remove.
5025 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5026 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5027 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5028 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5029 linux-ppc-tdesc.h.
5030 (ppc_arch_setup): Remove target description matching code. Fill a
5031 ppc_linux_features struct and call ppc_linux_match_description
5032 with it.
5033
75d74cca
MR
50342018-05-22 Maciej W. Rozycki <macro@mips.com>
5035
5036 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5037 width of the requested register exceeds the width of the
5038 `ptrace' data type.
5039 (mips_cannot_store_register): Likewise.
5040
e4439e43
MR
50412018-05-21 Maciej W. Rozycki <macro@mips.com>
5042
5043 * linux-mips-low.c (mips_fetch_register): New function. Update
5044 preceding comment.
5045 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5046 (the_low_target): Wire `mips_fetch_register'.
5047
55271bf9
JB
50482018-05-10 Joel Brobecker <brobecker@adacore.com>
5049
5050 * lynx-i386-low.c (LYNXOS_178): New macro.
5051 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5052 the layout on LynxOS-178.
5053 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5054 handle floating point registers that are not supported by
5055 LynxOS-178.
5056
1a34f210
TT
50572018-05-10 Tom Tromey <tom@tromey.com>
5058
5059 * configure: Rebuild.
5060
190852c8
JB
50612018-05-10 Joel Brobecker <brobecker@adacore.com>
5062
5063 PR server/23158:
5064 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5065 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5066 Use it to set the expedite_regs field in the given tdesc.
5067 * x86-tdesc.h: New file.
5068 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5069 Adjust following the addition of the new expedite_regs parameter
5070 to init_target_desc.
5071 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5072 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5073 (i386_linux_read_description, amd64_linux_read_description):
5074 Adjust following the addition of the new expedite_regs parameter
5075 to init_target_desc.
5076 * lynx-i386-low.c: #include "x86-tdesc.h".
5077 (lynx_i386_arch_setup): Adjust following the addition of the new
5078 expedite_regs parameter to init_target_desc.
5079 * nto-x86-low.c: #include "x86-tdesc.h".
5080 (nto_x86_arch_setup): Adjust following the addition of the new
5081 expedite_regs parameter to init_target_desc.
5082 * win32-i386-low.c: #include "x86-tdesc.h".
5083 (i386_arch_setup): Adjust following the addition of the new
5084 expedite_regs parameter to init_target_desc.
5085
7dbac825
JB
50862018-05-10 Joel Brobecker <brobecker@adacore.com>
5087
5088 PR server/23158:
5089 * win32-low.c (win32_create_inferior): Add call to my_wait
5090 setting last_status global.
5091
906994d9
JB
50922018-05-10 Joel Brobecker <brobecker@adacore.com>
5093
5094 PR server/23158:
5095 * win32-low.c (create_process): Only call gdb_tilde_expand if
5096 inferior_cwd is not NULL.
5097
8ee22052
AB
50982018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5099
5100 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5101 registers to the cache if their values have changed.
5102 (i387_xsave_to_cache): Provide default values for x87 control
5103 registers when these features are available, but disabled.
5104 * regcache.c (supply_register_by_name_zeroed): New function.
5105 * regcache.h (supply_register_by_name_zeroed): Declare new
5106 function.
5107
aff689d3
TT
51082018-05-07 Tom Tromey <tom@tromey.com>
5109
5110 * configure: Rebuild.
5111
85e26832
TT
51122018-05-04 Tom Tromey <tom@tromey.com>
5113
5114 * configure: Rebuild.
5115
a3b60e45
JK
51162018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5117 Pedro Alves <palves@redhat.com>
5118
5119 * linux-aarch64-low.c (aarch64_stopped_data_address):
5120 Likewise.
5121
632e107b
TT
51222018-04-27 Tom Tromey <tom@tromey.com>
5123
5124 * configure: Rebuild.
5125
458412c3
TT
51262018-04-23 Tom Tromey <tom@tromey.com>
5127
5128 * configure: Rebuild.
5129
f31c089e
SM
51302018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5131
5132 * Makefile.in (depcomp): Add "..".
5133 (all_deps_files): New and use it.
5134
b319b098
AH
51352018-04-18 Alan Hayward <alan.hayward@arm.com>
5136
5137 * configure.srv (aarch64*-*-linux*): Don't include xml.
5138 (i[34567]86-*-cygwin*): Likewise.
5139 (i[34567]86-*-linux*): Likewise.
5140 (i[34567]86-*-lynxos*): Likewise.
5141 (i[34567]86-*-mingw32ce*): Likewise.
5142 (i[34567]86-*-mingw*): Likewise.
5143 (i[34567]86-*-nto*): Likewise.
5144 (tic6x-*-uclinux): Likewise.
5145 (x86_64-*-linux*): Likewise.
5146 (x86_64-*-mingw*): Likewise.
5147 (x86_64-*-cygwin*): Likewise.
5148
3b74854b
AH
51492018-04-18 Alan Hayward <alan.hayward@arm.com>
5150
5151 * tdesc.c: Remove xml parameter.
5152
e98577a9
AH
51532018-04-18 Alan Hayward <alan.hayward@arm.com>
5154
5155 * server.c (get_features_xml): Remove cast.
5156 * tdesc.c (void target_desc::accept): Fill in function.
5157 (tdesc_get_features_xml): Remove old xml creation.
5158 (print_xml_feature::visit_pre): Add xml vistor.
5159 * tdesc.h (struct target_desc): Make xmltarget mutable.
5160 (tdesc_get_features_xml): Remove declaration.
5161
d278f585
AH
51622018-04-18 Alan Hayward <alan.hayward@arm.com>
5163
5164 * tdesc.c (tdesc_architecture_name): Add new function.
5165 (tdesc_osabi_name): Likewise.
5166 (tdesc_get_features_xml): Use new functions.
5167
eee8a18d
AH
51682018-04-18 Alan Hayward <alan.hayward@arm.com>
5169
5170 * tdesc.c (tdesc_create_flags): Remove.
5171 (tdesc_add_flag): Likewise.
5172 (tdesc_named_type): Likewise.
5173 (tdesc_create_union): Likewise.
5174 (tdesc_create_struct): Likewise.
5175 (tdesc_create_vector): Likewise.
5176 (tdesc_add_bitfield): Likewise.
5177 (tdesc_add_field): Likewise.
5178 (tdesc_set_struct_size): Likewise.
5179
82ec9bc7
AH
51802018-04-18 Alan Hayward <alan.hayward@arm.com>
5181
5182 * tdesc.c (~target_desc): Remove implictly deleted items.
5183 (init_target_desc): Iterate all features.
5184 (tdesc_get_features_xml): Use vector.
5185 (tdesc_create_feature): Create feature.
5186 * tdesc.h (tdesc_feature) Remove
5187 (target_desc): Add features.
5188
ea3e7d71
AH
51892018-04-18 Alan Hayward <alan.hayward@arm.com>
5190
5191 * Makefile.in: Add common/tdesc.c
5192 * tdesc.c (init_target_desc): init all reg_defs from register
5193 vector.
5194 (tdesc_create_reg): Create tdesc_reg.
5195 * tdesc.h (tdesc_feature): Add register vector.
5196
17d08cd4
SM
51972018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5198
5199 * tdesc.h (struct target_desc) <features>: Change type to
5200 std::vector<std::string>.
5201 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5202 changes.
5203 (tdesc_get_features_xml): Likewise.
5204 (tdesc_create_feature): Likewise.
5205
5cd3e386
AH
52062018-03-26 Alan Hayward <alan.hayward@arm.com>
5207
5208 * regcache.c (find_register_by_number): Return a ref.
5209 (find_regno): Use references.
5210 (register_size): Likewise.
5211 (register_data): Likewise.
5212 * tdesc.c (target_desc::~target_desc): Remove free calls.
5213 (target_desc::operator==): Use std::vector compare.
5214 (init_target_desc): Use reference.
5215 (tdesc_create_reg): Use reg constructors.
5216 * tdesc.h (struct target_desc): Replace pointer with object.
5217
dff7492c
AH
52182018-03-23 Alan Hayward <alan.hayward@arm.com>
5219
5220 * regcache.c (find_register_by_number): Make static.
5221 (find_regno): Use find_register_by_number
5222 * regcache.h (struct reg): Remove declaration.
5223
d80e5242
AH
52242018-03-23 Alan Hayward <alan.hayward@arm.com>
5225
5226 * tdesc.c (target_desc::~target_desc): Move to here.
5227 (target_desc::operator==): Likewise.
5228 * tdesc.h (target_desc::~target_desc): Move from here.
5229 (target_desc::operator==): Likewise.
5230
f69c5afb
AA
52312018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5232
5233 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5234
ce29f843
AA
52352018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5236
5237 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5238 S390_TDESC_GS.
5239 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5240 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5241 and init_registers_s390_gs_linux64.
5242
c49bd90b
AA
52432018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5244
5245 * linux-s390-low.c (s390_fill_gs): Remove function.
5246 (s390_fill_gsbc): Remove function.
5247 (s390_regsets): Set fill functions for the guarded storage regsets
5248 to NULL.
5249
7edb9bd3
AA
52502018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5251
5252 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5253 the word size. Add comment.
5254 (s390_get_wordsize): New function.
5255 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5256 pswm with it. Instead, use s390_get_wordsize to determine the
5257 word size first and derive the correct tdesc from that directly.
5258
39be3c7e
SM
52592018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5260
5261 * Makefile.in: Include silent-rules.mk.
5262 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5263 (COMPILE): Add ECHO_CXX.
5264 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5265 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5266 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5267 (version-generated.c): Add ECHO_GEN.
5268 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5269 (IPAGENT_COMPILE): Add ECHO_CXX.
5270 (%-generated.c): Add ECHO_REGDAT.
5271
3ae9ce5d
TT
52722018-03-14 Tom Tromey <tom@tromey.com>
5273
5274 PR cli/14977:
5275 * ax.c (ax_printf): Special case for NULL.
5276
e6a58aa8
SM
52772018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5278
5279 * linux-low.c (linux_qxfer_libraries_svr4): Use
5280 xml_escape_text_append.
5281
f6e8a41e
SM
52822018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5283
5284 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5285
b9671caf
SM
52862018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5287
5288 * server.c (handle_general_set): Remove unnecessary xstrdup.
5289
e80aaf61
SM
52902018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5291
5292 * server.c (parse_debug_format_options): Adjust to
5293 delim_string_to_char_ptr_vec changes.
5294 * thread-db.c (thread_db_load_search): Adjust to
5295 dirnames_to_char_ptr_vec changes.
5296
b1223e78
MM
52972018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5298
5299 * target.h (target_enable_btrace, target_disable_btrace)
5300 (target_read_btrace, target_read_btrace_conf): Turn macro into
5301 inline function. Throw error if target method is not defined.
5302 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5303 check for btrace target method. Be prepared to handle exceptions
5304 from btrace target methods.
5305
81561546
SDJ
53062018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5307
5308 * server.c (captured_main): Change order of error message printed
5309 when the current working directory cannot be found.
5310
25e3c82c
SDJ
53112018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5312
5313 * server.c: Include "filenames.h" and "pathstuff.h".
5314 (program_name): Delete variable.
5315 (program_path): New anonymous class.
5316 (get_exec_wrapper): Use "program_path" instead of
5317 "program_name".
5318 (handle_v_run): Likewise.
5319 (captured_main): Likewise.
5320 (process_serial_event): Likewise.
5321
b4987c95
SDJ
53222018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5323
5324 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5325 (OBJS): Add "pathstuff.o".
5326 * server.c (current_directory): New global variable.
5327 (captured_main): Initialize "current_directory".
5328
f46cd62a
AH
53292018-02-26 Alan Hayward <alan.hayward@arm.com>
5330
5331 * tdesc.c: Use common/tdesc.h.
5332 * tdesc.h: Likewise.
5333
a543c5ca
AH
53342018-02-20 Alan Hayward <alan.hayward@arm.com>
5335 Simon Marchi <simon.marchi@ericsson.com>
5336
5337 * Makefile.in: Switch order of make rules.
5338
b5884fa7
AH
53392018-02-19 Alan Hayward <alan.hayward@arm.com>
5340
5341 * Makefile.in: Add common directory in build.
5342 * configure.ac: Add common reference.
5343 * configure: Regenerate.
5344
de6242d3
MM
53452018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5346
5347 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5348 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5349 * spu-low.c (spu_target_ops): Likewise.
5350 * win32-low.c (win32_target_ops): Likewise.
5351 * server.c (supported_btrace_packets): Report packets unconditionally.
5352 * target.h (target_ops) <supports_btrace>: Remove.
5353 (target_supports_btrace): Remove.
5354
9ee23a85
MM
53552018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5356
5357 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5358 (handle_btrace_disable): Change return type to void. Use exceptions
5359 to report errors.
5360 (handle_btrace_general_set): Catch exception and copy message to
5361 return message.
5362
8ce47547
TT
53632018-02-08 Tom Tromey <tom@tromey.com>
5364
5365 * linux-low.c (install_software_single_step_breakpoints): Use
5366 make_scoped_restore.
5367 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5368 (do_restore_current_thread_cleanup): Remove.
5369 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5370 declare.
5371
45dd3607
TT
53722018-02-08 Tom Tromey <tom@tromey.com>
5373
5374 * mem-break.c (set_raw_breakpoint_at): Use
5375 gdb::unique_xmalloc_ptr.
5376
e671cd59
PA
53772018-01-30 Pedro Alves <palves@redhat.com>
5378
5379 PR gdb/13211
5380 * target.c (target_terminal::terminal_state): Rename to ...
5381 (target_terminal::m_terminal_state): ... this.
5382
a0aad537
JC
53832018-01-19 James Clarke <jrtc27@jrtc27.com>
5384
5385 * linux-low.c (handle_extended_wait): Surround call to
5386 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5387
4d9b86e1
SM
53882018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5389
5390 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5391 linux_ptrace_attach_fail_reason_string now returning an
5392 std::string.
5393 (linux_attach): Likewise.
5394 * thread-db.c (attach_thread): Likewise.
5395
f517c180
EA
53962018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5397
5398 PR gdb/21559
5399 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5400 checking for fs_base/gs_base fields in struct user_regs_struct.
5401 * configure: Regenerate.
5402
9a70f35c
YQ
54032018-01-16 Yao Qi <yao.qi@linaro.org>
5404
5405 PR gdb/18749
5406 * linux-low.c (fetch_register): Call supply_register instead of
5407 error.
5408
605fd3c6
YQ
54092018-01-08 Yao Qi <yao.qi@linaro.org>
5410 Simon Marchi <simon.marchi@ericsson.com>
5411
5412 * Makefile.in (OBS): Remove selftest.o.
5413 * configure.ac: Set srv_selftest_objs if $development is true.
5414 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5415 * configure: Re-generated.
5416 * server.c (captured_main): Wrap variable selftest_filter with
5417 GDB_SELF_TEST.
5418
2cc05030
SM
54192018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5420
5421 * server.c (parse_debug_format_options): Return std::string.
5422 (handle_monitor_command, captured_main): Adjust.
5423
e379cee6
PA
54242018-01-05 Pedro Alves <palves@redhat.com>
5425
5426 PR gdb/18653
5427 * server.c (captured_main): Pass quiet=false to
5428 save_original_signals_state.
5429
82e1e79a
JB
54302018-01-01 Joel Brobecker <brobecker@adacore.com>
5431
5432 * gdbreplay.c (gdbreplay_version): Update copyright year in
5433 version message.
5434 * server.c (gdbserver_version): Likewise.
5435
8e481c3b
TT
54362017-12-08 Tom Tromey <tom@tromey.com>
5437
5438 * ax.c (ax_printf): Update.
5439
a8806230
YQ
54402017-12-07 Yao Qi <yao.qi@linaro.org>
5441
5442 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5443 aarch64_linux_read_description.
5444 * linux-amd64-ipa.c (idx2mask): New array.
5445 (get_ipa_tdesc): Move idx2mask out.
5446 (initialize_low_tracepoint): Initialize target descriptions.
5447 * linux-i386-ipa.c (idx2mask): New array.
5448 (get_ipa_tdesc): Move idx2mask out.
5449 (initialize_low_tracepoint): Initialize target descriptions.
5450
d4a0e8b5
SM
54512017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5452
5453 * tdesc.c (struct tdesc_type): Change return type.
5454 (tdesc_add_flag): Change parameter type.
5455 (tdesc_add_bitfield): Likewise.
5456 (tdesc_add_field): Likewise.
5457 (tdesc_set_struct_size): Likewise.
5458
798a7429
SM
54592017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5460
5461 * regcache.c (registers_to_string): Remove unused variable.
5462
c0e15c9b
SM
54632017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5464
5465 * inferiors.c (for_each_inferior_with_data): Remove.
5466 * inferiors.h (for_each_inferior_with_data): Remove.
5467 * server.c (handle_qxfer_threads_worker): Change parameter type.
5468 (handle_qxfer_threads_proper): Use for_each_thread.
5469
f0045347
SM
54702017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5471
5472 * inferiors.c (for_each_inferior): Remove.
5473 (clear_inferiors): Use for_each_thread.
5474 * inferiors.h (for_each_inferior): Remove.
5475 * linux-low.c (linux_wait_for_event_filtered): Use
5476 for_each_thread.
5477 (linux_stabilize_threads): Likewise.
5478 * regcache.c (regcache_release): Likewise.
5479 * server.c (gdb_wants_all_threads_stopped): Likewise.
5480 (clear_pending_status_callback): Remove.
5481 (handle_status): Use for_each_thread.
5482 (captured_main): Likewise.
5483 * win32-low.c (child_init_thread_list): Likewise.
5484 (win32_clear_inferiors): Likewise.
5485 (fake_breakpoint_event): Likewise.
5486
9521758b
SM
54872017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5488
5489 * inferiors.h (find_inferior): Remove.
5490 * inferiors.c (find_inferior): Remove.
5491
8f86d7aa
SM
54922017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5493
5494 * linux-low.c (resume_status_pending_p): Update comment.
5495 (need_step_over_p): Update comment.
5496
e2b44075
SM
54972017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5498
5499 * linux-low.c (proceed_one_lwp): Return void, change parameter
5500 type.
5501 (unsuspend_and_proceed_one_lwp): Likewise.
5502 (proceed_all_lwps): Use for_each_thread.
5503 (unstop_all_lwps): Likewise.
5504
c80825ff
SM
55052017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5506
5507 * linux-low.c (linux_resume_one_thread): Return void, take
5508 parameter directly.
5509 (linux_resume): Use for_each_thread.
5510
df3e4dbe
SM
55112017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5512
5513 * linux-low.c (send_sigstop_callback): Return void, change
5514 parameter type. Rename to...
5515 (send_sigstop): ... this.
5516 (suspend_and_send_sigstop_callback): Return void, change parameter
5517 type. Rename to...
5518 (suspend_and_send_sigstop): ... this.
5519 (stop_all_lwps): Use for_each_thread.
5520
5a6b0a41
SM
55212017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5522
5523 * linux-low.c (lwp_running): Return bool, remove unused
5524 argument.
5525 (linux_stabilize_threads): Use find_thread.
5526
39a64da5
SM
55272017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5528
5529 * linux-low.c (select_singlestep_lwp_callback): Remove.
5530 (count_events_callback): Remove.
5531 (select_event_lwp_callback): Remove.
5532 (select_event_lwp): Use find_thread/for_each_thread.
5533
a1385b7b
SM
55342017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5535
5536 * linux-low.c (not_stopped_callback): Return bool, take filter
5537 argument directly.
5538 (linux_wait_for_event_filtered): Use find_thread.
5539 (linux_wait_1): Likewise.
5540
454296a2
SM
55412017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5542
5543 * linux-low.c (same_lwp): Remove.
5544 (find_lwp_pid): Use find_thread.
5545
6b2a85da
SM
55462017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5547
5548 * linux-low.c (delete_lwp_callback): Remove.
5549 (linux_mourn): Use for_each_thread.
5550
798a38e8
SM
55512017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5552
5553 * linux-low.c (linux_detach_lwp_callback): Return void, remove
5554 args parameter, don't check for pid.
5555 (linux_detach): Use for_each_thread.
5556
e4eb0dec
SM
55572017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5558
5559 * linux-low.c (struct counter): Remove.
5560 (second_thread_of_pid_p): Remove.
5561 (last_thread_of_process_p): Use find_thread.
5562
83e1b6c1
SM
55632017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5564
5565 * inferiors.c (find_inferior_in_random): Remove.
5566 * inferiors.h (find_inferior_in_random): Remove.
5567 * linux-low.c (status_pending_p_callback): Return bool, accept
5568 parameter ptid directly.
5569 (linux_wait_for_event_filtered): Use find_thread_in_random.
5570 (linux_wait_1): Likewise.
5571
8dc7b443
SM
55722017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5573
5574 * inferiors.c (find_inferior_id): Remove.
5575 (find_thread_ptid): Move implemention from find_inferior_id to
5576 here.
5577 * inferiors.h (find_inferior_id): Remove.
5578 * server.c (handle_status): Use find_thread_ptid.
5579 (process_serial_event): Likewise.
5580 * thread-db.c (find_one_thread): Likewise.
5581 (thread_db_thread_handle): Likewise.
5582 * win32-low.c (thread_rec): Likewise.
5583 (child_delete_thread): Likewise.
5584 (win32_thread_alive): Likewise.
5585 (get_child_debug_event): Likewise.
5586
da25033c
SM
55872017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5588
5589 * linux-mips-low.c (update_watch_registers_callback): Return
5590 void, remove pid_p parameter, don't check for pid.
5591 (mips_insert_point, mips_remove_point): Use for_each_thread.
5592
c91bb56b
SM
55932017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5594
5595 * lynx.low (lynx_delete_thread_callback): Remove.
5596 (lynx_mourn): Use for_each_thread.
5597
634a3254
SM
55982017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5599
5600 * regcache.c (regcache_invalidate_one): Remove.
5601 (regcache_invalidate_pid): use for_each_thread.
5602
41272101
TT
56032017-11-26 Tom Tromey <tom@tromey.com>
5604
5605 * linux-low.c (linux_create_inferior): Update.
5606
f5291a6f
UW
56072017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
5608
5609 * spu-low.c (spu_create_inferior): Fix typo in argument name.
5610
6654d750
AH
56112017-11-24 Alan Hayward <alan.hayward@arm.com>
5612
5613 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
5614 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5615 * linux-aarch64-tdesc-selftest.c: New file.
5616 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5617
56182017-11-24 Alan Hayward <alan.hayward@arm.com>
5619
5620 * configure.srv: Add new file.
5621 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5622 * linux-aarch64-tdesc-selftest.c: New file.
5623 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5624
49bdb7ee
AH
56252017-11-24 Alan Hayward <alan.hayward@arm.com>
5626
5627 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
5628 * linux-aarch64-low.c (initialize_low_arch): Remove init.
5629 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
5630
d6d7ce56
AH
56312017-11-24 Alan Hayward <alan.hayward@arm.com>
5632
5633 * configure.srv: Add new files.
5634 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
5635 aarch64_linux_read_description.
5636 * linux-aarch64-low.c (aarch64_linux_read_description):
5637 Merge with aarch64_arch_setup.
5638 (aarch64_arch_setup): Call aarch64_linux_read_description.
5639 * linux-aarch64-tdesc.c: New file.
5640 * linux-aarch64-tdesc.h: New file.
5641
506fe5f4
YQ
56422017-11-24 Yao Qi <yao.qi@linaro.org>
5643
5644 * configure.srv: Set $srv_regobj for tic6x-linux.
5645 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
5646 (tic6x_read_description): Move some code to tic6x_arch_setup.
5647 (tic6x_tdesc_test): New function.
5648 (initialize_low_arch): Call selftests::register_test.
5649
29f9a567
YQ
56502017-11-22 Yao Qi <yao.qi@linaro.org>
5651
5652 * remote-utils.c (prepare_resume_reply): Use memcpy.
5653
578290ec
SM
56542017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5655
5656 * linux-low.c (kill_one_lwp_callback): Return void, take
5657 argument directly, don't filter on pid.
5658 (linux_kill): Use for_each_thread.
5659
eca55aec
SM
56602017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5661
5662 * linux-low.c (need_step_over_p): Return bool, remove dummy
5663 argument.
5664 (linux_resume, proceed_all_lwps): Use find_thread.
5665
25c28b4d
SM
56662017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5667
5668 * linux-low.c (resume_status_pending_p): Return bool, remove
5669 flag_p argument.
5670 (linux_resume): Use find_thread.
5671
5fdda392
SM
56722017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5673
5674 * linux-low.c (struct thread_resume_array): Remove.
5675 (linux_set_resume_request): Return void, take arguments
5676 directly.
5677 (linux_resume): Use for_each_thread.
5678
fcb056a5
SM
56792017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5680
5681 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
5682 return bool, remove data argument.
5683 (linux_stabilize_threads): Use find_thread.
5684
139720c5
SM
56852017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5686
5687 * linux-low.c (unsuspend_one_lwp): Remove.
5688 (unsuspend_all_lwps): Use for_each_thread, inline code from
5689 unsuspend_one_lwp.
5690
6d1e5673
SM
56912017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5692
5693 * gdbthread.h (find_thread): Add overload with ptid_t filter.
5694 * linux-low.c (struct iterate_over_lwps_args): Remove.
5695 (iterate_over_lwps_filter): Remove.
5696 (iterate_over_lwps): Use find_thread.
5697
bbf550d5
SM
56982017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5699
5700 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
5701 (linux_handle_new_gdb_connection): Use for_each_thread, inline
5702 code from reset_lwp_ptrace_options_callback.
5703
00192f77
SM
57042017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5705
5706 * linux-arm-low.c (struct update_registers_data): Remove.
5707 (update_registers_callback): Return void, take arguments
5708 directly, don't check thread's pid.
5709 (arm_insert_point, arm_remove_point): Use for_each_thread.
5710
2bee2b6c
SM
57112017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5712
5713 * win32-low.c (continue_one_thread): Return void, take argument
5714 directly.
5715 (child_continue): Use for_each_thread.
5716
0b360f19
SM
57172017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5718
5719 * win32-i386-low.c (update_debug_registers_callback): Rename
5720 to ...
5721 (update_debug_registers): ... this, return void, remove pid_p arg.
5722 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
5723
f27866ba
SM
57242017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5725
5726 * inferiors.h (struct process_info): Add constructor, initialize
5727 fields..
5728 <syscalls_to_catch>: Change type to std::vector<int>.
5729 * inferiors.c (add_process): Allocate process_info with new.
5730 (remove_process): Free process_info with delete.
5731 * linux-low.c (handle_extended_wait): Adjust.
5732 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
5733 * server.c (handle_general_set): Adjust.
5734
e849ea89
PA
57352017-11-16 Pedro Alves <palves@redhat.com>
5736
5737 * remote-utils.c (remote_close): Block SIGIO signals instead of
5738 uninstalling the SIGIO handler.
5739
1d0aa65c
AH
57402017-11-16 Alan Hayward <alan.hayward@arm.com>
5741
5742 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
5743
3491a34c
YQ
57442017-11-16 Yao Qi <yao.qi@linaro.org>
5745
5746 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
5747 (tic6x_store_gregset): Likewise.
5748 (tic6x_usrregs_info): Move it up.
5749
a602f924
AH
57502017-11-15 Alan Hayward <alan.hayward@arm.com>
5751
5752 * Makefile.in: Update arch rules.
5753 * configure.srv: Explicitly mark arch/ files.
5754
5616b6c3
AS
57552017-11-13 Andreas Schwab <schwab@suse.de>
5756
5757 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
5758 function.
5759 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5760
d1928160
PA
57612017-11-06 Pedro Alves <palves@redhat.com>
5762
5763 * config.in, configure: Regenerate.
5764
bac608e7
SM
57652017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5766
5767 * target.c (struct thread_search): Remove.
5768 (thread_search_callback): Remove.
5769 (prepare_to_access_memory): Use for_each_thread instead of
5770 find_inferior. Inline code from thread_search_callback.
5771
eaddb425
SM
57722017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5773
5774 * server.c (struct visit_actioned_threads_data): Remove.
5775 (visit_actioned_threads): Change prototype to take arguments
5776 directly.
5777 (resume): Use find_thread instead of find_inferior.
5778
99078d34
SM
57792017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5780
5781 * server.c (queue_stop_reply_callback): Change prototype, return
5782 void.
5783 (find_status_pending_thread_callback): Remove.
5784 (handle_status): Replace find_inferior with find_thread and
5785 for_each_thread.
5786
cc628f3d
AH
57872017-10-25 Alan Hayward <alan.hayward@arm.com>
5788
5789 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
5790 with REGNO.
5791 (aarch64_store_gregset): Likewise.
5792 (aarch64_fill_fpregset): Likewise.
5793 (aarch64_store_fpregset): Likewise.
5794
4d3bb80e
SM
57952017-10-21 Simon Marchi <simon.marchi@ericsson.com>
5796
5797 * gdbthread.h (find_thread, for_each_thread): New functions.
5798 * inferiors.c (thread_of_pid): Remove.
5799 (find_any_thread_of_pid): Use find_thread.
5800 * linux-low.c (num_lwps): Use for_each_thread.
5801
7a7cdfa0
YQ
58022017-10-17 Yao Qi <yao.qi@linaro.org>
5803
5804 * Makefile.in: Remove one rule.
5805 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
5806
e675d170
YQ
58072017-10-17 Yao Qi <yao.qi@linaro.org>
5808
5809 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
5810 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
5811
7eb4e0f9
YQ
58122017-10-17 Yao Qi <yao.qi@linaro.org>
5813
5814 * configure.srv: Rename arm.o with arch/arm.o.
5815
60d6cfc9
YQ
58162017-10-17 Yao Qi <yao.qi@linaro.org>
5817
5818 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
5819 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
5820 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
5821 (arch-i386.o, arch-amd64.o): Remove rules.
5822 (arch/%.o): New rule.
5823 Update POSTCOMPILE and COMPILE.pre.
5824 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5825 * configure: Re-generated.
5826 * configure.srv: Replace arch-i386.o with arch/i386.o.
5827 Replace arch-amd64.o with arch/amd64.o.
5828
5bfda255
YQ
58292017-10-16 Yao Qi <yao.qi@linaro.org>
5830
5831 * configure: Regenerated.
5832
9c80ecd6
SM
58332017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5834
5835 * inferiors.h: (struct inferior_list): Remove.
5836 (struct inferior_list_entry); Remove.
5837 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
5838 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
5839 get_first_inferior): Remove.
5840 (for_each_inferior, for_each_inferior_with_data, find_inferior,
5841 find_inferior_id, find_inferior_in_random): Change signature.
5842 * inferiors.c (all_threads): Change type to
5843 std::list<thread_info *>.
5844 (get_thread): Remove macro.
5845 (find_inferior, find_inferior_id): Change signature, implement
5846 using find_thread.
5847 (find_inferior_in_random): Change signature, implement using
5848 find_thread_in_random.
5849 (for_each_inferior, for_each_inferior_with_data): Change
5850 signature, implement using for_each_thread.
5851 (add_inferior_to_list, remove_inferior): Remove.
5852 (add_thread, get_first_thread, thread_of_pid,
5853 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
5854 (get_first_inferior, one_inferior_p, clear_inferior_list):
5855 Remove.
5856 (clear_inferiors, get_thread_process): Update.
5857 * gdbthread.h: Include <list>.
5858 (struct thread_info) <entry>: Remove field.
5859 <id>: New field.
5860 (all_threads): Change type to std::list<thread_info *>.
5861 (get_first_inferior): Add doc.
5862 (find_thread, for_each_thread, find_thread_in_random): New
5863 functions.
5864 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
5865 * linux-arm-low.c (update_registers_callback): Update.
5866 * linux-low.c (second_thread_of_pid_p): Update.
5867 (kill_one_lwp_callback, linux_detach_lwp_callback,
5868 delete_lwp_callback, status_pending_p_callback, same_lwp,
5869 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
5870 iterate_over_lwps, not_stopped_callback,
5871 resume_stopped_resumed_lwps, count_events_callback,
5872 select_singlestep_lwp_callback, select_event_lwp_callback,
5873 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
5874 suspend_and_send_sigstop_callback, wait_for_sigstop,
5875 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
5876 lwp_running, linux_set_resume_request, resume_status_pending_p,
5877 need_step_over_p, start_step_over, linux_resume_one_thread,
5878 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
5879 reset_lwp_ptrace_options_callback): Update.
5880 * linux-mips-low.c (update_watch_registers_callback): Update.
5881 * regcache.c (regcache_invalidate_one, regcache_invalidate):
5882 Update.
5883 (free_register_cache_thread_one): Remove.
5884 (regcache_release): Update.
5885 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
5886 handle_qxfer_threads_worker): Update.
5887 (handle_query): Update, use list iterator.
5888 (visit_actioned_threads, handle_pending_status,
5889 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
5890 clear_pending_status_callback, set_pending_status_callback,
5891 find_status_pending_thread_callback, handle_status,
5892 process_serial_event): Update.
5893 * target.c (thread_search_callback): Update.
5894 * thread-db.c (thread_db_get_tls_address): Update.
5895 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
5896 Update.
5897 * win32-i386-low.c (update_debug_registers_callback): Update.
5898 * win32-low.c (delete_thread_info, child_delete_thread,
5899 continue_one_thread, suspend_one_thread,
5900 get_child_debug_event): Adjust.
5901
9179355e
SM
59022017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5903
5904 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
5905 * inferiors.h: Include <list>.
5906 (struct process_info) <entry>: Remove field.
5907 <pid>: New field.
5908 (pid_of): Change macro to function.
5909 (ptid_of, lwpid_of): Remove macro.
5910 (all_processes): Change type to std::list<process_info *>.
5911 (ALL_PROCESSES): Remove macro.
5912 (for_each_process, find_process): New function.
5913 * inferiors.c (all_processes): Change type to
5914 std::list<process_info *>.
5915 (find_thread_process): Adjust.
5916 (add_process): Likewise.
5917 (remove_process): Likewise.
5918 (find_process_pid): Likewise.
5919 (get_first_process): Likewise.
5920 (started_inferior_callback): Remove.
5921 (have_started_inferiors_p): Adjust.
5922 (attached_inferior_callback): Remove.
5923 (have_attached_inferiors_p): Adjust.
5924 * linux-low.c (check_zombie_leaders): Likewise.
5925 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
5926 (x86_linux_update_xmltarget): Adjust.
5927 * server.c (handle_query): Likewise.
5928 (gdb_reattached_process): Remove.
5929 (handle_status): Adjust.
5930 (kill_inferior_callback): Likewise.
5931 (detach_or_kill_inferior): Remove.
5932 (print_started_pid): Likewise.
5933 (print_attached_pid): Likewise.
5934 (detach_or_kill_for_exit): Update.
5935 (process_serial_event): Likewise.
5936 * linux-arm-low.c (arm_new_fork): Likewise.
5937
c9cb8905
SM
59382017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5939
5940 * dll.h: Include <list>.
5941 (struct dll_info): Add constructor.
5942 <entry>: Remove field.
5943 (all_dlls): Change type to std::list<dll_info>.
5944 * dll.c: Include <algorithm>.
5945 (get_dll): Remove macro.
5946 (all_dlls): Change type to std::list<dll_info *>.
5947 (free_one_dll): Remove.
5948 (match_dll): Likewise.
5949 (loaded_dll): Adjust.
5950 (unloaded_dll): Adjust to all_dlls type change, use
5951 std::find_if. Inline code from match_dll.
5952 (clear_dlls): Adjust to all_dlls type change.
5953 * server.c (emit_dll_description): Remove.
5954 (handle_qxfer_libraries): Adjust to all_dlls type change,
5955 integrate emit_dll_description's functionality.
5956
04ec7890
SM
59572017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5958
5959 * linux-low.h (struct linux_target_ops) <delete_process>: New
5960 field.
5961 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
5962 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
5963 (struct linux_target_ops): Add delete_process callback.
5964 * linux-arm-low.c (arm_delete_process): New.
5965 (struct linux_target_ops): Add delete_process callback.
5966 * linux-bfin-low.c (struct linux_target_ops): Likewise.
5967 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
5968 * linux-m32r-low.c (struct linux_target_ops): Likewise.
5969 * linux-mips-low.c (mips_linux_delete_process): New.
5970 (struct linux_target_ops): Add delete_process callback.
5971 * linux-ppc-low.c (struct linux_target_ops): Likewise.
5972 * linux-s390-low.c (struct linux_target_ops): Likewise.
5973 * linux-sh-low.c (struct linux_target_ops): Likewise.
5974 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
5975 * linux-tile-low.c (struct linux_target_ops): Likewise.
5976 * linux-x86-low.c (x86_linux_delete_process): New.
5977 (struct linux_target_ops): Add delete_process callback.
5978 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
5979
466eecee
SM
59802017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5981
5982 * linux-aarch64-low.c (the_low_target): Add thread delete
5983 callback.
5984 * linux-arm-low.c (arm_delete_thread): New function.
5985 (the_low_target): Add thread delete callback.
5986 * linux-bfin-low.c (the_low_target): Likewise.
5987 * linux-crisv32-low.c (the_low_target): Likewise.
5988 * linux-low.c (delete_lwp): Invoke delete_thread callback if
5989 set.
5990 * linux-low.h (struct linux_target_ops) <delete_thread>: New
5991 field.
5992 * linux-m32r-low.c (the_low_target): Add thread delete callback.
5993 * linux-mips-low.c (mips_linux_delete_thread): New function.
5994 (the_low_target): Add thread delete callback.
5995 * linux-ppc-low.c (the_low_target): Likewise.
5996 * linux-s390-low.c (the_low_target): Likewise.
5997 * linux-sh-low.c (the_low_target): Likewise.
5998 * linux-tic6x-low.c (the_low_target): Likewise.
5999 * linux-tile-low.c (the_low_target): Likewise.
6000 * linux-x86-low.c (the_low_target): Likewise.
6001 * linux-xtensa-low.c (the_low_target): Likewise.
6002
b79f7801
YZ
60032017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6004
6005 * win32-low.c: Include "common-inferior.h".
6006
bc3b087d
SDJ
60072017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6008
6009 * inferiors.c (set_inferior_cwd): New function.
6010 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6011 (handle_query): Inform that QSetWorkingDir is supported.
6012 * win32-low.c (create_process): Pass the inferior's cwd to
6013 CreateProcess.
6014
d092c5a2
SDJ
60152017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6016
6017 * inferiors.c (current_inferior_cwd): New global variable.
6018 (get_inferior_cwd): New function.
6019 * inferiors.h (struct process_info) <cwd>: New field.
6020
7da0a886
SDJ
60212017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6022
6023 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6024 (OBS): Add gdb_tilde_expand.o.
6025
289a6840
SM
60262017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6027
6028 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6029 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6030
256642e8
PA
60312017-09-29 Pedro Alves <palves@redhat.com>
6032
6033 * ax.c (gdb_parse_agent_expr): Constify.
6034 * ax.h (gdb_parse_agent_expr): Constify.
6035 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6036 Constify.
6037 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6038 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6039 * remote-utils.h (read_ptid): Constify.
6040 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6041 (process_point_options, process_serial_event): Constify.
6042 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6043 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6044 (cmd_qtbuffer): Constify.
6045
5b9ca4d4
PA
60462017-09-29 Pedro Alves <palves@redhat.com>
6047
6048 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6049 fails.
6050
94c207e0
PA
60512017-09-29 Pedro Alves <palves@redhat.com>
6052
6053 * linux-low.c (handle_extended_wait): Pass parent thread instead
6054 of process to thread_db_notice_clone.
6055 * linux-low.h (thread_db_notice_clone): Replace parent process
6056 parameter with parent thread parameter.
6057 * thread-db.c (find_one_thread): Add comment.
6058 (thread_db_notice_clone): Replace parent process parameter with
6059 parent thread parameter. Temporarily switch to the parent thread.
6060
75352e28
SDJ
60612017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6062
6063 * gdbthread.h: Include "common-gdbthread.h".
6064 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6065 "if" when validating the ptid.
6066 * remote-utils.c: Include "gdbthread.h".
6067 (prepare_resume_reply): Use "switch_to_thread".
6068 * target.c (done_accessing_memory): Likewise.
6069
ad339634
AA
60702017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6071
6072 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6073 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6074 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6075 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6076 s390x-gs-linux64-ipa.o to ipa_obj.
6077 * linux-s390-low.c (HWCAP_S390_GS): New define.
6078 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6079 New functions.
6080 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6081 (s390_arch_setup): Check for guarded-storage support and choose
6082 appropriate tdesc.
6083 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6084 init_registers_s390x_gs_linux64.
6085 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6086 enum value.
6087 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6088 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6089
cc4d742f
SM
60902017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6091
6092 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6093
f6327dcb
KB
60942017-09-21 Kevin Buettner <kevinb@redhat.com>
6095
6096 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6097 (thread_db_thread_handle): Declare.
6098 * linux-low.c (linux_target_ops): Initialize thread_handle.
6099 * server.c (handle_qxfer_threads_worker): Add support for
6100 "handle" attribute.
6101 * target.h (struct target_ops): Add new function pointer,
6102 thread_handle.
6103 (target_thread_handle): Define.
6104 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6105 field in lwp.
6106 (thread_db_thread_handle): New function.
6107
86299109
KB
61082017-09-21 Kevin Buettner <kevinb@redhat.com>
6109
6110 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6111 * linux-low.h (thread_db_notice_clone): Declare.
6112 * thread-db.c (thread_db_notice_clone): New function.
6113
f557a88a
PA
61142017-09-21 Pedro Alves <palves@redhat.com>
6115
6116 * server.c (gdb_read_memory, handle_status, process_serial_event)
6117 (handle_serial_event, handle_target_event): Adjust to
6118 set_desired_thread prototype change.
6119 * target.c (set_desired_thread): Remove 'use_general' parameter
6120 and adjust.
6121 * target.h (set_desired_thread): Remove 'use_general' parameter.
6122
223ffa71
TT
61232017-09-20 Tom Tromey <tom@tromey.com>
6124
6125 * target.c (target_terminal::terminal_state): Define.
6126 (target_terminal::init): Rename from target_terminal_init.
6127 (target_terminal::inferior): Rename from
6128 target_terminal_inferior.
6129 (target_terminal::ours): Rename from target_terminal_ours.
6130 (target_terminal::ours_for_output, target_terminal::info): New.
6131
04fd3ba9
SM
61322017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6133
6134 * server.c (accumulate_file_name_length): Remove.
6135 (emit_dll_description): Adjust to std::string change.
6136 (handle_qxfer_libraries): Use std::string to hold document.
6137
5e187554
SM
61382017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6139
6140 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6141 return type of xml_escape_text.
6142 * server.c (emit_dll_description): Likewise.
6143
1526853e
SM
61442017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6145
6146 * server.c (captured_main): Accept argument for --selftest.
6147 Update run_tests call.
6148 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6149 when registering selftests.
6150
c4dfafab
SDJ
61512017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6152
6153 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6154 instead of "VEC" for "target_desc.reg_defs".
6155 (regcache_cpy): Likewise.
6156 (registers_to_string): Likewise.
6157 (registers_from_string): Likewise.
6158 (find_regno): Likewise.
6159 (supply_regblock): Likewise.
6160 (regcache_raw_read_unsigned): Likewise.
6161 * tdesc.c (init_target_desc): Likewise.
6162 (tdesc_create_reg): Likewise.
6163 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6164 (struct target_desc) <reg_defs>: Convert to "std::vector".
6165 (target_desc): Do not initialize "reg_defs".
6166 (~target_desc): Update code to use "std::vector" instead of "VEC"
6167 for "target_desc.reg_defs".
6168 (operator==): Likewise.
6169
124aceb4
SM
61702017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6171
6172 * inferiors.h (thread_to_gdb_id): Remove.
6173 * inferiors.c (thread_to_gdb_id): Remove.
6174 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6175 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6176 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6177 Likewise.
6178 * nto-low.c (nto_fetch_registers, nto_store_registers,
6179 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6180
96cde54f
SM
61812017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6182
6183 * inferiors.h (gdb_id_to_thread_id): Remove.
6184 * inferiors.c (gdb_id_to_thread_id): Remove.
6185 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6186 removal. Move pid declaration closer to where it's used.
6187
e8ca139e
SM
61882017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6189
6190 * server.c (handle_detach): New function.
6191 (process_serial_event): Move code out, call handle_detach.
6192
f8a4e119
SM
61932017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6194
6195 * server.c (require_running): Rename to ...
6196 (require_running_or_return): ... this ...
6197 (require_running_or_break): ... and this.
6198 (handle_query, process_serial_event): Adjust.
6199
0eb0a407
SM
62002017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6201
6202 * linux-low.c (linux_set_resume_request): Remove unused
6203 variables.
6204
785922a5
SM
62052017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6206
6207 * server.c (first_thread_of): Remove.
6208 (process_serial_event): Replace usage of first_thread_of with
6209 find_any_thread_of_pid.
6210 * tracepoint.c (same_process_p): Remove.
6211 (gdb_agent_about_to_close): Replace usage of same_process_p with
6212 find_any_thread_of_pid.
6213 * linux-x86-low.c (same_process_callback): Remove.
6214 (x86_arch_setup_process_callback): Replace usage of
6215 same_process_callback with find_any_thread_of_pid.
6216 * thread-db.c (any_thread_of): Remove.
6217 (switch_to_process): Replace usage of any_thread_of with
6218 find_any_thread_of_pid.
6219 * inferiors.c (thread_pid_matches_callback): Remove.
6220 (find_thread_process): Adjust to use find_any_thread_of_pid.
6221
a059f00c
SDJ
62222017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6223
6224 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6225 with "!VEC_empty".
a059f00c 6226
cc397f3a
SDJ
62272017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6228
6229 * linux-low.c (handle_extended_wait): Use
6230 "allocate_target_description" instead of "XNEW".
6231 * linux-x86-low.c (initialize_low_arch): Likewise.
6232
22916b07
YQ
62332017-09-05 Yao Qi <yao.qi@linaro.org>
6234
6235 * configure.srv (srv_i386_regobj): Remove.
6236 (srv_amd64_regobj): Remove.
6237 (srv_regobj): Set it to "" for x86 non-linux targets.
6238 * linux-x86-tdesc.c (i386_linux_read_description):
6239 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6240 (init_registers_i386): Remove the declaration.
6241 (tdesc_i386): Remove the declaration.
6242 (lynx_i386_arch_setup): Call i386_create_target_description.
6243 * nto-x86-low.c: Likewise.
6244 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6245 [!__x86_64__]: include arch/i386.h.
6246 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6247
38602d55
YQ
62482017-09-05 Yao Qi <yao.qi@linaro.org>
6249
6250 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6251 i386/amd64-XXX-linux from it.
6252
44b886ff
YQ
62532017-09-05 Yao Qi <yao.qi@linaro.org>
6254
6255 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6256 false.
6257 (ipa_amd64_linux_regobj): Remove.
6258 (ipa_x32_linux_regobj): Remove.
6259
b4570e4b
YQ
62602017-09-05 Yao Qi <yao.qi@linaro.org>
6261
6262 * Makefile.in (arch-amd64.o): New rule.
6263 * configure.srv: Append arch-amd64.o.
6264 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6265 (get_ipa_tdesc): Call amd64_linux_read_description.
6266 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6267 and init_registers_amd64_XXX.
6268 * linux-x86-low.c (x86_linux_read_description): Call
6269 amd64_linux_read_description.
6270 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6271 (initialize_low_arch): Don't call init_registers_x32_XXX and
6272 init_registers_amd64_XXX.
6273 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6274 and tdesc_amd64_XXX.
6275 [__x86_64__] (amd64_tdesc_test): New function.
6276 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6277 and init_registers_amd64_XXX.
6278 * linux-x86-tdesc.c: Include arch/amd64.h.
6279 (xcr0_to_tdesc_idx): New function.
6280 (i386_linux_read_description): New function.
6281 (amd64_get_ipa_tdesc_idx): New function.
6282 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6283 (amd64_get_ipa_tdesc): Declare.
6284
d1f28ea2
YQ
62852017-09-05 Yao Qi <yao.qi@linaro.org>
6286
6287 * configure.srv (srv_i386_linux_xmlfiles): Remove
6288 i386/i386-XXX-linux.xml from it.
6289
25a93583
YQ
62902017-09-05 Yao Qi <yao.qi@linaro.org>
6291
6292 * configure.srv: Set srv_i386_linux_regobj empty if $development
6293 is false.
6294 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6295 initialize_low_tdesc.
6296 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6297 with #if initialize_low_tdesc.
6298 * linux-x86-tdesc-selftest.c: New file.
6299 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6300
5f035c07
YQ
63012017-09-05 Yao Qi <yao.qi@linaro.org>
6302
6303 * Makefile.in (arch-i386.o): New rule.
6304 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6305 (x86_64-*-linux*): Likewise.
6306 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6307 include arch/i386.h.
6308 (i386_linux_read_description): Remove code and call
6309 i386_create_target_description.
6310 * tdesc.c (allocate_target_description): New function.
6311 * tdesc.h (set_tdesc_architecture): Remove declaration.
6312 (set_tdesc_osabi): Likewise.
6313
0abe8a89
YQ
63142017-09-05 Yao Qi <yao.qi@linaro.org>
6315
6316 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6317 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6318 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6319 .xmltarget.
6320 * server.c (get_features_xml): Call tdesc_get_features_xml.
6321 * tdesc.c (set_tdesc_architecture): New function.
6322 (set_tdesc_osabi): New function.
6323 (tdesc_get_features_xml): New function.
6324 (tdesc_create_feature): Add an argument.
6325 * tdesc.h (struct target_desc) <features>: New field.
6326 <arch, osabi>: New field.
6327 (~target_desc): xfree features, arch, and osabi.
6328 (target_desc::oerator==): Don't compare .xmltarget.
6329 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6330 (set_tdesc_osabi): Likewise.
6331 (tdesc_get_features_xml): Likewise.
6332
0a188386
YQ
63332017-09-05 Yao Qi <yao.qi@linaro.org>
6334
6335 * linux-x86-tdesc.c: Include selftest.h.
6336 (i386_tdesc_test): New function.
6337 (initialize_low_tdesc): Call selftests::register_test.
6338 * tdesc.h: Include regdef.h.
6339 (target_desc): Override operator == and !=.
6340
f49ff000
YQ
63412017-09-05 Yao Qi <yao.qi@linaro.org>
6342
6343 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6344 (ipa_obj): Likewise.
6345 * linux-i386-ipa.c: Include common/x86-xstate.h
6346 (get_ipa_tdesc): Call i386_linux_read_description.
6347 (initialize_low_tracepoint): Don't call init_registers_XXX
6348 functions, call initialize_low_tdesc instead.
6349 * linux-x86-low.c (x86_linux_read_description): Call
6350 i386_linux_read_description.
6351 (initialize_low_arch): Don't call init_registers_i386_XXX
6352 functions, call initialize_low_tdesc.
6353 * linux-x86-tdesc.c: New file.
6354 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6355 (i386_get_ipa_tdesc_idx): Declare.
6356 (i386_get_ipa_tdesc): Declare.
6357 (initialize_low_tdesc): Declare.
6358
2b68ef2f
YQ
63592017-09-05 Yao Qi <yao.qi@linaro.org>
6360
6361 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6362 instead of 0.
6363
f7000548
YQ
63642017-09-05 Yao Qi <yao.qi@linaro.org>
6365
6366 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6367 * regcache.c (get_thread_regcache): Use VEC_length.
6368 (init_register_cache): Likewise.
6369 (regcache_cpy): Likewise.
6370 (registers_to_string): Iterate reg_defs via VEC_iterate.
6371 (find_regno): Likewise.
6372 (find_register_by_number): Use VEC_index.
6373 (register_size): Call find_register_by_number.
6374 (register_data): Call find_register_by_number.
6375 (supply_regblock): Use VEC_length.
6376 (regcache_raw_read_unsigned): Likewise.
6377 * tdesc.c (init_target_desc): Iterate reg_defs via
6378 VEC_iterate.
6379 (default_description): Update initializer.
6380 (copy_target_description): Don't update field num_registers.
6381 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6382 <num_registers>: Remove.
6383
50a421ac
SM
63842017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6385
6386 * Makefile.in (.SECONDARY): Define target.
6387
23fdd69e
SM
63882017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6389
6390 * linux-low.c (linux_wait_1): Adjust.
6391 * server.c (queue_stop_reply_callback): Adjust.
6392
0a2dde4a
SDJ
63932017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6394
6395 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6396 QEnvironmentUnset and QEnvironmentReset packets.
6397 (handle_query): Inform remote that QEnvironmentHexEncoded,
6398 QEnvironmentUnset and QEnvironmentReset are supported.
6399
6afd337d
SM
64002017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6401
6402 * inferiors.h (inferior_target_data): Rename to ...
6403 (thread_target_data): ... this.
6404 (inferior_regcache_data): Rename to ...
6405 (thread_regcache_data): ... this.
6406 (set_inferior_regcache_data): Rename to ...
6407 (set_thread_regcache_data): ... this.
6408 * inferiors.c (inferior_target_data): Rename to ...
6409 (thread_target_data): ... this.
6410 (inferior_regcache_data): Rename to ...
6411 (thread_regcache_data): ... this.
6412 (set_inferior_regcache_data): Rename to ...
6413 (set_thread_regcache_data): ... this.
6414 (free_one_thread): Update.
6415 * linux-low.h (get_thread_lwp): Update.
6416 * regcache.c (get_thread_regcache): Update.
6417 (regcache_invalidate_thread): Update.
6418 (free_register_cache_thread): Update.
6419 * win32-i386-low.c (update_debug_registers_callback): Update.
6420 (win32_get_current_dr): Update.
6421 * win32-low.c (thread_rec): Update.
6422 (delete_thread_info): Update.
6423 (continue_one_thread): Update.
6424 (suspend_one_thread): Update.
6425
a160cc46
SM
64262017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6427
6428 * inferiors.c (set_inferior_target_data): Remove.
6429 * inferiors.h (set_inferior_target_data): Remove.
6430
6d580b63
YQ
64312017-08-18 Yao Qi <yao.qi@linaro.org>
6432
6433 * Makefile.in (OBS): Add selftest.o.
6434 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6435 * configure, config.in: Re-generated.
6436 * server.c: Include common/sefltest.h.
6437 (captured_main): Handle option --selftest.
6438
f5a29eb0
YQ
64392017-08-09 Yao Qi <yao.qi@linaro.org>
6440
6441 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6442 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6443 i386-avx-mpx.o and i386-mmx.o.
6444 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6445 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6446 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6447 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6448 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6449 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6450 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6451 i386/amd64-avx-mpx.xml.
6452
57757c2f
YQ
64532017-08-09 Yao Qi <yao.qi@linaro.org>
6454
6455 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6456 and x32-avx-avx512.o.
6457 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6458 i386/x32-avx-avx512.xml.
6459
229d26fc
SM
64602017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6461
6462 * tracepoint.h (enum class fast_tpoint_collect_result): New
6463 enumeration.
6464 (fast_tracepoint_collecting): Change return type to
6465 fast_tpoint_collect_result.
6466 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6467 * linux-low.h: Include tracepoint.h.
6468 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6469 fast_tpoint_collect_result.
6470 * linux-low.c (handle_tracepoints): Adjust.
6471 (linux_fast_tracepoint_collecting): Change return type to
6472 fast_tpoint_collect_result.
6473 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6474 linux_wait_1, stuck_in_jump_pad_callback,
6475 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6476 proceed_one_lwp): Adjust to type change.
6477
2e1e43e1
YQ
64782017-07-10 Yao Qi <yao.qi@linaro.org>
6479
6480 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6481
adc764e7
YQ
64822017-06-29 Yao Qi <yao.qi@linaro.org>
6483
6484 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6485 Remove.
6486 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6487
a206891a
SM
64882017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6489
6490 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6491
9a6c7d9c
SDJ
64922017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6493
6494 * linux-low.c (linux_create_inferior): Adjust code to access the
6495 environment information via 'gdb_environ' class.
6496 * lynx-low.c (lynx_create_inferior): Likewise.
6497 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6498 (get_environ): Return a pointer to 'our_environ'.
6499 (captured_main): Initialize 'our_environ'.
6500 * server.h (get_environ): Adjust prototype.
6501 * spu-low.c (spu_create_inferior): Adjust code to access the
6502 environment information via 'gdb_environ' class.
6503
ae3e2ccf
SM
65042017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6505
6506 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6507 usage of "register" keyword.
6508
3e019bdc
SM
65092017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6510
6511 * configure: Re-generate.
6512
8465943a
SM
65132017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6514
6515 * configure: Re-generate.
6516
cf0dd6f0
SM
65172017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6518
6519 * Makefile.in (COMPILE.pre): Add "-x c++".
6520
9845682b
SDJ
65212017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6522
6523 * fork-child.c: Conditionally include <signal.h>.
6524
aefd8b33
SDJ
65252017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6526
6527 * server.c (handle_general_set): Handle new packet
6528 "QStartupWithShell".
6529 (handle_query): Add "QStartupWithShell" to the list of supported
6530 packets.
6531 (gdbserver_usage): Add help text explaining the
6532 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6533 options.
6534 (captured_main): Recognize and act upon the presence of the new
6535 CLI options.
6536
2090129c
SDJ
65372017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6538 Pedro Alves <palves@redhat.com>
6539
6540 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
6541 * configure: Regenerate.
6542 * configure.srv (srv_linux_obj): Add "fork-child.o" and
6543 "fork-inferior.o".
6544 (i[34567]86-*-lynxos*): Likewise.
6545 (spu*-*-*): Likewise.
6546 * fork-child.c: New file.
6547 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
6548 and "environ.h".
6549 (linux_ptrace_fun): New function.
6550 (linux_create_inferior): Adjust function prototype to reflect
6551 change on "target.h". Adjust function code to use
6552 "fork_inferior".
6553 (linux_request_interrupt): Delete "signal_pid".
6554 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6555 (lynx_ptrace_fun): New function.
6556 (lynx_create_inferior): Adjust function prototype to reflect
6557 change on "target.h". Adjust function code to use
6558 "fork_inferior".
6559 * nto-low.c (nto_create_inferior): Adjust function prototype and
6560 code to reflect change on "target.h". Update comments.
6561 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
6562 "common-terminal.h" and "environ.h".
6563 (terminal_fd): Moved to fork-child.c.
6564 (old_foreground_pgrp): Likewise.
6565 (restore_old_foreground_pgrp): Likewise.
6566 (last_status): Make it global.
6567 (last_ptid): Likewise.
6568 (our_environ): New variable.
6569 (startup_with_shell): Likewise.
6570 (program_name): Likewise.
6571 (program_argv): Rename to...
6572 (program_args): ...this.
6573 (wrapper_argv): New variable.
6574 (start_inferior): Delete function.
6575 (get_exec_wrapper): New function.
6576 (get_exec_file): Likewise.
6577 (get_environ): Likewise.
6578 (prefork_hook): Likewise.
6579 (post_fork_inferior): Likewise.
6580 (postfork_hook): Likewise.
6581 (postfork_child_hook): Likewise.
6582 (handle_v_run): Update code to deal with arguments coming from the
6583 remote host. Update calls from "start_inferior" to
6584 "create_inferior".
6585 (captured_main): Likewise. Initialize environment variable. Call
6586 "have_job_control".
6587 * server.h (post_fork_inferior): New prototype.
6588 (get_environ): Likewise.
6589 (last_status): Declare.
6590 (last_ptid): Likewise.
6591 (signal_pid): Likewise.
6592 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6593 (spu_ptrace_fun): New function.
6594 (spu_create_inferior): Adjust function prototype to reflect change
6595 on "target.h". Adjust function code to use "fork_inferior".
6596 * target.c (target_terminal_init): New function.
6597 (target_terminal_inferior): Likewise.
6598 (target_terminal_ours): Likewise.
6599 * target.h: Include <vector>.
6600 (struct target_ops) <create_inferior>: Update prototype.
6601 (create_inferior): Update macro.
6602 * utils.c (gdb_flush_out_err): New function.
6603 * win32-low.c (win32_create_inferior): Adjust function prototype
6604 and code to reflect change on "target.h".
6605
043a4934
SDJ
66062017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6607
6608 * inferiors.c (switch_to_thread): New function.
6609
15652511
SDJ
66102017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6611
6612 * Makefile.in (SFILE): Add "common/job-control.c".
6613 (OBS): Add "job-control.o".
6614
21ea5acd
SDJ
66152017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6616
6617 * Makefile: Remove "@host_makefile_frag@".
6618
e13cb306
PA
66192017-05-05 Pedro Alves <palves@redhat.com>
6620
6621 * configure: Regenerate.
6622
c94fee56
SDJ
66232017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6624
6625 * configure: Regenerate.
6626
a0ff9e1a
SM
66272017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6628
6629 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
6630 software_single_step change of return type to
6631 std::vector<CORE_ADDR>.
6632 * linux-low.c (install_software_single_step_breakpoints):
6633 Likewise.
6634 * linux-low.h (install_software_single_step_breakpoints):
6635 Likewise.
6636
be628ab8
SDJ
66372017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6638
6639 * remote-utils.c: Include "gdb_termios.h" instead of
6640 "terminal.h".
6641 * terminal.h: Delete file.
6642
7c5ded6a
SDJ
66432017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6644
6645 * server.c: Include <vector>.
6646 <program_argv, wrapper_argv>: Convert to std::vector.
6647 (start_inferior): Rewrite function to use C++.
6648 (handle_v_run): Likewise. Update code that calculates the argv
6649 based on the vRun packet; use C++.
6650 (captured_main): Likewise.
6651
436252de
SM
66522017-04-06 Simon Marchi <simon.marchi@ericsson.com>
6653
6654 * server.c (handle_v_cont): Initialize thread_resume::thread
6655 with null_ptid.
6656
9bf2a700
PA
66572017-04-05 Pedro Alves <palves@redhat.com>
6658
6659 * configure: Regenerate.
6660
a121b7c1
PA
66612017-04-05 Pedro Alves <palves@redhat.com>
6662
6663 * gdbreplay.c (sync_error): Constify.
6664 * linux-x86-low.c (push_opcode): Constify.
6665
21c8a587
PA
66662017-04-05 Pedro Alves <palves@redhat.com>
6667
6668 * win32-low.c (get_child_debug_event)
6669 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
6670 Report TARGET_WAITKIND_SPURIOUS instead.
6671
fb32b4f7
PA
66722017-04-05 Pedro Alves <palves@redhat.com>
6673
e79be6e5
SM
6674 * remote-utils.c (remote_prepare, remote_open): Constify.
6675 * remote-utils.h (remote_prepare, remote_open): Constify.
6676 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 6677
65dd1e59
SM
66782017-04-04 Simon Marchi <simon.marchi@ericsson.com>
6679
6680 * Makefile.in (clean): Clear .deps.
6681
8fa5b777
SM
66822017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
6683
6684 * .gitignore: Remove generated files, replace with wildcard.
6685 * (clean): Replace removal of generated files with wildcard.
6686 (version.c): Replace with...
6687 (version-generated.c): ...this.
6688 (xml-builtin.c): Replace with...
6689 (xml-builtin-generated.c): ...this.
6690 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
6691 (%.c: *regformats*): Replace with...
6692 (%-generated.c: *regformats*): ...this.
6693
a12e714b
MF
66942017-03-27 Max Filippov <jcmvbkbc@gmail.com>
6695
6696 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
6697 (xtensa_fill_gregset): Call collect_register_by_name for
6698 threadptr register.
6699 (xtensa_store_gregset): Call supply_register_by_name for
6700 threadptr register.
6701
1a09b50a
MF
67022017-03-27 Max Filippov <jcmvbkbc@gmail.com>
6703
6704 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
6705 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
6706 (xtensa_store_gregset): Call supply_register for all registers in
6707 a0_regnum..a0_regnum + C0_NREGS range.
6708
1a01e7c6
SM
67092017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6710
6711 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
6712 (ax-ipa.o: ax.c): Remove.
6713 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
6714 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
6715 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
6716 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
6717 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
6718
36bc18a8
SM
67192017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6720
6721 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
6722 (print-utils-ipa.o: ../common/print-utils.c): Remove.
6723 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
6724 (errors-ipa.o: ../common/errors.c): Remove.
6725 (format-ipa.o: ../common/format.c): Remove.
6726 (common-utils-ipa.o: ../common/common-utils.c): Remove.
6727
a8ebe3d5
SM
67282017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6729
6730 * Makefile.in (%-ipa.o: %.c): New rule.
6731 (tracepoint-ipa.o: tracepoint.c): Remove.
6732 (utils-ipa.o: utils.c): Remove.
6733 (remote-utils-ipa.o: remote-utils.c): Remove.
6734 (regcache-ipa.o: regcache.c): Remove.
6735 (i386-linux-ipa.o: i386-linux.c): Remove.
6736 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
6737 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
6738 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
6739 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
6740 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
6741 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
6742 (amd64-linux-ipa.o: amd64-linux.c): Remove.
6743 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
6744 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
6745 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
6746 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
6747 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
6748 (aarch64-ipa.o: aarch64.c): Remove.
6749 (s390-linux32-ipa.o: s390-linux32.c): Remove.
6750 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
6751 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
6752 (s390-linux64-ipa.o: s390-linux64.c): Remove.
6753 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
6754 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
6755 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
6756 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
6757 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
6758 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
6759 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
6760 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
6761 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
6762 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
6763 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
6764 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
6765 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
6766 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
6767 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
6768 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
6769 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
6770 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
6771 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
6772 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
6773 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
6774 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
6775 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
6776 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
6777 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
6778 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
6779 (tdesc-ipa.o: tdesc.c): Remove.
6780 (x32-linux-ipa.o: x32-linux.c): Remove.
6781 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
6782 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
6783
50cfacb7
SM
67842017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6785
6786 * Makefile.in (%.o: ../arch/%.c): New rule.
6787 (arm.o: ../arch/arm.c): Remove.
6788 (arm-linux.o: ../arch/arm-linux.c): Remove.
6789 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
6790 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
6791
c5a22423
SM
67922017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6793
6794 * Makefile.in (%.o: ../nat/%.c): New rule.
6795 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
6796 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
6797 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
6798 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
6799 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
6800 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
6801 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
6802 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
6803 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
6804 (linux-personality.o: ../nat/linux-personality.c): Remove.
6805 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
6806 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
6807 (x86-linux.o: ../nat/x86-linux.c): Remove.
6808 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
6809 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
6810
6bda016b
SM
68112017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6812
6813 * Makefile.in (%.o: ../common/%.c): New rule.
6814 (signals.o: ../common/signals.c): Remove.
6815 (print-utils.o: ../common/print-utils.c): Remove.
6816 (rsp-low.o: ../common/rsp-low.c): Remove.
6817 (common-utils.o: ../common/common-utils.c): Remove.
6818 (posix-strerror.o: ../common/posix-strerror.c): Remove.
6819 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
6820 (vec.o: ../common/vec.c): Remove.
6821 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
6822 (xml-utils.o: ../common/xml-utils.c): Remove.
6823 (ptid.o: ../common/ptid.c): Remove.
6824 (buffer.o: ../common/buffer.c): Remove.
6825 (format.o: ../common/format.c): Remove.
6826 (filestuff.o: ../common/filestuff.c): Remove.
6827 (agent.o: ../common/agent.c): Remove.
6828 (errors.o: ../common/errors.c): Remove.
6829 (environ.o: ../common/environ.c): Remove.
6830 (common-debug.o: ../common/common-debug.c): Remove.
6831 (cleanups.o: ../common/cleanups.c): Remove.
6832 (common-exceptions.o: ../common/common-exceptions.c): Remove.
6833 (fileio.o: ../common/fileio.c): Remove.
6834 (common-regcache.o: ../common/common-regcache.c): Remove.
6835 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
6836 (new-op.o: ../common/new-op.c): Remove.
6837 (btrace-common.o: ../common/btrace-common.c): Remove.
6838
21122961
SM
68392017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6840
6841 * Makefile.in (%.o: ../target/%.c): New rule.
6842 (waitstatus.o: ../target/waitstatus.c): Remove.
6843
c362e621
SM
68442017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6845
6846 * Makefile.in
6847 (%.c: ../regformats/%.dat,
6848 (%.c: ../regformats/arm/%.dat,
6849 (%.c: ../regformats/i386/%.dat,
6850 (%.c: ../regformats/rs6000/%.dat): New rules.
6851 (aarch64.c): Remove.
6852 (reg-arm.c): Remove.
6853 (arm-with-iwmmxt.c): Remove.
6854 (arm-with-vfpv2.c): Remove.
6855 (arm-with-vfpv3.c): Remove.
6856 (arm-with-neon.c): Remove.
6857 (reg-bfin.c): Remove.
6858 (reg-cris.c): Remove.
6859 (reg-crisv32.c): Remove.
6860 (i386.c): Remove.
6861 (i386-linux.c): Remove.
6862 (i386-avx.c): Remove.
6863 (i386-avx-linux.c): Remove.
6864 (i386-avx-avx512.c): Remove.
6865 (i386-avx-avx512-linux.c): Remove.
6866 (i386-mpx.c): Remove.
6867 (i386-mpx-linux.c): Remove.
6868 (i386-avx-mpx-avx512-pku.c): Remove.
6869 (i386-avx-mpx-avx512-pku-linux.c): Remove.
6870 (i386-avx-mpx.c): Remove.
6871 (i386-avx-mpx-linux.c): Remove.
6872 (i386-mmx.c): Remove.
6873 (i386-mmx-linux.c): Remove.
6874 (reg-ia64.c): Remove.
6875 (reg-m32r.c): Remove.
6876 (reg-m68k.c): Remove.
6877 (reg-cf.c): Remove.
6878 (mips-linux.c): Remove.
6879 (mips-dsp-linux.c): Remove.
6880 (mips64-linux.c): Remove.
6881 (mips64-dsp-linux.c): Remove.
6882 (nios2-linux.c): Remove.
6883 (powerpc-32.c): Remove.
6884 (powerpc-32l.c): Remove.
6885 (powerpc-altivec32l.c): Remove.
6886 (powerpc-cell32l.c): Remove.
6887 (powerpc-vsx32l.c): Remove.
6888 (powerpc-isa205-32l.c): Remove.
6889 (powerpc-isa205-altivec32l.c): Remove.
6890 (powerpc-isa205-vsx32l.c): Remove.
6891 (powerpc-e500l.c): Remove.
6892 (powerpc-64l.c): Remove.
6893 (powerpc-altivec64l.c): Remove.
6894 (powerpc-cell64l.c): Remove.
6895 (powerpc-vsx64l.c): Remove.
6896 (powerpc-isa205-64l.c): Remove.
6897 (powerpc-isa205-altivec64l.c): Remove.
6898 (powerpc-isa205-vsx64l.c): Remove.
6899 (s390-linux32.c): Remove.
6900 (s390-linux32v1.c): Remove.
6901 (s390-linux32v2.c): Remove.
6902 (s390-linux64.c): Remove.
6903 (s390-linux64v1.c): Remove.
6904 (s390-linux64v2.c): Remove.
6905 (s390-te-linux64.c): Remove.
6906 (s390-vx-linux64.c): Remove.
6907 (s390-tevx-linux64.c): Remove.
6908 (s390x-linux64.c): Remove.
6909 (s390x-linux64v1.c): Remove.
6910 (s390x-linux64v2.c): Remove.
6911 (s390x-te-linux64.c): Remove.
6912 (s390x-vx-linux64.c): Remove.
6913 (s390x-tevx-linux64.c): Remove.
6914 (tic6x-c64xp-linux.c): Remove.
6915 (tic6x-c64x-linux.c): Remove.
6916 (tic6x-c62x-linux.c): Remove.
6917 (reg-sh.c): Remove.
6918 (reg-sparc64.c): Remove.
6919 (reg-spu.c): Remove.
6920 (amd64.c): Remove.
6921 (amd64-linux.c): Remove.
6922 (amd64-avx.c): Remove.
6923 (amd64-avx-linux.c): Remove.
6924 (amd64-avx-avx512.c): Remove.
6925 (amd64-avx-avx512-linux.c): Remove.
6926 (amd64-mpx.c): Remove.
6927 (amd64-mpx-linux.c): Remove.
6928 (amd64-avx-mpx-avx512-pku.c): Remove.
6929 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
6930 (amd64-avx-mpx.c): Remove.
6931 (amd64-avx-mpx-linux.c): Remove.
6932 (x32.c): Remove.
6933 (x32-linux.c): Remove.
6934 (x32-avx.c): Remove.
6935 (x32-avx-linux.c): Remove.
6936 (x32-avx-avx512.c): Remove.
6937 (x32-avx-avx512-linux.c): Remove.
6938 (reg-xtensa.c): Remove.
6939 (reg-tilegx.c): Remove.
6940 (reg-tilegx32.c): Remove.
6941
1672e0d9
SDJ
69422017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
6943
6944 * Makefile.in (SFILES): Add "common/environ.c".
6945 (OBJS): Add "common/environ.h".
6946
239b6d10
WT
69472017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6948
6949 * configure.ac: Check if the fs_base and gs_base members of
6950 `struct user_regs_struct' exist.
6951 * config.in: Regenerated.
6952 * configure: Likewise.
6953
694b382c
AT
69542017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
6955
6956 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
6957 target_read_memory.
6958 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
6959 (get_next_pcs_syscall_next_pc): Likewise.
6960
7dc53023
LM
69612016-12-23 Luis Machado <lgustavo@codesourcery.com>
6962
6963 * win32-i386-low.c: Fix incorrect reference to a couple source files.
6964 * nto-x86-low.c: Likewise.
6965
ad02e4fe
SM
69662016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
6967
6968 * Makefile.in: Include disable-implicit-rules.mk.
6969
dcb07cfa
PA
69702016-11-23 Pedro Alves <palves@redhat.com>
6971
6972 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
6973 (debug_vprintf): Use std::chrono::steady_clock instead of
6974 gettimeofday. Use '.' instead of ':'.
6975 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
6976 (get_timestamp): Use std::chrono::steady_clock instead of
6977 gettimeofday.
6978
8629c02c
SM
69792016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
6980
6981 * Makefile.in: Fix whitespace formatting.
6982
b593ecca
SM
69832016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
6984
6985 * Makefile.in (SFILES, OBS): Flatten list and order
6986 alphabetically.
6987
9986ba08
PA
69882016-11-23 Pedro Alves <palves@redhat.com>
6989
6990 * event-loop.c (handle_file_event): Use warning.
6991 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
6992 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6993 Use warning.
6994
4eefa7bc
PA
69952016-11-23 Pedro Alves <palves@redhat.com>
6996
6997 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
6998 output.
6999 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7000 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7001 debug_printf and debug_flush for debug output.
7002 * server.c (handle_general_set): Likewise.
7003 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7004 output.
7005
5443506e
SM
70062016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7007
7008 * Makefile.in (.c.o): Replace rule with ...
7009 (%.o: %.c): ... this one.
7010
3b165252
SM
70112016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7012
7013 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7014 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7015 make.
7016 * configure.ac: Remove checks for the make program.
7017 * configure: Re-generate.
7018
0bcda685
PA
70192016-10-28 Pedro Alves <palves@redhat.com>
7020
7021 * Makefile.in (CXX_DIALECT): Get from configure.
7022 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7023 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7024 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7025 * config.in: Regenerate.
7026 * configure: Regenerate.
7027
c3805894
YQ
70282016-10-27 Yao Qi <yao.qi@linaro.org>
7029
7030 * linux-low.c (linux_supports_range_stepping): Return true if
7031 can_software_single_step return true.
7032
89342618
YQ
70332016-10-27 Yao Qi <yao.qi@linaro.org>
7034
7035 * inferiors.c (find_inferior_in_random): New function.
7036 * inferiors.h (find_inferior_in_random): Declare.
7037 * linux-low.c (linux_wait_for_event_filtered): Call
7038 find_inferior_in_random instead of find_inferior.
7039
e3652c84
YQ
70402016-10-27 Yao Qi <yao.qi@linaro.org>
7041
7042 * linux-low.c (linux_wait_1): If single-step breakpoints are
7043 inserted, remove them.
7044
5a04c4cf
PA
70452016-10-26 Pedro Alves <palves@redhat.com>
7046
7047 * linux-low.c (handle_extended_wait): Link parent/child fork
7048 threads.
7049 (linux_wait_1): Unlink them.
7050 (linux_set_resume_request): Ignore resume requests for
7051 already-resumed and unhandled fork child threads.
7052 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7053 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7054 New functions.
7055 (handle_v_requests) <vCont>: Don't call require_running.
7056 * server.h (in_queued_stop_replies): New declaration.
7057
cb93dc7f
YQ
70582016-10-24 Yao Qi <yao.qi@linaro.org>
7059
7060 PR server/20733
7061 * linux-aarch64-low.c (append_insns): Cast the return value to
7062 'uint32_t *'.
7063
a1078bea
YQ
70642016-10-10 Yao Qi <yao.qi@linaro.org>
7065
7066 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7067
1fb77080
SDJ
70682016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7069
7070 * target.c (target_supports_multi_process): New function, moved
7071 from...
7072 * target.h (target_supports_multi_process): ... here. Remove
7073 macro.
7074
39b5a3b9
TT
70752016-10-05 Tom Tromey <tom@tromey.com>
7076
7077 PR remote/20655:
7078 * tracepoint.c (handle_tracepoint_bkpts): Check
7079 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7080
c1d0b70a
YQ
70812016-10-05 Yao Qi <yao.qi@linaro.org>
7082
7083 * configure.srv: Update the path of arm-*.xml files.
7084
0a69eedb
YQ
70852016-10-05 Terry Guo <terry.guo@arm.com>
7086 Yao Qi <yao.qi@linaro.org>
7087
7088 * Makefile.in: Adjust the path of rules.
7089 * configure.srv: Update the path of xml files.
7090 * regformats/arm-with-iwmmxt.dat: Regenerated.
7091 * regformats/arm-with-neon.dat: Likewise.
7092 * regformats/arm-with-vfpv2.dat: Likewise.
7093 * regformats/arm-with-vfpv3.dat Likewise.
7094
17e16485
YQ
70952016-09-30 Yao Qi <yao.qi@linaro.org>
7096
7097 PR gdbserver/20627
7098 * target.c (target_stop_and_wait): Don't call
7099 target_continue_no_signal, use resume_stop instead.
7100
edeeb602
YQ
71012016-09-26 Yao Qi <yao.qi@linaro.org>
7102
7103 * linux-low.c (linux_wait_1): Call debug_exit.
7104
503b1c39
PA
71052016-09-23 Pedro Alves <palves@redhat.com>
7106
7107 * Makefile.in (SFILES): Add common/new-op.c.
7108 (OBS): Add common/new-op.o.
7109 (new-op.o): New rule.
7110
74172ecf
SM
71112016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7112
7113 * .gitinore: Ignore more files.
7114
fc6cda2e
YQ
71152016-09-21 Yao Qi <yao.qi@linaro.org>
7116
7117 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7118 23.
7119
bc1e6c81
SDJ
71202016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7121
7122 * server.c (start_inferior): Call target_mourn_inferior instead of
7123 mourn_inferior; pass ptid_t argument to it.
7124 (resume): Likewise.
7125 (handle_target_event): Likewise.
7126 * target.c (target_mourn_inferior): New function.
7127 * target.h (mourn_inferior): Delete macro.
7128
0e00e962
AA
71292016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7130
7131 * linux-low.c (lwp_is_stepping): New function.
7132
1d8cb77d
CL
71332016-09-06 Carl Love <cel@us.ibm.com>
7134
7135 * server.c (start_inferior): Fixed comment, requested comment change
7136 didn't get updated correctly. Removed reference to ptrace () call as
7137 it is only true on Linux systems.
7138
7313bced
CL
71392016-09-06 Carl Love <cel@us.ibm.com>
7140
7141 * server.c (start_inferior): Do not call
7142 function target_post_create_inferior () if the
7143 inferior process has already exited.
7144
cf6de44d
PA
71452016-09-05 Pedro Alves <palves@redhat.com>
7146
7147 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7148 (COMPILE.pre, CC_LD): Use CXX directly.
7149 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7150 * acinclude.m4: Don't include build-with-cxx.m4.
7151 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7152 * configure: Regenerate.
7153
c1da6748
AT
71542016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7155
7156 PR gdb/19495
7157 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7158 call writing data to own_buf.
7159
f2b9e3df
SDJ
71602016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7161
7162 * target.c (mywait): Call target_wait instead of
7163 the_target->wait.
7164 (target_wait): New function.
7165
049a8570
SDJ
71662016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7167
7168 * server.c (start_inferior): New variable 'ptid'. Replace calls
7169 to the_target->resume by target_continue{,_no_signal}, depending
7170 on the case.
7171 * target.c (target_stop_and_wait): Call target_continue_no_signal
7172 instead of the_target->resume.
7173 (target_continue): New function.
7174
3aa5cfa0
AT
71752016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7176
7177 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7178
754653a7
AZ
71792016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7180
7181 PR server/20491
7182 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7183 ps_prochandle.
7184 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7185 * linux-arm-low.c (ps_get_thread_area): Likewise.
7186 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7187 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7188 * linux-mips-low.c (ps_get_thread_area): Likewise.
7189 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7190 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7191 * linux-x86-low.c (ps_get_thread_area): Likewise.
7192 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7193
ed036b40
PA
71942016-08-19 Pedro Alves <palves@redhat.com>
7195
7196 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7197
c8ef42ee
PA
71982016-08-19 Pedro Alves <palves@redhat.com>
7199
7200 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7201 comment. Use memcpy instead of casting through unsigned long.
7202
9c235a72
PA
72032016-08-19 Pedro Alves <palves@redhat.com>
7204
7205 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7206 allocating around 0x80000000.
7207
201506da
PA
72082016-08-19 Pedro Alves <palves@redhat.com>
7209
7210 PR gdb/20415
7211 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7212 (x32-avx512-linux-ipa.o): New rules.
7213 * configure.ac (x86_64-*-linux*): New x32 check.
7214 * configure.srv (ipa_x32_linux_regobj): New.
7215 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7216 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7217 descriptions.
7218 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7219 descriptions.
7220 * configure: Regenerate.
7221
f348d89a
PA
72222016-08-09 Pedro Alves <palves@redhat.com>
7223
7224 PR gdb/18653
7225 * Makefile.in (OBS): Add signals-state-save-restore.o.
7226 (signals-state-save-restore.o): New rule.
7227 * config.in: Regenerate.
7228 * configure: Regenerate.
7229 * linux-low.c: Include "signals-state-save-restore.h".
7230 (linux_create_inferior): Call
7231 restore_original_signals_state.
7232 * server.c: Include "dispositions-save-restore.h".
7233 (captured_main): Call save_original_signals_state.
7234
1baf5149
PA
72352016-08-05 Pedro Alves <palves@redhat.com>
7236
7237 * configure: Regenerate.
7238
fcd4a73d
YQ
72392016-08-04 Yao Qi <yao.qi@linaro.org>
7240
7241 * linux-low.c (regsets_fetch_inferior_registers): Check
7242 errno is ESRCH or not.
7243
979659d0
YQ
72442016-08-02 Yao Qi <yao.qi@linaro.org>
7245
7246 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7247 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7248 (thread_db_load_search): Update.
7249 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7250 td_ta_set_event and td_ta_event_getmsg.
7251
6598661d
PA
72522016-07-26 Pedro Alves <palves@redhat.com>
7253
7254 PR server/20414
7255 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7256 of unsigned long for 64-bit registers and use uint32_t instead of
7257 unsigned int for 32-bit registers.
7258
9cf12d57
PA
72592016-07-26 Pedro Alves <palves@redhat.com>
7260
7261 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7262 to 'ptrace'.
7263
305450ed
TT
72642016-07-21 Tom Tromey <tom@tromey.com>
7265
7266 * configure: Rebuild.
7267
2583da7c
YQ
72682016-07-21 Yao Qi <yao.qi@linaro.org>
7269
7270 * mem-break.c (find_gdb_breakpoint): Cast bp to
7271 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7272
21536b36
YQ
72732016-07-21 Yao Qi <yao.qi@linaro.org>
7274
7275 * server.c (handle_v_requests): Support s and S actions
7276 if target_supports_software_single_step return true.
7277
8901d193
YQ
72782016-07-21 Yao Qi <yao.qi@linaro.org>
7279
7280 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7281 is resume_step, call maybe_hw_step.
7282 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7283 and unstop them.
7284 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7285 breakpoints or not.
7286 (proceed_one_lwp): If resume request is resume_step, install
7287 reinsert breakpoints and call maybe_hw_step.
7288
0e9a339e
YQ
72892016-07-21 Yao Qi <yao.qi@linaro.org>
7290
7291 * linux-low.c (proceed_one_lwp): Declare.
7292 (linux_resume_one_thread): Remove local variable 'step'.
7293 Lift code enqueue signal. Call proceed_one_lwp instead of
7294 linux_resume_one_lwp.
7295
4281b351
YQ
72962016-07-21 Yao Qi <yao.qi@linaro.org>
7297
7298 * linux-low.c (linux_resume_one_thread): Call
7299 enqueue_pending_signal.
7300
984a2c04
YQ
73012016-07-21 Yao Qi <yao.qi@linaro.org>
7302
7303 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7304 * inferiors.c (do_restore_current_thread_cleanup): New function.
7305 (make_cleanup_restore_current_thread): Likewise.
7306 * linux-low.c (install_software_single_step_breakpoints): Call
7307 make_cleanup_restore_current_thread. Switch current_thread to
7308 thread.
7309
bec903c9
YQ
73102016-07-21 Yao Qi <yao.qi@linaro.org>
7311
7312 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7313 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7314 (clone_one_breakpoint): Likewise.
7315 (delete_reinsert_breakpoints): Change parameter to thread.
7316 Callers updated.
7317 (has_reinsert_breakpoints): Likewise.
7318 (uninsert_reinsert_breakpoints): Likewise.
7319 (reinsert_reinsert_breakpoints): Likewise.
7320 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7321 (delete_reinsert_breakpoints): Likewise.
7322 (reinsert_reinsert_breakpoints): Likewise.
7323 (uninsert_reinsert_breakpoints): Likewise.
7324 (has_reinsert_breakpoints): Likewise.
7325
63c40ec7
YQ
73262016-07-21 Yao Qi <yao.qi@linaro.org>
7327
7328 * inferiors.c (get_thread_process): Make parameter const.
7329 * inferiors.h (get_thread_process): Update declaration.
7330 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7331 Add new parameters child_thread and parent_thread. Callers
7332 updated.
7333 * mem-break.h (clone_all_breakpoints): Update declaration.
7334
9aa76cd0
YQ
73352016-07-21 Yao Qi <yao.qi@linaro.org>
7336
7337 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7338 <command_list, handler>: Remove.
7339 (struct gdb_breakpoint): New.
7340 (struct other_breakpoint): New.
7341 (struct reinsert_breakpoint): New.
7342 (is_gdb_breakpoint): New function.
7343 (any_persistent_commands): Update command_list if
7344 is_gdb_breakpoint returns true.
7345 (set_breakpoint): Create breakpoints according to their types.
7346 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7347 (set_gdb_breakpoint_1): Likewise.
7348 (set_gdb_breakpoint): Likewise.
7349 (clear_breakpoint_conditions): Change parameter type to
7350 'struct gdb_breakpoint *'.
7351 (clear_breakpoint_commands): Likewise.
7352 (clear_breakpoint_conditions_and_commands): Likewise.
7353 (add_condition_to_breakpoint): Likewise.
7354 (add_breakpoint_condition): Likewise.
7355 (add_commands_to_breakpoint): Likewise.
7356 (check_breakpoints): Check other_breakpoint.
7357 (clone_one_breakpoint): Clone breakpopint according to its type.
7358 * mem-break.h (struct gdb_breakpoint): Declare.
7359 (set_gdb_breakpoint): Update declaration.
7360 (clear_breakpoint_conditions_and_commands): Likewise.
7361 (add_breakpoint_condition): Likewise.
7362 (add_breakpoint_commands): Likewise.
7363 * server.c (process_point_options): Change parameter type to
7364 'struct gdb_breakpoint *'.
7365
811f8301
YQ
73662016-07-21 Yao Qi <yao.qi@linaro.org>
7367
7368 * mem-break.c (set_breakpoint_at): Rename it to ...
7369 (set_breakpoint_type_at): ... it.
7370 (set_breakpoint_at): Call set_breakpoint_type_at.
7371 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7372 * mem-break.h (set_breakpoint_at): Update comments.
7373
b1c51e36
CLT
73742016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7375
7376 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7377 to buf parameter.
7378 (nios2_store_gregset): Likewise.
7379
ced2dffb
PA
73802016-07-01 Pedro Alves <palves@redhat.com>
7381 Antoine Tremblay <antoine.tremblay@ericsson.com>
7382
7383 * linux-low.c: Change interface to take the target lwp_info
7384 pointer directly and return void. Handle detaching from a zombie
7385 thread.
7386 (linux_detach_lwp_callback): New function.
7387 (linux_detach): Detach from the leader thread after detaching from
7388 the clone threads.
7389
2ac09a5b
YQ
73902016-06-28 Yao Qi <yao.qi@linaro.org>
7391
7392 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7393 for variable new_offset.
7394 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7395 (aarch64_ftrace_insn_reloc_cb): Likewise.
7396 (aarch64_ftrace_insn_reloc_tb): Likewise.
7397 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7398 PRIx64 instead of PRIx32.
7399
79e7fd4f
YQ
74002016-06-28 Yao Qi <yao.qi@linaro.org>
7401
7402 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7403 (the_low_target): Install arm_get_syscall_trapinfo.
7404
061fc021
YQ
74052016-06-28 Yao Qi <yao.qi@linaro.org>
7406
7407 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7408 function.
7409 (the_low_target): Install aarch64_get_syscall_trapinfo.
7410
4cc32bec
YQ
74112016-06-28 Yao Qi <yao.qi@linaro.org>
7412
7413 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7414 Callers updated.
7415 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7416 Remove parameter sysno.
7417 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7418 sysret.
7419
782c1122
AA
74202016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7421
7422 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7423 (s390_emit_ne_goto): Likewise.
7424 (s390_emit_lt_goto): Likewise.
7425 (s390_emit_le_goto): Likewise.
7426 (s390_emit_gt_goto): Likewise.
7427 (s390_emit_ge_goto): Likewise.
7428 (s390x_emit_eq_goto): Likewise.
7429 (s390x_emit_ne_goto): Likewise.
7430 (s390x_emit_lt_goto): Likewise.
7431 (s390x_emit_le_goto): Likewise.
7432 (s390x_emit_gt_goto): Likewise.
7433 (s390x_emit_ge_goto): Likewise.
7434 (s390_emit_ops_impl): Mark variable static.
7435 (s390x_emit_ops): Likewise.
7436
2e7b624b
YQ
74372016-06-17 Yao Qi <yao.qi@linaro.org>
7438
7439 * linux-low.c (handle_extended_wait): Call
7440 uninsert_reinsert_breakpoints for the parent process. Remove
7441 reinsert breakpoints from the child process. Reinsert them to
7442 the parent process when vfork is done.
7443 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7444 (reinsert_reinsert_breakpoints): New function.
7445 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7446 (reinsert_reinsert_breakpoints): Declare.
7447
8a81c5d7
YQ
74482016-06-17 Yao Qi <yao.qi@linaro.org>
7449
7450 * linux-low.c (handle_extended_wait): If the parent is doing
7451 step-over, remove the reinsert breakpoints from the forked child.
7452
f50bf8e5
YQ
74532016-06-17 Yao Qi <yao.qi@linaro.org>
7454
7455 * linux-low.c (unsuspend_all_lwps): Declare.
7456 (linux_low_filter_event): If thread exited, call finish_step_over.
7457 If step-over is finished, unsuspend other threads.
7458
8376a3cb
YQ
74592016-06-17 Yao Qi <yao.qi@linaro.org>
7460
7461 * linux-low.c (linux_resume_one_lwp_throw): Assert
7462 has_reinsert_breakpoints returns false.
7463 * mem-break.c (delete_disabled_breakpoints): Assert
7464 bp type isn't reinsert_breakpoint.
7465
f79b145d
YQ
74662016-06-17 Yao Qi <yao.qi@linaro.org>
7467
7468 * linux-low.c (maybe_hw_step): New function.
7469 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7470 (finish_step_over): Switch current_thread to lwp temporarily,
7471 and assert has_reinsert_breakpoints returns true.
7472 (proceed_one_lwp): Call maybe_hw_step.
7473 * mem-break.c (has_reinsert_breakpoints): New function.
7474 * mem-break.h (has_reinsert_breakpoints): Declare.
7475
0ae534d2
JT
74762016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7477
7478 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7479
fcdad592
YQ
74802016-05-17 Yao Qi <yao.qi@linaro.org>
7481
7482 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7483 instead of find_inferior.
7484
9e784964
YQ
74852016-05-05 Yao Qi <yao.qi@linaro.org>
7486
7487 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7488 Initialize res to zero.
7489
cf2ebb6e
YQ
74902016-05-05 Yao Qi <yao.qi@linaro.org>
7491
7492 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7493 to uint32_t.
7494
c1aebf87
UW
74952016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7496
7497 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7498 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7499 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7500
35fd2deb 75012016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 7502 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
7503
7504 * tracepoint.c (write_inferior_int8): New function.
7505 (cmd_qtenable_disable): Write enable flag using
7506 write_inferior_int8.
7507
484b3c32
YQ
75082016-04-25 Yao Qi <yao.qi@linaro.org>
7509
7510 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7511 (need_step_over_p): Return zero if the LWP has pending signals
7512 can be delivered on software single step target.
7513
85ba7d86
YQ
75142016-04-25 Yao Qi <yao.qi@linaro.org>
7515
7516 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7517 return instead of error.
7518
3539aa13
YQ
75192016-04-22 Yao Qi <yao.qi@linaro.org>
7520
7521 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7522 to 23.
7523
5b061e98
YQ
75242016-04-22 Yao Qi <yao.qi@linaro.org>
7525
7526 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7527 signal when stepping over breakpoint with software single
7528 step.
7529
3451269c
PA
75302016-04-21 Pedro Alves <palves@redhat.com>
7531
7532 * linux-s390-low.c (s390_collect_ptrace_register)
7533 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7534 add casts.
7535 (s390_check_regset): Use void * instead of gdb_byte *.
7536
a2358508
PA
75372016-04-20 Pedro Alves <palves@redhat.com>
7538
7539 * configure: Renegerate.
7540
6885166d
YQ
75412016-04-20 Yao Qi <yao.qi@linaro.org>
7542
7543 * linux-aarch32-low.c: Include "arch/arm-linux.h".
7544 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
7545 number 16.
7546 (arm_store_gregset): Likewise.
7547
2b863f51
WT
75482016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
7549
7550 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
7551 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
7552 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
7553 (amd64-avx-mpx-linux.c): New rules.
7554 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
7555 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
7556 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
7557 (srv_amd64_regobj): Add amd64-avx-mpx.o.
7558 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
7559 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
7560 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
7561 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
7562 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
7563 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
7564 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
7565 * linux-x86-low.c (x86_linux_read_description): Add case for
7566 X86_XSTATE_AVX_MPX_MASK.
7567 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
7568 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
7569 init_registers_i386_avx_mpx_linux.
7570 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7571 (initialize_low_tracepoint): Call
7572 init_registers_i386_avx_mpx_linux.
7573 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7574 (initialize_low_tracepoint): Call
7575 init_registers_amd64_avx_mpx_linux.
7576 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
7577 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
7578 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
7579 declarations.
7580
9b30624b
PA
75812016-04-18 Pedro Alves <palves@redhat.com>
7582
7583 * configure: Regenerate.
7584
45e3745e
AT
75852016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
7586
7587 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
7588 (aarch64_emit_sub): Likewise.
7589
2afc13ff
PA
75902016-04-12 Pedro Alves <palves@redhat.com>
7591
7592 * utils.c (prepare_to_throw_exception): Delete.
7593
6e774b13
SM
75942016-04-05 Simon Marchi <simon.marchi@ericsson.com>
7595
7596 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
7597
4dca19f8
MK
75982016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
7599
7600 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
7601
d0a9981f
MK
76022016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
7603
7604 * linux-aarch64-ipa.c: Add <elf.h> include.
7605 * linux-ppc-ipa.c: Add <elf.h> include.
7606 * linux-s390-ipa.c: Add <elf.h> include.
7607
252db07e
MK
76082016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7609
7610 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
7611 (get_raw_reg_ptr): Likewise.
7612 (get_trace_state_variable_value_ptr): Likewise.
7613 (set_trace_state_variable_value_ptr): Likewise.
7614 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
7615 char *.
7616
14e2b6d9
MK
76172016-03-31 Wei-cheng Wang <cole945@gmail.com>
7618 Marcin Kościelnicki <koriakin@0x04.net>
7619
7620 PR/17221
7621 * linux-ppc-low.c (emit_insns): New function.
7622 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
7623 (ppc_emit_prologue): New function.
7624 (ppc_emit_epilogue): New function.
7625 (ppc_emit_add): New function.
7626 (ppc_emit_sub): New function.
7627 (ppc_emit_mul): New function.
7628 (ppc_emit_lsh): New function.
7629 (ppc_emit_rsh_signed): New function.
7630 (ppc_emit_rsh_unsigned): New function.
7631 (ppc_emit_ext): New function.
7632 (ppc_emit_zero_ext): New function.
7633 (ppc_emit_log_not): New function.
7634 (ppc_emit_bit_and): New function.
7635 (ppc_emit_bit_or): New function.
7636 (ppc_emit_bit_xor): New function.
7637 (ppc_emit_bit_not): New function.
7638 (ppc_emit_equal): New function.
7639 (ppc_emit_less_signed): New function.
7640 (ppc_emit_less_unsigned): New function.
7641 (ppc_emit_ref): New function.
7642 (ppc_emit_const): New function.
7643 (ppc_emit_reg): New function.
7644 (ppc_emit_pop): New function.
7645 (ppc_emit_stack_flush): New function.
7646 (ppc_emit_swap): New function.
7647 (ppc_emit_stack_adjust): New function.
7648 (ppc_emit_call): New function.
7649 (ppc_emit_int_call_1): New function.
7650 (ppc_emit_void_call_2): New function.
7651 (ppc_emit_if_goto): New function.
7652 (ppc_emit_goto): New function.
7653 (ppc_emit_eq_goto): New function.
7654 (ppc_emit_ne_goto): New function.
7655 (ppc_emit_lt_goto): New function.
7656 (ppc_emit_le_goto): New function.
7657 (ppc_emit_gt_goto): New function.
7658 (ppc_emit_ge_goto): New function.
7659 (ppc_write_goto_address): New function.
7660 (ppc_emit_ops_impl): New static variable.
7661 (ppc64v1_emit_prologue): New function.
7662 (ppc64v2_emit_prologue): New function.
7663 (ppc64_emit_epilogue): New function.
7664 (ppc64_emit_add): New function.
7665 (ppc64_emit_sub): New function.
7666 (ppc64_emit_mul): New function.
7667 (ppc64_emit_lsh): New function.
7668 (ppc64_emit_rsh_signed): New function.
7669 (ppc64_emit_rsh_unsigned): New function.
7670 (ppc64_emit_ext): New function.
7671 (ppc64_emit_zero_ext): New function.
7672 (ppc64_emit_log_not): New function.
7673 (ppc64_emit_bit_and): New function.
7674 (ppc64_emit_bit_or): New function.
7675 (ppc64_emit_bit_xor): New function.
7676 (ppc64_emit_bit_not): New function.
7677 (ppc64_emit_equal): New function.
7678 (ppc64_emit_less_signed): New function.
7679 (ppc64_emit_less_unsigned): New function.
7680 (ppc64_emit_ref): New function.
7681 (ppc64_emit_const): New function.
7682 (ppc64v1_emit_reg): New function.
7683 (ppc64v2_emit_reg): New function.
7684 (ppc64_emit_pop): New function.
7685 (ppc64_emit_stack_flush): New function.
7686 (ppc64_emit_swap): New function.
7687 (ppc64v1_emit_call): New function.
7688 (ppc64v2_emit_call): New function.
7689 (ppc64v1_emit_int_call_1): New function.
7690 (ppc64v2_emit_int_call_1): New function.
7691 (ppc64v1_emit_void_call_2): New function.
7692 (ppc64v2_emit_void_call_2): New function.
7693 (ppc64_emit_if_goto): New function.
7694 (ppc64_emit_eq_goto): New function.
7695 (ppc64_emit_ne_goto): New function.
7696 (ppc64_emit_lt_goto): New function.
7697 (ppc64_emit_le_goto): New function.
7698 (ppc64_emit_gt_goto): New function.
7699 (ppc64_emit_ge_goto): New function.
7700 (ppc64v1_emit_ops_impl): New static variable.
7701 (ppc64v2_emit_ops_impl): New static variable.
7702 (ppc_emit_ops): New function.
7703 (linux_low_target): Wire in ppc_emit_ops.
7704
a2174ba4
MK
77052016-03-31 Wei-cheng Wang <cole945@gmail.com>
7706 Marcin Kościelnicki <koriakin@0x04.net>
7707
7708 PR/17221
7709 * Makefile.in: Add powerpc-*-ipa.o
7710 * configure.srv: Add ipa_obj for powerpc*-linux.
7711 * linux-ppc-ipa.c: New file.
7712 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
7713 includes.
7714 (PPC_FIELD): New macro.
7715 (PPC_SEXT): New macro.
7716 (PPC_OP6): New macro.
7717 (PPC_BO): New macro.
7718 (PPC_LI): New macro.
7719 (PPC_BD): New macro.
7720 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
7721 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
7722 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
7723 (ppc_get_thread_area): New function.
7724 (is_elfv2_inferior): New function.
7725 (gen_ds_form): New function.
7726 (GEN_STD): New macro.
7727 (GEN_STDU): New macro.
7728 (GEN_LD): New macro.
7729 (GEN_LDU): New macro.
7730 (gen_d_form): New function.
7731 (GEN_ADDI): New macro.
7732 (GEN_ADDIS): New macro.
7733 (GEN_LI): New macro.
7734 (GEN_LIS): New macro.
7735 (GEN_ORI): New macro.
7736 (GEN_ORIS): New macro.
7737 (GEN_LWZ): New macro.
7738 (GEN_STW): New macro.
7739 (GEN_STWU): New macro.
7740 (gen_xfx_form): New function.
7741 (GEN_MFSPR): New macro.
7742 (GEN_MTSPR): New macro.
7743 (GEN_MFCR): New macro.
7744 (GEN_MTCR): New macro.
7745 (GEN_SYNC): New macro.
7746 (GEN_LWSYNC): New macro.
7747 (gen_x_form): New function.
7748 (GEN_OR): New macro.
7749 (GEN_MR): New macro.
7750 (GEN_LWARX): New macro.
7751 (GEN_STWCX): New macro.
7752 (GEN_CMPW): New macro.
7753 (gen_md_form): New function.
7754 (GEN_RLDICL): New macro.
7755 (GEN_RLDICR): New macro.
7756 (gen_i_form): New function.
7757 (GEN_B): New macro.
7758 (GEN_BL): New macro.
7759 (gen_b_form): New function.
7760 (GEN_BNE): New macro.
7761 (GEN_LOAD): New macro.
7762 (GEN_STORE): New macro.
7763 (gen_limm): New function.
7764 (gen_atomic_xchg): New function.
7765 (gen_call): New function.
7766 (ppc_relocate_instruction): New function.
7767 (ppc_install_fast_tracepoint_jump_pad): New function.
7768 (ppc_get_min_fast_tracepoint_insn_len): New function.
7769 (ppc_get_ipa_tdesc_idx): New function.
7770 (the_low_target): Wire in the new functions.
7771 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
7772 tdescs.
7773 * linux-ppc-tdesc.h: New file.
7774
a13c4696
MK
77752016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7776
7777 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
7778 (alloc_jump_pad_buffer): New function.
7779 * linux-amd64-ipa.c: Add <sys/mman.h> include.
7780 (alloc_jump_pad_buffer): New function.
7781 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
7782 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
7783 (alloc_jump_pad_buffer): New function.
7784 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
7785 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
7786 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
7787 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
7788
1cda1512
MK
77892016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
7790
7791 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
7792 * linux-amd64-ipa.c: Likewise.
7793 * linux-i386-ipa.c: Likewise.
7794 * linux-s390-ipa.c: Likewise.
7795 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
7796 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
7797 set_trace_state_variable_value_ptr.
7798 (struct ipa_sym_addresses): Likewise.
7799 (symbol_list): Likewise.
7800 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
7801 accessing gdb_collect directly.
7802 (gdb_collect_ptr_type): New typedef.
7803 (get_raw_reg_ptr_type): New typedef.
7804 (get_trace_state_variable_value_ptr_type): New typedef.
7805 (set_trace_state_variable_value_ptr_type): New typedef.
7806 (gdb_collect_ptr): New global.
7807 (get_raw_reg_ptr): New global.
7808 (get_trace_state_variable_value_ptr): New global.
7809 (set_trace_state_variable_value_ptr): New global.
7810 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
7811 accessing get_raw_reg directly.
7812 (get_get_tsv_func_addr): Likewise for
7813 get_trace_state_variable_value_ptr.
7814 (get_set_tsv_func_addr): Likewise for
7815 set_trace_state_variable_value_ptr.
7816 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
7817
72fb5488
SM
78182016-03-30 Simon Marchi <simon.marchi@ericsson.com>
7819
7820 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
7821
28170b88
MK
78222016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
7823
7824 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
7825 packets.
7826 (relocate_instruction): Remove own_buf.
7827 * server.c (own_buf): Make global.
7828 (handle_v_requests): Make global.
7829 * server.h (own_buf): New declaration.
7830 (handle_v_requests): New prototype.
7831
f39e8743
MK
78322016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7833
7834 PR 18377
7835 * linux-s390-low.c (add_insns): New function.
7836 (s390_emit_prologue): New function.
7837 (s390_emit_epilogue): New function.
7838 (s390_emit_add): New function.
7839 (s390_emit_sub): New function.
7840 (s390_emit_mul): New function.
7841 (s390_emit_lsh): New function.
7842 (s390_emit_rsh_signed): New function.
7843 (s390_emit_rsh_unsigned): New function.
7844 (s390_emit_ext): New function.
7845 (s390_emit_log_not): New function.
7846 (s390_emit_bit_and): New function.
7847 (s390_emit_bit_or): New function.
7848 (s390_emit_bit_xor): New function.
7849 (s390_emit_bit_not): New function.
7850 (s390_emit_equal): New function.
7851 (s390_emit_less_signed): New function.
7852 (s390_emit_less_unsigned): New function.
7853 (s390_emit_ref): New function.
7854 (s390_emit_if_goto): New function.
7855 (s390_emit_goto): New function.
7856 (s390_write_goto_address): New function.
7857 (s390_emit_litpool): New function.
7858 (s390_emit_const): New function.
7859 (s390_emit_call): New function.
7860 (s390_emit_reg): New function.
7861 (s390_emit_pop): New function.
7862 (s390_emit_stack_flush): New function.
7863 (s390_emit_zero_ext): New function.
7864 (s390_emit_swap): New function.
7865 (s390_emit_stack_adjust): New function.
7866 (s390_emit_set_r2): New function.
7867 (s390_emit_int_call_1): New function.
7868 (s390_emit_void_call_2): New function.
7869 (s390_emit_eq_goto): New function.
7870 (s390_emit_ne_goto): New function.
7871 (s390_emit_lt_goto): New function.
7872 (s390_emit_le_goto): New function.
7873 (s390_emit_gt_goto): New function.
7874 (s390_emit_ge_goto): New function.
7875 (s390x_emit_prologue): New function.
7876 (s390x_emit_epilogue): New function.
7877 (s390x_emit_add): New function.
7878 (s390x_emit_sub): New function.
7879 (s390x_emit_mul): New function.
7880 (s390x_emit_lsh): New function.
7881 (s390x_emit_rsh_signed): New function.
7882 (s390x_emit_rsh_unsigned): New function.
7883 (s390x_emit_ext): New function.
7884 (s390x_emit_log_not): New function.
7885 (s390x_emit_bit_and): New function.
7886 (s390x_emit_bit_or): New function.
7887 (s390x_emit_bit_xor): New function.
7888 (s390x_emit_bit_not): New function.
7889 (s390x_emit_equal): New function.
7890 (s390x_emit_less_signed): New function.
7891 (s390x_emit_less_unsigned): New function.
7892 (s390x_emit_ref): New function.
7893 (s390x_emit_if_goto): New function.
7894 (s390x_emit_const): New function.
7895 (s390x_emit_call): New function.
7896 (s390x_emit_reg): New function.
7897 (s390x_emit_pop): New function.
7898 (s390x_emit_stack_flush): New function.
7899 (s390x_emit_zero_ext): New function.
7900 (s390x_emit_swap): New function.
7901 (s390x_emit_stack_adjust): New function.
7902 (s390x_emit_int_call_1): New function.
7903 (s390x_emit_void_call_2): New function.
7904 (s390x_emit_eq_goto): New function.
7905 (s390x_emit_ne_goto): New function.
7906 (s390x_emit_lt_goto): New function.
7907 (s390x_emit_le_goto): New function.
7908 (s390x_emit_gt_goto): New function.
7909 (s390x_emit_ge_goto): New function.
7910 (s390_emit_ops): New function.
7911 (struct linux_target_ops): Fill in emit_ops hook.
7912
abd9baf9
MK
79132016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7914
7915 PR 18377
7916 * Makefile.in: Add s390 IPA files.
7917 * configure.srv: Build IPA for s390.
7918 * linux-s390-ipa.c: New file.
7919 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
7920 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
7921 (tdesc_s390_linux32): Likewise.
7922 (init_registers_s390_linux32v1): Likewise.
7923 (tdesc_s390_linux32v1): Likewise.
7924 (init_registers_s390_linux32v2): Likewise.
7925 (tdesc_s390_linux32v2): Likewise.
7926 (init_registers_s390_linux64): Likewise.
7927 (tdesc_s390_linux64): Likewise.
7928 (init_registers_s390_linux64v1): Likewise.
7929 (tdesc_s390_linux64v1): Likewise.
7930 (init_registers_s390_linux64v2): Likewise.
7931 (tdesc_s390_linux64v2): Likewise.
7932 (init_registers_s390_te_linux64): Likewise.
7933 (tdesc_s390_te_linux64): Likewise.
7934 (init_registers_s390_vx_linux64): Likewise.
7935 (tdesc_s390_vx_linux64): Likewise.
7936 (init_registers_s390_tevx_linux64): Likewise.
7937 (tdesc_s390_tevx_linux64): Likewise.
7938 (init_registers_s390x_linux64): Likewise.
7939 (tdesc_s390x_linux64): Likewise.
7940 (init_registers_s390x_linux64v1): Likewise.
7941 (tdesc_s390x_linux64v1): Likewise.
7942 (init_registers_s390x_linux64v2): Likewise.
7943 (tdesc_s390x_linux64v2): Likewise.
7944 (init_registers_s390x_te_linux64): Likewise.
7945 (tdesc_s390x_te_linux64): Likewise.
7946 (init_registers_s390x_vx_linux64): Likewise.
7947 (tdesc_s390x_vx_linux64): Likewise.
7948 (init_registers_s390x_tevx_linux64): Likewise.
7949 (tdesc_s390x_tevx_linux64): Likewise.
7950 (have_hwcap_s390_vx): New static variable.
7951 (s390_arch_setup): Fill have_hwcap_s390_vx.
7952 (s390_get_thread_area): New function.
7953 (s390_ft_entry_gpr_esa): New const.
7954 (s390_ft_entry_gpr_zarch): New const.
7955 (s390_ft_entry_misc): New const.
7956 (s390_ft_entry_fr): New const.
7957 (s390_ft_entry_vr): New const.
7958 (s390_ft_main_31): New const.
7959 (s390_ft_main_64): New const.
7960 (s390_ft_exit_fr): New const.
7961 (s390_ft_exit_vr): New const.
7962 (s390_ft_exit_misc): New const.
7963 (s390_ft_exit_gpr_esa): New const.
7964 (s390_ft_exit_gpr_zarch): New const.
7965 (append_insns): New function.
7966 (s390_relocate_instruction): New function.
7967 (s390_install_fast_tracepoint_jump_pad): New function.
7968 (s390_get_min_fast_tracepoint_insn_len): New function.
7969 (s390_get_ipa_tdesc_idx): New function.
7970 (struct linux_target_ops): Wire in the above functions.
7971 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
7972 * linux-s390-tdesc.h: New file.
7973
a4105d04
MK
79742016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7975
7976 * linux-s390-low.c (s390_supports_tracepoints): New function.
7977 (struct linux_target_ops): Fill supports_tracepoints hook.
7978
35ac8b3e
YQ
79792016-03-18 Yao Qi <yao.qi@linaro.org>
7980
7981 * linux-low.c (lwp_signal_can_be_delivered): New function.
7982 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
7983
94610ec4
YQ
79842016-03-18 Yao Qi <yao.qi@linaro.org>
7985
7986 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
7987 0 if signal is enqueued. Remove 'signal' from one debugging
7988 message. Move one debugging message to some lines below.
7989 Remove code setting 'signal' to 0.
7990
80aea927
YQ
79912016-03-18 Yao Qi <yao.qi@linaro.org>
7992
7993 * linux-low.c (linux_low_filter_event): Remove redundant
7994 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
7995
b04fd3be
MK
79962016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
7997
7998 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
7999 (struct linux_target_ops): Wire in the above.
8000
c40c8d4b
YQ
80012016-03-03 Yao Qi <yao.qi@linaro.org>
8002
8003 * linux-low.c: Update comments to start_step_over.
8004
0f8288ae
YQ
80052016-03-03 Yao Qi <yao.qi@linaro.org>
8006
8007 PR server/19736
8008 * linux-low.c (handle_extended_wait): Set child suspended
8009 if event_lwp->bp_reinsert isn't zero.
8010
fdbd04a8
YQ
80112016-03-02 Yao Qi <yao.qi@linaro.org>
8012
8013 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8014 enqueue_pending_signal.
8015
6896a8fa
MK
80162016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8017
8018 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8019 is actually loaded.
8020
ab503087
MK
80212016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8022
8023 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8024 (s390_regmap_3264) [!__s390x__]: New global.
8025 (s390_collect_ptrace_register): Skip map entries containing -1.
8026 (s390_supply_ptrace_register): Ditto.
8027 (s390_fill_gprs_high): New function.
8028 (s390_store_gprs_high): New function.
8029 (s390_regsets): Add NT_S390_HIGH_GPRS.
8030 (s390_get_hwcap): Enable on 31-bit.
8031 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8032 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8033 Detect NT_S390_HIGH_GPRS.
8034 (s390_usrregs_info_3264): Enable on 31-bit.
8035 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8036 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8037
ae91f625
MK
80382016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8039
8040 PR gdb/13808
8041 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8042 * configure.srv: Ditto.
8043 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8044 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8045 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8046 (init_registers_amd64_linux): Remove prototype.
8047 (tdesc_amd64_linux): Remove declaration.
8048 (get_ipa_tdesc): New function.
8049 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8050 initialize remaining tdescs.
8051 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8052 (init_registers_i386_linux): Remove prototype.
8053 (tdesc_i386_linux): Remove declaration.
8054 (get_ipa_tdesc): New function.
8055 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8056 initialize remaining tdescs.
8057 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8058 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8059 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8060 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8061 (x86_get_ipa_tdesc_idx): New function.
8062 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8063 * linux-x86-tdesc.h: New file.
8064 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8065 (target_get_ipa_tdesc_idx): New macro.
8066 * tracepoint.c (ipa_tdesc_idx): New macro.
8067 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8068 (symbol_list): Add ipa_tdesc_idx.
8069 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8070 (ipa_tdesc): Remove.
8071 (ipa_tdesc_idx): New variable.
8072 (get_context_regcache): Use get_ipa_tdesc.
8073 (gdb_collect): Ditto.
8074 (gdb_probe): Ditto.
8075 * tracepoint.h (get_ipa_tdesc): New prototype.
8076 (ipa_tdesc): Remove.
8077
e7ad2f14
PA
80782016-02-24 Pedro Alves <palves@redhat.com>
8079
8080 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8081 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8082 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8083 Factor out common code between the USE_SIGTRAP_SIGINFO and
8084 !USE_SIGTRAP_SIGINFO blocks.
8085 (linux_low_filter_event): Call save_stop_reason instead of
8086 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8087 Update comments.
8088 (linux_wait_1): Update comments.
8089
657f9cde
WW
80902016-02-24 Wei-cheng Wang <cole945@gmail.com>
8091
8092 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8093 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8094 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8095 ppc_insert_point, ppc_remove_point.
8096
b00b61e1
MK
80972016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8098
8099 * linux-s390-low.c (s390_supports_z_point_type): New function.
8100 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8101
553cb527
YQ
81022016-02-16 Yao Qi <yao.qi@linaro.org>
8103
8104 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8105 PC. Get pc from regcache_read_pc.
8106
a5652c21
YQ
81072016-02-12 Yao Qi <yao.qi@linaro.org>
8108
8109 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8110 or linux_get_pc_32bit.
8111 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8112
ed443b61
YQ
81132016-02-12 Yao Qi <yao.qi@linaro.org>
8114
8115 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8116 arm_linux_get_next_pcs_fixup.
8117
020ecd38
MK
81182016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8119
8120 * tracepoint.c (x_tracepoint_action_download): Change
8121 write_inferior_data_ptr to write_inferior_data_pointer.
8122 (cmd_qtstart): Likewise.
8123 (write_inferior_data_ptr): Remove.
8124 (download_agent_expr): Change write_inferior_data_ptr to
8125 write_inferior_data_pointer.
8126 (download_tracepoint_1): Likewise.
8127 (download_tracepoint): Likewise.
8128 (download_trace_state_variables): Likewise.
8129
7cae9051
WW
81302016-02-11 Wei-cheng Wang <cole945@gmail.com>
8131 Marcin Kościelnicki <koriakin@0x04.net>
8132
8133 * tracepoint.c (struct tracepoint_action_ops): Remove.
8134 (struct tracepoint_action): Remove ops.
8135 (m_tracepoint_action_download, r_tracepoint_action_download)
8136 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8137 size and offset accordingly.
8138 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8139 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8140 (tracepoint_action_send, tracepoint_action_download): New functions.
8141 Helpers for trace action handlers.
8142 (add_tracepoint_action): Remove setup actions ops.
8143 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8144
9f6a71b4
YQ
81452016-02-10 Yao Qi <yao.qi@linaro.org>
8146
8147 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8148
1e94266c
SM
81492016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8150
8151 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8152 to AC_OUTPUT.
8153 * configure: Regenerate.
8154
8adce034
SM
81552016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8156
8157 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8158 void * to gdb_byte *.
8159 * linux-low.c (siginfo_fixup): Likewise.
8160 (linux_xfer_siginfo): Likewise.
8161 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8162 Likewise.
8163 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8164
93813b37
WT
81652016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8166
8167 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8168 to srv_tgtobj.
8169 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8170 to srv_tgtobj.
8171 * linux-x86-low.c [__x86_64__]: Include
8172 "nat/amd64-linux-siginfo.h".
8173 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8174 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8175 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8176 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8177 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8178 (cpt_si_fd, si_timerid, si_overrun): Move from
8179 nat/amd64-linux-siginfo.c.
8180 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8181
8424cc97
SM
81822016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8183
8184 * server.c (skip_to_semicolon): Remove.
8185 (process_point_options): Use strchrnul instead of
8186 skip_to_semicolon.
8187
4d18591b
YQ
81882016-01-26 Yao Qi <yao.qi@linaro.org>
8189
8190 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8191 * linux-low.c (install_software_single_step_breakpoints): Don't
8192 call regcache_read_pc.
8193 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8194 argument pc.
8195
d8020970
YQ
81962016-01-26 Yao Qi <yao.qi@linaro.org>
8197
8198 * linux-low.c (install_software_single_step_breakpoints): Call
8199 regcache_read_pc instead of get_pc.
8200
8b207339
YQ
82012016-01-26 Yao Qi <yao.qi@linaro.org>
8202
8203 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8204 (unblock_async_io): Rename to ...
8205 (block_unblock_async_io): ... it. New function.
8206 (enable_async_io): Don't install SIGIO handler. Unblock it
8207 instead.
8208 (disable_async_io): Don't ignore SIGIO. Block it instead.
8209 (initialize_async_io): Install SIGIO handler. Don't call
8210 unblock_async_io.
8211
18879fef
YQ
82122016-01-26 Yao Qi <yao.qi@linaro.org>
8213
8214 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8215 first character is '\003', call *the_target->request_interrupt.
8216
a0f8e08a
YQ
82172016-01-25 Yao Qi <yao.qi@linaro.org>
8218
8219 * remote-utils.c (new_thread_notify): Remove.
8220 (dead_thread_notify): Likewise.
8221 * remote-utils.h (new_thread_notify): Remove declaration.
8222 (dead_thread_notify): Likewise.
8223
cc5fd9ab
MK
82242016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8225
8226 * gdb.trace/pending.exp: Fix expected message on continue.
8227
99e8eb11
MK
82282016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8229
8230 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8231 it works properly on big-endian machines where sizeof (CORE_ADDR)
8232 != sizeof (void *).
8233
a994041d
PA
82342016-01-21 Pedro Alves <palves@redhat.com>
8235
8236 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8237 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8238 * configure: Regenerate.
8239
f7a6a40d
YQ
82402016-01-21 Yao Qi <yao.qi@linaro.org>
8241
8242 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8243 is_thumb and set it according to CPSR saved on the stack.
8244 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8245 arm_sigreturn_next_pc.
8246
6f69e520
YQ
82472016-01-18 Yao Qi <yao.qi@linaro.org>
8248
8249 * linux-low.c (linux_set_pc_64bit): New function.
8250 (linux_get_pc_64bit): New function.
8251 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8252 Declare.
8253 * linux-sparc-low.c (debug_threads): Remove declaration.
8254 (sparc_get_pc): Remove.
8255 (the_low_target): Use linux_get_pc_64bit instead of
8256 sparc_get_pc.
8257 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8258 (the_low_target): Use linux_get_pc_64bit and
8259 linux_set_pc_64bit.
8260
276d4552
YQ
82612016-01-18 Yao Qi <yao.qi@linaro.org>
8262
8263 * linux-arm-low.c (debug_threads): Remove declaration.
8264 (arm_get_pc, arm_set_pc): Remove.
8265 (the_low_target): Use linux_get_pc_32bit and
8266 linux_set_pc_32bit.
8267 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8268 (the_low_target): Use linux_get_pc_32bit and
8269 linux_set_pc_32bit.
8270 * linux-cris-low.c (debug_threads): Remove declaration.
8271 (cris_get_pc, cris_set_pc,): Remove.
8272 (the_low_target): Use linux_get_pc_32bit and
8273 linux_set_pc_32bit.
8274 * linux-crisv32-low.c (debug_threads): Remove declaration.
8275 (cris_get_pc, cris_set_pc): Remove.
8276 (the_low_target): Use linux_get_pc_32bit and
8277 linux_set_pc_32bit.
8278 * linux-low.c: Include inttypes.h.
8279 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8280 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8281 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8282 (the_low_target): Use linux_get_pc_32bit and
8283 linux_set_pc_32bit.
8284 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8285 (the_low_target): Use linux_get_pc_32bit and
8286 linux_set_pc_32bit.
8287 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8288 (the_low_target): Use linux_get_pc_32bit and
8289 linux_set_pc_32bit.
8290 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8291 (the_low_target): Use linux_get_pc_32bit and
8292 linux_set_pc_32bit.
8293 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8294 (the_low_target): Use linux_get_pc_32bit and
8295 linux_set_pc_32bit.
8296
eb0edac8
GB
82972016-01-18 Gary Benson <gbenson@redhat.com>
8298
8299 * configure.ac (AC_FUNC_FORK): New check.
8300 * config.in: Regenerate.
8301 * configure: Likewise.
8302
1b451dda
YQ
83032016-01-14 Yao Qi <yao.qi@linaro.org>
8304
8305 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8306 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8307 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8308 arm_get_next_pcs_ctor.
8309
82075af2
JS
83102016-01-12 Josh Stone <jistone@redhat.com>
8311 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8312
8313 * inferiors.h: Include "gdb_vecs.h".
8314 (struct process_info): Add syscalls_to_catch.
8315 * inferiors.c (remove_process): Free syscalls_to_catch.
8316 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8317 syscall_return stops.
8318 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8319 * server.c (handle_general_set): Handle QCatchSyscalls.
8320 (handle_query): Report support for QCatchSyscalls.
8321 * target.h (struct target_ops): Add supports_catch_syscall.
8322 (target_supports_catch_syscall): New macro.
8323 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8324 (struct lwp_info): Add syscall_state.
8325 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8326 Maintain syscall_state and syscalls_to_catch across exec.
8327 (get_syscall_trapinfo): New function, proxy to the_low_target.
8328 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8329 (linux_low_filter_event): Toggle syscall_state entry/return for
8330 syscall traps, and set it ignored for all others.
8331 (gdb_catching_syscalls_p): New function.
8332 (gdb_catch_this_syscall_p): New function.
8333 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8334 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8335 (linux_supports_catch_syscall): New function.
8336 (linux_target_ops): Install it.
8337 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8338 (the_low_target): Install it.
8339
8f13a3ce
MF
83402016-01-12 Mike Frysinger <vapier@gentoo.org>
8341
8342 * acinclude.m4: Include new ../warning.m4 file.
8343 * configure: Regenerated.
8344 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8345
5b3da067
MF
83462016-01-12 Mike Frysinger <vapier@gentoo.org>
8347
8348 * ax.c (is_goto_target): Mark static.
8349 * linux-low.c (register_addr): Likewise.
8350 (linux_fetch_registers, linux_store_registers): Likewise.
8351 * mem-break.c (any_persistent_commands): Fix old prototype.
8352 (add_commands_to_breakpoint): Mark static.
8353 * regcache.c (find_register_by_name): Delete unused func.
8354 * remote-utils.c (hex_or_minus_one): Mark static.
8355 * server.c (monitor_show_help): Mark static.
8356 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8357 handle_v_requests): Likewise.
8358
bc504a31
PA
83592016-01-12 Pedro Alves <palves@redhat.com>
8360
8361 Remove use of the registered trademark symbol throughout.
8362
5a0dd67a
YQ
83632016-01-08 Yao Qi <yao.qi@linaro.org>
8364
8365 * remote-utils.c (getpkt): If c is '\003', call target hook
8366 request_interrupt.
8367
b2ca446f
YQ
83682016-01-06 Yao Qi <yao.qi@linaro.org>
8369
8370 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8371 linux-aarch32-low.c.
8372 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8373 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8374 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8375 (thumb2_breakpoint): Declare.
8376 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8377 linux-aarch32-low.h.
8378 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8379 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8380 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8381
edd88788
JB
83822016-01-01 Joel Brobecker <brobecker@adacore.com>
8383
8384 * gdbreplay.c (gdbreplay_version): Change copyright year in
8385 version message.
8386 * server.c (gdbserver_version): Likewise.
8387
65da7f14
PP
83882015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8389
8390 * server.c (crc32_table): Delete.
8391 (crc32): Use libiberty's xcrc32 function.
8392
4abd5ed2
JB
83932015-12-22 Joel Brobecker <brobecker@adacore.com>
8394
8395 * lynx-low.c (lynx_delete_thread_callback): New function.
8396 (lynx_mourn): Properly delete our process and all of its
8397 threads. Remove call to clear_inferiors.
8398
0e50fe5c
JB
83992015-12-22 Joel Brobecker <brobecker@adacore.com>
8400
8401 * target.c (thread_search_callback): Add check that
8402 the thread_stopped target callback is not NULL before
8403 calling it.
8404
35adc03f
YQ
84052015-12-21 Yao Qi <yao.qi@linaro.org>
8406
8407 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8408 arm breakpoint.
8409
bd2b2909
AT
84102015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8411
8412 * server.c (handle_query): Call target_supports_software_single_step.
8413
7fe5e27e
AT
84142015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8415
8416 * linux-low.c (single_step): New function.
8417 (linux_resume_one_lwp_throw): Call single_step.
8418 (start_step_over): Likewise.
8419
d9311bfa
AT
84202015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8421
8422 * Makefile.in (SFILES): Append arch/arm-linux.c,
8423 arch/arm-get-next-pcs.c.
8424 (arm-linux.o): New rule.
8425 (arm-get-next-pcs.o): New rule.
8426 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8427 arm-linux.o.
8428 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8429 to linux-aarch32-low.c.
8430 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8431 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8432 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8433 (thumb2_breakpoint_len): Likewise.
8434 (arm_is_thumb_mode): Make non-static.
8435 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8436 from linux-aarch32-low.c.
8437 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8438 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8439 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8440 (thumb2_breakpoint_len): Likewise.
8441 (arm_is_thumb_mode): New declaration.
8442 * linux-arm-low.c: Include arch/arm-linux.h
8443 aarch/arm-get-next-pcs.h, sys/syscall.h.
8444 (get_next_pcs_ops): New struct.
8445 (get_next_pcs_addr_bits_remove): New function.
8446 (get_next_pcs_is_thumb): New function.
8447 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8448 (arm_sigreturn_next_pc): Likewise.
8449 (get_next_pcs_syscall_next_pc): Likewise.
8450 (arm_gdbserver_get_next_pcs): Likewise.
8451 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8452 Initialize.
8453 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8454 * server.h: Include gdb_vecs.h.
8455
68ce2059
AT
84562015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8457
8458 * Makefile.in (SFILES): Append common/common-regcache.c.
8459 (OBS): Append common-regcache.o.
8460 (common-regcache.o): New rule.
8461 * regcache.c (init_register_cache): Initialize cache to
8462 REG_UNAVAILABLE.
8463 (regcache_raw_read_unsigned): New function.
8464 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8465 register_status enum.
8466
fa5308bd
AT
84672015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8468
8469 * linux-aarch64-low.c (the_low_targets): Rename
8470 breakpoint_reinsert_addr to get_next_pcs.
8471 * linux-arm-low.c (the_low_targets): Likewise.
8472 * linux-bfin-low.c (the_low_targets): Likewise.
8473 * linux-cris-low.c (the_low_targets): Likewise.
8474 * linux-crisv32-low.c (the_low_targets): Likewise.
8475 * linux-low.c (can_software_single_step): Likewise.
8476 (install_software_single_step_breakpoints): New function.
8477 (start_step_over): Use install_software_single_step_breakpoints.
8478 * linux-low.h: New CORE_ADDR vector.
8479 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8480 get_next_pcs.
8481 * linux-mips-low.c (the_low_targets): Likewise.
8482 * linux-nios2-low.c (the_low_targets): Likewise.
8483 * linux-sparc-low.c (the_low_targets): Likewise.
8484
4a6ed09b
PA
84852015-12-17 Pedro Alves <palves@redhat.com>
8486
8487 * linux-low.c (linux_kill_one_lwp): Remove references to
8488 LinuxThreads.
8489 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8490 to 'kill'.
8491 (linux_init_signals): Delete.
8492 (initialize_low): Adjust.
8493 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8494
7544db95
PA
84952015-12-16 Pedro Alves <palves@redhat.com>
8496
8497 * configure.ac (compiler warning flags): When testing a
8498 -Wno-foo option, check whether -Wfoo works instead.
8499 * configure: Regenerate.
8500
8020350c
DB
85012015-12-11 Don Breazeal <donb@codesourcery.com>
8502
8503 * server.c (process_serial_event): Don't exit from gdbserver
8504 in remote mode if there are still active inferiors.
8505
db91f502
YQ
85062015-12-11 Yao Qi <yao.qi@linaro.org>
8507
8508 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8509 arm_breakpoint_at if the process is 32-bit.
8510
b37a6290
YQ
85112015-12-11 Yao Qi <yao.qi@linaro.org>
8512
8513 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8514 arm breakpoint.
8515
17b1509a
YQ
85162015-12-07 Yao Qi <yao.qi@linaro.org>
8517
8518 * configure.srv: Append arm.o to srv_tgtobj for
8519 aarch64*-*-linux* target.
8520 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8521 from linux-arm-low.c.
8522 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8523 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8524 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8525 (thumb2_breakpoint_len): Likewise.
8526 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8527 (arm_breakpoint_kinds): Likewise.
8528 (arm_breakpoint_kind_from_pc): Likewise.
8529 (arm_sw_breakpoint_from_kind): Likewise.
8530 (arm_breakpoint_kind_from_current_state): Likewise.
8531 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
8532 (arm_sw_breakpoint_from_kind): Declare.
8533 (arm_breakpoint_kind_from_current_state): Declare.
8534 (arm_breakpoint_at): Declare.
8535 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
8536 arm_sw_breakpoint_from_kind if process is 32-bit.
8537 (aarch64_breakpoint_kind_from_pc): New function.
8538 (aarch64_breakpoint_kind_from_current_state): New function.
8539 (the_low_target): Initialize fields breakpoint_kind_from_pc
8540 and breakpoint_kind_from_current_state.
8541 * linux-arm-low.c (arm_breakpoint_kinds): Move to
8542 linux-aarch32-low.c.
8543 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
8544 (arm_breakpoint, arm_breakpoint_len): Likewise.
8545 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
8546 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8547 (arm_is_thumb_mode): Likewise.
8548 (arm_breakpoint_at): Likewise.
8549 (arm_breakpoint_kind_from_pc): Likewise.
8550 (arm_sw_breakpoint_from_kind): Likewise.
8551 (arm_breakpoint_kind_from_current_state): Likewise.
8552
8553 Revert:
8554 2015-08-04 Yao Qi <yao.qi@linaro.org>
8555
8556 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8557 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8558 * server.c (extended_protocol): Remove "static".
8559 * server.h (extended_protocol): Declare it.
8560
ece66d65
JS
85612015-12-04 Josh Stone <jistone@redhat.com>
8562
8563 * target.h (struct target_ops) <arch_setup>: Rename to ...
8564 (struct target_ops) <post_create_inferior>: ... this.
8565 (target_arch_setup): Rename to ...
8566 (target_post_create_inferior): ... this, calling post_create_inferior.
8567 * server.c (start_inferior): Update target_arch_setup calls to
8568 target_post_create_inferior.
8569 * linux-low.c (linux_low_ptrace_options): Forward declare.
8570 (linux_arch_setup): Update its comment for general use.
8571 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
8572 (struct linux_target_ops): Use linux_post_create_inferior.
8573 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
8574 to post_create_inferior.
8575 * nto-low.c (struct nto_target_ops): Likewise.
8576 * spu-low.c (struct spu_target_ops): Likewise.
8577 * win32-low.c (struct win32_target_ops): Likewise.
8578
e58c48b4
AT
85792015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
8580
8581 * linux-arm-low.c: Remove duplicate arch/arm.h include.
8582
fbec8956
AT
85832015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8584
8585 * linux-arm-low.c (arm_reinsert_addr): Remove function.
8586 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
8587 * linux-cris-low.c (cris_reinsert_addr> Remove function.
8588 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8589 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
8590 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8591 * linux-mips-low.c (mips_reinsert_addr): Remove function.
8592 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8593 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
8594 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8595 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
8596 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8597
9b4c5f87
AT
85982015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8599
8600 * linux-low.c (linux_look_up_symbols): Don't call
8601 linux_supports_traceclone.
8602 * linux-low.h (thread_db_init): Remove use_events argument.
8603 * thread-db.c (thread_db_use_event): Remove global variable.
8604 (struct thread_db) <td_thr_event_enable_p>: Remove field.
8605 (struct thread_db) <td_create_bp>: Remove field.
8606 (thread_db_create_event): Remove function.
8607 (thread_db_enable_reporting): Likewise.
8608 (find_one_thread): Don't check for thread_db_use_events.
8609 (attach_thread): Likewise.
8610 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
8611 (try_thread_db_load_1): Don't check for thread_db_use_events.
8612 (thread_db_init): Remove use_events argument and thread events
8613 handling.
8614 (remove_thread_event_breakpoints): Remove function.
8615 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
8616
7d00775e
AT
86172015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8618
8619 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
8620 New function.
8621 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8622 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
8623 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8624 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
8625 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
8626 Initialize.
8627 * linux-crisv32-low.c (cris_supports_hardware_single_step):
8628 New function.
8629 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8630 * linux-low.c (can_hardware_single_step): Use
8631 supports_hardware_single_step.
8632 (can_software_single_step): New function.
8633 (start_step_over): Call can_software_single_step.
8634 (linux_supports_hardware_single_step): New function.
8635 (struct target_ops) <supports_software_single_step>: Initialize.
8636 * linux-low.h (struct linux_target_ops)
8637 <supports_hardware_single_step>: Initialize.
8638 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
8639 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8640 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
8641 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
8642 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
8643 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8644 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
8645 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8646 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
8647 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
8648 Initialize.
8649 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
8650 (struct linux_target_ops) <tile_supports_hardware_single_step>:
8651 Initialize.
8652 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
8653 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8654 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
8655 New function.
8656 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8657 * target.h (struct target_ops): <supports_software_single_step>:
8658 New field.
8659 (target_supports_software_single_step): New macro.
8660
2d97cd35
AT
86612015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8662
8663 * linux-low.c (linux_wait_1): Fix pc advance condition.
8664 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
8665 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
8666
769ef81f
AT
86672015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8668
8669 * linux-arm-low.c (arm_is_thumb_mode): New function.
8670 (arm_breakpoint_at): Use arm_is_thumb_mode.
8671 (arm_breakpoint_kind_from_current_state): New function.
8672 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
8673 Initialize.
8674 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
8675 (linux_breakpoint_kind_from_current_state): New function.
8676 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
8677 * linux-low.h (struct linux_target_ops)
8678 <breakpoint_kind_from_current_state>: New field.
8679 * target.h (struct target_ops): Likewise.
8680 (target_breakpoint_kind_from_current_state): New macro.
8681
1bebeeca
PA
86822015-11-30 Pedro Alves <palves@redhat.com>
8683
8684 * linux-low.c (linux_resume): Wake up the event loop before
8685 returning.
8686
a67a9fae
PA
86872015-11-30 Pedro Alves <palves@redhat.com>
8688
8689 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
8690 check.
8691 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
8692 to -1.
8693 * target.c (struct thread_search): New structure.
8694 (thread_search_callback): New function.
8695 (prev_general_thread): New global.
8696 (prepare_to_access_memory, done_accessing_memory): New functions.
8697 * target.h (prepare_to_access_memory, done_accessing_memory):
8698 Replace macros with function declarations.
8699
f2faf941
PA
87002015-11-30 Pedro Alves <palves@redhat.com>
8701
8702 PR 14618
8703 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
8704 report TARGET_WAITKIND_NO_RESUMED.
8705 * remote-utils.c (prepare_resume_reply): Handle
8706 TARGET_WAITKIND_NO_RESUMED.
8707 * server.c (report_no_resumed): New global.
8708 (handle_query) <qSupported>: Handle "no-resumed+". Report
8709 "no-resumed+" support.
8710 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
8711 return error if the client doesn't support no-resumed events.
8712 (push_stop_notification): New function.
8713 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
8714 events if the client supports them.
8715
a681f9c9
PA
87162015-11-30 Pedro Alves <palves@redhat.com>
8717
8718 * linux-low.c (thread_still_has_status_pending_p): Don't check
8719 vCont;t here.
8720 (lwp_resumed): New function.
8721 (status_pending_p_callback): Return early if the LWP is not
8722 supposed to be resumed.
8723
65706a29
PA
87242015-11-30 Pedro Alves <palves@redhat.com>
8725
8726 * linux-low.c (handle_extended_wait): Assert that the LWP's
8727 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
8728 thread create events, leave the new child's status pending.
8729 (linux_low_filter_event): If GDB wants to hear about thread exit
8730 events, leave the LWP marked dead and don't delete it.
8731 (linux_wait_for_event_filtered): Don't check for thread exit.
8732 (filter_exit_event): New function.
8733 (linux_wait_1): Use it, when returning an exit event.
8734 (linux_resume_one_lwp_throw): Assert that the LWP's
8735 waitstatus is TARGET_WAITKIND_IGNORE.
8736 * remote-utils.c (prepare_resume_reply): Handle
8737 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
8738 * server.c (report_thread_events): New global.
8739 (handle_general_set): Handle QThreadEvents.
8740 (handle_query) <qSupported>: Handle and report QThreadEvents+;
8741 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
8742 TARGET_WAITKIND_THREAD_EXITED.
8743 * server.h (report_thread_events): Declare.
8744
56cf4bed
PA
87452015-11-30 Pedro Alves <palves@redhat.com>
8746
8747 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
8748 the thread's last_resume_kind was resume_stop.
8749
500c1d85
PA
87502015-11-30 Pedro Alves <palves@redhat.com>
8751
8752 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
8753 before returning.
8754
de979965
PA
87552015-11-30 Pedro Alves <palves@redhat.com>
8756
8757 * server.c (handle_v_requests): Handle vCtrlC.
8758
34c65914
PA
87592015-11-30 Pedro Alves <palves@redhat.com>
8760
8761 * gdbthread.h (find_any_thread_of_pid): Declare.
8762 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
8763 functions.
8764 * server.c (handle_query): If current_thread is NULL, look for
8765 another thread of the selected process.
8766
79efa585 87672015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 8768 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
8769
8770 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
8771 * server.c (handle_qxfer_threads_worker): Refactor to include thread
8772 name in reply.
8773 * target.h (struct target_ops) <thread_name>: New field.
8774 (target_thread_name): New macro.
8775
80d82c19
JB
87762015-11-23 Joel Brobecker <brobecker@adacore.com>
8777
8778 * regcache.h (regcache_invalidate_pid): Add declaration.
8779 * regcache.c (regcache_invalidate_pid): New function, extracted
8780 from regcache_invalidate.
8781 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
8782 Add trivial documentation comment.
8783 * lynx-low.c: Use regcache_invalidate_pid instead of
8784 regcache_invalidate.
8785
64da5dd5
JB
87862015-11-23 Joel Brobecker <brobecker@adacore.com>
8787
8788 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
8789 and Elf64_auxv_t if the target is Android.
8790
37ce4055
DE
87912015-11-22 Doug Evans <xdje42@gmail.com>
8792
8793 * target.h: #include <sys/types.h>.
8794
06e03fff
PA
87952015-11-19 Pedro Alves <palves@redhat.com>
8796
8797 * linux-low.c (linux_process_qsupported): Change prototype.
8798 Adjust.
8799 * linux-low.h (struct linux_target_ops) <process_qsupported>:
8800 Change prototype.
8801 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
8802 and adjust to loop over all features.
8803 * server.c (handle_query) <qSupported>: Adjust to call
8804 target_process_qsupported once, passing it a vector of unprocessed
8805 features.
8806 * target.h (struct target_ops) <process_qsupported>: Change
8807 prototype.
8808 (target_process_qsupported): Adjust.
8809
9a084706
PA
88102015-11-19 Pedro Alves <palves@redhat.com>
8811
8812 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
8813 mode.
8814 * configure: Regenerate.
8815
dad44a1f
PA
88162015-11-19 Pedro Alves <palves@redhat.com>
8817
8818 * configure: Regenerate.
8819
231c0592
YQ
88202015-11-19 Yao Qi <yao.qi@linaro.org>
8821
8822 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
8823 type to uint32_t.
8824
6c1c9a8b
YQ
88252015-11-19 Yao Qi <yao.qi@linaro.org>
8826
8827 * linux-aarch64-low.c (enum aarch64_operand_type): New.
8828 (struct aarch64_operand): Move enum out.
8829
9caa3311
YQ
88302015-11-19 Yao Qi <yao.qi@linaro.org>
8831
8832 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
8833 struct user_fpsimd_state *.
8834 (aarch64_store_fpregset): Likewise.
8835
6a69a054
YQ
88362015-11-19 Yao Qi <yao.qi@linaro.org>
8837
8838 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
8839 struct user_pt_regs *.
8840 (aarch64_store_gregset): Likewise.
8841
1798301e
PA
88422015-11-18 Pedro Alves <palves@redhat.com>
8843
8844 * Makefile.in (all_object_files): Add $IPA_OBJS.
8845
ce7715e2
PA
88462015-11-17 Pedro Alves <palves@redhat.com>
8847
8848 * win32-low.c (win32_resume): Use gdb_signal_from_host,
8849 GDB_SIGNAL_0 and gdb_signal_to_string.
8850
c0879059
PA
88512015-11-17 Pedro Alves <palves@redhat.com>
8852
8853 * win32-low.c (handle_output_debug_string): Remove parameter.
8854 (win32_kill): Remove our_status local and adjust call to
8855 handle_output_debug_string.
8856 (get_child_debug_event): Adjust call to
8857 handle_output_debug_string.
8858
1996e237
SM
88592015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8860
8861 * linux-mips-low.c (mips_fill_gregset): Add cast.
8862 (mips_store_gregset): Likewise.
8863 (mips_fill_fpregset): Likewise.
8864 (mips_store_fpregset): Likewise.
8865
cbec665b
SM
88662015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8867
8868 * linux-mips-low.c (mips_add_watchpoint): Rename private to
8869 priv.
8870
eb3e3c67
SM
88712015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8872
8873 * linux-mips-low.c (mips_linux_new_thread): Change type of
8874 watch_type to enum target_hw_bp_type.
8875
171de4b8
SM
88762015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8877
8878 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
8879 Change return type to arm_hwbp_type.
8880
04248ead
SM
88812015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8882
8883 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
8884 (arm_store_gregset): Likewise.
8885 * linux-arm-low.c (arm_get_hwcap): Likewise.
8886 (arm_read_description): Likewise.
8887
04b3479c
SM
88882015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8889
8890 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
8891
2bc84e8a
SM
88922015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8893
8894 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
8895 (ppc_fill_vsxregset): Likewise.
8896 (ppc_store_vsxregset): Likewise.
8897 (ppc_fill_vrregset): Likewise.
8898 (ppc_store_vrregset): Likewise.
8899 (ppc_fill_evrregset): Likewise.
8900 (ppc_store_evrregset): Likewise.
8901
e6c5bb05
SM
89022015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8903
8904 * linux-ppc-low.c (ppc_usrregs_info): Remove
8905 forward-declaration.
8906 (ppc_arch_setup): Move lower in file.
8907
7ea45d72
SM
89082015-10-30 Simon Marchi <simon.marchi@ericsson.com>
8909
8910 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
8911 (ps_pdwrite): Likewise.
8912
69291610
HW
89132015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
8914
8915 * linux-arm-low.c (arm_new_thread): Move pointer dereference
8916 to after assert checks.
8917
b42945fd
SM
89182015-10-29 Simon Marchi <simon.marchi@ericsson.com>
8919
8920 * proc-service.c (ps_pdread): Add/adjust casts.
8921 (ps_pdwrite): Add/adjust casts.
8922
d6f85c84
SM
89232015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
8924
8925 * server.c (handle_search_memory_1): Cast return value of
8926 memmem.
8927
f98cd059
SM
89282015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
8929
8930 * server.c (write_qxfer_response): Change type of data to
8931 gdb_byte *.
8932
d2412fa5
PA
89332015-10-29 Pedro Alves <palves@redhat.com>
8934
8935 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
8936
c17414a2
PA
89372015-10-29 Pedro Alves <palves@redhat.com>
8938
8939 * tracepoint.c (clear_installed_tracepoints): Add casts.
8940
e053fbc4
PA
89412015-10-29 Pedro Alves <palves@redhat.com>
8942
8943 * server.c (handle_v_cont, process_serial_event): Add enum
8944 gdb_signal casts to signal parsing code.
8945
add67df8
PA
89462015-10-29 Pedro Alves <palves@redhat.com>
8947
8948 * linux-low.h (NULL_REGSET): Define.
8949 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
8950 * linux-arm-low.c (arm_regsets): Likewise.
8951 * linux-crisv32-low.c (cris_regsets): Likewise.
8952 * linux-m68k-low.c (m68k_regsets): Likewise.
8953 * linux-mips-low.c (mips_regsets): Likewise.
8954 * linux-nios2-low.c (nios2_regsets): Likewise.
8955 * linux-ppc-low.c (ppc_regsets): Likewise.
8956 * linux-s390-low.c (s390_regsets): Likewise.
8957 * linux-sh-low.c (sh_regsets): Likewise.
8958 * linux-sparc-low.c (sparc_regsets): Likewise.
8959 * linux-tic6x-low.c (tic6x_regsets): Likewise.
8960 * linux-tile-low.c (tile_regsets): Likewise.
8961 * linux-x86-low.c (x86_regsets): Likewise.
8962 * linux-xtensa-low.c (xtensa_regsets): Likewise.
8963
50bc912a
PA
89642015-10-29 Pedro Alves <palves@redhat.com>
8965
8966 * linux-low.h (NULL_REGSET): Define.
8967 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
8968 * linux-arm-low.c (arm_regsets): Likewise.
8969 * linux-crisv32-low.c (cris_regsets): Likewise.
8970 * linux-m68k-low.c (m68k_regsets): Likewise.
8971 * linux-mips-low.c (mips_regsets): Likewise.
8972 * linux-nios2-low.c (nios2_regsets): Likewise.
8973 * linux-ppc-low.c (ppc_regsets): Likewise.
8974 * linux-s390-low.c (s390_regsets): Likewise.
8975 * linux-sh-low.c (sh_regsets): Likewise.
8976 * linux-sparc-low.c (sparc_regsets): Likewise.
8977 * linux-tic6x-low.c (tic6x_regsets): Likewise.
8978 * linux-tile-low.c (tile_regsets): Likewise.
8979 * linux-x86-low.c (x86_regsets): Likewise.
8980 * linux-xtensa-low.c (xtensa_regsets): Likewise.
8981
682b2546
DE
89822015-10-26 Doug Evans <dje@google.com>
8983
8984 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
8985
963843d4
DE
89862015-10-26 Doug Evans <dje@google.com>
8987
8988 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
8989
d41401ac
DE
89902015-10-26 Doug Evans <dje@google.com>
8991
8992 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
8993 for debug_printf.
8994 (attach_thread, find_new_threads_callback): Ditto.
8995
3db28855
AT
89962015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
8997
8998 * mem-break.h (set_breakpoint_data): Remove.
8999
fb78e89c
AT
90002015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9001
9002 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9003 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9004 (initialize_low): Remove set_breakpoint_data call.
9005 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9006 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9007 (initialize_low): Remove set_breakpoint_data call.
9008 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9009 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9010 (initialize_low): Remove set_breakpoint_data call.
9011
2e6ee069
AT
90122015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9013
9014 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9015 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9016 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9017 * target.h (target_breakpoint_kind_from_pc): New macro.
9018
1652a986
AT
90192015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9020
9021 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9022 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9023 the default breakpoint kind.
9024
abeead09
AT
90252015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9026
9027 * linux-arm-low.c (arm_supports_z_point_type): Add software
9028 breakpoint support.
9029
b0b4b501
AT
90302015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9031
9032 * linux-arm-low.c: Refactor breakpoint definitions.
9033 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9034 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9035
8689682c
AT
90362015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9037
9038 * Makefile.in: Add arm.c/o.
9039 * configure.srv: Likewise.
9040 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9041 (arm_breakpoint_kind_from_pc): New function.
9042 (arm_sw_breakpoint_from_kind): Return proper kind.
9043 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9044
27165294
AT
90452015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9046
9047 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9048 removal.
9049 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9050 (struct raw_breakpoint) <size>: Remove.
9051 (struct raw_breakpoint) <kind>: Add.
9052 (bp_size): New function.
9053 (bp_opcode): Likewise.
9054 (find_raw_breakpoint_at): Adjust for kind.
9055 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9056 (remove_memory_breakpoint): Adjust for kind call bp_size.
9057 (set_raw_breakpoint_at): Adjust for kind.
9058 (set_breakpoint): Likewise.
9059 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9060 (delete_raw_breakpoint): Adjust for kind.
9061 (delete_breakpoint): Likewise.
9062 (find_gdb_breakpoint): Likewise.
9063 (set_gdb_breakpoint_1): Likewise.
9064 (set_gdb_breakpoint): Likewise.
9065 (delete_gdb_breakpoint_1): Likewise.
9066 (delete_gdb_breakpoint): Likewise.
9067 (uninsert_raw_breakpoint): Likewise.
9068 (reinsert_raw_breakpoint): Likewise.
9069 (set_breakpoint_data): Remove.
9070 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9071 (check_mem_read): Adjust for kind call bp_size.
9072 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9073 (clone_one_breakpoint): Adjust for kind.
9074 * mem-break.h (set_gdb_breakpoint): Likewise.
9075 (delete_gdb_breakpoint): Likewise.
9076 * server.c (process_serial_event): Likewise.
9077
dd373349
AT
90782015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9079
9080 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9081 (struct linux_target_ops) <breakpoint>: Remove.
9082 (struct linux_target_ops) <breakpoint_len>: Remove.
9083 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9084 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9085 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9086 (arm_sw_breakpoint_from_kind): New function.
9087 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9088 (struct linux_target_ops) <breakpoint>: Remove.
9089 (struct linux_target_ops) <breakpoint_len>: Remove.
9090 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9091 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9092 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9093 (struct linux_target_ops) <breakpoint>: Remove.
9094 (struct linux_target_ops) <breakpoint_len>: Remove.
9095 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9096 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9097 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9098 (struct linux_target_ops) <breakpoint>: Remove.
9099 (struct linux_target_ops) <breakpoint_len>: Remove.
9100 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9101 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9102 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9103 and sw_breakpoint_from_kind to increment the pc.
9104 (linux_breakpoint_kind_from_pc): New function.
9105 (linux_sw_breakpoint_from_kind): New function.
9106 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9107 (initialize_low): Call breakpoint_kind_from_pc and
9108 sw_breakpoint_from_kind to replace breakpoint_data/len.
9109 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9110 New field.
9111 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9112 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9113 (struct linux_target_ops) <breakpoint>: Remove.
9114 (struct linux_target_ops) <breakpoint_len>: Remove.
9115 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9116 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9117 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9118 (struct linux_target_ops) <breakpoint>: Remove.
9119 (struct linux_target_ops) <breakpoint_len>: Remove.
9120 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9121 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9122 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9123 (struct linux_target_ops) <breakpoint>: Remove.
9124 (struct linux_target_ops) <breakpoint_len>: Remove.
9125 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9126 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9127 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9128 (struct linux_target_ops) <breakpoint>: Remove.
9129 (struct linux_target_ops) <breakpoint_len>: Remove.
9130 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9131 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9132 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9133 (struct linux_target_ops) <breakpoint>: Remove.
9134 (struct linux_target_ops) <breakpoint_len>: Remove.
9135 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9136 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9137 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9138 (struct linux_target_ops) <breakpoint>: Remove.
9139 (struct linux_target_ops) <breakpoint_len>: Remove.
9140 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9141 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9142 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9143 (struct linux_target_ops) <breakpoint>: Remove.
9144 (struct linux_target_ops) <breakpoint_len>: Remove.
9145 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9146 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9147 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9148 (struct linux_target_ops) <breakpoint>: Remove.
9149 (struct linux_target_ops) <breakpoint_len>: Remove.
9150 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9151 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9152 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9153 (struct linux_target_ops) <breakpoint>: Remove.
9154 (struct linux_target_ops) <breakpoint_len>: Remove.
9155 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9156 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9157 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9158 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9159 (struct linux_target_ops) <breakpoint>: Remove.
9160 (struct linux_target_ops) <breakpoint_len>: Remove.
9161 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9162 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9163 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9164 (struct linux_target_ops) <breakpoint>: Remove.
9165 (struct linux_target_ops) <breakpoint_len>: Remove.
9166 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9167 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9168
4cd98a19
AT
91692015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9170
9171 * linux-cris-low.c (cris_get_pc): Remove void arg.
9172
774ee6d2
AR
91732015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9174
9175 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9176 variable name.
9177
833dcd29
AR
91782015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9179
9180 * inferiors.c (thread_pid_matches_callback): New function.
9181 (find_thread_process): New function.
9182 (remove_thread): Reset current_thread.
9183 (remove_process): Assert threads have been removed first.
9184
8d689ee5
YQ
91852015-10-15 Yao Qi <yao.qi@linaro.org>
9186
9187 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9188 if it is 3.
9189 (aarch64_remove_point): Likewise.
9190 * regcache.c (regcache_register_size): New function.
9191
1c2e1515
YQ
91922015-10-12 Yao Qi <yao.qi@linaro.org>
9193
9194 * linux-aarch64-low.c: Update all callers as emit_load_store
9195 is renamed to aarch64_emit_load_store.
9196
e1c587c3
YQ
91972015-10-12 Yao Qi <yao.qi@linaro.org>
9198
9199 * linux-aarch64-low.c: Update all callers of function renaming
9200 from emit_insn to aarch64_emit_insn.
9201
b6542f81
YQ
92022015-10-12 Yao Qi <yao.qi@linaro.org>
9203
9204 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9205 arch/aarch64-insn.h.
9206 (struct aarch64_memory_operand): Likewise.
9207 (ENCODE): Likewise.
9208 (emit_insn): Move to arch/aarch64-insn.c.
9209 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9210 (emit_load_store): Move to arch/aarch64-insn.c.
9211 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9212 (can_encode_int32): Remove.
9213
246994ce
YQ
92142015-10-12 Yao Qi <yao.qi@linaro.org>
9215
9216 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9217 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9218 (aarch64_relocate_instruction): Likewise.
9219 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9220 (struct aarch64_insn_visitor): Likewise.
9221
0badd99f
YQ
92222015-10-12 Yao Qi <yao.qi@linaro.org>
9223
9224 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9225 (struct aarch64_insn_visitor): New.
9226 (struct aarch64_insn_relocation_data): New.
9227 (aarch64_ftrace_insn_reloc_b): New function.
9228 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9229 (aarch64_ftrace_insn_reloc_cb): Likewise.
9230 (aarch64_ftrace_insn_reloc_tb): Likewise.
9231 (aarch64_ftrace_insn_reloc_adr): Likewise.
9232 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9233 (aarch64_ftrace_insn_reloc_others): Likewise.
9234 (visitor): New.
9235 (aarch64_relocate_instruction): Use visitor.
9236
dfaffe9d
YQ
92372015-10-12 Yao Qi <yao.qi@linaro.org>
9238
9239 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9240 int. Add argument buf.
9241 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9242 aarch64_relocate_instruction.
9243
70b439f0
YQ
92442015-10-12 Yao Qi <yao.qi@linaro.org>
9245
9246 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9247 argument insn. Remove local variable insn. Don't call
9248 target_read_uint32.
9249 (aarch64_install_fast_tracepoint_jump_pad): Call
9250 target_read_uint32.
9251
7781c06f
YQ
92522015-09-30 Yao Qi <yao.qi@linaro.org>
9253
9254 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9255 (emit_load_store_pair): Likewise.
9256
9a3c8263
SM
92572015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9258
9259 * dll.c (match_dll): Add cast(s).
9260 (unloaded_dll): Likewise.
9261 * linux-low.c (second_thread_of_pid_p): Likewise.
9262 (delete_lwp_callback): Likewise.
9263 (count_events_callback): Likewise.
9264 (select_event_lwp_callback): Likewise.
9265 (linux_set_resume_request): Likewise.
9266 * server.c (accumulate_file_name_length): Likewise.
9267 (emit_dll_description): Likewise.
9268 (handle_qxfer_threads_worker): Likewise.
9269 (visit_actioned_threads): Likewise.
9270 * thread-db.c (any_thread_of): Likewise.
9271 * tracepoint.c (same_process_p): Likewise.
9272 (match_blocktype): Likewise.
9273 (build_traceframe_info_xml): Likewise.
9274
224c3ddb
SM
92752015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9276
9277 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9278 assignment.
9279 (gdb_unparse_agent_expr): Likewise.
9280 * hostio.c (require_data): Likewise.
9281 (handle_pread): Likewise.
9282 * linux-low.c (disable_regset): Likewise.
9283 (fetch_register): Likewise.
9284 (store_register): Likewise.
9285 (get_dynamic): Likewise.
9286 (linux_qxfer_libraries_svr4): Likewise.
9287 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9288 (set_fast_tracepoint_jump): Likewise.
9289 (uninsert_fast_tracepoint_jumps_at): Likewise.
9290 (reinsert_fast_tracepoint_jumps_at): Likewise.
9291 (validate_inserted_breakpoint): Likewise.
9292 (clone_agent_expr): Likewise.
9293 * regcache.c (init_register_cache): Likewise.
9294 * remote-utils.c (putpkt_binary_1): Likewise.
9295 (decode_M_packet): Likewise.
9296 (decode_X_packet): Likewise.
9297 (look_up_one_symbol): Likewise.
9298 (relocate_instruction): Likewise.
9299 (monitor_output): Likewise.
9300 * server.c (handle_search_memory): Likewise.
9301 (handle_qxfer_exec_file): Likewise.
9302 (handle_qxfer_libraries): Likewise.
9303 (handle_qxfer): Likewise.
9304 (handle_query): Likewise.
9305 (handle_v_cont): Likewise.
9306 (handle_v_run): Likewise.
9307 (captured_main): Likewise.
9308 * target.c (write_inferior_memory): Likewise.
9309 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9310 * tracepoint.c (init_trace_buffer): Likewise.
9311 (add_tracepoint_action): Likewise.
9312 (add_traceframe): Likewise.
9313 (add_traceframe_block): Likewise.
9314 (cmd_qtdpsrc): Likewise.
9315 (cmd_qtdv): Likewise.
9316 (cmd_qtstatus): Likewise.
9317 (response_source): Likewise.
9318 (response_tsv): Likewise.
9319 (cmd_qtnotes): Likewise.
9320 (gdb_collect): Likewise.
9321 (initialize_tracepoint): Likewise.
9322
afbe19f8
PL
93232015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9324
9325 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9326 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9327 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9328 <NOP>: New.
9329 (enum aarch64_condition_codes): New enum.
9330 (w0): New static global.
9331 (fp): Likewise.
9332 (lr): Likewise.
9333 (struct aarch64_memory_operand) <type>: New
9334 MEMORY_OPERAND_POSTINDEX type.
9335 (postindex_memory_operand): New helper function.
9336 (emit_ret): New function.
9337 (emit_load_store_pair): New function, factored out of emit_stp
9338 with support for MEMORY_OPERAND_POSTINDEX.
9339 (emit_stp): Rewrite using emit_load_store_pair.
9340 (emit_ldp): New function.
9341 (emit_load_store): Likewise.
9342 (emit_ldr): Mention post-index instruction in comment.
9343 (emit_ldrh): New function.
9344 (emit_ldrb): New function.
9345 (emit_ldrsw): Mention post-index instruction in comment.
9346 (emit_str): Likewise.
9347 (emit_subs): New function.
9348 (emit_cmp): Likewise.
9349 (emit_and): Likewise.
9350 (emit_orr): Likewise.
9351 (emit_orn): Likewise.
9352 (emit_eor): Likewise.
9353 (emit_mvn): Likewise.
9354 (emit_lslv): Likewise.
9355 (emit_lsrv): Likewise.
9356 (emit_asrv): Likewise.
9357 (emit_mul): Likewise.
9358 (emit_sbfm): Likewise.
9359 (emit_sbfx): Likewise.
9360 (emit_ubfm): Likewise.
9361 (emit_ubfx): Likewise.
9362 (emit_csinc): Likewise.
9363 (emit_cset): Likewise.
9364 (emit_nop): Likewise.
9365 (emit_ops_insns): New helper function.
9366 (emit_pop): Likewise.
9367 (emit_push): Likewise.
9368 (aarch64_emit_prologue): New function.
9369 (aarch64_emit_epilogue): Likewise.
9370 (aarch64_emit_add): Likewise.
9371 (aarch64_emit_sub): Likewise.
9372 (aarch64_emit_mul): Likewise.
9373 (aarch64_emit_lsh): Likewise.
9374 (aarch64_emit_rsh_signed): Likewise.
9375 (aarch64_emit_rsh_unsigned): Likewise.
9376 (aarch64_emit_ext): Likewise.
9377 (aarch64_emit_log_not): Likewise.
9378 (aarch64_emit_bit_and): Likewise.
9379 (aarch64_emit_bit_or): Likewise.
9380 (aarch64_emit_bit_xor): Likewise.
9381 (aarch64_emit_bit_not): Likewise.
9382 (aarch64_emit_equal): Likewise.
9383 (aarch64_emit_less_signed): Likewise.
9384 (aarch64_emit_less_unsigned): Likewise.
9385 (aarch64_emit_ref): Likewise.
9386 (aarch64_emit_if_goto): Likewise.
9387 (aarch64_emit_goto): Likewise.
9388 (aarch64_write_goto_address): Likewise.
9389 (aarch64_emit_const): Likewise.
9390 (aarch64_emit_call): Likewise.
9391 (aarch64_emit_reg): Likewise.
9392 (aarch64_emit_pop): Likewise.
9393 (aarch64_emit_stack_flush): Likewise.
9394 (aarch64_emit_zero_ext): Likewise.
9395 (aarch64_emit_swap): Likewise.
9396 (aarch64_emit_stack_adjust): Likewise.
9397 (aarch64_emit_int_call_1): Likewise.
9398 (aarch64_emit_void_call_2): Likewise.
9399 (aarch64_emit_eq_goto): Likewise.
9400 (aarch64_emit_ne_goto): Likewise.
9401 (aarch64_emit_lt_goto): Likewise.
9402 (aarch64_emit_le_goto): Likewise.
9403 (aarch64_emit_gt_goto): Likewise.
9404 (aarch64_emit_ge_got): Likewise.
9405 (aarch64_emit_ops_impl): New static global variable.
9406 (aarch64_emit_ops): New target function, return
9407 &aarch64_emit_ops_impl.
9408 (struct linux_target_ops): Install it.
9409
bb903df0
PL
94102015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9411
9412 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9413 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9414 aarch64-ipa.o.
9415 * linux-aarch64-ipa.c: New file.
9416 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9417 and endian.h.
9418 (aarch64_get_thread_area): New target method.
9419 (extract_signed_bitfield): New helper function.
9420 (aarch64_decode_ldr_literal): New function.
9421 (enum aarch64_opcodes): New enum.
9422 (struct aarch64_register): New struct.
9423 (struct aarch64_operand): New struct.
9424 (x0): New static global.
9425 (x1): Likewise.
9426 (x2): Likewise.
9427 (x3): Likewise.
9428 (x4): Likewise.
9429 (w2): Likewise.
9430 (ip0): Likewise.
9431 (sp): Likewise.
9432 (xzr): Likewise.
9433 (aarch64_register): New helper function.
9434 (register_operand): Likewise.
9435 (immediate_operand): Likewise.
9436 (struct aarch64_memory_operand): New struct.
9437 (offset_memory_operand): New helper function.
9438 (preindex_memory_operand): Likewise.
9439 (enum aarch64_system_control_registers): New enum.
9440 (ENCODE): New macro.
9441 (emit_insn): New helper function.
9442 (emit_b): New function.
9443 (emit_bcond): Likewise.
9444 (emit_cb): Likewise.
9445 (emit_tb): Likewise.
9446 (emit_blr): Likewise.
9447 (emit_stp): Likewise.
9448 (emit_ldp_q_offset): Likewise.
9449 (emit_stp_q_offset): Likewise.
9450 (emit_load_store): Likewise.
9451 (emit_ldr): Likewise.
9452 (emit_ldrsw): Likewise.
9453 (emit_str): Likewise.
9454 (emit_ldaxr): Likewise.
9455 (emit_stxr): Likewise.
9456 (emit_stlr): Likewise.
9457 (emit_data_processing_reg): Likewise.
9458 (emit_data_processing): Likewise.
9459 (emit_add): Likewise.
9460 (emit_sub): Likewise.
9461 (emit_mov): Likewise.
9462 (emit_movk): Likewise.
9463 (emit_mov_addr): Likewise.
9464 (emit_mrs): Likewise.
9465 (emit_msr): Likewise.
9466 (emit_sevl): Likewise.
9467 (emit_wfe): Likewise.
9468 (append_insns): Likewise.
9469 (can_encode_int32_in): New helper function.
9470 (aarch64_relocate_instruction): New function.
9471 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9472 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9473 (struct linux_target_ops): Install aarch64_get_thread_area,
9474 aarch64_install_fast_tracepoint_jump_pad and
9475 aarch64_get_min_fast_tracepoint_insn_len.
9476
787749ea
PL
94772015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9478
9479 * Makefile.in (aarch64-insn.o): New rule.
9480 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9481
9812b2e6
YQ
94822015-09-21 Yao Qi <yao.qi@linaro.org>
9483
9484 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9485
18fe412b
YQ
94862015-09-21 Yao Qi <yao.qi@linaro.org>
9487
9488 * tracepoint.c (max_jump_pad_size): Remove.
9489
a0cc84cd
YQ
94902015-09-18 Yao Qi <yao.qi@linaro.org>
9491
9492 * linux-aarch64-low.c: Don't include sys/uio.h.
9493 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9494
d78908cf
WW
94952015-09-16 Wei-cheng Wang <cole945@gmail.com>
9496
9497 * tracepoint.c (eval_result_type): Change prototype.
9498 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9499
d57e0d50
PA
95002015-09-15 Pedro Alves <palves@redhat.com>
9501
9502 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9503 Check whether to report exec events instead of checking whether
9504 multiprocess is enabled.
9505
5a676acc
PA
95062015-09-15 Pedro Alves <palves@redhat.com>
9507
9508 PR remote/18965
9509 * remote-utils.c (prepare_resume_reply): Merge
9510 TARGET_WAITKIND_VFORK_DONE switch case with the
9511 TARGET_WAITKIND_FORKED case.
9512
7c5d0fad
YQ
95132015-09-15 Yao Qi <yao.qi@linaro.org>
9514
9515 * server.c (handle_query): Check string comparison using
9516 "else if" instead of "if".
9517
750ce8d1
YQ
95182015-09-15 Yao Qi <yao.qi@linaro.org>
9519
9520 * server.c (vCont_supported): New global variable.
9521 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9522 matches. Append ";vContSupported+" to own_buf.
9523 (handle_v_requests): Append ";s;S" to own_buf if target supports
9524 hardware single step or vCont_supported is false.
9525 (capture_main): Set vCont_supported to zero.
9526
70b90b91
YQ
95272015-09-15 Yao Qi <yao.qi@linaro.org>
9528
9529 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9530 it to ...
9531 (linux_supports_hardware_single_step): ... New function.
9532 (linux_target_ops): Update.
9533 * lynx-low.c (lynx_target_ops): Set field
9534 supports_hardware_single_step to target_can_do_hardware_single_step.
9535 * nto-low.c (nto_target_ops): Likewise.
9536 * spu-low.c (spu_target_ops): Likewise.
9537 * win32-low.c (win32_target_ops): Likewise.
9538 * target.c (target_can_do_hardware_single_step): New function.
9539 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9540 Remove. <supports_hardware_single_step>: New field.
9541 (target_supports_conditional_breakpoints): Remove.
9542 (target_supports_hardware_single_step): New macro.
9543 (target_can_do_hardware_single_step): Declare.
9544 * server.c (handle_query): Use target_supports_hardware_single_step
9545 instead of target_supports_conditional_breakpoints.
9546
ade90bde
YQ
95472015-09-15 Yao Qi <yao.qi@linaro.org>
9548
9549 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
9550 function.
9551 (struct linux_target_ops the_low_target): Install
9552 aarch64_linux_siginfo_fixup.
9553
94585166
DB
95542015-09-11 Don Breazeal <donb@codesourcery.com>
9555 Luis Machado <lgustavo@codesourcery.com>
9556
9557 * linux-low.c (linux_mourn): Static declaration.
9558 (linux_arch_setup): Move in front of
9559 handle_extended_wait.
9560 (linux_arch_setup_thread): New function.
9561 (handle_extended_wait): Handle exec events. Call
9562 linux_arch_setup_thread. Make event_lwp argument a
9563 pointer-to-a-pointer.
9564 (check_zombie_leaders): Do not check stopped threads.
9565 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
9566 (linux_low_filter_event): Add lwp and thread for exec'ing
9567 non-leader thread if leader thread has been deleted.
9568 Refactor code into linux_arch_setup_thread and call it.
9569 Pass child lwp pointer by reference to handle_extended_wait.
9570 (linux_wait_for_event_filtered): Update comment.
9571 (linux_wait_1): Prevent clobbering exec event status.
9572 (linux_supports_exec_events): New function.
9573 (linux_target_ops) <supports_exec_events>: Initialize new member.
9574 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
9575 new member.
9576 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
9577 * server.c (report_exec_events): New global variable.
9578 (handle_query): Handle qSupported query for exec-events feature.
9579 (captured_main): Initialize report_exec_events.
9580 * server.h (report_exec_events): Declare new global variable.
9581 * target.h (struct target_ops) <supports_exec_events>: New
9582 member.
9583 (target_supports_exec_events): New macro.
9584 * win32-low.c (win32_target_ops) <supports_exec_events>:
9585 Initialize new member.
9586
0568462b
MM
95872015-09-09 Markus Metzger <markus.t.metzger@intel.com>
9588
9589 * linux-low.c (linux_low_enable_btrace): Remove.
9590 (linux_target_ops): Replace linux_low_enable_btrace with
9591 linux_enable_btrace.
9592
39edd165
YQ
95932015-09-03 Yao Qi <yao.qi@linaro.org>
9594
9595 * linux-aarch64-low.c (aarch64_insert_point): Call
9596 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
9597 returns true.
9598
1db33b5a
UW
95992015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9600
9601 * linux-low.c (check_stopped_by_breakpoint): Use
9602 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
9603
ab290430
PA
96042015-08-27 Pedro Alves <palves@redhat.com>
9605
9606 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
9607
8d749320
SM
96082015-08-26 Simon Marchi <simon.marchi@ericsson.com>
9609
6711b7f8
SM
9610 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
9611 the XNEW-family equivalent.
8d749320
SM
9612 (compile_bytecodes): Likewise.
9613 * dll.c (loaded_dll): Likewise.
9614 * event-loop.c (append_callback_event): Likewise.
9615 (create_file_handler): Likewise.
9616 (create_file_event): Likewise.
9617 * hostio.c (handle_open): Likewise.
9618 * inferiors.c (add_thread): Likewise.
9619 (add_process): Likewise.
9620 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
9621 * linux-arm-low.c (arm_new_process): Likewise.
9622 (arm_new_thread): Likewise.
9623 * linux-low.c (add_to_pid_list): Likewise.
9624 (linux_add_process): Likewise.
9625 (handle_extended_wait): Likewise.
9626 (add_lwp): Likewise.
9627 (enqueue_one_deferred_signal): Likewise.
9628 (enqueue_pending_signal): Likewise.
9629 (linux_resume_one_lwp_throw): Likewise.
9630 (linux_resume_one_thread): Likewise.
9631 (linux_read_memory): Likewise.
9632 (linux_write_memory): Likewise.
9633 * linux-mips-low.c (mips_linux_new_process): Likewise.
9634 (mips_linux_new_thread): Likewise.
9635 (mips_add_watchpoint): Likewise.
9636 * linux-x86-low.c (initialize_low_arch): Likewise.
9637 * lynx-low.c (lynx_add_process): Likewise.
9638 * mem-break.c (set_raw_breakpoint_at): Likewise.
9639 (set_breakpoint): Likewise.
9640 (add_condition_to_breakpoint): Likewise.
9641 (add_commands_to_breakpoint): Likewise.
9642 (clone_agent_expr): Likewise.
9643 (clone_one_breakpoint): Likewise.
9644 * regcache.c (new_register_cache): Likewise.
9645 * remote-utils.c (look_up_one_symbol): Likewise.
9646 * server.c (queue_stop_reply): Likewise.
9647 (start_inferior): Likewise.
9648 (queue_stop_reply_callback): Likewise.
9649 (handle_target_event): Likewise.
9650 * spu-low.c (fetch_ppc_memory): Likewise.
9651 (store_ppc_memory): Likewise.
9652 * target.c (set_target_ops): Likewise.
9653 * thread-db.c (thread_db_load_search): Likewise.
9654 (try_thread_db_load_1): Likewise.
9655 * tracepoint.c (add_tracepoint): Likewise.
9656 (add_tracepoint_action): Likewise.
9657 (create_trace_state_variable): Likewise.
9658 (cmd_qtdpsrc): Likewise.
9659 (cmd_qtro): Likewise.
9660 (add_while_stepping_state): Likewise.
9661 * win32-low.c (child_add_thread): Likewise.
9662 (get_image_name): Likewise.
9663
ed8b7b42
YQ
96642015-08-25 Yao Qi <yao.qi@linaro.org>
9665
9666 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
9667
db3cb7cb
YQ
96682015-08-25 Yao Qi <yao.qi@linaro.org>
9669
9670 * Makefile.in (aarch64-linux.o): New rule.
9671 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
9672 srv_tgtobj.
9673 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
9674 (aarch64_init_debug_reg_state): Make it extern.
9675 (aarch64_linux_prepare_to_resume): Remove.
9676
f6011a1c
YQ
96772015-08-25 Yao Qi <yao.qi@linaro.org>
9678
9679 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
9680 lwp_arch_private_info and ptid_of_lwp.
9681
88e2cf7e
YQ
96822015-08-25 Yao Qi <yao.qi@linaro.org>
9683
9684 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
9685 Find proc_info by find_process_pid. All callers updated.
9686
5e35436e
YQ
96872015-08-25 Yao Qi <yao.qi@linaro.org>
9688
9689 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
9690 Remove.
9691 (debug_reg_change_callback): Remove.
9692 (aarch64_notify_debug_reg_change): Remove.
9693
4a8a7965
YQ
96942015-08-25 Yao Qi <yao.qi@linaro.org>
9695
9696 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
9697 Call current_lwp_ptid.
9698
32a271ee
YQ
96992015-08-25 Yao Qi <yao.qi@linaro.org>
9700
9701 * linux-aarch64-low.c (debug_reg_change_callback): Use
9702 debug_printf.
9703
0d51c8d7
YQ
97042015-08-25 Yao Qi <yao.qi@linaro.org>
9705
9706 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
9707
31a43dd5
YQ
97082015-08-25 Yao Qi <yao.qi@linaro.org>
9709
9710 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
9711
8ee52567
YQ
97122015-08-25 Yao Qi <yao.qi@linaro.org>
9713
9714 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
9715 the code.
9716
ff3f0f45
YQ
97172015-08-25 Yao Qi <yao.qi@linaro.org>
9718
9719 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
9720 Remove.
9721 (debug_reg_change_callback): Remove argument entry and add argument
9722 lwp. Remove local variable thread. Don't print thread id in the
9723 debugging output. Don't check whether pid of thread equals to pid.
9724 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
9725 iterate_over_lwps instead find_inferior.
9726
3d40fbb5
PA
97272015-08-24 Pedro Alves <palves@redhat.com>
9728
9729 * inferiors.c (get_first_process): New function.
9730 * inferiors.h (get_first_process): New declaration.
9731 * remote-utils.c (read_ptid): Default to the first process in the
9732 list, instead of to the current thread's process.
9733
438e1e42
PA
97342015-08-24 Pedro Alves <palves@redhat.com>
9735
9736 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
9737 * event-loop.c: Likewise.
9738 * remote-utils.c: Likewise.
9739 * tracepoint.c: Likewise.
9740
a8c6d4fc
PA
97412015-08-24 Pedro Alves <palves@redhat.com>
9742
9743 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
9744 ptid_get_lwp.
9745
99b0bb12
PA
97462015-08-21 Pedro Alves <palves@redhat.com>
9747
9748 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
9749 instead of literal 1.
9750
f8904751
PA
97512015-08-21 Pedro Alves <palves@redhat.com>
9752
9753 * tdesc.c (default_description): Explicitly zero-initialize.
9754
465a859e
PA
97552015-08-21 Pedro Alves <palves@redhat.com>
9756
9757 PR gdb/18749
9758 * inferiors.c (remove_thread): Discard any pending stop reply for
9759 this thread.
9760 * server.c (remove_all_on_match_pid): Rename to ...
9761 (remove_all_on_match_ptid): ... this. Work with a filter ptid
9762 instead of a pid.
9763 (discard_queued_stop_replies): Change parameter to a ptid. Now
9764 extern.
9765 (handle_v_kill, kill_inferior_callback, captured_main)
9766 (process_serial_event): Adjust.
9767 * server.h (discard_queued_stop_replies): Declare.
9768
f0db101d
PA
97692015-08-21 Pedro Alves <palves@redhat.com>
9770
9771 * linux-low.c (wait_for_sigstop): Always switch to no thread
9772 selected if the previously current thread dies.
9773 * lynx-low.c (lynx_request_interrupt): Use the first thread's
9774 process instead of the current thread's.
9775 * remote-utils.c (input_interrupt): Don't check if there's no
9776 current thread.
9777 * server.c (gdb_read_memory, gdb_write_memory): If setting the
9778 current thread to the general thread fails, error out.
9779 (handle_qxfer_auxv, handle_qxfer_libraries)
9780 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
9781 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
9782 (handle_query): Check if there's a thread selected instead of
9783 checking whether there's any thread in the thread list.
9784 (handle_qxfer_threads, handle_qxfer_btrace)
9785 (handle_qxfer_btrace_conf): Don't error out early if there's no
9786 thread in the thread list.
9787 (handle_v_cont, myresume): Don't set the current thread to the
9788 continue thread.
9789 (process_serial_event) <Hg handling>: Also set thread_id if the
9790 previous general thread is still alive.
9791 (process_serial_event) <g/G handling>: If setting the current
9792 thread to the general thread fails, error out.
9793 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
9794 thread's lwp instead of the current thread's.
9795 * target.c (set_desired_thread): If the desired thread was not
9796 found, leave the current thread pointing to NULL. Return an int
9797 (boolean) indicating success.
9798 * target.h (set_desired_thread): Change return type to int.
9799
40045d91
MF
98002015-08-20 Max Filippov <jcmvbkbc@gmail.com>
9801
9802 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
9803 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
9804 #includes.
9805 (ps_get_thread_area): New function.
9806
45face3b
GB
98072015-08-19 Gary Benson <gbenson@redhat.com>
9808
9809 * hostio.c (handle_pread): Do not attempt to read more data
9810 than hostio_reply_with_data can fit in a packet.
9811
16d5f642
JB
98122015-08-18 Joel Brobecker <brobecker@adacore.com>
9813
9814 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
9815
a738da3a
MF
98162015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
9817
9818 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
9819
33ebda9d
PA
98202015-08-06 Pedro Alves <palves@redhat.com>
9821
9822 * tracepoint.c (expr_eval_result): Now an int.
9823
a44892be
PA
98242015-08-06 Pedro Alves <palves@redhat.com>
9825
9826 * gdbthread.h (struct regcache): Forward declare.
9827 (struct thread_info) <regcache_data>: Now a struct regcache
9828 pointer.
9829 * inferiors.c (inferior_regcache_data)
9830 (set_inferior_regcache_data): Now work with struct regcache
9831 pointers.
9832 * inferiors.h (struct regcache): Forward declare.
9833 (inferior_regcache_data, set_inferior_regcache_data): Now work
9834 with struct regcache pointers.
9835 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
9836 (free_register_cache_thread): Remove struct regcache pointer
9837 casts.
9838
608a1e46
PA
98392015-08-06 Pedro Alves <palves@redhat.com>
9840
9841 * server.c (captured_main): On error, print the exception message
9842 to stderr, and if run_once is set, throw a quit.
9843
f0ce0d3a
PA
98442015-08-06 Pedro Alves <palves@redhat.com>
9845
9846 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
9847 the current thread.
9848
bf47e248
PA
98492015-08-06 Pedro Alves <palves@redhat.com>
9850
9851 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
9852 reading beyond the passed in buffer length.
9853
b6b9ffcc
PL
98542015-08-06 Pierre Langlois <pierre.langlois@arm.com>
9855
9856 * tracepoint.c (symbol_list) <required>: Remove.
9857
863d01bd
PA
98582015-08-06 Pedro Alves <palves@redhat.com>
9859
9860 * linux-low.c (handle_extended_wait): Set the fork child's suspend
9861 count if stopping and suspending threads.
9862 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
9863 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
9864 (linux_detach): Complete an ongoing step-over.
9865 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
9866 throughout.
9867 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
9868 (linux_wait_1): If passing a signal to the inferior after
9869 finishing a step-over, unsuspend and re-resume all lwps. If we
9870 see a single-step event but the thread should be continuing, don't
9871 pass the trap to gdb.
9872 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
9873 internal_error instead of gdb_assert.
9874 (enqueue_pending_signal): New function.
9875 (check_ptrace_stopped_lwp_gone): Add debug output.
9876 (start_step_over): Use internal_error instead of gdb_assert.
9877 (complete_ongoing_step_over): New function.
9878 (linux_resume_one_thread): Don't resume a suspended thread.
9879 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
9880 it stepping.
9881
00db26fa
PA
98822015-08-06 Pedro Alves <palves@redhat.com>
9883
9884 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
9885 (linux_thread_alive): Use lwp_is_marked_dead.
9886 (extended_event_reported): Delete.
9887 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
9888 instead of extended_event_reported.
9889 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
9890 as well.
9891 (lwp_is_marked_dead): New function.
9892 (lwp_running): Use lwp_is_marked_dead.
9893 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
9894 comment.
9895
ad071a30
PA
98962015-08-06 Pedro Alves <palves@redhat.com>
9897
9898 * linux-low.c (linux_wait_1): Move fork event output out of the
9899 !report_to_gdb check. Pass event_child->waitstatus to
9900 target_waitstatus_to_string instead of ourstatus.
9901
524b57e6
YQ
99022015-08-04 Yao Qi <yao.qi@linaro.org>
9903
9904 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
9905 if current_thread is 32 bit.
9906
6085d6f6
YQ
99072015-08-04 Yao Qi <yao.qi@linaro.org>
9908
9909 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9910 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9911 * server.c (extended_protocol): Remove "static".
9912 * server.h (extended_protocol): Declare it.
9913
8a7e4587
YQ
99142015-08-04 Yao Qi <yao.qi@linaro.org>
9915
9916 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
9917 both aarch64 and aarch32.
9918 (aarch64_set_pc): Likewise.
9919
3b53ae99
YQ
99202015-08-04 Yao Qi <yao.qi@linaro.org>
9921
9922 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
9923 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
9924 arm-with-neon.xml to srv_xmlfiles.
9925 * linux-aarch64-low.c: Include linux-aarch32-low.h.
9926 (is_64bit_tdesc): New function.
9927 (aarch64_linux_read_description): New function.
9928 (aarch64_arch_setup): Call aarch64_linux_read_description.
9929 (regs_info): Rename to regs_info_aarch64.
9930 (aarch64_regs_info): Return right regs_info.
9931 (initialize_low_arch): Call initialize_low_arch_aarch32.
9932
bd9e6534
YQ
99332015-08-04 Yao Qi <yao.qi@linaro.org>
9934
9935 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
9936 * linux-aarch32-low.c: New file.
9937 * linux-aarch32-low.h: New file.
9938 * linux-arm-low.c (arm_fill_gregset): Move it to
9939 linux-aarch32-low.c.
9940 (arm_store_gregset): Likewise.
9941 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
9942 (arm_store_vfpregset): Call arm_store_vfpregset_num.
9943 (arm_arch_setup): Check if PTRACE_GETREGSET works.
9944 (regs_info): Rename to regs_info_arm.
9945 (arm_regs_info): Return regs_info_aarch32 if
9946 have_ptrace_getregset is 1 and target description is
9947 arm_with_neon or arm_with_vfpv3.
9948 (initialize_low_arch): Don't call init_registers_arm_with_neon.
9949 Call initialize_low_arch_aarch32 instead.
9950
ded48a5e
YQ
99512015-08-04 Yao Qi <yao.qi@linaro.org>
9952
9953 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
9954 * linux-low.c: ... here.
9955 * linux-low.h (have_ptrace_getregset): Declare it.
9956
96e9210f
PA
99572015-08-04 Pedro Alves <palves@redhat.com>
9958
9959 * thread-db.c (struct thread_db): Use new typedefs.
9960 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
9961 CHK calls.
9962 (disable_thread_event_reporting): Cast result of dlsym to
9963 destination function pointer type.
9964 (thread_db_mourn): Use td_ta_delete_ftype.
9965
af60a1ef
SL
99662015-08-03 Sandra Loosemore <sandra@codesourcery.com>
9967
9968 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
9969 arch variant.
9970 (CDX_BREAKPOINT): Define for R2.
9971 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
9972 (the_low_target): Add comments.
9973
e8b41681
YQ
99742015-07-30 Yao Qi <yao.qi@linaro.org>
9975
9976 * linux-arm-low.c (arm_hwcap): Remove it.
9977 (arm_read_description): New local variable arm_hwcap. Don't
9978 set arm_hwcap to zero.
9979
89abb039
YQ
99802015-07-30 Yao Qi <yao.qi@linaro.org>
9981
9982 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
9983 Use regcache->tdesc instead.
9984 (arm_store_wmmxregset): Likewise.
9985 (arm_fill_vfpregset): Likewise.
9986 (arm_store_vfpregset): Likewise.
9987
deca266c
YQ
99882015-07-30 Yao Qi <yao.qi@linaro.org>
9989
9990 * linux-arm-low.c: Include arch/arm.h.
9991 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
9992 (arm_store_gregset): Likewise.
9993
aa58a496
SM
99942015-07-29 Simon Marchi <simon.marchi@ericsson.com>
9995
9996 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
9997 ptrace's 4th parameter.
9998
50904b25
YQ
99992015-07-27 Yao Qi <yao.qi@linaro.org>
10000
10001 * configure.srv (case aarch64*-*-linux*): Don't set
10002 srv_linux_usrregs.
10003
5826e159
PA
100042015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10005
10006 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10007 sys/ptrace.h.
10008 * linux-arm-low.c: Likewise.
10009 * linux-cris-low.c: Likewise.
10010 * linux-crisv32-low.c: Likewise.
10011 * linux-low.c: Likewise.
10012 * linux-m68k-low.c: Likewise.
10013 * linux-mips-low.c: Likewise.
10014 * linux-nios2-low.c: Likewise.
10015 * linux-s390-low.c: Likewise.
10016 * linux-sparc-low.c: Likewise.
10017 * linux-tic6x-low.c: Likewise.
10018 * linux-tile-low.c: Likewise.
10019 * linux-x86-low.c: Likewise.
10020
54019719
PA
100212015-07-24 Pedro Alves <palves@redhat.com>
10022
10023 * config.in: Regenerate.
10024 * configure: Regenerate.
10025
eb7aa561
PA
100262015-07-24 Pedro Alves <palves@redhat.com>
10027
10028 * acinclude.m4: Include ../ptrace.m4.
10029 * configure.ac: Call GDB_AC_PTRACE.
10030 * config.in, configure: Regenerate.
10031
55d7b841
YQ
100322015-07-24 Yao Qi <yao.qi@linaro.org>
10033
10034 * linux-low.c (linux_create_inferior): Remove setting to
10035 proc->priv->new_inferior.
10036 (linux_attach): Likewise.
10037 (linux_low_filter_event): Likewise.
10038 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10039
c06cbd92
YQ
100402015-07-24 Yao Qi <yao.qi@linaro.org>
10041
10042 * linux-low.c (linux_arch_setup): New function.
10043 (linux_low_filter_event): If proc->tdesc is NULL and
10044 proc->attached is true, call the_low_target.arch_setup.
10045 Otherwise, keep status pending, and return.
10046 (linux_resume_one_lwp_throw): Don't call get_pc if
10047 thread->while_stepping isn't NULL. Don't call
10048 get_thread_regcache if proc->tdesc is NULL.
10049 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10050 (linux_target_ops): Install arch_setup.
10051 * server.c (start_inferior): Call the_target->arch_setup.
10052 * target.h (struct target_ops) <arch_setup>: New field.
10053 (target_arch_setup): New marco.
10054 * lynx-low.c (lynx_target_ops): Update.
10055 * nto-low.c (nto_target_ops): Update.
10056 * spu-low.c (spu_target_ops): Update.
10057 * win32-low.c (win32_target_ops): Update.
10058
5ae3ebba
YQ
100592015-07-24 Yao Qi <yao.qi@linaro.org>
10060
10061 * linux-low.c (linux_add_process): Don't set
10062 proc->priv->new_inferior.
10063 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10064 (linux_attach): Likewise.
10065
eb97750b
YQ
100662015-07-24 Yao Qi <yao.qi@linaro.org>
10067
10068 * server.c (start_inferior): Code refactor.
10069
51aee833
YQ
100702015-07-24 Yao Qi <yao.qi@linaro.org>
10071
10072 * server.c (process_serial_event): Set general_thread.
10073
af1b22f3
YQ
100742015-07-21 Yao Qi <yao.qi@linaro.org>
10075
10076 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10077 aarch64_linux_get_debug_reg_capacity.
10078
554717a3
YQ
100792015-07-17 Yao Qi <yao.qi@linaro.org>
10080
10081 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10082 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10083 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10084 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10085 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10086 (AARCH64_HWP_ALIGNMENT): Likewise.
10087 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10088 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10089 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10090 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10091 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10092 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10093 (struct aarch64_debug_reg_state): Likewise.
10094 (struct arch_lwp_info): Likewise.
10095 (aarch64_align_watchpoint): Likewise.
10096 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10097 (aarch64_watchpoint_length): Likewise.
10098 (aarch64_point_encode_ctrl_reg): Likewise
10099 (aarch64_point_is_aligned): Likewise.
10100 (aarch64_align_watchpoint): Likewise.
10101 (aarch64_linux_set_debug_regs):
10102 (aarch64_dr_state_insert_one_point): Likewise.
10103 (aarch64_dr_state_remove_one_point): Likewise.
10104 (aarch64_handle_breakpoint): Likewise.
10105 (aarch64_handle_aligned_watchpoint): Likewise.
10106 (aarch64_handle_unaligned_watchpoint): Likewise.
10107 (aarch64_handle_watchpoint): Likewise.
10108
c67ca4de
YQ
101092015-07-17 Yao Qi <yao.qi@linaro.org>
10110
10111 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10112 and don't aarch64_get_debug_reg_state. All callers update.
10113 (aarch64_handle_aligned_watchpoint): Likewise.
10114 (aarch64_handle_unaligned_watchpoint): Likewise.
10115 (aarch64_handle_watchpoint): Likewise.
10116 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10117 (aarch64_remove_point): Likewise.
10118
25abf979
YQ
101192015-07-17 Yao Qi <yao.qi@linaro.org>
10120
10121 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10122 debug_printf.
10123 (aarch64_handle_unaligned_watchpoint): Likewise.
10124
db1ff28b
JK
101252015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10126
10127 Revert the previous 3 commits:
10128 Move gdb_regex* to common/
10129 Move linux_find_memory_regions_full & co.
10130 gdbserver build-id attribute generator
10131
700ca40f
JK
101322015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10133 Jan Kratochvil <jan.kratochvil@redhat.com>
10134
10135 gdbserver build-id attribute generator.
10136 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10137 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10138 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10139 (find_phdr): New.
10140 (get_dynamic): Use find_pdhr to traverse program headers.
10141 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10142 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10143 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10144 (get_hex_build_id): New.
10145 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10146 to reply XML document.
10147
9904185c
JK
101482015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10149 Jan Kratochvil <jan.kratochvil@redhat.com>
10150
10151 * target.c: Include target/target-utils.h and fcntl.h.
10152 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10153 (target_fileio_read_stralloc): New functions.
10154
6e5b4429
JK
101552015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10156
10157 * Makefile.in (OBS): Add gdb_regex.o.
10158 (gdb_regex.o): New.
10159 * config.in: Rebuilt.
10160 * configure: Rebuilt.
10161
ddc98fbf
JK
101622015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10163 Jan Kratochvil <jan.kratochvil@redhat.com>
10164
10165 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10166 * Makefile.in (OBS): Add target-utils.o.
10167 (linux-maps.o, target-utils.o): New.
10168 * configure.srv (srv_linux_obj): Add linux-maps.o.
10169
e57bb7a0
PL
101702015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10171
10172 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10173 function, return 1.
10174 (the_low_target): Install it.
10175
586b02a9
PA
101762015-07-14 Pedro Alves <palves@redhat.com>
10177
10178 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10179 Instead, ignore ECHILD, and throw an error for other errnos.
10180
58c1b36c
PA
101812015-07-10 Pedro Alves <palves@redhat.com>
10182
10183 * event-loop.c (struct callback_event) <data>: Change type to
10184 gdb_client_data instance instead of gdb_client_data pointer.
10185 (append_callback_event): Adjust.
10186
421530db
PL
101872015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10188
10189 * linux-aarch64-low.c: Add comments for each linux_target_ops
10190 method. Remove comments already covered in target_ops and
10191 linux_target_ops definitions.
10192 (the_low_target): Add comments for each unimplemented method.
10193
c2d65f38
YQ
101942015-07-09 Yao Qi <yao.qi@linaro.org>
10195
10196 * linux-aarch64-low.c (aarch64_regmap): Remove.
10197 (aarch64_usrregs_info): Remove.
10198 (regs_info): Set field usrregs to NULL.
10199
b20a6524
MM
102002015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10201
10202 * linux-low.c: Include "rsp-low.h"
10203 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10204 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10205 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10206 (handle_btrace_enable_pt): New.
10207 (handle_btrace_general_set): Support "pt".
10208 (handle_btrace_conf_general_set): Support "pt:size".
10209
96c97461
PL
102102015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10211
10212 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10213 Z_PACKET_SW_BP.
10214
37d66942
PL
102152015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10216
10217 * linux-aarch64-low.c: Remove comment about endianness.
10218 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10219 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10220 memcmp.
10221
dc06243f
GB
102222015-06-24 Gary Benson <gbenson@redhat.com>
10223
10224 * linux-i386-ipa.c (stdint.h): Do not include.
10225 * lynx-i386-low.c (stdint.h): Likewise.
10226 * lynx-ppc-low.c (stdint.h): Likewise.
10227 * mem-break.c (stdint.h): Likewise.
10228 * thread-db.c (stdint.h): Likewise.
10229 * tracepoint.c (stdint.h): Likewise.
10230 * win32-low.c (stdint.h): Likewise.
10231
124e13d9
SM
102322015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10233
10234 * server.c (write_qxfer_response): Update call to
10235 remote_escape_output.
10236
909c2cda
JK
102372015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10238 Jan Kratochvil <jan.kratochvil@redhat.com>
10239
10240 Merge multiple hex conversions.
10241 * gdbreplay.c (tohex): Rename to 'fromhex'.
10242 (logchar): Use fromhex.
10243
24c05f46
JK
102442015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10245
10246 * server.c (handle_qxfer_libraries): Set `version' attribute for
10247 <library-list>.
10248
14d2069a
GB
102492015-06-10 Gary Benson <gbenson@redhat.com>
10250
10251 * target.h (struct target_ops) <multifs_open>: New field.
10252 <multifs_unlink>: Likewise.
10253 <multifs_readlink>: Likewise.
10254 * linux-low.c (nat/linux-namespaces.h): New include.
10255 (linux_target_ops): Initialize the_target->multifs_open,
10256 the_target->multifs_unlink and the_target->multifs_readlink.
10257 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10258 * hostio.c (hostio_fs_pid): New static variable.
10259 (hostio_handle_new_gdb_connection): New function.
10260 (handle_setfs): Likewise.
10261 (handle_open): Use the_target->multifs_open as appropriate.
10262 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10263 (handle_readlink): Use the_target->multifs_readlink as
10264 appropriate.
10265 (handle_vFile): Handle vFile:setfs packets.
10266 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10267 after target_handle_new_gdb_connection.
10268
4b8b5e72
GB
102692015-06-10 Gary Benson <gbenson@redhat.com>
10270
10271 * configure.ac (AC_CHECK_FUNCS): Add setns.
10272 * config.in: Regenerate.
10273 * configure: Likewise.
10274 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10275 (linux-namespaces.o): New rule.
10276 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10277
3ac2e371
GB
102782015-06-09 Gary Benson <gbenson@redhat.com>
10279
10280 * hostio.c (handle_open): Process mode argument with
10281 fileio_to_host_mode.
10282
ca9b78ce
YQ
102832015-06-01 Yao Qi <yao.qi@linaro.org>
10284
10285 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10286 * linux-x86-low.c: Likewise.
10287
bfacd19d
DB
102882015-05-28 Don Breazeal <donb@codesourcery.com>
10289
10290 * linux-low.c (handle_extended_wait): Initialize
10291 thread_info.last_resume_kind for new fork children.
10292
452003ef
PA
102932015-05-15 Pedro Alves <palves@redhat.com>
10294
10295 * target.h (target_handle_new_gdb_connection): Rewrite using if
10296 wrapped in do/while.
10297
1041a03c
JB
102982015-05-14 Joel Brobecker <brobecker@adacore.com>
10299
10300 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10301 * configure, config.in: Regenerate.
10302 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10303 Declare typedef.
10304
c269dbdb
DB
103052015-05-12 Don Breazeal <donb@codesourcery.com>
10306
10307 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10308 PTRACE_EVENT_VFORK_DONE.
10309 (linux_low_ptrace_options, extended_event_reported): Add vfork
10310 events.
10311 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10312 and "vforkdone" for RSP 'T' Stop Reply Packet.
10313 * server.h (report_vfork_events): Declare
10314 global variable.
10315
3a8a0396
DB
103162015-05-12 Don Breazeal <donb@codesourcery.com>
10317
10318 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10319 (the_low_target) <new_fork>: Initialize new member.
10320 * linux-arm-low.c (arm_new_fork): New function.
10321 (the_low_target) <new_fork>: Initialize new member.
10322 * linux-low.c (handle_extended_wait): Call new target function
10323 new_fork.
10324 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10325 * linux-mips-low.c (mips_add_watchpoint): New function
10326 extracted from mips_insert_point.
10327 (the_low_target) <new_fork>: Initialize new member.
10328 (mips_linux_new_fork): New function.
10329 (mips_insert_point): Call mips_add_watchpoint.
10330 * linux-x86-low.c (x86_linux_new_fork): New function.
10331 (the_low_target) <new_fork>: Initialize new member.
10332
de0d863e
DB
103332015-05-12 Don Breazeal <donb@codesourcery.com>
10334
10335 * linux-low.c (handle_extended_wait): Implement return value,
10336 rename argument 'event_child' to 'event_lwp', handle
10337 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10338 (linux_low_ptrace_options): New function.
10339 (linux_low_filter_event): Call linux_low_ptrace_options,
10340 use different argument fo linux_enable_event_reporting,
10341 use return value from handle_extended_wait.
10342 (extended_event_reported): New function.
10343 (linux_wait_1): Call extended_event_reported and set
10344 status to report fork events.
10345 (linux_write_memory): Add pid to debug message.
10346 (reset_lwp_ptrace_options_callback): New function.
10347 (linux_handle_new_gdb_connection): New function.
10348 (linux_target_ops): Initialize new structure member.
10349 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10350 * lynx-low.c: Initialize new structure member.
10351 * remote-utils.c (prepare_resume_reply): Implement stop reason
10352 "fork" for "T" stop message.
10353 * server.c (handle_query): Call handle_new_gdb_connection.
10354 * server.h (report_fork_events): Declare global flag.
10355 * target.h (struct target_ops) <handle_new_gdb_connection>:
10356 New member.
10357 (target_handle_new_gdb_connection): New macro.
10358 * win32-low.c: Initialize new structure member.
10359
ddcbc397
DB
103602015-05-12 Don Breazeal <donb@codesourcery.com>
10361
10362 * mem-break.c (APPEND_TO_LIST): Define macro.
10363 (clone_agent_expr): New function.
10364 (clone_one_breakpoint): New function.
10365 (clone_all_breakpoints): New function.
10366 * mem-break.h: Declare new functions.
10367
89245bc0
DB
103682015-05-12 Don Breazeal <donb@codesourcery.com>
10369
10370 * linux-low.c (linux_supports_fork_events): New function.
10371 (linux_supports_vfork_events): New function.
10372 (linux_target_ops): Initialize new structure members.
10373 (initialize_low): Call linux_check_ptrace_features.
10374 * lynx-low.c (lynx_target_ops): Initialize new structure
10375 members.
10376 * server.c (report_fork_events, report_vfork_events):
10377 New global flags.
10378 (handle_query): Add new features to qSupported packet and
10379 response.
10380 (captured_main): Initialize new global variables.
10381 * target.h (struct target_ops) <supports_fork_events>:
10382 New member.
10383 <supports_vfork_events>: New member.
10384 (target_supports_fork_events): New macro.
10385 (target_supports_vfork_events): New macro.
10386 * win32-low.c (win32_target_ops): Initialize new structure
10387 members.
10388
835205d0
GB
103892015-05-12 Gary Benson <gbenson@redhat.com>
10390
10391 * server.c (handle_qxfer_exec_file): Use current process
10392 if annex is empty.
10393
21e94bd9
SL
103942015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10395
10396 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10397 Remove HAVE_PTRACE_GETREGS conditionals.
10398 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10399 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10400
45614f15
YQ
104012015-05-08 Yao Qi <yao.qi@linaro.org>
10402
10403 * linux-low.c (linux_supports_conditional_breakpoints): New
10404 function.
10405 (linux_target_ops): Install new target method.
10406 * lynx-low.c (lynx_target_ops): Install NULL hook for
10407 supports_conditional_breakpoints.
10408 * nto-low.c (nto_target_ops): Likewise.
10409 * spu-low.c (spu_target_ops): Likewise.
10410 * win32-low.c (win32_target_ops): Likewise.
10411 * server.c (handle_query): Check
10412 target_supports_conditional_breakpoints.
10413 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10414 New field.
10415 (target_supports_conditional_breakpoints): New macro.
10416
80ad801e
PA
104172015-05-06 Pedro Alves <palves@redhat.com>
10418
10419 PR server/18081
10420 * server.c (start_inferior): If the process exits, mourn it.
10421
819843c7
GB
104222015-04-21 Gary Benson <gbenson@redhat.com>
10423
10424 * hostio.c (fileio_open_flags_to_host): Factored out to
10425 fileio_to_host_openflags in common/fileio.c. Single use
10426 updated.
10427
a2d5a9d7
MF
104282015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10429
10430 * linux-xtensa-low.c (xtensa_fill_gregset)
10431 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10432 XCHAL_HAVE_LOOP.
10433
deb44829
MF
104342015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10435
10436 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10437 (regs_info): Replace usrregs pointer with NULL.
10438
e57f1de3
GB
104392015-04-17 Gary Benson <gbenson@redhat.com>
10440
10441 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10442 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10443 * server.c (handle_qxfer_exec_file): New function.
10444 (qxfer_packets): Add exec-file entry.
10445 (handle_query): Report qXfer:exec-file:read as supported packet.
10446
62828379
RN
104472015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10448
10449 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10450
b88bb450
GB
104512015-04-09 Gary Benson <gbenson@redhat.com>
10452
10453 * hostio-errno.c (errno_to_fileio_error): Remove function.
10454 Update caller to use remote_fileio_to_fio_error.
10455
c8f4bfdd
YQ
104562015-04-09 Yao Qi <yao.qi@linaro.org>
10457
10458 * linux-low.c (linux_insert_point): Call
10459 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10460 (linux_remove_point): Call remove_memory_breakpoint if type is
10461 raw_bkpt_type_sw.
10462 * linux-x86-low.c (x86_insert_point): Don't call
10463 insert_memory_breakpoint.
10464 (x86_remove_point): Don't call remove_memory_breakpoint.
10465
41f98f02
PA
104662015-04-01 Pedro Alves <palves@redhat.com>
10467 Cleber Rosa <crosa@redhat.com>
10468
10469 * server.c (gdbserver_usage): Reorganize and extend the usage
10470 message.
10471
2bf6fb9d
PA
104722015-03-24 Pedro Alves <palves@redhat.com>
10473
10474 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10475 output. Also dump TRAP_TRACE.
10476 (linux_low_filter_event): In debug output, distinguish a
10477 resume_stop SIGSTOP from a delayed SIGSTOP.
10478
369f6daa
GB
104792015-03-24 Gary Benson <gbenson@redhat.com>
10480
10481 * linux-x86-low.c (x86_linux_new_thread): Moved to
10482 nat/x86-linux.c.
10483 (x86_linux_prepare_to_resume): Likewise.
10484
8e5d4070
GB
104852015-03-24 Gary Benson <gbenson@redhat.com>
10486
10487 * Makefile.in (x86-linux-dregs.o): New rule.
10488 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10489 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10490 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10491 (x86_linux_dr_get): Likewise.
10492 (x86_linux_dr_set): Likewise.
10493 (update_debug_registers_callback): Likewise.
10494 (x86_linux_dr_set_addr): Likewise.
10495 (x86_linux_dr_get_addr): Likewise.
10496 (x86_linux_dr_set_control): Likewise.
10497 (x86_linux_dr_get_control): Likewise.
10498 (x86_linux_dr_get_status): Likewise.
10499 (x86_linux_update_debug_registers): Likewise.
10500
2b95d440
GB
105012015-03-24 Gary Benson <gbenson@redhat.com>
10502
10503 * linux-x86-low.c (x86_linux_update_debug_registers):
10504 New function, factored out from...
10505 (x86_linux_prepare_to_resume): ...this.
10506
14b0bc68
GB
105072015-03-24 Gary Benson <gbenson@redhat.com>
10508
10509 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10510 (x86_linux_dr_set): Likewise.
10511 (update_debug_registers_callback): Likewise.
10512 (x86_linux_dr_set_addr): Likewise.
10513 (x86_linux_dr_get_addr): Likewise.
10514 (x86_linux_dr_set_control): Likewise.
10515 (x86_linux_dr_get_control): Likewise.
10516 (x86_linux_dr_get_status): Likewise.
10517 (x86_linux_prepare_to_resume): Likewise.
10518
5dfe6ca8
GB
105192015-03-24 Gary Benson <gbenson@redhat.com>
10520
10521 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10522 Use perror_with_name. Pass string through gettext.
10523 (x86_linux_dr_set): Likewise.
10524
d33472ad
GB
105252015-03-24 Gary Benson <gbenson@redhat.com>
10526
10527 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10528 (x86_linux_dr_set_addr): ...this.
10529 (x86_dr_low_get_addr): Rename to...
10530 (x86_linux_dr_get_addr): ...this.
10531 (x86_dr_low_set_control): Rename to...
10532 (x86_linux_dr_set_control): ...this.
10533 (x86_dr_low_get_control): Rename to...
10534 (x86_linux_dr_get_control): ...this.
10535 (x86_dr_low_get_status): Rename to...
10536 (x86_linux_dr_get_status): ...this.
10537 (x86_dr_low): Update with new function names.
10538
4b134ca1
GB
105392015-03-24 Gary Benson <gbenson@redhat.com>
10540
10541 * Makefile.in (x86-linux.o): New rule.
10542 * configure.srv: Add x86-linux.o to relevant targets.
10543 * linux-low.c (lwp_set_arch_private_info): New function.
10544 (lwp_arch_private_info): Likewise.
10545 * linux-x86-low.c: Include nat/x86-linux.h.
10546 (arch_lwp_info): Removed structure.
10547 (update_debug_registers_callback):
10548 Use lwp_set_debug_registers_changed.
10549 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10550 and lwp_set_debug_registers_changed.
10551 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10552
34c703da
GB
105532015-03-24 Gary Benson <gbenson@redhat.com>
10554
10555 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
10556 * linux-arm-low.c (arm_new_thread): Likewise.
10557 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
10558 * linux-mips-low.c (mips_linux_new_thread): Likewise.
10559 * linux-x86-low.c (x86_linux_new_thread): Likewise.
10560 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
10561
cff068da
GB
105622015-03-24 Gary Benson <gbenson@redhat.com>
10563
10564 * linux-low.c (ptid_of_lwp): New function.
10565 (lwp_is_stopped): Likewise.
10566 (lwp_stop_reason): Likewise.
10567 * linux-x86-low.c (update_debug_registers_callback):
10568 Use lwp_is_stopped.
10569 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10570 lwp_stop_reason.
10571
b2f7c7e8
GB
105722015-03-24 Gary Benson <gbenson@redhat.com>
10573
10574 * linux-low.h (linux_stop_lwp): Remove declaration.
10575
6d4ee8c6
GB
105762015-03-24 Gary Benson <gbenson@redhat.com>
10577
10578 * linux-low.h: Include nat/linux-nat.h.
10579 * linux-low.c (iterate_over_lwps_args): New structure.
10580 (iterate_over_lwps_filter): New function.
10581 (iterate_over_lwps): Likewise.
10582 * linux-x86-low.c (update_debug_registers_callback):
10583 Update signature to what iterate_over_lwps expects.
10584 Remove PID check that iterate_over_lwps now performs.
10585 (x86_dr_low_set_addr): Use iterate_over_lwps.
10586 (x86_dr_low_set_control): Likewise.
10587
70a0bb6b
GB
105882015-03-24 Gary Benson <gbenson@redhat.com>
10589
10590 * linux-x86-low.c (x86_debug_reg_state): New function.
10591 (x86_linux_prepare_to_resume): Use the above.
10592
7b669087
GB
105932015-03-24 Gary Benson <gbenson@redhat.com>
10594
10595 * linux-low.c (current_lwp_ptid): New function.
10596 * linux-x86-low.c: Include nat/linux-nat.h.
10597 (x86_dr_low_get_addr): Use current_lwp_ptid.
10598 (x86_dr_low_get_control): Likewise.
10599 (x86_dr_low_get_status): Likewise.
10600
eef49a3d
PA
106012015-03-20 Pedro Alves <palves@redhat.com>
10602
10603 * tracepoint.c (cmd_qtstatus): Make "str" const.
10604
b2333d22
PA
106052015-03-20 Pedro Alves <palves@redhat.com>
10606
10607 * server.c (handle_general_set): Make "req_str" const.
10608
23f238d3
PA
106092015-03-19 Pedro Alves <palves@redhat.com>
10610
10611 * linux-low.c (linux_resume_one_lwp): Rename to ...
10612 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10613 instead call perror_with_name.
10614 (check_ptrace_stopped_lwp_gone): New function.
10615 (linux_resume_one_lwp): Reimplement as wrapper around
10616 linux_resume_one_lwp_throw that swallows errors if the LWP is
10617 gone.
10618
91baf43f
PA
106192015-03-19 Pedro Alves <palves@redhat.com>
10620
10621 * linux-low.c (count_events_callback, select_event_lwp_callback):
10622 No longer check whether the thread has resume_stop as last resume
10623 kind.
10624
8bf3b159
PA
106252015-03-19 Pedro Alves <palves@redhat.com>
10626
10627 * linux-low.c (count_events_callback, select_event_lwp_callback):
10628 Use the lwp's status_pending_p field, not the thread's.
10629
b90fc188
PA
106302015-03-19 Pedro Alves <palves@redhat.com>
10631
10632 * linux-low.c (select_event_lwp_callback): Update comments to
10633 no longer mention SIGTRAP.
10634
464b0089
GB
106352015-03-18 Gary Benson <gbenson@redhat.com>
10636
10637 * server.c (handle_query): Do not report vFile:fstat as supported.
10638
aa9e327f
GB
106392015-03-11 Gary Benson <gbenson@redhat.com>
10640
10641 * hostio.c (sys/types.h): New include.
10642 (sys/stat.h): Likewise.
10643 (common-remote-fileio.h): Likewise.
10644 (handle_fstat): New function.
10645 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 10646
791c0056
GB
106472015-03-11 Gary Benson <gbenson@redhat.com>
10648
10649 * configure.ac (AC_CHECK_MEMBERS): Add checks for
10650 struct stat.st_blocks and struct stat.st_blksize.
10651 * configure: Regenerate.
10652 * config.in: Likewise.
10653 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10654 (OBS): Add common-remote-fileio.o.
10655 (common-remote-fileio.o): New rule.
10656
9a9df970
PA
106572015-03-09 Pedro Alves <palves@redhat.com>
10658
10659 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
10660 'struct sockaddr' pointer in 'accept' call.
10661
9eb1356e
PA
106622015-03-09 Pedro Alves <palves@redhat.com>
10663
10664 Revert:
10665 2015-03-07 Pedro Alves <palves@redhat.com>
10666 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
10667 or <winsock2.h> here. Instead include "gdb_socket.h".
10668 (remote_open): Use union gdb_sockaddr_u.
10669 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
10670 or <winsock2.h> here. Instead include "gdb_socket.h".
10671 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
10672 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
10673 or <sys/un.h>.
10674 (init_named_socket, gdb_agent_helper_thread): Use union
10675 gdb_sockaddr_u.
10676
aac331e4
PA
106772015-03-07 Pedro Alves <palves@redhat.com>
10678
10679 * configure.ac (build_warnings): Move
10680 -Wdeclaration-after-statement to the C-specific set.
10681 * configure: Regenerate.
10682
366c75fc
PA
106832015-03-07 Pedro Alves <palves@redhat.com>
10684
10685 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
10686 or <winsock2.h> here. Instead include "gdb_socket.h".
10687 (remote_open): Use union gdb_sockaddr_u.
10688 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
10689 or <winsock2.h> here. Instead include "gdb_socket.h".
10690 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
10691 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
10692 or <sys/un.h>.
10693 (init_named_socket, gdb_agent_helper_thread): Use union
10694 gdb_sockaddr_u.
10695
492d29ea
PA
106962015-03-07 Pedro Alves <palves@redhat.com>
10697
10698 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
10699 instead.
10700
60a191ed
YQ
107012015-03-06 Yao Qi <yao.qi@linaro.org>
10702
10703 * linux-aarch64-low.c (aarch64_insert_point): Use
10704 show_debug_regs as a boolean.
10705 (aarch64_remove_point): Likewise.
10706
f5771b1d
PA
107072015-03-05 Pedro Alves <palves@redhat.com>
10708
10709 * lynx-low.c (lynx_target_ops): Install NULL hooks for
10710 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
10711 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
10712 * nto-low.c (nto_target_ops): Likewise.
10713 * spu-low.c (spu_target_ops): Likewise.
10714 * win32-low.c (win32_target_ops): Likewise.
10715
3e572f71
PA
107162015-03-04 Pedro Alves <palves@redhat.com>
10717
72f4393d 10718 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
10719 Decide whether a breakpoint triggered based on the SIGTRAP's
10720 siginfo.si_code.
72f4393d
L
10721 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10722 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
10723 (linux_low_filter_event): Check for breakpoints before checking
10724 watchpoints.
10725 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
10726 siginfo.si_code.
72f4393d
L
10727 (linux_stopped_by_sw_breakpoint)
10728 (linux_supports_stopped_by_sw_breakpoint)
10729 (linux_stopped_by_hw_breakpoint)
10730 (linux_supports_stopped_by_hw_breakpoint): New functions.
10731 (linux_target_ops): Install new target methods.
3e572f71 10732
1ec68e26
PA
107332015-03-04 Pedro Alves <palves@redhat.com>
10734
10735 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
10736 * server.c (swbreak_feature, hwbreak_feature): New globals.
10737 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
10738 (captured_main): Clear swbreak_feature and hwbreak_feature.
10739 * server.h (swbreak_feature, hwbreak_feature): Declare.
10740 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
10741 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
10742 supports_stopped_by_hw_breakpoint>: New fields.
10743 (target_supports_stopped_by_sw_breakpoint)
10744 (target_stopped_by_sw_breakpoint)
10745 (target_supports_stopped_by_hw_breakpoint)
10746 (target_stopped_by_hw_breakpoint): Declare.
10747
15c66dd6
PA
107482015-03-04 Pedro Alves <palves@redhat.com>
10749
10750 enum lwp_stop_reason -> enum target_stop_reason
10751 * linux-low.c (check_stopped_by_breakpoint): Adjust.
10752 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
10753 (linux_wait_1, stuck_in_jump_pad_callback)
10754 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
10755 (linux_stopped_by_watchpoint):
10756 * linux-low.h (enum lwp_stop_reason): Delete.
10757 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10758 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
10759
98fc70d6
YQ
107602015-03-04 Yao Qi <yao.qi@linaro.org>
10761
10762 * Makefile.in (SFILES): Add linux-aarch64-low.c.
10763
dd2ac174
GB
107642015-03-03 Gary Benson <gbenson@redhat.com>
10765
10766 * hostio.c (handle_vFile): Fix prefix lengths.
10767
d68e53f4
MM
107682015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10769
10770 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
10771 ptr_bits.
10772
bf2d68ab
AA
107732015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10774
10775 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
10776 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
10777 (clean): Add "rm -f" for above C files.
10778 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
10779 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
10780 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
10781 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
10782 * linux-s390-low.c (HWCAP_S390_VX): New macro.
10783 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
10784 (init_registers_s390x_vx_linux64)
10785 (init_registers_s390x_tevx_linux64)
10786 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10787 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
10788 declarations.
10789 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
10790 (s390_store_vxrs_high): New functions.
10791 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
10792 NT_S390_VXRS_HIGH.
10793 (s390_arch_setup): Add logic for selecting one of the new target
10794 descriptions. Activate the new vector regsets if applicable.
10795 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
10796 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
10797 and init_registers_s390x_tevx_linux64.
10798
c966a859
PA
107992015-03-01 Pedro Alves <palves@redhat.com>
10800
10801 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
10802 parameter.
10803
4180215b
PA
108042015-02-27 Pedro Alves <palves@redhat.com>
10805
10806 * linux-x86-low.c (u_debugreg_offset): New function.
10807 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10808
749bab01
PA
108092015-02-27 Pedro Alves <palves@redhat.com>
10810
10811 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10812 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
10813 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10814 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10815 (ps_lsetfpregs, ps_getpid)
10816 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
10817 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
10818 (ps_lsetxregs, ps_plog): Declare.
10819
3c14e5a3
PA
108202015-02-27 Pedro Alves <palves@redhat.com>
10821
10822 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
10823 IP_AGENT_EXPORT_FUNC.
10824 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
10825 IP_AGENT_EXPORT_FUNC.
10826 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
10827 (IP_AGENT_EXPORT): Delete.
10828 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
10829 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
10830 (gdb_trampoline_buffer_error, collecting, gdb_collect)
10831 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
10832 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
10833 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
10834 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
10835 (traceframe_read_count, traceframe_write_count)
10836 (traceframes_created, trace_state_variables, get_raw_reg)
10837 (get_trace_state_variable_value, set_trace_state_variable_value)
10838 (ust_loaded, helper_thread_id, cmd_buf): Use
10839 IPA_SYM_EXPORTED_NAME.
10840 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
10841 (tracepoints) Use IP_AGENT_EXPORT_VAR.
10842 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
10843 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10844 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
10845 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
10846 EXTERN_C_PUSH/EXTERN_C_POP.
10847 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
10848 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
10849 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10850 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
10851 (traceframe_write_count, traceframe_read_count)
10852 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
10853 (about_to_request_buffer_space, get_trace_state_variable_value)
10854 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
10855 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
10856 EXTERN_C_PUSH/EXTERN_C_POP.
10857 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
10858 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
10859 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
10860 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10861 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
10862 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
10863 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
10864 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
10865 Define.
10866 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
10867 (IP_AGENT_EXPORT_VAR_DECL): Define.
10868 (tracing): Declare.
10869 (gdb_agent_get_raw_reg): Declare.
10870
fe978cb0
PA
108712015-02-27 Tom Tromey <tromey@redhat.com>
10872 Pedro Alves <palves@redhat.com>
10873
10874 Rename symbols whose names are reserved C++ keywords throughout.
10875
3bc3d82a
PA
108762015-02-27 Pedro Alves <palves@redhat.com>
10877
10878 * Makefile.in (COMPILER): New, get it from autoconf.
10879 (CXX): Get from autoconf instead.
10880 (COMPILE.pre): Use COMPILER.
10881 (CC-LD): Rename to ...
10882 (CC_LD): ... this. Use COMPILER.
10883 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
10884 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10885 * acinclude.m4: Include build-with-cxx.m4.
10886 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10887 Disable -Werror by default if building in C++ mode.
10888 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10889 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
10890 the C++ compiler. Save/restore CXXFLAGS too.
10891 * configure: Regenerate.
10892
07697489
PA
108932015-02-27 Pedro Alves <palves@redhat.com>
10894
10895 * acinclude.m4: Include libiberty.m4.
10896 * configure.ac: Call libiberty_INIT.
10897 * config.in, configure: Regenerate.
10898
9beb7c4e
PA
108992015-02-26 Pedro Alves <palves@redhat.com>
10900
10901 * linux-low.c (linux_wait_1): When incrementing the PC past a
10902 program breakpoint always use the_low_target.breakpoint_len as
10903 increment, rather than the maximum between that and
10904 the_low_target.decr_pc_after_break.
10905
8090aef2
PA
109062015-02-23 Pedro Alves <palves@redhat.com>
10907
10908 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
10909 thread was doing a step-over; always adjust the PC if
10910 we stepped over a permanent breakpoint.
10911 (linux_wait_1): If we stepped over breakpoint that was on top of a
10912 permanent breakpoint, manually advance the PC past it.
10913
bc9540e8
PA
109142015-02-23 Pedro Alves <palves@redhat.com>
10915
10916 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
10917 modes.
10918 (x86_fill_gregset, x86_store_gregset): Use it when handling
10919 $orig_eax.
10920
2db9a427
PA
109212015-02-20 Pedro Alves <palves@redhat.com>
10922
10923 * thread-db.c: Include "nat/linux-procfs.h".
10924 (thread_db_init): Skip listing new threads if the kernel supports
10925 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
10926
afa8d396
PA
109272015-02-20 Pedro Alves <palves@redhat.com>
10928
10929 * linux-low.c (status_pending_p_callback): Use ptid_match.
10930
c9587f88
AT
109312015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10932
10933 PR breakpoints/16812
10934 * linux-low.c (wstatus_maybe_breakpoint): Remove.
10935 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
10936 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
10937
b05ec7a5
AT
109382015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
10939
10940 PR breakpoints/15956
10941 * tracepoint.c (cmd_qtinit): Add check for current_thread.
10942
d33501a5
MM
109432015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10944
10945 * linux-low.c (linux_low_btrace_conf): Print size.
10946 * server.c (handle_btrace_conf_general_set): New.
10947 (hanle_general_set): Call handle_btrace_conf_general_set.
10948 (handle_query): Report Qbtrace-conf:bts:size as supported.
10949
f4abbc16
MM
109502015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10951
10952 * linux-low.c (linux_low_enable_btrace): Update parameters.
10953 (linux_low_btrace_conf): New.
10954 (linux_target_ops)<to_btrace_conf>: Initialize.
10955 * server.c (current_btrace_conf): New.
10956 (handle_btrace_enable): Rename to ...
10957 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
10958 to target_enable_btrace. Update comment. Update users.
10959 (handle_qxfer_btrace_conf): New.
10960 (qxfer_packets): Add btrace-conf entry.
10961 (handle_query): Report qXfer:btrace-conf:read as supported packet.
10962 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
10963 (target_ops)<read_btrace_conf>: New.
10964 (target_enable_btrace): Update parameters.
10965 (target_read_btrace_conf): New.
10966
043c3577
MM
109672015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10968
10969 * server.c (handle_btrace_general_set): Remove call to
10970 target_supports_btrace.
10971 (supported_btrace_packets): New.
10972 (handle_query): Call supported_btrace_packets.
10973 * target.h: include btrace-common.h.
10974 (btrace_target_info): Removed.
10975 (supports_btrace, target_supports_btrace): Update parameters.
10976
734b0e4b
MM
109772015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10978
10979 * Makefile.in (SFILES): Add common/btrace-common.c.
10980 (OBS): Add common/btrace-common.o.
10981 (btrace-common.o): Add build rules.
10982 * linux-low: Include btrace-common.h.
10983 (linux_low_read_btrace): Use struct btrace_data. Call
10984 btrace_data_init and btrace_data_fini.
10985
d6c146e9
PA
109862015-02-06 Pedro Alves <palves@redhat.com>
10987
10988 * thread-db.c (find_new_threads_callback): Add debug output.
10989
20ba1ce6
PA
109902015-02-04 Pedro Alves <palves@redhat.com>
10991
10992 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
10993 (resume_stopped_resumed_lwps): New function.
10994 (linux_wait_for_event_filtered): Use it.
10995
8cc73a39
SDJ
109962015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
10997
10998 * Makefile.in (SFILES): Add linux-personality.c.
10999 (linux-personality.o): New rule.
11000 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11001 list of objects to be built.
11002 * linux-low.c: Include nat/linux-personality.h.
11003 (linux_create_inferior): Remove code to disable address space
11004 randomization (moved to ../nat/linux-personality.c). Create
11005 cleanup to disable address space randomization.
11006
fb23d554
SDJ
110072015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11008
11009 * Makefile.in (posix-strerror.o): New rule.
11010 (mingw-strerror.o): Likewise.
11011 * configure: Regenerated.
11012 * configure.ac: Source file ../common/common.host. Initialize new
11013 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11014
cdf43629
YQ
110152015-01-14 Yao Qi <yao@codesourcery.com>
11016
11017 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11018 (ppc-linux.o): New rule.
11019 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11020 * configure.ac: AC_CHECK_FUNCS(getauxval).
11021 * config.in: Re-generated.
11022 * configure: Re-generated.
11023 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11024 ppc64_64bit_inferior_p
11025
514c5338
YQ
110262015-01-14 Yao Qi <yao@codesourcery.com>
11027
11028 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11029 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11030 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11031 (PT_ORIG_R3, PT_TRAP): Likewise.
11032 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11033 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11034 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11035
3368c1e5
JB
110362015-01-10 Joel Brobecker <brobecker@adacore.com>
11037
11038 * i387-fp.c (i387_cache_to_xsave): In look over
11039 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11040 zmmh_low_space field by use of zmmh_high_space.
11041
582511be
PA
110422015-01-09 Pedro Alves <palves@redhat.com>
11043
11044 * linux-low.c (step_over_bkpt): Move higher up in the file.
11045 (handle_extended_wait): Don't store the stop_pc here.
11046 (get_stop_pc): Adjust comments and rename to ...
11047 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11048 stopped for a software breakpoint or hardware breakpoint.
11049 (thread_still_has_status_pending_p): New function.
11050 (status_pending_p_callback): Use
11051 thread_still_has_status_pending_p. If the event is no longer
11052 interesting, resume the LWP.
11053 (handle_tracepoints): Add assert.
11054 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11055 (wstatus_maybe_breakpoint): New function.
11056 (cancel_breakpoint): Delete function.
11057 (check_stopped_by_watchpoint): New function, factored out from
11058 linux_low_filter_event.
11059 (lp_status_maybe_breakpoint): Delete function.
11060 (linux_low_filter_event): Remove filter_ptid argument.
11061 Leave thread group exits pending here. Store the LWP's stop PC.
11062 Always leave events pending.
11063 (linux_wait_for_event_filtered): Pull all events out of the
11064 kernel, and leave them all pending.
11065 (count_events_callback, select_event_lwp_callback): Consider all
11066 events.
11067 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11068 (select_event_lwp): Only give preference to the stepping LWP in
11069 all-stop mode. Adjust comments.
11070 (ignore_event): New function.
11071 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11072 references to cancel_breakpoints. Adjust to renames. Also give
11073 equal priority to all LWPs that have had events in non-stop mode.
11074 If reporting a software breakpoint event, unadjust the LWP's PC.
11075 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11076 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11077 Adjust.
11078 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11079 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11080 (linux_stopped_by_watchpoint): Adjust.
11081 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11082 * linux-low.h (enum lwp_stop_reason): New.
11083 (struct lwp_info) <stop_pc>: Adjust comment.
11084 <stopped_by_watchpoint>: Delete field.
11085 <stop_reason>: New field.
11086 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11087 * mem-break.c (software_breakpoint_inserted_here)
11088 (hardware_breakpoint_inserted_here): New function.
11089 * mem-break.h (software_breakpoint_inserted_here)
11090 (hardware_breakpoint_inserted_here): Declare.
11091 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11092 (cancel_breakpoints): Delete.
11093 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11094 (upload_fast_traceframes): Remove references to
11095 cancel_breakpoints.
11096
a33e3959
PA
110972015-01-09 Pedro Alves <palves@redhat.com>
11098
11099 * thread-db.c (find_new_threads_callback): Ignore thread if the
11100 kernel thread ID is -1.
11101
8784d563
PA
111022015-01-09 Pedro Alves <palves@redhat.com>
11103
11104 * linux-low.c (linux_attach_fail_reason_string): Move to
11105 nat/linux-ptrace.c, and rename.
11106 (linux_attach_lwp): Update comment.
11107 (attach_proc_task_lwp_callback): New function.
11108 (linux_attach): Adjust to rename and use
11109 linux_proc_attach_tgid_threads.
11110 (linux_attach_fail_reason_string): Delete declaration.
11111
76f2b779
JB
111122015-01-01 Joel Brobecker <brobecker@adacore.com>
11113
11114 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11115 * server.c (gdbserver_version): Likewise.
11116
fafcc06a
SDJ
111172014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11118
11119 * remote-utils.c: Include ctype.h.
11120 (input_interrupt): Explicitly handle the case when the char
11121 received is the NUL byte. Improve the printing of non-ASCII
11122 characters.
11123
beed38b8
JB
111242014-12-16 Joel Brobecker <brobecker@adacore.com>
11125
11126 * linux-low.c (linux_low_filter_event): Update call to
11127 linux_enable_event_reporting following the addition of
11128 a new parameter to that function.
11129
bf330350
CU
111302014-12-16 Catalin Udma <catalin.udma@freescale.com>
11131
11132 PR server/17457
11133 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11134 (AARCH64_FPCR_REGNO): Likewise.
11135 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11136 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11137 (aarch64_store_fpregset): Likewise.
11138
5227d625
JB
111392014-12-15 Joel Brobecker <brobecker@adacore.com>
11140
11141 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11142 Remove FIXME comment about assumption about N.
11143
f93b65a0
JB
111442014-12-13 Joel Brobecker <brobecker@adacore.com>
11145
11146 * configure.ac: If large-file support is disabled in GDBserver,
11147 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11148 * configure: Regenerate.
11149
e5a9158d
AA
111502014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11151
11152 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11153 warning upon ENODATA from ptrace.
11154 * linux-s390-low.c (s390_store_tdb): New.
11155 (s390_regsets): Add regset for NT_S390_TDB.
11156
feea5f36
AA
111572014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11158
11159 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11160 without a fill_function.
11161 * linux-s390-low.c (s390_fill_last_break): Remove.
11162 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11163 (s390_arch_setup): Use regset's size instead of fill_function for
11164 loop end condition.
11165
098dbe61
AA
111662014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11167
11168 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11169 the regset's store function when ptrace returned an error.
11170 * regcache.c (get_thread_regcache): Invalidate register cache
11171 before fetching inferior's registers.
11172
28eef672
AA
111732014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11174
11175 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11176 while-loop as for-loop.
11177 (regsets_store_inferior_registers): Likewise.
11178
bdca27a2
YQ
111792014-11-28 Yao Qi <yao@codesourcery.com>
11180
11181 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11182 * config.in, configure: Re-generate.
11183 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11184 is defined.
11185
9c232dda
YQ
111862014-11-21 Yao Qi <yao@codesourcery.com>
11187
11188 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11189 (AC_CHECK_HEADERS): Remove malloc.h.
11190 * configure: Re-generated.
11191 * config.in: Re-generated.
11192 * server.h: Don't include alloca.h and malloc.h.
11193 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11194 Don't include malloc.h.
11195
43968415
JB
111962014-11-17 Joel Brobecker <brobecker@adacore.com>
11197
11198 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11199 corresponding ERRNO check in same block.
11200
40e91bc7
PA
112012014-11-12 Pedro Alves <palves@redhat.com>
11202
11203 * server.c (cont_thread): Update comment.
11204 (start_inferior, attach_inferior): No longer clear cont_thread.
11205 (handle_v_cont): No longer set cont_thread.
11206 (captured_main): Clear cont_thread each time a GDB connects.
11207
c2c118cf
PA
112082014-11-12 Pedro Alves <palves@redhat.com>
11209
11210 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11211 thread, and don't resume all threads if the Hc thread has exited.
11212
78708b7c
PA
112132014-11-12 Pedro Alves <palves@redhat.com>
11214
11215 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11216 the process group instead of to a specific LWP.
11217
a2abc7de
PA
112182014-10-15 Pedro Alves <palves@redhat.com>
11219
11220 PR server/17487
11221 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11222 parameter.
11223 (arm_set_thread_context): Delete.
11224 (the_low_target): Adjust.
11225 * win32-i386-low.c (debug_registers_changed)
11226 (debug_registers_used): Delete.
11227 (update_debug_registers_callback): New function.
11228 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11229 needing to update their debug registers.
11230 (win32_get_current_dr): New function.
11231 (x86_dr_low_get_addr, x86_dr_low_get_control)
11232 (x86_dr_low_get_status): Fetch the debug register from the thread
11233 record's context.
11234 (i386_initial_stuff): Adjust.
11235 (i386_get_thread_context): Remove current_event parameter. Don't
11236 clear debug_registers_changed nor copy DR values to
11237 debug_reg_state.
11238 (i386_set_thread_context): Delete.
11239 (i386_prepare_to_resume): New function.
11240 (i386_thread_added): Mark the thread as needing to update irs
11241 debug registers.
11242 (the_low_target): Remove i386_set_thread_context and install
11243 i386_prepare_to_resume.
11244 * win32-low.c (win32_get_thread_context): Adjust.
11245 (win32_set_thread_context): Use SetThreadContext
11246 directly.
11247 (win32_prepare_to_resume): New function.
11248 (win32_require_context): New function, factored out from ...
11249 (thread_rec): ... this.
11250 (continue_one_thread): Call win32_prepare_to_resume on each thread
11251 we're about to continue.
11252 (win32_resume): Call win32_prepare_to_resume on the event thread.
11253 * win32-low.h (struct win32_thread_info)
11254 <debug_registers_changed>: New field.
11255 (struct win32_target_ops): Change prototype of set_thread_context,
11256 delete set_thread_context and add prepare_to_resume.
11257 (win32_require_context): New declaration.
11258
a442d071
GB
112592014-10-08 Gary Benson <gbenson@redhat.com>
11260
11261 * server.h: Do not include common-exceptions.h.
11262
6f1947e8
GB
112632014-10-08 Gary Benson <gbenson@redhat.com>
11264
11265 * server.h: Do not include cleanups.h.
11266
63b434a4
JH
112672014-09-30 James Hogan <james.hogan@imgtec.com>
11268
11269 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11270 mips64-dsp-linux.c.
11271
c4d9ceb6
YQ
112722014-09-23 Yao Qi <yao@codesourcery.com>
11273
11274 * linux-low.c (lp_status_maybe_breakpoint): New function.
11275 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11276 (count_events_callback): Likewise.
11277 (select_event_lwp_callback): Likewise.
11278 (cancel_breakpoints_callback): Likewise.
11279
89a5711c
DB
112802014-09-19 Don Breazeal <donb@codesourcery.com>
11281
11282 * linux-low.c (handle_extended_wait): Call
11283 linux_ptrace_get_extended_event.
11284 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11285 linux_is_extended_waitstatus.
11286
bffc0964
JB
112872014-09-16 Joel Brobecker <brobecker@adacore.com>
11288
11289 * Makefile.in (CPPFLAGS): Define.
11290 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11291 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11292
0bfdf32f
GB
112932014-09-16 Gary Benson <gbenson@redhat.com>
11294
11295 * inferiors.h (current_inferior): Renamed as...
11296 (current_thread): New variable. All uses updated.
11297 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11298 (maybe_move_out_of_jump_pad): Likewise.
11299 (cancel_breakpoint): Likewise.
11300 (linux_low_filter_event): Likewise.
11301 (wait_for_sigstop): Likewise.
11302 (linux_resume_one_lwp): Likewise.
11303 (need_step_over_p): Likewise.
11304 (start_step_over): Likewise.
11305 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11306 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11307 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11308 and save_inferior as saved_thread.
11309 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11310 saved_thread.
11311 (regcache_invalidate_thread): Likewise.
11312 * remote-utils.c (prepare_resume_reply): Likewise.
11313 * thread-db.c (thread_db_get_tls_address): Likewise.
11314 (disable_thread_event_reporting): Likewise.
11315 (remove_thread_event_breakpoints): Likewise.
11316 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11317 as saved_thread.
11318 * target.h (set_desired_inferior): Renamed as...
11319 (set_desired_thread): New declaration. All uses updated.
11320 * server.c (myresume): Updated comment to reference thread instead
11321 of inferior.
11322 (handle_serial_event): Likewise.
11323 (handle_target_event): Likewise.
11324
361c8ade
GB
113252014-09-12 Tom Tromey <tromey@redhat.com>
11326 Gary Benson <gbenson@redhat.com>
11327
11328 * regcache.h: Include common-regcache.h.
11329 (regcache_read_pc): Don't declare.
11330 * regcache.c (get_thread_regcache_for_ptid): New function.
11331
bd9269f7
GB
113322014-09-11 Tom Tromey <tromey@redhat.com>
11333 Gary Benson <gbenson@redhat.com>
11334
11335 * symbol.c: New file.
11336 * Makefile.in (SFILES): Add symbol.c.
11337 (OBS): Add symbol.o.
11338
f8c1d06b
GB
113392014-09-11 Gary Benson <gbenson@redhat.com>
11340
11341 * target.c (target_stop_ptid, target_continue_ptid): New
11342 functions.
11343
721ec300
GB
113442014-09-11 Tom Tromey <tromey@redhat.com>
11345 Gary Benson <gbenson@redhat.com>
11346
11347 * target.h: Include target/target.h.
11348 * target.c (target_read_memory, target_read_uint32)
11349 (target_write_memory): New functions.
11350
c5e92cca
GB
113512014-09-11 Gary Benson <gbenson@redhat.com>
11352
11353 * server.h (debug_hw_points): Don't declare.
11354 * server.c (debug_hw_points): Don't define. Replace all uses
11355 with show_debug_regs.
11356 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11357 all uses with show_debug_regs.
11358
2e4bb98a
EBM
113592014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11360
11361 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11362 endianness into account.
11363 (ppc_supply_ptrace_register): Likewise.
11364
ac740bc7
JH
113652014-09-03 James Hogan <james.hogan@imgtec.com>
11366
11367 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11368 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11369
97ea6506
GB
113702014-09-03 Gary Benson <gbenson@redhat.com>
11371
11372 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11373 ALL_DEBUG_ADDRESS_REGISTERS.
11374
df7e5265
GB
113752014-09-02 Gary Benson <gbenson@redhat.com>
11376
11377 * i386-low.h: Renamed as...
11378 * x86-low.h: New file. All type, function and variable name
11379 prefixes changed from "i386_" to "x86_". All references updated.
11380 * i386-low.c: Renamed as...
11381 * x86-low.c: New file. All type, function and variable name
11382 prefixes changed from "i386_" to "x86_". All references updated.
11383
ed859da7
GB
113842014-09-02 Gary Benson <gbenson@redhat.com>
11385
11386 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11387 (x86_linux_new_thread): Likewise.
11388
860789c7
GB
113892014-08-29 Gary Benson <gbenson@redhat.com>
11390
11391 * server.h (setjmp.h): Do not include.
11392 (toplevel): Do not declare.
11393 (common-exceptions.h): Include.
11394 (cleanups.h): Likewise.
11395 * server.c (toplevel): Do not define.
11396 (exit_code): New static global.
11397 (detach_or_kill_for_exit_cleanup): New function.
11398 (main): New function. Original main renamed to...
11399 (captured_main): New function.
11400 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11401
ff55e1b5
GB
114022014-08-29 Gary Benson <gbenson@redhat.com>
11403
11404 * Makefile.in (SFILES): Add common/common-exceptions.c.
11405 (OBS): Add common-exceptions.o.
11406 (common-exceptions.o): New rule.
11407 * utils.c (prepare_to_throw_exception): New function.
11408
e9bcb658
GB
114092014-08-29 Gary Benson <gbenson@redhat.com>
11410
11411 * config.in: Regenerate.
11412 * configure: Likewise.
11413
e3180625
GB
114142014-08-29 Gary Benson <gbenson@redhat.com>
11415
11416 * Makefile.in (SFILES): Add common/cleanups.c.
11417 (OBS): cleanups.o.
11418 (cleanups.o): New rule.
11419
e3d6ba5d
GB
114202014-08-29 Gary Benson <gbenson@redhat.com>
11421
11422 * utils.c (internal_vwarning): New function.
11423
7096e886
GB
114242014-08-28 Gary Benson <gbenson@redhat.com>
11425
11426 * utils.h (fatal): Remove declaration.
11427 * utils.c (fatal): Remove function.
11428
14ce3192
GB
114292014-08-28 Gary Benson <gbenson@redhat.com>
11430
11431 * tracepoint.c (gdb_agent_init): Replace fatal with
11432 perror_with_name.
11433 (initialize_tracepoint): Likewise.
11434
50278d59
GB
114352014-08-28 Gary Benson <gbenson@redhat.com>
11436
11437 * remote-utils.c (remote_prepare): Replace fatal with error.
11438
aa96c426
GB
114392014-08-28 Gary Benson <gbenson@redhat.com>
11440
11441 * linux-low.c (linux_async): Replace fatal with warning.
11442 Tidy up and return.
11443 (linux_start_non_stop): Return -1 if linux_async failed.
11444
f7160e97
GB
114452014-08-28 Gary Benson <gbenson@redhat.com>
11446
11447 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11448 gdb_assert.
11449 (i386_dr_low_get_addr): Remove vague comment.
11450 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11451 gdb_assert.
11452
38e08fca
GB
114532014-08-28 Gary Benson <gbenson@redhat.com>
11454
11455 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11456 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11457 internal_error.
11458 (linux_resume_one_lwp): Likewise.
11459 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11460 gdb_assert.
11461 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11462 with internal_error.
11463 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11464 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11465 (find_register_by_name): Replace fatal with internal_error.
11466 (find_regno): Likewise.
11467 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11468 * thread-db.c (thread_db_create_event): Likewise.
11469 (thread_db_load_search): Likewise.
11470 (try_thread_db_load_1): Likewise.
11471 * tracepoint.c (get_jump_space_head): Replace fatal with
11472 internal_error.
11473 (claim_trampoline_space): Likewise.
11474 (have_fast_tracepoint_trampoline_buffer): Likewise.
11475 (cmd_qtstart): Likewise.
11476 (stop_tracing): Likewise.
11477 (fast_tracepoint_collecting): Likewise.
11478 (target_malloc): Likewise.
11479 (download_tracepoint): Likewise.
11480 (download_trace_state_variables): Replace check with gdb_assert.
11481 (upload_fast_traceframes): Replace fatal with internal_error.
11482
34abf635
GB
114832014-08-19 Tom Tromey <tromey@redhat.com>
11484 Gary Benson <gbenson@redhat.com>
11485
11486 * Makefile.in (SFILES): Add common/common-debug.c.
11487 (OBS): Add common-debug.o.
11488 (common-debug.o): New rule.
11489 * debug.h (debug_printf): Don't declare.
11490 * debug.c (debug_printf): Renamed and rewritten as...
11491 (debug_vprintf): New function.
11492
f6e94d78
GB
114932014-08-19 Gary Benson <gbenson@redhat.com>
11494
11495 * utils.h: Do not include print-utils.h.
11496
9239eeab
GB
114972014-08-19 Tom Tromey <tromey@redhat.com>
11498 Gary Benson <gbenson@redhat.com>
11499
11500 * server.h: Add static assertion.
11501 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11502
ef87c8bb
GB
115032014-08-19 Tom Tromey <tromey@redhat.com>
11504 Gary Benson <gbenson@redhat.com>
11505
11506 * Makefile.in (SFILES): Add common/errors.c.
11507 (OBS): Add errors.o.
11508 (IPA_OBS): Add errors-ipa.o.
11509 (errors.o): New rule.
11510 (errors-ipa.o): Likewise.
11511 * utils.h (perror_with_name, error, warning): Don't declare.
11512 * utils.c (warning): Renamed and rewritten as...
11513 (vwarning): New function.
11514 (error): Renamed and rewritten as...
11515 (verror): New function.
11516 (internal_error): Renamed and rewritten as...
11517 (internal_verror): New function.
11518
bb974a24
GB
115192014-08-07 Gary Benson <gbenson@redhat.com>
11520
11521 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11522 * configure: Regenerate.
11523 * config.in: Likewise.
11524 * server.h: Do not include errno.h.
11525 * event-loop.c: Likewise.
11526 * hostio-errno.c: Likewise.
11527 * linux-low.c: Likewise.
11528 * remote-utils.c: Likewise.
11529 * spu-low.c: Likewise.
11530 * utils.c: Likewise.
11531 * gdbreplay.c: Unconditionally include errno.h.
11532
6d3d12eb
GB
115332014-08-07 Gary Benson <gbenson@redhat.com>
11534
11535 * server.h: Do not include string.h.
11536 * event-loop.c: Likewise.
11537 * linux-low.c: Likewise.
11538 * regcache.c: Likewise.
11539 * remote-utils.c: Likewise.
11540 * spu-low.c: Likewise.
11541 * utils.c: Likewise.
11542
dccbb609
GB
115432014-08-07 Gary Benson <gbenson@redhat.com>
11544
11545 * server.h: Do not include gdb_assert.h.
11546
e76df0d0
GB
115472014-08-07 Gary Benson <gbenson@redhat.com>
11548
11549 * server.h: Do not include common-utils.h.
11550
4cb9c816
GB
115512014-08-07 Gary Benson <gbenson@redhat.com>
11552
11553 * server.h: Do not include ptid.h.
11554 * notif.h: Likewise.
11555
3995eeee
GB
115562014-08-07 Gary Benson <gbenson@redhat.com>
11557
11558 * server.h: Do not include gdb_locale.h.
11559
cb9f1a9b
GB
115602014-08-07 Gary Benson <gbenson@redhat.com>
11561
11562 * server.h: Do not include gdb/signals.h.
11563 * win32-low.c: Likewise.
11564
a5fceff8
GB
115652014-08-07 Gary Benson <gbenson@redhat.com>
11566
11567 * server.h: Do not include pathmax.h.
11568
b9391142
GB
115692014-08-07 Gary Benson <gbenson@redhat.com>
11570
11571 * server.h: Do not include libiberty.h.
11572 * linux-bfin-low.c: Likewise.
11573
0e443c87
GB
115742014-08-07 Gary Benson <gbenson@redhat.com>
11575
11576 * server.h: Do not include ansidecl.h.
11577
8ebb3f56
GB
115782014-08-07 Gary Benson <gbenson@redhat.com>
11579
11580 * linux-x86-low.c: Do not include stddef.h.
11581 * lynx-ppc-low.c: Likewise.
11582 * tracepoint.c: Likewise.
11583
8980bdf6
GB
115842014-08-07 Gary Benson <gbenson@redhat.com>
11585
11586 * server.h: Do not include stdarg.h.
11587 * nto-low.c: Likewise.
11588
d7096f71
GB
115892014-08-07 Gary Benson <gbenson@redhat.com>
11590
11591 * server.h: Do not include stdlib.h.
11592 * inferiors.c: Likewise.
11593 * linux-low.c: Likewise.
11594 * regcache.c: Likewise.
11595 * spu-low.c: Likewise.
11596 * tracepoint.c: Likewise.
11597 * utils.c: Likewise.
11598
d02f550d
GB
115992014-08-07 Gary Benson <gbenson@redhat.com>
11600
11601 * server.h: Do not include stdio.h.
11602 * linux-low.c: Likewise.
11603 * remote-utils.c: Likewise.
11604 * spu-low.c: Likewise.
11605 * utils.c: Likewise.
11606 * wincecompat.c: Likewise.
11607
87f6c4e3
GB
116082014-08-06 Gary Benson <gbenson@redhat.com>
11609
11610 * regcache.c (init_register_cache): Move conditionals inside if.
11611
7089dca4
GB
116122014-08-06 Gary Benson <gbenson@redhat.com>
11613
11614 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
11615
462f517e
GB
116162014-07-31 Gary Benson <gbenson@redhat.com>
11617
11618 * ax.h: Do not include server.h.
11619 * gdbthread.h: Likewise.
11620 * lynx-low.h: Likewise.
11621 * notif.h: Likewise.
11622
976411d6
GB
116232014-07-30 Gary Benson <gbenson@redhat.com>
11624
11625 * server.h: Include common-defs.h.
11626 Do not include config.h or build-gnulib-gdbserver/config.h.
11627
d41f6d8e
GB
116282014-07-30 Gary Benson <gbenson@redhat.com>
11629
11630 * hostio-errno.c: Move server.h to top of includes list.
11631 * inferiors.c: Likewise.
11632 * linux-x86-low.c: Likewise.
11633 * notif.c: Include server.h.
11634
314c6a35
TT
116352014-07-24 Tom Tromey <tromey@redhat.com>
11636 Gary Benson <gbenson@redhat.com>
11637
11638 * server.h (CORE_ADDR): Now unsigned.
11639
69ff6be5
PA
116402014-07-16 Pedro Alves <palves@redhat.com>
11641
11642 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
11643
ce9e3fe7
PA
116442014-07-15 Pedro Alves <palves@redhat.com>
11645
11646 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
11647 copy.
11648
e76126e8
PA
116492014-07-11 Pedro Alves <palves@redhat.com>
11650
11651 * linux-low.c (kill_wait_lwp): New function, based on
11652 kill_one_lwp_callback, but use my_waitpid directly.
11653 (kill_one_lwp_callback, linux_kill): Use it.
11654
8e9db26e
PA
116552014-06-23 Pedro Alves <palves@redhat.com>
11656
11657 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
11658 before setting DR0..DR3.
11659
698b3e08
GB
116602014-06-20 Gary Benson <gbenson@redhat.com>
11661
11662 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
11663 * configure: Regenerated.
11664 * config.in: Likewise.
11665
125f8a3d
GB
116662014-06-20 Gary Benson <gbenson@redhat.com>
11667
11668 * Makefile.in (SFILES): Update locations for files moved
11669 from common to nat.
11670 (object file files): Reordered.
11671
42995dbd
GB
116722014-06-20 Gary Benson <gbenson@redhat.com>
11673
11674 * i386-low.h (i386_dr_low_can_set_addr): Removed.
11675 (i386_dr_low_set_addr): Likewise.
11676 (i386_dr_low_get_addr): Likewise.
11677 (i386_dr_low_can_set_control): Likewise.
11678 (i386_dr_low_set_control): Likewise.
11679 (i386_dr_low_get_control): Likewise.
11680 (i386_dr_low_get_status): Likewise.
11681 (i386_get_debug_register_length): Likewise.
11682 * linux-x86-low.c (i386_dr_low_set_addr):
11683 Changed signature. Made static.
11684 (i386_dr_low_get_addr): Likewise.
11685 (i386_dr_low_set_control): Likewise.
11686 (i386_dr_low_get_control): Likewise.
11687 (i386_dr_low_get_status): Likewise.
11688 (i386_dr_low): New global variable.
11689 * win32-i386-low.c (i386_dr_low_set_addr):
11690 Changed signature. Made static.
11691 (i386_dr_low_get_addr): Likewise.
11692 (i386_dr_low_set_control): Likewise.
11693 (i386_dr_low_get_control): Likewise.
11694 (i386_dr_low_get_status): Likewise.
11695 (i386_dr_low): New global variable.
11696
e1d2394b
MS
116972014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
11698
11699 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
11700 * Makefile.in (AR, AR_FLAGS): Define.
11701 * configure: Regenerate.
11702
3a8ee006
GB
117032014-06-19 Gary Benson <gbenson@redhat.com>
11704
11705 * Makefile.in (i386-dregs.o): New rule.
11706 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
11707 * i386-low.c (target.h): Remove include.
11708 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
11709 (DR_CONTROL_SHIFT): Likewise.
11710 (DR_CONTROL_SIZE): Likewise.
11711 (DR_RW_EXECUTE): Likewise.
11712 (DR_RW_WRITE): Likewise.
11713 (DR_RW_READ): Likewise.
11714 (DR_RW_IORW): Likewise.
11715 (DR_LEN_1): Likewise.
11716 (DR_LEN_2): Likewise.
11717 (DR_LEN_4): Likewise.
11718 (DR_LEN_8): Likewise.
11719 (DR_LOCAL_ENABLE_SHIFT): Likewise.
11720 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
11721 (DR_ENABLE_SIZE): Likewise.
11722 (DR_LOCAL_SLOWDOWN): Likewise.
11723 (DR_GLOBAL_SLOWDOWN): Likewise.
11724 (DR_CONTROL_RESERVED): Likewise.
11725 (I386_DR_CONTROL_MASK): Likewise.
11726 (I386_DR_VACANT): Likewise.
11727 (I386_DR_LOCAL_ENABLE): Likewise.
11728 (I386_DR_GLOBAL_ENABLE): Likewise.
11729 (I386_DR_DISABLE): Likewise.
11730 (I386_DR_SET_RW_LEN): Likewise.
11731 (I386_DR_GET_RW_LEN): Likewise.
11732 (I386_DR_WATCH_HIT): Likewise.
11733 (i386_wp_op_t): Likewise.
11734 (i386_show_dr): Likewise.
11735 (i386_length_and_rw_bits): Likewise.
11736 (i386_insert_aligned_watchpoint): Likewise.
11737 (i386_remove_aligned_watchpoint): Likewise.
11738 (i386_handle_nonaligned_watchpoint): Likewise.
11739 i386_update_inferior_debug_regs(): Likewise.
11740 (i386_dr_insert_watchpoint): Likewise.
11741 (i386_dr_remove_watchpoint): Likewise.
11742 (i386_dr_region_ok_for_watchpoint): Likewise.
11743 (i386_dr_stopped_data_address): Likewise.
11744 (i386_dr_stopped_by_watchpoint): Likewise.
11745
8f26655c
GB
117462014-06-19 Gary Benson <gbenson@redhat.com>
11747
11748 * i386-low.c (i386_dr_show): Renamed to
11749 i386_show_dr and made static. All uses updated.
11750 (i386_dr_length_and_rw_bits): Renamed to
11751 i386_length_and_rw_bits and made static.
11752 All uses updated.
11753 (i386_dr_insert_aligned_watchpoint): Renamed to
11754 i386_insert_aligned_watchpoint and made static.
11755 All uses updated.
11756 (i386_dr_remove_aligned_watchpoint): Renamed to
11757 i386_remove_aligned_watchpoint and made static.
11758 All uses updated.
11759 (i386_dr_update_inferior_debug_regs): Renamed to
11760 i386_update_inferior_debug_regs and made static.
11761 All uses updated.
11762
b9228891
GB
117632014-06-18 Gary Benson <gbenson@redhat.com>
11764
5171def3
GB
11765 * i386-low.h (i386_dr_low_can_set_addr): New macro.
11766 (i386_dr_low_can_set_control): Likewise.
11767 (i386_get_debug_register_length): Likewise.
11768 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
11769 (i386_dr_low_can_set_control): Likewise.
11770 (i386_get_debug_register_length): Likewise.
11771
117722014-06-17 Gary Benson <gbenson@redhat.com>
11773
b9228891
GB
11774 * i386-low.h (i386-dregs.h): New include.
11775 (DR_FIRSTADDR): Now in i386-dregs.h.
11776 (DR_LASTADDR): Likewise.
11777 (DR_NADDR): Likewise.
11778 (DR_STATUS): Likewise.
11779 (DR_CONTROL): Likewise.
11780 (i386_debug_reg_state): Likewise.
11781 (i386_dr_insert_watchpoint): Likewise.
11782 (i386_dr_remove_watchpoint): Likewise.
11783 (i386_dr_region_ok_for_watchpoint): Likewise.
11784 (i386_dr_stopped_data_address): Likewise.
11785 (i386_dr_stopped_by_watchpoint): Likewise.
11786 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
11787
4be83cc2
GB
117882014-06-18 Gary Benson <gbenson@redhat.com>
11789
11790 * i386-low.h (i386_low_insert_watchpoint): Renamed to
11791 i386_dr_insert_watchpoint.
11792 (i386_low_remove_watchpoint): Renamed to
11793 i386_dr_remove_watchpoint.
11794 (i386_low_region_ok_for_watchpoint): Renamed to
11795 i386_dr_region_ok_for_watchpoint.
11796 (i386_low_stopped_data_address): Renamed to
11797 i386_dr_stopped_data_address.
11798 (i386_low_stopped_by_watchpoint): Renamed to
11799 i386_dr_stopped_by_watchpoint.
11800 * i386-low.c (i386_show_dr): Renamed to
11801 i386_dr_show and made nonstatic. All uses updated.
11802 (i386_length_and_rw_bits): Renamed to
11803 i386_dr_length_and_rw_bits and made nonstatic.
11804 All uses updated.
11805 (i386_insert_aligned_watchpoint): Renamed to
11806 i386_dr_insert_aligned_watchpoint and made nonstatic.
11807 All uses updated.
11808 (i386_remove_aligned_watchpoint): Renamed to
11809 i386_dr_remove_aligned_watchpoint and made nonstatic.
11810 All uses updated.
11811 (i386_update_inferior_debug_regs): Renamed to
11812 i386_dr_update_inferior_debug_regs and made nonstatic.
11813 All uses updated.
11814 (i386_low_insert_watchpoint): Renamed to
11815 i386_dr_insert_watchpoint. All uses updated.
11816 (i386_low_remove_watchpoint): Renamed to
11817 i386_dr_remove_watchpoint. All uses updated.
11818 (i386_low_region_ok_for_watchpoint): Renamed to
11819 i386_dr_region_ok_for_watchpoint. All uses updated.
11820 (i386_low_stopped_data_address): Renamed to
11821 i386_dr_stopped_data_address. All uses updated.
11822 (i386_low_stopped_by_watchpoint): Renamed to
11823 i386_dr_stopped_by_watchpoint. All uses updated.
11824
131aa0d4
GB
118252014-06-18 Gary Benson <gbenson@redhat.com>
11826
11827 * i386-low.c (i386_dr_low_can_set_addr): New macro.
11828 (i386_dr_low_can_set_control): Likewise.
11829 (i386_insert_aligned_watchpoint): New check.
11830
d9305f7f
GB
118312014-06-18 Gary Benson <gbenson@redhat.com>
11832
11833 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
11834 Renamed to state.
11835
e927c9fc
GB
118362014-06-18 Gary Benson <gbenson@redhat.com>
11837
11838 * i386-low.c (i386_length_and_rw_bits): Use internal_error
11839 instead of fatal and error.
11840 (i386_handle_nonaligned_watchpoint): Likewise.
11841
1b6d4134
GB
118422014-06-18 Gary Benson <gbenson@redhat.com>
11843
11844 * i386-low.c (i386_get_debug_register_length): New macro.
11845 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
11846 (i386_show_dr): Use debug_printf instead of fprintf. Use
11847 phex to format values.
11848
6e62758f
GB
118492014-06-18 Gary Benson <gbenson@redhat.com>
11850
11851 * i386-low.h: Comment changes.
11852 * i386-low.c: Likewise.
11853
fc6e2f03
GB
118542014-06-18 Gary Benson <gbenson@redhat.com>
11855
11856 * i386-low.c: Whitespace changes.
11857
f9d1eeed
TT
118582014-06-12 Tom Tromey <tromey@redhat.com>
11859
11860 * utils.c (freeargv): Remove.
11861
0b04e523
TT
118622014-06-12 Tom Tromey <tromey@redhat.com>
11863
11864 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
11865 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
11866 (parse_debug_format_options): Likewise.
11867 (gdbserver_usage): Likewise.
11868 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
11869 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
11870 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
11871 against libiberty.
11872 ($(LIBGNU)): Depend on libiberty.
11873 (all-lib): Recurse into all subdirs.
11874 (install-only): Invoke "install" target in subdirs.
11875 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
11876 targets.
11877 * configure: Rebuild.
11878 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
11879 for vasprintf, vsnprintf, or gettimeofday.
11880 * configure.srv: Don't add safe-ctype.o or lbasename.o to
11881 srv_tgtobj.
11882
270c9937
JB
118832014-06-05 Joel Brobecker <brobecker@adacore.com>
11884
11885 * development.sh: Delete.
11886 * Makefile.in (config.status): Adjust dependency on development.sh.
11887 * configure.ac: Adjust development.sh source call.
11888 * configure: Regenerate.
11889
0a261ed8
PA
118902014-06-02 Pedro Alves <palves@redhat.com>
11891
11892 * ax.c (gdb_free_agent_expr): New function.
11893 * ax.h (gdb_free_agent_expr): New declaration.
11894 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
11895 list.
11896 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
11897 static.
11898 (clear_breakpoint_conditions_and_commands): New function.
11899 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
11900 (clear_breakpoint_conditions_and_commands): New declaration.
11901
e9dae05e
RR
119022014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11903
11904 * linux-aarch64-low.c (asm/ptrace.h): Include.
11905
5876f503
JK
119062014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11907
11908 Fix TLS access for -static -pthread.
11909 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
11910 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
11911 (thread_db_load_search, try_thread_db_load_1): Initialize it.
11912
802e8e6d
PA
119132014-05-20 Pedro Alves <palves@redhat.com>
11914
11915 * linux-aarch64-low.c (aarch64_insert_point)
11916 (aarch64_remove_point): No longer check whether the type is
11917 supported here. Adjust to new interface.
11918 (the_low_target): Install aarch64_supports_z_point_type as
11919 supports_z_point_type method.
11920 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
11921 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
11922 instead of a Z packet char. Adjust.
11923 (arm_supports_z_point_type): New function.
11924 (arm_insert_point, arm_remove_point): Adjust to new interface.
11925 (the_low_target): Install arm_supports_z_point_type.
11926 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
11927 (cris_insert_point, cris_remove_point): Adjust to new interface.
11928 Don't check whether the type is supported here.
11929 (the_low_target): Install cris_supports_z_point_type.
11930 * linux-low.c (linux_supports_z_point_type): New function.
11931 (linux_insert_point, linux_remove_point): Adjust to new interface.
11932 * linux-low.h (struct linux_target_ops) <insert_point,
11933 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
11934 raw_breakpoint pointer parameter.
11935 <supports_z_point_type>: New method.
11936 * linux-mips-low.c (mips_supports_z_point_type): New function.
11937 (mips_insert_point, mips_remove_point): Adjust to new interface.
11938 Use mips_supports_z_point_type.
11939 (the_low_target): Install mips_supports_z_point_type.
11940 * linux-ppc-low.c (the_low_target): Install NULL as
11941 supports_z_point_type method.
11942 * linux-s390-low.c (the_low_target): Install NULL as
11943 supports_z_point_type method.
11944 * linux-sparc-low.c (the_low_target): Install NULL as
11945 supports_z_point_type method.
11946 * linux-x86-low.c (x86_supports_z_point_type): New function.
11947 (x86_insert_point): Adjust to new insert_point interface. Use
11948 insert_memory_breakpoint. Adjust to new
11949 i386_low_insert_watchpoint interface.
11950 (x86_remove_point): Adjust to remove_point interface. Use
11951 remove_memory_breakpoint. Adjust to new
11952 i386_low_remove_watchpoint interface.
11953 (the_low_target): Install x86_supports_z_point_type.
11954 * lynx-low.c (lynx_target_ops): Install NULL as
11955 supports_z_point_type callback.
11956 * nto-low.c (nto_supports_z_point_type): New.
11957 (nto_insert_point, nto_remove_point): Adjust to new interface.
11958 (nto_target_ops): Install nto_supports_z_point_type.
11959 * mem-break.c: Adjust intro comment.
11960 (struct raw_breakpoint) <raw_type, size>: New fields.
11961 <inserted>: Update comment.
11962 <shlib_disabled>: Delete field.
11963 (enum bkpt_type) <gdb_breakpoint>: Delete value.
11964 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
11965 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
11966 (raw_bkpt_type_to_target_hw_bp_type): New function.
11967 (find_enabled_raw_code_breakpoint_at): New function.
11968 (find_raw_breakpoint_at): New type and size parameters. Use them.
11969 (insert_memory_breakpoint): New function, based off
11970 set_raw_breakpoint_at.
11971 (remove_memory_breakpoint): New function.
11972 (set_raw_breakpoint_at): Reimplement.
11973 (set_breakpoint): New, based on set_breakpoint_at.
11974 (set_breakpoint_at): Reimplement.
11975 (delete_raw_breakpoint): Go through the_target->remove_point
11976 instead of assuming memory breakpoints.
11977 (find_gdb_breakpoint_at): Delete.
11978 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
11979 (find_gdb_breakpoint): New function.
11980 (set_gdb_breakpoint_at): Delete.
11981 (z_type_supported): New function.
11982 (set_gdb_breakpoint_1): New function, loosely based off
11983 set_gdb_breakpoint_at.
11984 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
11985 (delete_gdb_breakpoint_at): Delete.
11986 (delete_gdb_breakpoint_1): New function, loosely based off
11987 delete_gdb_breakpoint_at.
11988 (delete_gdb_breakpoint): New function.
11989 (clear_gdb_breakpoint_conditions): Rename to ...
11990 (clear_breakpoint_conditions): ... this. Don't handle a NULL
11991 breakpoint.
11992 (add_condition_to_breakpoint): Make static.
11993 (add_breakpoint_condition): Take a struct breakpoint pointer
11994 instead of an address. Adjust.
11995 (gdb_condition_true_at_breakpoint): Rename to ...
11996 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
11997 z_type parameter.
11998 (gdb_condition_true_at_breakpoint): Reimplement.
11999 (add_breakpoint_commands): Take a struct breakpoint pointer
12000 instead of an address. Adjust.
12001 (gdb_no_commands_at_breakpoint): Rename to ...
12002 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12003 parameter. Return true if no breakpoint was found. Change debug
12004 output.
12005 (gdb_no_commands_at_breakpoint): Reimplement.
12006 (run_breakpoint_commands): Rename to ...
12007 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12008 and change return type to boolean.
12009 (run_breakpoint_commands): New function.
12010 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12011 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12012 breakpoint. Go through the_target->remove_point instead of
12013 assuming memory breakpoint.
12014 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12015 software and hardware breakpoints.
12016 (reinsert_raw_breakpoint): Go through the_target->insert_point
12017 instead of assuming memory breakpoint.
12018 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12019 software and hardware breakpoints.
12020 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12021 Check both software and hardware breakpoints.
12022 (validate_inserted_breakpoint): Assert the breakpoint is a
12023 software breakpoint. Set the inserted flag to -1 instead of
12024 setting shlib_disabled.
12025 (delete_disabled_breakpoints): Adjust.
12026 (validate_breakpoints): Only validate software breakpoints.
12027 Adjust to inserted flag change.
12028 (check_mem_read, check_mem_write): Skip breakpoint types other
12029 than software breakpoints. Adjust to inserted flag change.
12030 * mem-break.h (enum raw_bkpt_type): New enum.
12031 (raw_breakpoint, struct process_info): Forward declare.
12032 (Z_packet_to_target_hw_bp_type): Delete declaration.
12033 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12034 (set_gdb_breakpoint, delete_gdb_breakpoint)
12035 (clear_breakpoint_conditions): New declarations.
12036 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12037 (breakpoint_inserted_here): Update comment.
12038 (add_breakpoint_condition, add_breakpoint_commands): Replace
12039 address parameter with a breakpoint pointer parameter.
12040 (gdb_breakpoint_here): Update comment.
12041 (delete_gdb_breakpoint_at): Delete.
12042 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12043 * server.c (process_point_options): Take a struct breakpoint
12044 pointer instead of an address. Adjust.
12045 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12046 delete_gdb_breakpoint.
12047 * spu-low.c (spu_target_ops): Install NULL as
12048 supports_z_point_type method.
12049 * target.h: Include mem-break.h.
12050 (struct target_ops) <prepare_to_access_memory>: Update comment.
12051 <supports_z_point_type>: New field.
12052 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12053 instead of a char. Also take a raw breakpoint pointer.
12054 * win32-arm-low.c (the_low_target): Install NULL as
12055 supports_z_point_type.
12056 * win32-i386-low.c (i386_supports_z_point_type): New function.
12057 (i386_insert_point, i386_remove_point): Adjust to new interface.
12058 (the_low_target): Install i386_supports_z_point_type.
12059 * win32-low.c (win32_supports_z_point_type): New function.
12060 (win32_insert_point, win32_remove_point): Adjust to new interface.
12061 (win32_target_ops): Install win32_supports_z_point_type.
12062 * win32-low.h (struct win32_target_ops):
12063 <supports_z_point_type>: New method.
12064 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12065 instead of a char. Also take a raw breakpoint pointer.
12066
932539e3
PA
120672014-05-20 Pedro Alves <palves@redhat.com>
12068
12069 * mem-break.h: Include break-common.h.
12070 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12071 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12072 (Z_packet_to_target_hw_bp_type): New declaration.
12073 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12074 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12075 (Z_PACKET_ACCESS_WP): Delete macros.
12076 (Z_packet_to_hw_type): Delete function.
12077 * i386-low.h: Don't include break-common.h here.
12078 (Z_packet_to_hw_type): Delete declaration.
12079 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12080 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12081 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12082 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12083 * linux-aarch64-low.c: Don't include break-common.h here.
12084 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12085 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12086 (Z_packet_to_target_hw_bp_type): Delete function.
12087 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12088 function.
12089 (mips_insert_point, mips_remove_point): Use
12090 Z_packet_to_target_hw_bp_type.
12091
4ff0d3d8
PA
120922014-05-20 Pedro Alves <palves@redhat.com>
12093
12094 * linux-aarch64-low.c: Include break-common.h.
12095 (enum target_point_type): Delete.
12096 (Z_packet_to_point_type): Rename to ...
12097 (Z_packet_to_target_hw_bp_type): ... this, and return a
12098 target_hw_bp_type instead.
12099 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12100 instead of an enum target_point_type.
12101 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12102 breakpoint type.
12103 (aarch64_dr_state_insert_one_point)
12104 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12105 (aarch64_handle_aligned_watchpoint)
12106 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12107 Take an enum target_hw_bp_type instead of an enum
12108 target_point_type.
12109 (aarch64_supports_z_point_type): New function.
12110 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12111 use Z_packet_to_target_hw_bp_type.
12112
786dc519
JB
121132014-05-20 Joel Brobecker <brobecker@adacore.com>
12114
12115 * configure.ac: Only use -Werror by default when DEVELOPMENT
12116 is true.
12117 * configure: Regenerate.
12118
9e0aa64f
JK
121192014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12120
12121 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12122 * linux-x86-low.c (X86_64_USER_REGS): New.
12123 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12124
2b577b92
YQ
121252014-04-28 Yao Qi <yao@codesourcery.com>
12126
12127 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12128 name.
12129
94611da2
PA
121302014-04-25 Pedro Alves <palves@redhat.com>
12131
12132 PR server/16255
12133 * linux-low.c (linux_attach_fail_reason_string): New function.
12134 (linux_attach_lwp): Delete.
12135 (linux_attach_lwp_1): Rename to ...
12136 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12137 argument. Remove "initial" parameter. Return int instead of
12138 void. Don't error or warn here.
12139 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12140 failure to attach to the tgid. Call warning when failing to
12141 attach to an lwp.
12142 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12143 argument. Remove "initial" parameter. Return int instead of
12144 void. Don't error or warn here.
12145 (linux_attach_fail_reason_string): New declaration.
12146 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12147 interface change. Use linux_attach_fail_reason_string.
12148
01f9f808
MS
121492014-04-24 Michael Sturm <michael.sturm@mintel.com>
12150 Walfred Tedeschi <walfred.tedeschi@intel.com>
12151
12152 * Makefile.in: Added rules to handle new files
12153 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12154 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12155 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12156 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12157 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12158 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12159 x32-avx512-linux.o.
12160 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12161 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12162 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12163 i386/x32-avx512.xml.
12164 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12165 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12166 i386/x32-avx512-linux.xml.
12167 * i387-fp.c (num_avx512_k_registers): New constant for number
12168 of K registers.
12169 (num_avx512_zmmh_low_registers): New constant for number of
12170 lower ZMM registers (0-15).
12171 (num_avx512_zmmh_high_registers): New constant for number of
12172 higher ZMM registers (16-31).
12173 (num_avx512_ymmh_registers): New contant for number of higher
12174 YMM registers (ymm16-31 added by avx521 on x86_64).
12175 (num_avx512_xmm_registers): New constant for number of higher
12176 XMM registers (xmm16-31 added by AVX512 on x86_64).
12177 (struct i387_xsave): Add space for AVX512 registers.
12178 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12179 Add code to handle AVX512 registers.
12180 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12181 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12182 prototypei from generated file.
12183 (tdesc_amd64_avx512_linux): Likewise.
12184 (init_registers_x32_avx512_linux): Likewise.
12185 (tdesc_x32_avx512_linux): Likewise.
12186 (init_registers_i386_avx512_linux): Likewise.
12187 (tdesc_i386_avx512_linux): Likewise.
12188 (x86_64_regmap): Add AVX512 registers.
12189 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12190 mask.
12191 (initialize_low_arch): Add code to initialize AVX512 registers.
12192
51aa91f9
PA
121932014-04-23 Pedro Alves <palves@redhat.com>
12194
12195 * mem-break.c (find_gdb_breakpoint_at): Make static.
12196 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12197
a4165e94
PA
121982014-04-23 Pedro Alves <palves@redhat.com>
12199
12200 * i386-low.c: Don't include break-common.h here.
12201 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12202 prototype to take target_hw_bp_type as argument instead of a Z
12203 packet char.
12204 * i386-low.h: Include break-common.h here.
12205 (Z_packet_to_hw_type): Declare.
12206 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12207 prototypes.
12208 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12209 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12210 (x86_remove_point): Convert the packet number to a
12211 target_hw_bp_type before calling i386_low_remove_watchpoint.
12212 * win32-i386-low.c (i386_insert_point): Convert the packet number
12213 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12214 (i386_remove_point): Convert the packet number to a
12215 target_hw_bp_type before calling i386_low_remove_watchpoint.
12216
b8acf843
PA
122172014-04-23 Pedro Alves <palves@redhat.com>
12218
12219 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12220
d708bcd1
PA
122212014-04-10 Pedro Alves <palves@redhat.com>
12222
12223 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12224 Check if the condition or command is NULL before checking if the
12225 breakpoint is known. On success, return true.
12226 * mem-break.h (add_breakpoint_condition): Document return.
12227 (add_breakpoint_commands): Add describing comment.
12228 * server.c (skip_to_semicolon): New function.
12229 (process_point_options): Use it.
12230
2eec7d5b
PA
122312014-04-09 Pedro Alves <palves@redhat.com>
12232
12233 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12234 to lwpid_of.
12235
fa96cb38
PA
122362014-02-27 Pedro Alves <palves@redhat.com>
12237
12238 PR 12702
12239 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12240 macros.
12241 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12242 output.
12243 (last_thread_of_process_p): Take a PID argument instead of a
12244 thread pointer.
12245 (linux_wait_for_lwp): Delete.
12246 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12247 functions.
12248 (linux_low_filter_event): New function, party factored out from
12249 linux_wait_for_event.
12250 (linux_wait_for_event): Rename to ...
12251 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12252 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12253 sigsuspend. Check for zombie leaders.
12254 (linux_wait_for_event): Reimplement as wrapper around
12255 linux_wait_for_event_filtered.
12256 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12257 a normal or signal exit is seen, it's the whole process exiting.
12258 (wait_for_sigstop): No longer a for_each_inferior callback.
12259 Rewrite on top of linux_wait_for_event_filtered.
12260 (stop_all_lwps): Call wait_for_sigstop directly.
12261 * server.c (resume, handle_target_event): Handle
12262 TARGET_WAITKIND_NO_RESUMED.
12263
d763de10
JB
122642014-02-26 Joel Brobecker <brobecker@adacore.com>
12265
12266 * win32-low.c (psapi_get_dll_name,
12267 * win32_CreateToolhelp32Snapshot): Delete.
12268 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12269 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12270 Delete.
12271 (handle_load_dll): Add function description.
12272 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12273
850a0f76
JB
122742014-02-26 Joel Brobecker <brobecker@adacore.com>
12275
12276 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12277 Add comment.
12278 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12279 base address when calling win32_add_one_solib.
12280 (handle_load_dll): Delete local variable load_addr.
12281 Remove 0x1000 offset applied to DLL base address when calling
12282 win32_add_one_solib.
12283 (handle_unload_dll): Add comment.
12284
f25b3fc3
JB
122852014-02-26 Joel Brobecker <brobecker@adacore.com>
12286
12287 * win32-low.c (win32_add_all_dlls): Renames
12288 win32_ensure_ntdll_loaded. Rewrite function documentation.
12289 Adjust implementation to always load all DLLs.
12290 Add 0x1000 offset to DLL base address when calling
12291 win32_add_one_solib.
12292 (child_initialization_done): New static global.
12293 (do_initial_child_stuff): Set child_initialization_done to
12294 zero during child initialization, and 1 after. Replace call
12295 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12296 Add comment.
12297 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12298 (handle_unload_dll): Add function documentation.
12299 (get_child_debug_event): Ignore load and unload DLL events
12300 during child initialization.
12301
d86d4aaf
DE
123022014-02-20 Doug Evans <dje@google.com>
12303
3bc32da3 12304 Remove global all_lwps.
d86d4aaf
DE
12305 * inferiors.h (ptid_of): Move here from linux-low.h.
12306 (pid_of, lwpid_of): Ditto.
12307 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12308 parameter is a struct thread_info * now.
12309 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12310 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12311 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12312 directly.
12313 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12314 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12315 * linux-arm-low.c (update_registers_callback): Update, "entry"
12316 parameter is a struct thread_info * now.
12317 Fetch lwpid from current_inferior directly.
12318 (arm_insert_point): Pass &all_threads to find_inferior instead of
12319 &all_lwps.
12320 (arm_remove_point): Ditto.
12321 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12322 (arm_prepare_to_resume): Fetch pid from thread.
12323 (arm_read_description): Fetch lwpid from current_inferior directly.
12324 * linux-low.c (all_lwps): Delete.
12325 (delete_lwp): Delete call to remove_inferior.
12326 (handle_extended_wait): Fetch lwpid from thread.
12327 (add_lwp): Don't set lwp->entry.id. Remove call to
12328 add_inferior_to_list.
12329 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12330 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12331 (kill_one_lwp_callback): Ditto.
12332 (linux_kill): Don't dereference NULL pointer.
12333 Fetch ptid,lwpid from thread.
12334 (get_detach_signal): Fetch ptid from thread.
12335 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12336 Simplify call to regcache_invalidate_thread.
12337 (delete_lwp_callback): Update, "entry" parameter is a
12338 struct thread_info * now. Fetch pid from thread.
12339 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12340 (status_pending_p_callback): Update, "entry" parameter is a
12341 struct thread_info * now. Fetch ptid from thread.
12342 (find_lwp_pid): Update, "entry" parameter is a
12343 struct thread_info * now.
12344 (linux_wait_for_lwp): Fetch pid from thread.
12345 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12346 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12347 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12348 (dequeue_one_deferred_signal): Ditto.
12349 (cancel_breakpoint): Fetch ptid from current_inferior.
12350 (linux_wait_for_event): Pass &all_threads to find_inferior,
12351 not &all_lwps. Fetch ptid, lwpid from thread.
12352 (count_events_callback): Update, "entry" parameter is a
12353 struct thread_info * now.
12354 (select_singlestep_lwp_callback): Ditto.
12355 (select_event_lwp_callback): Ditto.
12356 (cancel_breakpoints_callback): Ditto.
12357 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12358 not &all_lwps.
12359 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12360 (unsuspend_one_lwp): Update, "entry" parameter is a
12361 struct thread_info * now.
12362 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12363 not &all_lwps.
12364 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12365 Fetch lwpid from thread, not lwp.
12366 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12367 Pass &all_threads to find_inferior, not &all_lwps.
12368 (send_sigstop): Fetch lwpid from thread, not lwp.
12369 (send_sigstop_callback): Update, "entry" parameter is a
12370 struct thread_info * now.
12371 (suspend_and_send_sigstop_callback): Ditto.
12372 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12373 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12374 struct thread_info * now.
12375 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12376 from thread, lwp.
12377 (lwp_running): Update, "entry" parameter is a
12378 struct thread_info * now.
12379 (stop_all_lwps): Fetch ptid from thread.
12380 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12381 (linux_resume_one_lwp): Fetch lwpid from thread.
12382 (linux_set_resume_request): Update, "entry" parameter is a
12383 struct thread_info * now. Fetch pid, lwpid from thread.
12384 (resume_status_pending_p): Update, "entry" parameter is a
12385 struct thread_info * now.
12386 (need_step_over_p): Ditto. Fetch lwpid from thread.
12387 (start_step_over): Fetch lwpid from thread.
12388 (linux_resume_one_thread): Update, "entry" parameter is a
12389 struct thread_info * now. Fetch lwpid from thread.
12390 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12391 (proceed_one_lwp): Update, "entry" parameter is a
12392 struct thread_info * now. Fetch lwpid from thread.
12393 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12394 struct thread_info * now.
12395 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12396 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12397 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12398 directly.
12399 (regsets_store_inferior_registers): Ditto.
12400 (fetch_register, store_register): Ditto.
12401 (linux_read_memory, linux_write_memory): Ditto.
12402 (linux_request_interrupt): Ditto.
12403 (linux_read_auxv): Ditto.
12404 (linux_xfer_siginfo): Ditto.
12405 (linux_qxfer_spu): Ditto.
12406 (linux_qxfer_libraries_svr4): Ditto.
12407 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12408 moved to inferiors.h.
12409 (get_lwp): Delete.
12410 (get_thread_lwp): Update.
12411 (struct lwp_info): Delete member "entry". Simplify comment for
12412 member "thread".
12413 (all_lwps): Delete.
12414 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12415 current_inferior directly.
12416 (update_watch_registers_callback): Update, "entry" parameter is a
12417 struct thread_info * now. Fetch pid from thread.
12418 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12419 (mips_insert_point): Fetch lwpid from current_inferior.
12420 Pass &all_threads to find_inferior, not &all_lwps.
12421 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12422 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12423 directly.
12424 (mips_stopped_data_address): Ditto.
12425 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12426 directly.
12427 * linux-tile-low.c (tile_arch_setup): Ditto.
12428 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12429 (update_debug_registers_callback): Update, "entry" parameter is a
12430 struct thread_info * now. Fetch pid from thread.
12431 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12432 Pass &all_threads to find_inferior, not &all_lwps.
12433 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12434 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12435 Pass &all_threads to find_inferior, not &all_lwps.
12436 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12437 (i386_dr_low_get_status): Ditto.
12438 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12439 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12440 (x86_linux_read_description): Ditto.
12441 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12442
3b8361aa
DE
124432014-02-20 Doug Evans <dje@google.com>
12444
12445 * inferiors.c (get_first_inferior): Fix buglet.
12446
f7667f0d
DE
124472014-02-19 Doug Evans <dje@google.com>
12448
12449 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12450 * inferiors.c (add_thread): Change result type to struct thread_info *.
12451 All callers updated.
12452 (add_lwp): Call add_thread here instead of in callers.
12453 All callers updated.
12454 * linux-low.h (get_lwp_thread): Rewrite.
12455 (struct lwp_info): New member "thread".
12456
b3312d80
DE
124572014-02-19 Doug Evans <dje@google.com>
12458
12459 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12460 All callers updated.
12461
ecc6f45c
DE
124622014-02-19 Doug Evans <dje@google.com>
12463
12464 * inferiors.c (add_thread): Fix whitespace.
12465
649ebbca
DE
124662014-02-19 Doug Evans <dje@google.com>
12467
12468 * dll.c (clear_dlls): Replace accessing list implemention details
12469 with API function.
12470 * gdbthread.h (get_first_thread): Declare.
12471 * inferiors.c (for_each_inferior_with_data): New function.
12472 (get_first_thread): New function.
12473 (find_thread_ptid): Simplify.
12474 (get_first_inferior): New function.
12475 (clear_list): Delete.
12476 (one_inferior_p): New function.
12477 (clear_inferior_list): New function.
12478 (clear_inferiors): Update.
12479 * inferiors.h (for_each_inferior_with_data): Declare.
12480 (clear_inferior_list): Declare.
12481 (one_inferior_p): Declare.
12482 (get_first_inferior): Declare.
12483 * linux-low.c (linux_wait_for_event): Replace accessing list
12484 implemention details with API function.
12485 * server.c (target_running): Ditto.
12486 (accumulate_file_name_length): New function.
12487 (emit_dll_description): New function.
12488 (handle_qxfer_libraries): Replace accessing list implemention
12489 details with API function.
12490 (handle_qxfer_threads_worker): New function.
12491 (handle_qxfer_threads_proper): Replace accessing list implemention
12492 details with API function.
12493 (handle_query): Ditto.
12494 (visit_actioned_threads_callback_ftype): New typedef.
12495 (visit_actioned_threads_data): New struct.
12496 (visit_actioned_threads): Rewrite to be find_inferior callback.
12497 (resume): Call find_inferior.
12498 (handle_status): Replace accessing list implemention
12499 details with API function.
12500 (process_serial_event): Replace accessing list implemention details
12501 with API function.
12502 * target.c (set_desired_inferior): Replace accessing list implemention
12503 details with API function.
12504 * tracepoint.c (same_process_p): New function.
12505 (gdb_agent_about_to_close): Replace accessing list implemention
12506 details with API function.
12507 * win32-low.c (child_delete_thread): Replace accessing list
12508 implemention details with API function.
12509 (match_dll_by_basename): New function.
12510 (dll_is_loaded_by_basename): New function.
12511 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12512 details call to dll_is_loaded_by_basename.
12513
80894984
DE
125142014-02-19 Doug Evans <dje@google.com>
12515
12516 * dll.h (struct dll_info): Add comment.
12517 * gdbthread.h (struct thread_info): Add comment.
12518 (current_ptid): Simplify.
12519 * inferiors.c (add_process): Update.
12520 (remove_process): Update.
12521 * inferiors.h (struct process_info): Rename member "head" to "entry".
12522 * linux-low.c (delete_lwp): Update.
12523 (add_lwp): Update.
12524 (last_thread_of_process_p): Update.
12525 (kill_one_lwp_callback, linux_kill): Update.
12526 (status_pending_p_callback): Update.
12527 (wait_for_sigstop): Update. Simplify read of ptid.
12528 (start_step_over): Update.
12529 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12530 (get_lwp_thread): Update.
12531 (struct lwp_info): Rename member "head" to "entry".
12532 * regcache.h (inferior_list_entry): Delete.
12533 * server.c (kill_inferior_callback): Update.
12534 (detach_or_kill_inferior_callback): Update.
12535 (print_started_pid): Update.
12536 (print_attached_pid): Update.
12537 (process_serial_event): Simplify read of ptid.
12538 * thread-db.c (thread_db_create_event): Update.
12539 (thread_db_get_tls_address): Update.
12540 * win32-low.c (current_inferior_ptid): Simplify.
12541
46917d26
TT
125422014-02-19 Tom Tromey <tromey@redhat.com>
12543
12544 * target.h (struct target_ops) <supports_btrace>: Add target_ops
12545 argument.
12546 (target_supports_btrace): Update.
12547
0759a81e
YQ
125482014-02-14 Yao Qi <yao@codesourcery.com>
12549
12550 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
12551 (rsp-low-ipa.o): New target.
12552
a7191e8b
TT
125532014-02-12 Tom Tromey <tromey@redhat.com>
12554
12555 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
12556 convert_ascii_to_int.
12557 * regcache.c (registers_to_string): Likewise.
12558 * remote-utils.c (decode_M_packet): Likewise.
12559 * server.c (process_serial_event): Likewise.
12560
ff0e980e
TT
125612014-02-12 Tom Tromey <tromey@redhat.com>
12562
12563 * server.c (handle_query, handle_v_run): Use hex2bin, not
12564 unhexify.
12565 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
12566
e9371aff
TT
125672014-02-12 Tom Tromey <tromey@redhat.com>
12568
12569 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
12570 convert_int_to_ascii.
12571 * regcache.c (registers_to_string, collect_register_as_string):
12572 Likewise.
12573 * remote-utils.c (look_up_one_symbol, relocate_instruction):
12574 Likewise.
12575 * server.c (process_serial_event): Likewise.
12576 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
12577 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
12578
971dc0b8
TT
125792014-02-12 Tom Tromey <tromey@redhat.com>
12580
12581 * remote-utils.c (look_up_one_symbol, monitor_output): Use
12582 bin2hex, not hexify.
12583 * tracepoint.c (cmd_qtstatus): Likewise.
12584
0a822afb
TT
125852014-02-12 Tom Tromey <tromey@redhat.com>
12586
12587 * remote-utils.c (monitor_output): Pass explicit length to
12588 hexify.
12589
9c3d6531
TT
125902014-02-12 Tom Tromey <tromey@redhat.com>
12591
12592 * tracepoint.c: Include rsp-low.h.
12593 * server.c: Include rsp-low.h.
12594 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
12595 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
12596 declare.
12597 * remote-utils.c: Include rsp-low.h.
12598 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
12599 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
12600 (convert_int_to_ascii, convert_ascii_to_int): Move to
12601 common/rsp-low.c.
12602 * regcache.c: Include rsp-low.h.
12603 * ax.c: Include rsp-low.h.
12604 * Makefile.in (SFILES): Add common/rsp-low.c.
12605 (OBS): Add rsp-low.o.
12606 (rsp-low.o): New target.
12607
01fd3ea5
TT
126082014-02-12 Tom Tromey <tromey@redhat.com>
12609
12610 * utils.h (pulongest, plongest, phex_nz): Don't declare.
12611 Include print-utils.h.
12612 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12613 (plongest, thirty_two, phex_nz): Remove.
12614 * Makefile.in (SFILES): Add common/print-utils.c.
12615 (OBS): Add print-utils.o.
12616 (print-utils-ipa.o): New target.
12617 (print-utils.o): New target.
12618 (IPA_OBJS): Add print-utils-ipa.o.
12619
e99dc820
TT
126202014-02-06 Tom Tromey <tromey@redhat.com>
12621
12622 * Makefile.in (SFILES): Fix indentation.
12623
ee1e2d4f
DE
126242014-02-05 Doug Evans <dje@google.com>
12625
12626 * linux-low.c (linux_wait_for_event): Improve comment.
12627 (linux_wait_1): Keep current_inferior in sync with event_child.
12628
f5a02773
DE
126292014-01-22 Doug Evans <dje@google.com>
12630
12631 * gdbthread.h (gdb_id_to_thread): Delete, unused.
12632
87ce2a04
DE
126332014-01-22 Doug Evans <dje@google.com>
12634
12635 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
12636 * configure: Regenerate.
12637 * config.in: Regenerate.
12638 * Makefile.in (SFILES): Add debug.c.
12639 (OBS): Add debug.o.
12640 * debug.c: New file.
12641 * debug.h: New file.
12642 * linux-aarch64-low.c (*): Update all debugging printfs to use
12643 debug_printf instead of fprintf.
12644 * linux-arm-low.c (*): Ditto.
12645 * linux-cris-low.c (*): Ditto.
12646 * linux-crisv32-low.c (*): Ditto.
12647 * linux-m32r-low.c (*): Ditto.
12648 * linux-sparc-low.c (*): Ditto.
12649 * linux-x86.c (*): Ditto.
12650 * linux-low.c (*): Ditto.
12651 (linux_wait_1): Add calls to debug_enter, debug_exit.
12652 (linux_wait): Remove redundant debugging printf.
12653 (stop_all_lwps): Add calls to debug_enter, debug_exit.
12654 (linux_resume, unstop_all_lwps): Ditto.
12655 * mem-break.c (*): Update all debugging printfs to use
12656 debug_printf instead of fprintf.
12657 * remote-utils.c (*): Ditto.
12658 * thread-db.c (*): Ditto.
12659 * server.c #include <ctype.h>, "gdb_vecs.h".
12660 (debug_threads): Moved to debug.c.
12661 (*): Update all debugging printfs to use debug_printf instead of
12662 fprintf.
12663 (start_inferior): Replace call to fflush with call to debug_flush.
12664 (monitor_show_help): Mention set debug-format.
12665 (parse_debug_format_options): New function.
12666 (handle_monitor_command): Handle "monitor set debug-format".
12667 (gdbserver_usage): Mention --debug-format.
12668 (main): Parse --debug-format.
12669 * server.h (debug_threads): Declaration moved to debug.h.
12670 #include "debug.h".
12671 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
12672 trace_debug_1 that uses debug_printf.
12673 (tracepoint_look_up_symbols): Update all debugging printfs to use
12674 debug_printf instead of fprintf.
12675
e671835b
BS
126762014-01-20 Baruch Siach <baruch@tkos.co.il>
12677
12678 * linux-xtensa-low.c: Include asm/ptrace.h instead of
12679 sys/ptrace.h.
12680
b5737fa9
PA
126812014-01-17 Pedro Alves <palves@redhat.com>
12682
ea38d2a9 12683 PR build/16445
c7faa97a
PA
12684 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
12685 defined after including gdb_proc_service.h.
b5737fa9 12686
40ed484e
DE
126872014-01-16 Doug Evans <dje@google.com>
12688
12689 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
12690 (match_dll): Use it.
12691
969c39fb
MM
126922014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12693
12694 * target.h (target_ops) <read_btrace>: Change parameters and
12695 return type to allow error reporting.
12696 * server.c (handle_qxfer_btrace): Support delta reads. Pass
12697 trace reading errors on.
12698 * linux-low.c (linux_low_read_btrace): Pass trace reading
12699 errors on.
12700 (linux_low_disable_btrace): New.
12701
ab7f45ba
DE
127022014-01-15 Doug Evans <dje@google.com>
12703
12704 * inferiors.c (thread_id_to_gdb_id): Delete.
12705 * inferiors.h (thread_id_to_gdb_id): Delete.
12706
66af0f44
EZ
127072014-01-13 Eli Zaretskii <eliz@gnu.org>
12708
12709 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
12710 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
12711 versions.
12712
9939e131
PA
127132014-01-08 Pedro Alves <palves@redhat.com>
12714
12715 * server.c (handle_status): Don't discard previous queued stop
12716 replies or thread's pending status here.
12717 (main) <disconnection>: Do it here instead.
12718
b7ea362b
PA
127192014-01-08 Pedro Alves <palves@redhat.com>
12720
12721 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
12722 * server.c (visit_actioned_threads, handle_pending_status): New
12723 function.
12724 (handle_v_cont): Factor out parts to ...
12725 (resume): ... this new function. If in all-stop, and a thread
12726 being resumed has a pending status, report it without actually
12727 resuming.
12728 (myresume): Adjust to use the new 'resume' function.
12729 (clear_pending_status_callback, set_pending_status_callback)
12730 (find_status_pending_thread_callback): New functions.
12731 (handle_status): Handle the case of multiple threads having
12732 interesting statuses to report. Report threads' real last signal
12733 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
12734 with an interesting thread to report the status for, instead of
12735 always reporting the status of the first thread.
12736
28498c42
JB
127372014-01-01 Joel Brobecker <brobecker@adacore.com>
12738
12739 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
12740 * gdbreplay.c (gdbreplay_version): Likewise.
12741
f45c82da
YZ
127422013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
12743
12744 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
12745 iov.iov_len with the real length in use.
12746
379a5e2d
JB
127472013-12-13 Joel Brobecker <brobecker@adacore.com>
12748
12749 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
12750 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
12751 for all targets that use win32-low.c.
12752 * win32-low.c (win32_ensure_ntdll_loaded): New function.
12753 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
12754
4210d83e
PA
127552013-12-13 Pedro Alves <palves@redhat.com>
12756
12757 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
12758 if equal to TARGET_WAITKIND_LOADED.
12759 * win32-low.c (cached_status): New static global.
12760 (win32_wait): Add declaration.
12761 (do_initial_child_stuff): Flush all initial pending debug events
12762 up to the initial breakpoint.
12763 (win32_wait): If CACHED_STATUS was set, return that instead
12764 of doing a real wait. Remove the code resuming the execution
12765 of the inferior after receiving a TARGET_WAITKIND_LOADED event
12766 during the initial phase. Also remove the code changing
12767 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
12768 TARGET_WAITKIND_STOPPED.
12769
e7f0d979
YQ
127702013-12-11 Yao Qi <yao@codesourcery.com>
12771
12772 * notif.c (handle_notif_ack): Return 0 if no notification
12773 matches.
12774
ebcf782c
DE
127752013-11-20 Doug Evans <dje@google.com>
12776
12777 * linux-low.c (linux_set_resume_request): Fix comment.
12778
20ad9378
DE
127792013-11-20 Doug Evans <dje@google.com>
12780
12781 * linux-low.c (resume_status_pending_p): Tweak comment.
12782
a196ebeb
WT
127832013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
12784
12785 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
12786 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
12787 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
12788 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
12789 (srv_amd64_regobj): Add amd64-mpx.o.
12790 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
12791 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
12792 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
12793 * i387-fp.c (num_pl_bnd_register) Added constant.
12794 (num_pl_bnd_cfg_registers) Added constant.
12795 (struct i387_xsave) Added reserved area and MPX fields.
12796 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
12797 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
12798 function.
12799 (tdesc_i386_mpx_linux): Add MPX amd64 target.
12800 (init_registers_amd64_mpx_linux): Declare new function.
12801 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
12802 (x86_64_regmap): Add MPX registers.
12803 (x86_linux_read_description): Add MPX case.
12804 (initialize_low_arch): Initialize MPX targets.
12805
0080a2f6
TT
128062013-11-18 Tom Tromey <tromey@redhat.com>
12807
12808 * configure: Rebuild.
12809 * configure.ac: Don't check for stdlib.h.
12810 * gdbreplay.c: Unconditionally include stdlib.h.
12811
2978b111
TT
128122013-11-18 Tom Tromey <tromey@redhat.com>
12813
12814 * config.in: Rebuild.
12815 * configure: Rebuild.
12816 * configure.ac: Don't use AC_HEADER_DIRENT.
12817
a3d08894
TT
128182013-11-18 Tom Tromey <tromey@redhat.com>
12819
12820 * server.h: Don't check HAVE_STRING_H.
12821 * gdbreplay.c: Don't check HAVE_STRING_H.
12822 * configure: Rebuild.
12823
0a5dd17d
TT
128242013-11-18 Tom Tromey <tromey@redhat.com>
12825
12826 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
12827 LIBGNU.
12828
1bd2f0ba
TT
128292013-11-08 Tom Tromey <tromey@redhat.com>
12830
12831 * configure, config.in: Rebuild.
12832 * configure.ac: Remove unused configury.
12833
3266f10b
TT
128342013-11-08 Tom Tromey <tromey@redhat.com>
12835
12836 * acinclude.m4: Include common.m4, codeset.m4.
12837 * configure, config.in: Rebuild.
12838 * configure.ac: Use GDB_AC_COMMON.
12839
6682d959
AA
128402013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
12841
12842 * linux-s390-low.c (HWCAP_S390_TE): New define.
12843 (s390_arch_setup): Consider the TE field in the HWCAP for
12844 determining 'have_regset_tdb'.
12845
fd0a4d76
SDJ
128462013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
12847
12848 PR gdb/16014
12849 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
12850 call to sizeof.
12851
1a3d890b
PA
128522013-10-02 Pedro Alves <palves@redhat.com>
12853
12854 * server.c (process_serial_event): Don't output "GDBserver
12855 exiting" if GDB is connected through stdio.
12856 * target.c (mywait): Likewise, be silent if GDB is connected
12857 through stdio.
12858
97ad4581
JB
128592013-10-01 Joel Brobecker <brobecker@adacore.com>
12860
12861 * lynx-low.c (lynx_add_threads_after_attach): New function.
12862 (lynx_attach): Remove call to add_thread. Add call to
12863 lynx_add_threads_after_attach instead.
12864
5b4e221c
MF
128652013-09-28 Mike Frysinger <vapier@gentoo.org>
12866
12867 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
12868 * config.in, configure: Regenerated.
12869
ee47b2f8
YQ
128702013-09-18 Yao Qi <yao@codesourcery.com>
12871
12872 PR server/15959
12873 * server.c (start_inferior): Clear 'resume_info'.
12874
d6707650 128752013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 12876
d6707650
JW
12877 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
12878 for each register.
12879
9243dd0e 128802013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 12881
9243dd0e
JW
12882 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
12883 linux-tile-low.o to srv_tgtobj.
12884
c623a6ef
WN
128852013-09-16 Will Newton <will.newton@linaro.org>
12886
12887 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
12888 out regs.
12889
fb71d39e
PA
128902013-09-06 Pedro Alves <palves@redhat.com>
12891
12892 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
12893 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
12894 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
12895 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
12896 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
12897 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
12898
8e7e9910
PA
128992013-09-06 Pedro Alves <palves@redhat.com>
12900
12901 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
12902 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
12903
7c3a12ca
PA
129042013-09-06 Pedro Alves <palves@redhat.com>
12905
12906 * linux-amd64-ipa.c: Include tracepoint.h.
12907 * linux-i386-ipa.c: Include tracepoint.h.
12908
8eb3d7b6
RW
129092013-09-06 Ricard Wanderlof <ricardw@axis.com>
12910
12911 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
12912 (ps_get_thread_area): New function.
12913
eddddb9d
RW
129142013-09-06 Ricard Wanderlof <ricardw@axis.com>
12915
12916 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
12917 (initialize_low_arch): Call init_registers_crisv32 rather than
12918 init_register_crisv32.
12919
533b0600
PA
129202013-09-05 Pedro Alves <palves@redhat.com>
12921
12922 * server.h (handle_vFile, hostio_last_error_from_errno): Move
12923 to ...
12924 * hostio.h: ... this new file.
12925 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
12926 win32-low.c: Include hostio.h.
12927
0ce3d3b5
PA
129282013-09-05 Pedro Alves <palves@redhat.com>
12929
12930 * server.h (gdb_client_data, handler_func, callback_handler_func)
12931 (delete_file_handler, add_file_handler, append_callback_event)
12932 (delete_callback_event, start_event_loop, initialize_event_loop):
12933 Move to event-loop.h and include it.
12934 * event-loop.h: New file.
12935
799cdc37
PA
129362013-09-05 Pedro Alves <palves@redhat.com>
12937
12938 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
12939 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
12940 (loaded_dll, unloaded_dll): Move to ...
12941 * dll.h: ... this new file.
12942 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
12943
6a6bbd9d
PA
129442013-09-05 Pedro Alves <palves@redhat.com>
12945
12946 * server.h (current_process, get_thread_process, all_processes)
12947 (add_inferior_to_list, for_each_inferior, current_inferior)
12948 (remove_inferior, add_process, remove_process, find_process_pid)
12949 (have_started_inferiors_p, have_attached_inferiors_p)
12950 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
12951 (clear_inferiors, find_inferior, find_inferior_id)
12952 (inferior_target_data, set_inferior_target_data)
12953 (inferior_regcache_data, set_inferior_regcache_data): Move to
12954 inferiors.h, and include it.
12955 * inferiors.h: New file.
12956
f699aaba
PA
129572013-09-05 Pedro Alves <palves@redhat.com>
12958
12959 * server.h (struct emit_ops, current_insn_ptr, emit_error):
12960 Move ...
72f4393d 12961 * ax.h: ... here.
f699aaba 12962
c144c7a0
PA
129632013-09-05 Pedro Alves <palves@redhat.com>
12964
12965 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
12966 tracepoint.h.
12967 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
12968 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
12969 (handle_tracepoint_general_set, handle_tracepoint_query)
12970 (tracepoint_finished_step, tracepoint_was_hit)
12971 (release_while_stepping_state_list, current_traceframe)
12972 (in_readonly_region, traceframe_read_mem)
12973 (fetch_traceframe_registers, traceframe_read_sdata)
12974 (traceframe_read_info, struct fast_tpoint_collect_status)
12975 (fast_tracepoint_collecting, force_unlock_trace_buffer)
12976 (handle_tracepoit_bkpts, initialize_low_tracepoint)
12977 (supply_fast_tracepoint_registers)
12978 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
12979 (ipa_tdesc, claim_trampoline_space)
12980 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
12981 (agent_mem_read, agent_get_trace_state_variable_value)
12982 (agent_set_trace_state_variable_value, agent_tsv_read)
12983 (agent_mem_read_string, get_raw_reg_func_addr)
12984 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
12985 * tracepoint.h: ... this new file.
12986
ff42e6ab
PA
129872013-09-05 Pedro Alves <palves@redhat.com>
12988
12989 * server.h (perror_with_name, error, fatal, warning, paddress)
12990 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
12991 include it.
12992 * utils.h: New file.
12993
541af0f4
PA
129942013-09-05 Pedro Alves <palves@redhat.com>
12995
12996 * server.h (remote_debug, noack_mode, transport_is_reliable)
12997 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
12998 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
12999 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13000 (write_enn, initialize_async_io, enable_async_io)
13001 (disable_async_io, check_remote_input_interrupt_request)
13002 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13003 (dead_thread_notify, prepare_resume_reply)
13004 (decode_address_to_semicolon, decode_address, decode_m_packet)
13005 (decode_M_packet, decode_X_packet, decode_xfer_write)
13006 (decode_search_memory_packet, unhexify, hexify)
13007 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13008 (look_up_one_symbol, relocate_instruction)
13009 (monitor_output): Move to remote-utils.h, and include it.
13010 * remote-utils.h: New file.
13011
eebdf26b
PA
130122013-09-05 Pedro Alves <palves@redhat.com>
13013
13014 * server.h (_): Delete.
13015
3aafd2ff
PA
130162013-09-02 Pedro Alves <palves@redhat.com>
13017
13018 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13019 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13020 allocated.
13021 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13022
cee83bcb
PM
130232013-09-02 Pierre Muller <muller@sourceware.org>
13024
13025 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13026 or WriteProcessMemory complete successfully and handle
13027 ERROR_PARTIAL_COPY error.
13028
9a13b2fa
PA
130292013-09-02 Pedro Alves <palves@redhat.com>
13030
13031 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13032 error instead of EIO.
13033
602e3198
JK
130342013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13035
13036 PR server/15604
13037 * linux-low.c: Include filestuff.h.
13038 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13039 * lynx-low.c: Include filestuff.h.
13040 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13041 * server.c: Include filestuff.h.
13042 (main): Call notice_open_fds.
13043 * spu-low.c: Include filestuff.h.
13044 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13045
96d7229d
LM
130462013-08-22 Luis Machado <lgustavo@codesourcery.com>
13047
13048 * Makefile.in: Explain why ../target and ../nat are not
13049 listed as include file search paths.
13050 (linux-waitpid.o): New object file rule.
13051 * configure.srv (srv_native_linux_obj): New variable.
13052 Replace all occurrences of linux native object files with
13053 $srv_native_linux_obj.
13054 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13055 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13056 (linux_enable_event_reporting): Remove declaration.
13057 (my_waitpid): Moved to common/linux-waitpid.c.
13058 (linux_wait_for_event): Pass ptid when calling
13059 linux_enable_event_reporting.
13060 (linux_supports_tracefork_flag): Remove.
13061 (linux_enable_event_reporting): Likewise.
13062 (linux_tracefork_grandchild): Remove.
13063 (STACK_SIZE): Moved to common/linux-ptrace.c.
13064 (linux_tracefork_child): Remove.
13065 (linux_test_for_tracefork): Remove.
13066 (linux_look_up_symbols): Call linux_supports_traceclone.
13067 (initialize_low): Remove call to linux_test_for_tracefork.
13068 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13069 common/linux-ptrace.h.
13070 (PTRACE_TYPE_ARG4): Likewise.
13071 Include linux-ptrace.h.
13072
32940073
PA
130732013-08-21 Pedro Alves <palves@redhat.com>
13074
13075 * config.in: Renegerate.
13076
33b60d58 130772013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13078
33b60d58
LM
13079 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13080 (SFILES): Remove $(srcdir)/common/target-common.c and
13081 add $(srcdir)/target/waitstatus.c.
13082 (OBS): Remove target-common.o and add waitstatus.o.
13083 (server_h): Remove $(srcdir)/../common/target-common.h and
13084 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13085 and $(srcdir)/../target/waitstatus.h.
13086 (target-common.o): Remove.
13087 (waitstatus.o): New target object file.
13088 * target.h: Do not include target-common.h and
13089 include target/resume.h, target/wait.h and
13090 target/waitstatus.h.
13091
b8e1b30e
LM
130922013-08-13 Luis Machado <lgustavo@codesourcery.com>
13093
13094 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13095 to PTRACE_TYPE_ARG3.
13096 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13097 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13098 PTRACE_TYPE_ARG4.
13099 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13100 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13101
7a60ad40
YQ
131022013-07-27 Jie Zhang <jie@codesourcery.com>
13103 Daniel Jacobowitz <dan@codesourcery.com>
13104 Yao Qi <yao@codesourcery.com>
13105
13106 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13107 (mips-linux-watch.o): New rule.
13108 (mips_linux_watch_h): New variable.
13109 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13110 srv_tgtobj.
13111 * linux-mips-low.c: Include mips-linux-watch.h.
13112 (struct arch_process_info, struct arch_lwp_info): New.
13113 (update_watch_registers_callback): New function.
13114 (mips_linux_new_process, mips_linux_new_thread) New functions.
13115 (mips_linux_prepare_to_resume, mips_insert_point): New
13116 functions.
13117 (mips_remove_point, mips_stopped_by_watchpoint): New
13118 functions.
13119 (rsp_bp_type_to_target_hw_bp_type): New function.
13120 (mips_stopped_data_address): New function.
13121 (the_low_target): Add watchpoint support functions.
13122
de6f69ad
YQ
131232013-07-27 Yao Qi <yao@codesourcery.com>
13124
13125 * i386-low.c: Include break-common.h.
13126 (enum target_hw_bp_type): Remove.
13127
3360c0bf
LM
131282013-07-24 Luis Machado <lgustavo@codesourcery.com>
13129
13130 * Makefile.in (SFILES): /common/target-common.c.
13131 (OBS): Add target-common.o.
13132 (server_h): Add $(srcdir)/../common/target-common.h.
13133 (target-common.o): New target.
13134 * server.c (queue_stop_reply_callback): Free
13135 status string after use.
13136 * target.c (target_waitstatus_to_string): Remove.
13137 * target.h: Include target-common.h.
13138 (resume_kind): Likewise.
13139 (target_waitkind): Likewise.
13140 (target_waitstatus): Likewise.
13141 (TARGET_WNOHANG): Likewise.
13142
bd885420
YQ
131432013-07-04 Yao Qi <yao@codesourcery.com>
13144
13145 * Makefile.in (host_alias): Use @host_noncanonical@.
13146 (target_alias): Use @target_noncanonical@.
13147 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13148 ACX_NONCANONICAL_HOST.
13149 * configure: Regenerated.
13150
13151 Revert:
13152 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13153
13154 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13155 * configure: Rebuild.
13156 * Makefile.in (version_host, version_target): Get from configure.
13157 (version.c): Use $(version_host) and $(version_target).
13158
17ef446e
PA
131592013-07-03 Pedro Alves <palves@redhat.com>
13160
13161 * Makefile.in (config.status): Depend on development.sh.
13162 * acinclude.m4: Include libmcheck.m4.
13163 * configure: Regenerate.
13164
7a9a7487
MG
131652013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13166
13167 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13168 attribute inside the parentheses.
13169 (winapi_DebugSetProcessKillOnExit): Ditto.
13170 (winapi_DebugBreakProcess): Ditto.
13171 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13172
49b64de6
MG
131732013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13174
13175 * notif.h (notif_event): Add a dummy member to avoid compiler
13176 errors.
13177
d5749ee7
PA
131782013-07-01 Pedro Alves <palves@redhat.com>
13179
13180 * hostio.c (HOSTIO_PATH_MAX): Define.
13181 (require_filename, handle_open, handle_unlink, handle_readlink):
13182 Use it.
13183
d8d2a3ee
PA
131842013-07-01 Pedro Alves <palves@redhat.com>
13185
13186 * server.h: Include "pathmax.h".
13187 * linux-low.c: Don't include sys/param.h.
13188 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13189 MAXPATHLEN.
13190 * win32-low.c: Don't include sys/param.h.
13191 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13192
bc7dea8d
PA
131932013-07-01 Pedro Alves <palves@redhat.com>
13194
13195 * event-loop.c: Don't check HAVE_UNISTD_H before including
13196 <unistd.h>.
13197 * gdbreplay.c: Likewise.
13198 * remote-utils.c: Likewise.
13199 * server.c: Likewise.
13200 * configure.ac: Don't check for unistd.h.
13201 * configure: Regenerate.
13202
d6c2da54
TT
132032013-06-28 Tom Tromey <tromey@redhat.com>
13204
13205 * Makefile.in (version.c): Use version.in, not
13206 common/version.in.
13207
257b6bec
MG
132082013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13209
13210 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13211 * configure: Rebuild.
13212 * Makefile.in (version_host, version_target): Get from configure.
13213 (version.c): Use $(version_host) and $(version_target).
13214
86ebe149
DK
132152013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13216
13217 Fix trace-status to output user name without trailing colon.
13218 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13219
f30aa5af
DK
132202013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13221
13222 Fix trace-status to output proper start-time and stop-time.
13223 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13224 output start time and stop time in hex as gdb expects.
13225
28a93511
YQ
132262013-06-26 Pedro Alves <pedro@codesourcery.com>
13227
13228 * tracepoint.c (build_traceframe_info_xml): Output trace state
13229 variables present in the trace buffer.
13230
01208463
TT
132312013-06-24 Tom Tromey <tromey@redhat.com>
13232
13233 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13234 create-version.sh.
13235 (version.o): Remove.
13236 * gdbreplay.c: Include version.h.
13237 (version, host_name): Don't declare.
13238 * server.h: Include version.h.
13239 (version, host_name): Don't declare.
13240
760256f9
PA
132412013-06-12 Pedro Alves <palves@redhat.com>
13242
13243 * linux-x86-low.c (linux_is_elf64): Delete global.
13244 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13245 with local linux_pid_exe_is_elf_64_file use.
13246
030031ee
PA
132472013-06-11 Pedro Alves <palves@redhat.com>
13248
13249 * linux-low.c (regset_disabled, disable_regset): New functions.
13250 (regsets_fetch_inferior_registers)
13251 (regsets_store_inferior_registers): Use them.
13252 (initialize_regsets_info); Don't allocate the disabled_regsets
13253 array here.
13254 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13255 comment.
13256
5da6eb0a
PA
132572013-06-11 Pedro Alves <palves@redhat.com>
13258
13259 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13260 xmalloc.
13261
7e5aaa09
PA
132622013-06-11 Pedro Alves <palves@redhat.com>
13263
13264 * linux-x86-low.c (initialize_low_arch): Call
13265 init_registers_x32_avx_linux.
13266
d878444c
JK
132672013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13268
13269 Fix compatibility with Android Bionic.
13270 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13271 it is not empty.
13272
3aee8918
PA
132732013-06-07 Pedro Alves <palves@redhat.com>
13274
5f2b57b5 13275 PR server/14823
3aee8918
PA
13276 * Makefile.in (OBS): Add tdesc.o.
13277 (IPA_OBJS): Add tdesc-ipa.o.
13278 (tdesc-ipa.o): New rule.
13279 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13280 interface.
13281 * linux-low.c (new_inferior): Delete.
13282 (disabled_regsets, num_regsets): Delete.
13283 (linux_add_process): Adjust to set the new per-process
13284 new_inferior flag.
13285 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13286 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13287 was a stop. When calling arch_setup, switch the current inferior
13288 to the thread that got an event.
13289 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13290 (regsets_fetch_inferior_registers)
13291 (regsets_store_inferior_registers): New regsets_info parameter.
13292 Adjust to use it.
13293 (linux_register_in_regsets): New regs_info parameter. Adjust to
13294 use it.
13295 (register_addr, fetch_register, store_register): New usrregs_info
13296 parameter. Adjust to use it.
13297 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13298 parameter regs_info. Adjust to use it.
13299 (linux_fetch_registers): Get the current inferior's regs_info, and
13300 adjust to use it.
13301 (linux_store_registers): Ditto.
13302 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13303 (initialize_low): Don't initialize the target_regsets here. Call
13304 initialize_low_arch.
13305 * linux-low.h (target_regsets): Delete declaration.
13306 (struct regsets_info): New.
13307 (struct usrregs_info): New.
13308 (struct regs_info): New.
13309 (struct process_info_private) <new_inferior>: New field.
13310 (struct linux_target_ops): Delete the num_regs, regmap, and
13311 regset_bitmap fields. New field regs_info.
13312 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13313 * i387-fp.c (num_xmm_registers): Delete.
13314 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13315 calls to new interface.
13316 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13317 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13318 Infer the number of xmm registers from the regcache's target
13319 description.
13320 * i387-fp.h (num_xmm_registers): Delete.
13321 * inferiors.c (add_thread): Don't install the thread's regcache
13322 here.
13323 * proc-service.c (gregset_info): Fetch the current inferior's
13324 regs_info. Adjust to use it.
13325 * regcache.c: Include tdesc.h.
13326 (register_bytes, reg_defs, num_registers)
13327 (gdbserver_expedite_regs): Delete.
13328 (get_thread_regcache): If the thread doesn't have a regcache yet,
13329 create one, instead of aborting gdbserver.
13330 (regcache_invalidate_one): Rename to ...
13331 (regcache_invalidate_thread): ... this.
13332 (regcache_invalidate_one): New.
13333 (regcache_invalidate): Only invalidate registers of the current
13334 process.
13335 (init_register_cache): Add target_desc parameter, and use it.
13336 (new_register_cache): Ditto. Assert the target description has a
13337 non zero registers_size.
13338 (regcache_cpy): Add assertions. Adjust.
13339 (realloc_register_cache, set_register_cache): Delete.
13340 (registers_to_string, registers_from_string): Adjust.
13341 (find_register_by_name, find_regno, find_register_by_number)
13342 (register_cache_size): Add target_desc parameter, and use it.
13343 (free_register_cache_thread, free_register_cache_thread_one)
13344 (regcache_release, register_cache_size): New.
13345 (register_size): Add target_desc parameter, and use it.
13346 (register_data, supply_register, supply_register_zeroed)
13347 (supply_regblock, supply_register_by_name, collect_register)
13348 (collect_register_as_string, collect_register_by_name): Adjust.
13349 * regcache.h (struct target_desc): Forward declare.
13350 (struct regcache) <tdesc>: New field.
13351 (init_register_cache, new_register_cache): Add target_desc
13352 parameter.
13353 (regcache_invalidate_thread): Declare.
13354 (regcache_invalidate_one): Delete declaration.
13355 (regcache_release): Declare.
13356 (find_register_by_number, register_cache_size, register_size)
13357 (find_regno): Add target_desc parameter.
13358 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13359 declarations.
13360 * remote-utils.c: Include tdesc.h.
13361 (outreg, prepare_resume_reply): Adjust.
13362 * server.c: Include tdesc.h.
13363 (gdbserver_xmltarget): Delete declaration.
13364 (get_features_xml, process_serial_event): Adjust.
13365 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13366 declare.
13367 (struct process_info) <tdesc>: New field.
13368 (ipa_tdesc): Declare.
13369 * tdesc.c: New file.
13370 * tdesc.h: New file.
13371 * tracepoint.c: Include tdesc.h.
13372 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13373 (get_context_regcache): Adjust to pass ipa_tdesc down.
13374 (do_action_at_tracepoint): Adjust to get the register cache size
13375 from the context regcache's description.
13376 (traceframe_walk_blocks): Adjust to get the register cache size
13377 from the current trace frame's description.
13378 (traceframe_get_pc): Adjust to get current trace frame's
13379 description and pass it down.
13380 (gdb_collect): Adjust to get the register cache size from the
13381 IPA's description.
13382 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13383 (gdbserver_xmltarget): Delete.
13384 (initialize_low_tracepoint): Set the ipa's target description.
13385 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13386 (initialize_low_tracepoint): Set the ipa's target description.
13387 * linux-x86-low.c: Include tdesc.h.
13388 [__x86_64__] (is_64bit_tdesc): New.
13389 (ps_get_thread_area, x86_get_thread_area): Use it.
13390 (i386_cannot_store_register): Rename to ...
13391 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13392 (i386_cannot_fetch_register): Rename to ...
13393 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13394 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13395 to new interface.
13396 (target_regsets): Rename to ...
13397 (x86_regsets): ... this.
13398 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13399 interface.
13400 (x86_siginfo_fixup): Use is_64bit_tdesc.
13401 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13402 (tdesc_x32_avx_linux, tdesc_x32_linux)
13403 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13404 Declare.
13405 (x86_linux_update_xmltarget): Delete.
13406 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13407 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13408 (AMD64_LINUX_USER64_CS): New.
13409 (x86_linux_read_description): New, based on
13410 x86_linux_update_xmltarget.
13411 (same_process_callback): New.
13412 (x86_arch_setup_process_callback): New.
13413 (x86_linux_update_xmltarget): New.
13414 (x86_regsets_info): New.
13415 (amd64_linux_regs_info): New.
13416 (i386_linux_usrregs_info): New.
13417 (i386_linux_regs_info): New.
13418 (x86_linux_regs_info): New.
13419 (x86_arch_setup): Reimplement.
13420 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13421 (x86_emit_ops): Ditto.
13422 (the_low_target): Adjust. Install x86_linux_regs_info,
13423 x86_cannot_fetch_register, and x86_cannot_store_register.
13424 (initialize_low_arch): New.
13425 * linux-ia64-low.c (tdesc_ia64): Declare.
13426 (ia64_fetch_register): Adjust.
13427 (ia64_usrregs_info, regs_info): New globals.
13428 (ia64_regs_info): New function.
13429 (the_low_target): Adjust.
13430 (initialize_low_arch): New function.
13431 * linux-sparc-low.c (tdesc_sparc64): Declare.
13432 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13433 Adjust.
13434 (sparc_arch_setup): New function.
13435 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13436 (the_low_target): Adjust.
13437 (initialize_low_arch): New function.
13438 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13439 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13440 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13441 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13442 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13443 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13444 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13445 (tdesc_powerpc_isa205_vsx64l): Declare.
13446 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13447 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13448 (ppc_set_pc, ppc_get_hwcap): Adjust.
13449 (ppc_usrregs_info): Forward declare.
13450 (!__powerpc64__) ppc_regmap_adjusted: New global.
13451 (ppc_arch_setup): Adjust to the current process'es target
13452 description.
13453 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13454 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13455 (ppc_store_evrregset): Adjust.
13456 (target_regsets): Rename to ...
13457 (ppc_regsets): ... this, and make static.
13458 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13459 (ppc_regs_info): New function.
13460 (the_low_target): Adjust.
13461 (initialize_low_arch): New function.
13462 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13463 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13464 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13465 (tdesc_s390x_linux64v2): Declare.
13466 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13467 (s390_fill_gregset, s390_store_last_break): Adjust.
13468 (target_regsets): Rename to ...
13469 (s390_regsets): ... this, and make static.
13470 (s390_get_pc, s390_set_pc): Adjust.
13471 (s390_get_hwcap): New target_desc parameter, and use it.
13472 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13473 (s390_arch_setup): Adjust to set the current process'es target
13474 description. Don't adjust the regmap.
13475 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13476 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13477 (regs_info_3264): New globals.
13478 (s390_regs_info): New function.
13479 (the_low_target): Adjust.
13480 (initialize_low_arch): New function.
13481 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13482 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13483 [__mips64] (init_registers_mips_linux)
13484 (init_registers_mips_dsp_linux): Delete defines.
13485 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13486 (have_dsp): New global.
13487 (mips_read_description): New, based on mips_arch_setup.
13488 (mips_arch_setup): Reimplement.
13489 (get_usrregs_info): New function.
13490 (mips_cannot_fetch_register, mips_cannot_store_register)
13491 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13492 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13493 (target_regsets): Rename to ...
13494 (mips_regsets): ... this, and make static.
13495 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13496 (dsp_regs_info, regs_info): New globals.
13497 (mips_regs_info): New function.
13498 (the_low_target): Adjust.
13499 (initialize_low_arch): New function.
13500 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13501 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13502 Declare.
13503 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13504 (arm_read_description): New, with bits factored from
13505 arm_arch_setup.
13506 (arm_arch_setup): Reimplement.
13507 (target_regsets): Rename to ...
13508 (arm_regsets): ... this, and make static.
13509 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13510 (arm_regs_info): New function.
13511 (the_low_target): Adjust.
13512 (initialize_low_arch): New function.
13513 * linux-m68k-low.c (tdesc_m68k): Declare.
13514 (target_regsets): Rename to ...
13515 (m68k_regsets): ... this, and make static.
13516 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13517 (m68k_regs_info): New function.
13518 (m68k_arch_setup): New function.
13519 (the_low_target): Adjust.
13520 (initialize_low_arch): New function.
13521 * linux-sh-low.c (tdesc_sharch): Declare.
13522 (target_regsets): Rename to ...
13523 (sh_regsets): ... this, and make static.
13524 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13525 (sh_regs_info, sh_arch_setup): New functions.
13526 (the_low_target): Adjust.
13527 (initialize_low_arch): New function.
13528 * linux-bfin-low.c (tdesc_bfin): Declare.
13529 (bfin_arch_setup): New function.
13530 (bfin_usrregs_info, regs_info): New globals.
13531 (bfin_regs_info): New function.
13532 (the_low_target): Adjust.
13533 (initialize_low_arch): New function.
13534 * linux-cris-low.c (tdesc_cris): Declare.
13535 (cris_arch_setup): New function.
13536 (cris_usrregs_info, regs_info): New globals.
13537 (cris_regs_info): New function.
13538 (the_low_target): Adjust.
13539 (initialize_low_arch): New function.
13540 * linux-cris-low.c (tdesc_crisv32): Declare.
13541 (cris_arch_setup): New function.
13542 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
13543 (cris_regs_info): New function.
13544 (the_low_target): Adjust.
13545 (initialize_low_arch): New function.
13546 * linux-m32r-low.c (tdesc_m32r): Declare.
13547 (m32r_arch_setup): New function.
13548 (m32r_usrregs_info, regs_info): New globals.
13549 (m32r_regs_info): Adjust.
13550 (initialize_low_arch): New function.
13551 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
13552 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
13553 (tic6x_usrregs_info): Forward declare.
13554 (tic6x_read_description): New function, based on ...
13555 (tic6x_arch_setup): ... this. Reimplement.
13556 (target_regsets): Rename to ...
13557 (tic6x_regsets): ... this, and make static.
13558 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
13559 (tic6x_regs_info): New function.
13560 (the_low_target): Adjust.
13561 (initialize_low_arch): New function.
13562 * linux-xtensa-low.c (tdesc_xtensa): Declare.
13563 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
13564 (target_regsets): Rename to ...
13565 (xtensa_regsets): ... this, and make static.
13566 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
13567 globals.
13568 (xtensa_arch_setup, xtensa_regs_info): New functions.
13569 (the_low_target): Adjust.
13570 (initialize_low_arch): New function.
13571 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
13572 (nios2_arch_setup): Set the current process'es tdesc.
13573 (target_regsets): Rename to ...
13574 (nios2_regsets): ... this.
13575 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
13576 (nios2_regs_info): New function.
13577 (the_low_target): Adjust.
13578 (initialize_low_arch): New function.
a261b8f5
PA
13579 * linux-aarch64-low.c (tdesc_aarch64): Declare.
13580 (aarch64_arch_setup): Set the current process'es tdesc.
13581 (target_regsets): Rename to ...
13582 (aarch64_regsets): ... this.
13583 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
13584 (aarch64_regs_info): New function.
13585 (the_low_target): Adjust.
13586 (initialize_low_arch): New function.
3aee8918
PA
13587 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
13588 globals.
13589 (target_regsets): Rename to ...
13590 (tile_regsets): ... this.
13591 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
13592 (tile_regs_info): New function.
13593 (tile_arch_setup): Set the current process'es tdesc.
13594 (the_low_target): Adjust.
13595 (initialize_low_arch): New function.
13596 * spu-low.c (tdesc_spu): Declare.
13597 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
13598 * win32-arm-low.c (tdesc_arm): Declare.
13599 (arm_arch_setup): New function.
13600 (the_low_target): Install arm_arch_setup instead of
13601 init_registers_arm.
13602 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
13603 (init_windows_x86): Rename to ...
13604 (i386_arch_setup): ... this. Set `win32_tdesc'.
13605 (the_low_target): Adjust.
13606 * win32-low.c (win32_tdesc): New global.
13607 (child_add_thread): Don't create the thread cache here.
13608 (do_initial_child_stuff): Set the new process'es tdesc.
13609 * win32-low.h (struct target_desc): Forward declare.
13610 (win32_tdesc): Declare.
13611 * lynx-i386-low.c (tdesc_i386): Declare global.
13612 (lynx_i386_arch_setup): Set `lynx_tdesc'.
13613 * lynx-low.c (lynx_tdesc): New global.
13614 (lynx_add_process): Set the new process'es tdesc.
13615 * lynx-low.h (struct target_desc): Forward declare.
13616 (lynx_tdesc): Declare global.
13617 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
13618 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
13619 * nto-low.c (nto_tdesc): New global.
13620 (do_attach): Set the new process'es tdesc.
13621 * nto-low.h (struct target_desc): Forward declare.
13622 (nto_tdesc): Declare.
13623 * nto-x86-low.c (tdesc_i386): Declare.
13624 (nto_x86_arch_setup): Set `nto_tdesc'.
13625
b1fbec62
GB
136262013-06-04 Gary Benson <gbenson@redhat.com>
13627
13628 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
13629 to qSupported response when appropriate.
13630 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
13631 with nonzero-length annex.
13632 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
13633 arguments supplied in annex.
13634
d1ec4ce7
DE
136352013-05-31 Doug Evans <dje@google.com>
13636
ac44adcb 13637 PR server/15594
d1ec4ce7
DE
13638 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
13639 64 bits in 64-cross-32 environment.
13640
9b25f2d3
PA
136412013-05-28 Pedro Alves <palves@redhat.com>
13642
13643 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
13644 (aarch64-without-fpu.c): Delete rule.
13645 * configure.srv (aarch64*-*-linux*): Remove references to
13646 aarch64-without-fpu.o and aarch64-without-fpu.xml.
13647 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
13648 declaration.
13649
6740dc9c
PA
136502013-05-24 Pedro Alves <palves@redhat.com>
13651
13652 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
13653 instead of strchr/decode_address. Error if the range isn't split
13654 with a ','. Don't assume there's be a ':' in the action.
13655
c2d6af84
PA
136562013-05-23 Yao Qi <yao@codesourcery.com>
13657 Pedro Alves <palves@redhat.com>
13658
13659 * linux-low.c (lwp_in_step_range): New function.
13660 (linux_wait_1): If the thread was range stepping and stopped
13661 outside the stepping range, report the stop to GDB. Otherwise,
13662 continue stepping. Add range stepping debug output.
13663 (linux_set_resume_request): Copy the step range from the resume
13664 request to the lwp.
13665 (linux_supports_range_stepping): New.
13666 (linux_target_ops) <supports_range_stepping>: Set to
13667 linux_supports_range_stepping.
13668 * linux-low.h (struct linux_target_ops)
13669 <supports_range_stepping>: New field.
13670 (struct lwp_info) <step_range_start, step_range_end>: New fields.
13671 * linux-x86-low.c (x86_supports_range_stepping): New.
13672 (the_low_target) <supports_range_stepping>: Set to
13673 x86_supports_range_stepping.
13674 * server.c (handle_v_cont): Handle 'r' action.
13675 (handle_v_requests): Append ";r" if the target supports range
13676 stepping.
13677 * target.h (struct thread_resume) <step_range_start,
13678 step_range_end>: New fields.
13679 (struct target_ops) <supports_range_stepping>:
13680 New field.
13681 (target_supports_range_stepping): New macro.
13682
58794e1a
JB
136832013-05-17 Joel Brobecker <brobecker@adacore.com>
13684
13685 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
13686 confusion in comment.
13687
d631c5a7
JB
136882013-05-17 Joel Brobecker <brobecker@adacore.com>
13689
13690 * lynx-low.c (struct process_info_private): New type.
13691 (lynx_add_process): New function.
13692 (lynx_create_inferior, lynx_attach): Replace calls to
13693 add_process by calls to lynx_add_process.
13694 (lynx_resume): If PTID is null, then try using
13695 current_process()->private->last_wait_event_ptid.
13696 Add comments.
13697 (lynx_clear_inferiors): Delete. The contents of that function
13698 has been inlined in lynx_mourn;
13699 (lynx_wait_1): Save the ptid in the process's private data.
13700 (lynx_mourn): Free the process' private data. Replace call
13701 to lynx_clear_inferiors by call to clear_inferiors.
13702
96f7a20f
YQ
137032013-05-17 Yao Qi <yao@codesourcery.com>
13704
13705 * i386-low.c (i386_length_and_rw_bits): Move the comment to
13706 the right place.
13707
db0dfaa0
LM
137082013-05-16 Luis Machado <lgustavo@codesourcery.com>
13709
13710 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
13711 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
13712 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
13713 PT_TEXT_END_ADDR guards. Update comments.
13714 (linux_target_op) <read_offsets>: Conditionally define to
13715 linux_read_offsets if the target is UCLIBC and if it defines
13716 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
13717
68f5f838
SL
137182013-05-06 Sandra Loosemore <sandra@codesourcery.com>
13719 Andrew Jenner <andrew@codesourcery.com>
13720
13721 * Makefile.in (SFILES): Add linux-nios2-low.c.
13722 (clean): Add action to delete nios2-linux.c.
13723 (nios2-linux.c): New rule.
13724 * configure.srv: Add nios2*-*-linux*.
13725 * linux-nios2-low.c: New.
13726
1ebff1fd
HAQ
137272013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
13728
13729 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
13730
f6150862
HZ
137312013-04-25 Hui Zhu <hui@codesourcery.com>
13732
13733 PR gdb/15186
f6150862
HZ
13734 * ax.c (ax_printf): Add fflush.
13735
614c279d
TT
137362013-04-22 Tom Tromey <tromey@redhat.com>
13737
13738 * Makefile.in (SFILES): Add filestuff.c.
13739 (OBS): Add filestuff.o.
13740 (filestuff.o): New target.
13741 * config.in, configure: Rebuild.
13742 * configure.ac: Check for fdwalk, pipe2.
13743
7d4e5717
PA
137442013-04-17 Pedro Alves <palves@redhat.com>
13745
13746 * configure.ac (USE_THREAD_DB): Delete variable.
13747 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
13748 Don't AC_SUBST USE_THREAD_DB.
13749 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
13750 * config.in, configure: Regenerate.
13751
d5c93e41
PA
137522013-04-16 Pedro Alves <palves@redhat.com>
13753
13754 * linux-low.h (struct lwp_info) <thread_known>: Move under
13755 the USE_THREAD_DB #ifdef.
13756
04f5fe89
PA
137572013-04-16 Pedro Alves <palves@redhat.com>
13758
13759 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
13760 (linux-low.o): Delete rule.
13761 * linux-low.h: Always include "gdb_thread_db.h" instead of
13762 conditionally including thread_db.h.
13763 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
13764 HAVE_THREAD_DB_H.
13765
480b27bf
JK
137662013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13767
13768 * Makefile.in (install-only): Fix make install regression.
13769
43662968
JK
137702013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
13771
13772 Convert man pages to texinfo, new gdbinit.5 texinfo page.
13773 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
13774 installation.
13775 * gdbserver.1: Remove.
13776
3e74e146
PA
137772013-03-22 Pedro Alves <palves@redhat.com>
13778
13779 * linux-low.c (handle_extended_wait): Don't call
13780 linux_enable_event_reporting.
13781
a8347a2a
TT
137822013-03-15 Tony Theodore <tonyt@logyst.com>
13783
13784 PR build/9098:
13785 * Makefile.in (SHELL): Use @SHELL@.
13786
eeb56fa7
SDJ
137872013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
13788
13789 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
13790 compiler warning.
13791
4fa7e2ff
JB
137922013-03-13 Joel Brobecker <brobecker@adacore.com>
13793
13794 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
13795 Remove extraneous NULL element.
13796
8ddb1965
YQ
137972013-03-13 Yao Qi <yao@codesourcery.com>
13798
13799 * tracepoint.c (traceframe_read_tsv): Look for the last matched
13800 'V' block in trace frame.
13801
9accd112
MM
138022013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13803
13804 * target.h (struct target_ops): Add btrace ops.
13805 (target_supports_btrace): New macro.
13806 (target_enable_btrace): New macro.
13807 (target_disable_btrace): New macro.
13808 (target_read_btrace): New macro.
13809 * gdbthread.h (struct thread_info): Add btrace field.
13810 * server.c: Include btrace-common.h.
13811 (handle_btrace_general_set): New function.
13812 (handle_btrace_enable): New function.
13813 (handle_btrace_disable): New function.
13814 (handle_general_set): Call handle_btrace_general_set.
13815 (handle_qxfer_btrace): New function.
13816 (struct qxfer qxfer_packets[]): Add btrace entry.
13817 * inferiors.c (remove_thread): Disable btrace.
13818 * linux-low: Include linux-btrace.h.
13819 (linux_low_enable_btrace): New function.
13820 (linux_low_read_btrace): New function.
13821 (linux_target_ops): Add btrace ops.
13822 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
13823 Add srv_linux_btrace=yes.
13824 (x86_64-*-linux*): Add linux-btrace.o.
13825 Add srv_linux_btrace=yes.
13826 * configure.ac: Define HAVE_LINUX_BTRACE.
13827 * config.in: Regenerated.
13828 * configure: Regenerated.
13829
5cc22e4c
MM
138302013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13831
13832 * server.c (handle_qxfer): Preserve error message if -3 is
13833 returned.
13834 (qxfer): Document the -3 return value.
13835
7c97f91e
MM
138362013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13837
13838 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
13839 (linux_btrace_h): New variable.
13840 (linux-btrace.o): New rule.
13841
be9a119c 138422013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
13843 Hafiz Abid Qadeer <abidh@codesourcery.com>
13844
13845 * tracepoint.c (trace_buffer_size): New global.
13846 (DEFAULT_TRACE_BUFFER_SIZE): New define.
13847 (init_trace_buffer): Change to one-argument function. Allocate
13848 trace buffer memory.
13849 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
13850 handle QTBuffer:size packet.
13851 (cmd_bigqtbuffer_size): New function.
13852 (initialize_tracepoint): Call init_trace_buffer with
13853 DEFAULT_TRACE_BUFFER_SIZE.
13854 * server.c (handle_query): Add QTBuffer:size in the
13855 supported packets.
13856
e64f7499
YQ
138572013-03-07 Yao Qi <yao@codesourcery.com>
13858
13859 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
13860 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
13861 of -1.
13862 (cmd_qtsp): Adjust condition. Do post increment.
13863 Set cur_action and cur_step_action back to 0.
13864
f0ae6fc3
PA
138652013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
13866
13867 PR server/15236
13868 * linux-low.c (linux_write_memory): Return early success if LEN is
13869 zero.
13870
b5b0b0af
CV
138712013-03-05 Corinna Vinschen <vinschen@redhat.de>
13872
334ad4a8 13873 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 13874
589bc927
TT
138752013-02-28 Tom Tromey <tromey@redhat.com>
13876
13877 * configure.ac: Invoke AC_SYS_LARGEFILE.
13878 * configure, config.in: Rebuild.
13879
dfe07582
CV
138802013-02-28 Corinna Vinschen <vinschen@redhat.com>
13881
13882 * win32-low.c: Throughout, fix format strings and casts of
13883 printf-like functions to avoid type related warnings on all
13884 platforms.
13885 (get_child_debug_event): Print dwDebugEventCode as hex since
13886 that's how it's usually documented.
13887
736cd585
YQ
138882013-02-28 Yao Qi <yao@codesourcery.com>
13889
13890 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
13891 pulongest.
13892
e1f58301
JW
138932013-02-27 Jiong Wang <jiwang@tilera.com>
13894
13895 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
13896 (reg-tilegx32.c): New rule.
13897 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
13898 * linux-tile-low.c (tile_arch_setup): New function. Invoke
13899 different register info initializer according to elf class.
13900 (init_registers_tilgx32): New function. The tilegx32 register info
13901 initializer.
13902 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
13903 (tile_store_gregset): Likewise.
13904
d171ca78
YQ
139052013-02-27 Yao Qi <yao@codesourcery.com>
13906
13907 * server.c (process_point_options): Print debug message when
13908 debug_threads is true.
13909
282bbdf3
YQ
139102013-02-26 Yao Qi <yao@codesourcery.com>
13911
13912 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
13913
aca22551
PA
139142013-02-19 Pedro Alves <palves@redhat.com>
13915 Kai Tietz <ktietz@redhat.com>
13916
13917 PR gdb/15161
13918
13919 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
13920 instead of strtoul to extract address from packet.
13921 (process_serial_event) <'z'>: Likewise.
13922
4f3cee1c
YQ
139232013-02-18 Yao Qi <yao@codesourcery.com>
13924
13925 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
13926
8e1d55a3
PA
139272013-02-14 Pedro Alves <palves@redhat.com>
13928
13929 Plug memory leak.
13930
13931 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
13932 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
13933
458820da
PA
139342013-02-14 Pedro Alves <palves@redhat.com>
13935
13936 * tracepoint.c (cmd_qtdpsrc): Use savestring.
13937
baea0dae
PA
139382013-02-14 Pedro Alves <palves@redhat.com>
13939
13940 * tracepoint.c (save_string): Delete.
13941 (add_tracepoint_action): Use savestring instead of save_string.
13942
0b1afbb3
PA
139432013-02-12 Pedro Alves <palves@redhat.com>
13944
13945 * linux-xtensa-low.c: Ditto.
13946 * xtensa-xtregs.c: Ditto.
13947
8a4ac37e
PA
139482013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13949
13950 * thread-db.c (thread_db_get_tls_address): NULL pointer check
13951 thread_db.
13952
148de6bb
MS
139532013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
13954
13955 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
13956 aarch64_num_wp_regs and aarch64_num_bp_regs to
13957 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
13958
55fac6e0
MS
139592013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
13960
13961 * linux-aarch64-low.c (ps_get_thread_area): Replace
13962 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
13963
176eb98c
MS
139642013-02-04 Jim MacArthur <jim.macarthur@arm.com>
13965 Marcus Shawcroft <marcus.shawcroft@arm.com>
13966 Nigel Stephens <nigel.stephens@arm.com>
13967 Yufeng Zhang <yufeng.zhang@arm.com>
13968
13969 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
13970 (aarch64.c, aarch64-without-fpu.c): New targets.
13971 * configure.srv (aarch64*-*-linux*): New.
13972 * linux-aarch64-low.c: New file.
13973
56f7af9c
MS
139742013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
13975
43aaf8b6 13976 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
13977 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
13978 (dequeue_one_deferred_signal, linux_resume_one_thread)
13979 (fetch_register, linux_write_memory, linux_enable_event_reporting)
13980 (linux_tracefork_grandchild, linux_test_for_tracefork)
13981 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
13982 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
13983 where the argument is 0.
13984
60f662b0
YQ
139852013-01-25 Yao Qi <yao@codesourcery.com>
13986
13987 * event-loop.c: Include "queue.h".
13988 (gdb_event_p): New typedef.
13989 (struct gdb_event) <next_event>: Remove.
13990 (event_queue): Change to QUEUE(gdb_event_p).
13991 (async_queue_event): Remove.
13992 (gdb_event_xfree): New.
13993 (initialize_event_loop): New.
13994 (process_event): Use API from QUEUE.
13995 (wait_for_event): Likewise.
13996 * server.c (main): Call initialize_event_loop.
13997 * server.h (initialize_event_loop): Declare.
13998
5ae4861a
YQ
139992013-01-18 Yao Qi <yao@codesourcery.com>
14000
14001 * ax.h (struct eval_agent_expr_context): New.
14002 (gdb_eval_agent_expr): Update declaration.
14003 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14004 TFRAME. Add new argument CTX.
14005 * server.h (struct eval_agent_expr_context): Declare.
14006 (agent_mem_read, agent_tsv_read): Update declaration.
14007 (agent_mem_read_string): Likewise.
14008 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14009 (add_traceframe_block): Add new argument TPOINT.
14010 Increase TPOINT->traceframe_usage.
14011 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14012 eval_tracepoint_agent_expr.
14013 (condition_true_at_tracepoint): Likewise.
14014 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14015 (agent_mem_read_string, agent_tsv_read): Likewise.
14016
85e00e85
YQ
140172013-01-16 Yao Qi <yao@codesourcery.com>
14018
14019 * linux-low.c (linux_resume_one_lwp): Don't check
14020 'lwp->bp_reinsert != 0'.
14021
4039cf45
JB
140222013-01-07 Joel Brobecker <brobecker@adacore.com>
14023 Pedro Alves <palves@redhat.com>
14024
14025 * lynx-low.c (ptrace_request_to_str): Define a temporary
14026 macro and use it to simplify this function's implementation.
14027
9044dee2
JB
140282013-01-07 Joel Brobecker <brobecker@adacore.com>
14029
14030 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14031 sets errno.
14032
e6352c8f
JB
140332013-01-07 Joel Brobecker <brobecker@adacore.com>
14034
14035 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14036
50681a27
JB
140372013-01-07 Joel Brobecker <brobecker@adacore.com>
14038
14039 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14040
3f6e77ef
JB
140412013-01-07 Joel Brobecker <brobecker@adacore.com>
14042
14043 * lynx-low.c (lynx_resume): Use the resume_info parameter
14044 to determine the ptid for the lynx_ptrace call, unless
14045 it is equal to minus_one_ptid, in which case we use the
14046 ptid of the current_inferior.
14047 (lynx_wait_1): After having received a thread create/exit
14048 event, resume the inferior's execution using the signaling
14049 thread's ptid, rather than the old ptid.
14050
7fda33ae
JB
140512013-01-07 Joel Brobecker <brobecker@adacore.com>
14052
14053 * lynx-low.c (lynx_resume): Delete variable ret.
14054
b9786c74
JB
140552013-01-01 Joel Brobecker <brobecker@adacore.com>
14056
14057 * gdbreplay.c (gdbreplay_version): Update copyright year.
14058 * server.c (gdbserver_version): Likewise.
14059
8b93d60f
JB
140602012-12-17 Joel Brobecker <brobecker@adacore.com>
14061
14062 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14063 new thread.
14064
037335a7
JB
140652012-12-17 Joel Brobecker <brobecker@adacore.com>
14066
14067 * lynx-low.c (ptrace_request_to_str): Add handling for
14068 PTRACE_GETTRACESIG.
14069
52d4cbd8
JB
140702012-12-17 Joel Brobecker <brobecker@adacore.com>
14071
14072 * lynx-low.c (lynx_attach): Delete variable new_process.
14073
ab8f6ca9
JB
140742012-12-17 Joel Brobecker <brobecker@adacore.com>
14075
14076 * lynx-low.c (lynx_create_inferior): Delete variable
14077 new_process.
14078
78cbc024
JB
140792012-12-17 Joel Brobecker <brobecker@adacore.com>
14080
14081 * lynx-low.c (ptrace_request_to_str): Do not handle
14082 PTRACE_GETTHREADLIST if this macro does not exist.
14083
14a00470
YQ
140842012-12-15 Yao Qi <yao@codesourcery.com>
14085
14086 * Makefile.in (OBS): Add notif.o.
14087 * notif.c, notif.h: New.
14088 * server.c: Include "notif.h".
14089 (struct vstop_notif) <next>: Remove.
14090 <base>: New field.
14091 (queue_stop_reply): Update.
14092 (push_event, send_next_stop_reply): Remove.
14093 (discard_queued_stop_replies): Update.
14094 (notif_stop): New variable.
14095 (handle_v_stopped): Remove.
14096 (handle_v_requests): Don't call handle_v_stopped. Call
14097 handle_ack_notif instead.
14098 (queue_stop_reply_callback): Call notif_event_enque instead
14099 of queue_stop_reply.
14100 (handle_status): Don't call send_next_stop_reply, call
14101 notif_write_event instead.
14102 (kill_inferior_callback): Likewise.
14103 (detach_or_kill_inferior_callback): Likewise.
14104 (main): Call initialize_notif.
14105 (process_serial_event): Call QUEUE_is_empty.
14106 (handle_target_event): Call notif_push instead of push event.
14107 * server.h (push_event): Remove declaration.
14108
61c125b9
TT
141092012-12-10 Tom Tromey <tromey@redhat.com>
14110
14111 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14112 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14113 macros.
14114 (.c.o): Rewrite.
14115 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14116 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14117 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14118 (amd64-linux-ipa.o, ax.o): Rewrite.
14119 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14120 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14121 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14122 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14123 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14124 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14125 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14126 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14127 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14128 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14129 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14130 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14131 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14132 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14133 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14134 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14135 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14136 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14137 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14138 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14139 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14140 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14141 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14142 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14143 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14144 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14145 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14146 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14147 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14148 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14149 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14150 (reg-tilegx.o): Remove.
14151 (all_object_files): New macro.
14152 Include .deps files.
14153 * aclocal.m4, configure: Rebuild.
14154 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14155 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14156 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14157
e90e9ad9
TT
141582012-12-05 Tom Tromey <tromey@redhat.com>
14159
14160 PR gdb/14917:
14161 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14162
02d403bf 141632012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14164
14165 * configure.ac: Check for linux/perf_event.h.
14166 * config.in: Regenerated.
14167 * configure: Regenerated.
14168
0270a750
PA
141692012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14170
14171 * hostio.c (handle_readlink): Decrease buffer size
14172 parameter passed to readlink by one byte.
14173
8c29b58e
YQ
141742012-11-26 Yao Qi <yao@codesourcery.com>
14175
14176 * configure.ac (build_warnings): Append '-Wempty-body'.
14177 * configure: Regenerated.
14178 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14179 body.
14180
8bdce1ff
PM
141812012-11-15 Pierre Muller <muller@sourceware.org>
14182
14183 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14184 * config.in: Regenerate.
14185 * configure: Regenerate.
14186 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14187 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14188 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14189 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14190 header.
14191 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14192 instead of <sys/wait.h> header.
14193 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14194
02d403bf 141952012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14196
14197 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14198 (various make rules): Remove -DGDBSERVER
14199
fbd5db48
YQ
142002012-11-09 Yao Qi <yao@codesourcery.com>
14201
14202 * spu-low.c (current_ptid): Move it to ..
14203 * gdbthread.h: ... here. New.
14204 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14205 * server.c (myresume, process_serial_event): Likewise.
14206 * thread-db.c (thread_db_find_new_threads): Likewise.
14207 * tracepoint.c (run_inferior_command): Likewise.
14208
b3dc46ff
AB
142092012-10-01 Andrew Burgess <aburgess@broadcom.com>
14210
14211 * server.c (handle_search_memory_1): Include access length in
14212 warning message.
14213
07c04788
HPN
142142012-09-05 Michael Brandt <michael.brandt@axis.com>
14215
14216 * linux-crisv32-low.c: Fix compile errors.
14217
918d227b
YQ
142182012-09-04 Yao Qi <yao@codesourcery.com>
14219
14220 * tracepoint.c (cmd_qtsv): Adjust debug message.
14221 Don't check CUR_TPOINT.
14222
18c1b81a
YQ
142232012-08-28 Yao Qi <yao@codesourcery.com>
14224
14225 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14226 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14227 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14228 Remove declarations of xmalloc, xreallloc, xstrdup and
14229 freeargv.
14230 * Makefile.in (libiberty_h): New.
14231 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14232 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14233
dc82f37b
YQ
142342012-08-23 Yao Qi <yao@codesourcery.com>
14235
14236 * server.h: Remove declaration of 'xsnprintf'.
14237
406b1477
KS
142382012-08-22 Keith Seitz <keiths@redhat.com>
14239
14240 * server.h: Include build-gnulib-gbserver/config.h.
14241 * gdbreplay.c: Likewise.
14242
e6712ff1
DE
142432012-08-08 Doug Evans <dje@google.com>
14244
14245 * Makefile.in (SFILES): Add gdb_vecs.c.
14246 (OBS): Add gdb_vecs.o.
14247 (gdb_vecs_h, host_defs_h): New variables.
14248 (thread-db.o): Add $(gdb_vecs_h) dependency.
14249 (gdb_vecs.o): New rule.
14250 * thread-db.c: #include "gdb_vecs.h".
14251 (thread_db_load_search): Use a vector to iterate over path elements.
14252 Handle text appearing after "$pdir".
14253
14254 * configure.ac: Add check for strstr.
14255 * config.in: Regenerate.
14256 * configure: Regenerate.
14257
7c3270ae
UW
142582012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14259
14260 * hostio.c (handle_pread): If pread fails, fall back to attempting
14261 lseek/read.
14262 (handle_pwrite): Likewise for pwrite.
14263
b62e2b27
UW
142642012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14265
14266 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14267 between unsupported TYPE and unimplementable ADDR/LEN combination.
14268 (arm_insert_point): Act on new return value.
14269
78a99e91
PA
142702012-07-31 Pedro Alves <palves@redhat.com>
14271
14272 * server.c (process_point_options): Only skip tokens if we find
14273 one that is unrecognized. Don't treat 'X' specially while
14274 skipping unrecognized tokens.
14275
fcf303ab
UW
142762012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14277
14278 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14279 to 4-byte-align HW breakpoint addresses for Thumb.
14280
7255706c
YQ
142812012-07-27 Yao Qi <yao@codesourcery.com>
14282
14283 PR remote/14161.
14284
14285 * server.h: Declare gdb_agent_about_to_close.
14286 * target.c (kill_inferior): Include "agent.h".
14287 New. Send command 'kill'.
14288 * target.h (kill_inferior): Removed macro.
14289 * tracepoint.c (gdb_agent_about_to_close): New.
14290 (gdb_agent_helper_thread): Handle command 'close'.
14291 Wait endlessly until the inferior stops.
14292 Install gdb_agent_remove_socket to atexit hook.
14293 (agent_socket_name): New static variable.
14294 (gdb_agent_socket_init): Replace local variable 'name' with
14295 'agent_socket_name'.
14296 (gdb_agent_remove_socket): New.
14297
5a3f286f
YQ
142982012-07-27 Yao Qi <yao@codesourcery.com>
14299
14300 * server.c (process_point_options): Stop at 'X' when parsing.
14301
961bd387
ME
143022012-07-19 Michael Eager <eager@eagercon.com>
14303
a261b8f5 14304 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
14305 to hw_execute.
14306 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14307 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14308 hardware breakpoint.
14309
aa7c7447
JK
143102012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14311
14312 * gdbserver/linux-low.c (initialize_low): Call
14313 linux_ptrace_init_warnings.
14314
7f216e7c
DE
143152012-07-02 Doug Evans <dje@google.com>
14316
14317 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14318 pointer to int.
14319
d3ce09f5
SS
143202012-07-02 Stan Shebs <stan@codesourcery.com>
14321
14322 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14323 (ax.o): Add it to build rule.
14324 (ax-ipa.o): Ditto.
14325 (OBS): Add format.o.
14326 (IPA_OBS): Add format.o.
14327 * server.c (handle_query): Claim support for breakpoint commands.
14328 (process_point_options): Add command case.
14329 (process_serial_event): Leave running if there are printfs in
14330 effect.
14331 * mem-break.h (any_persistent_commands): Declare.
14332 (add_breakpoint_commands): Declare.
14333 (gdb_no_commands_at_breakpoint): Declare.
14334 (run_breakpoint_commands): Declare.
14335 * mem-break.c (struct point_command_list): New struct.
14336 (struct breakpoint): New field command_list.
14337 (any_persistent_commands): New function.
14338 (add_commands_to_breakpoint): New function.
14339 (add_breakpoint_commands): New function.
14340 (gdb_no_commands_at_breakpoint): New function.
14341 (run_breakpoint_commands): New function.
14342 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14343 locally.
14344 * ax.c: Include format.h.
14345 (ax_printf): New function.
14346 (gdb_eval_agent_expr): Add printf opcode.
14347
2f8f6aed
YQ
143482012-06-13 Yao Qi <yao@codesourcery.com>
14349
14350 * server.c (start_inferior): Remove duplicated writes to fields
14351 'last_resume_kind' and 'last_status' of 'current_inferior'.
14352
0c9070b3
YQ
143532012-06-12 Yao Qi <yao@codesourcery.com>
14354 Pedro Alves <palves@redhat.com>
14355
14356 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14357 comment.
14358 * server.c (handle_v_cont): Extend comment.
14359
c52daf70
YQ
143602012-06-11 Yao Qi <yao@codesourcery.com>
14361
14362 * linux-low.c (linux_attach): Add 'static'.
14363
d38bbb0a
YQ
143642012-06-06 Yao Qi <yao@codesourcery.com>
14365
14366 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14367
89dc0afd
JK
143682012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14369
14370 Fix gcc -flto compilation warning.
14371 * server.c (main): Make variable multi_mode and attach volatile.
14372
75f62ce7
TJB
143732012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14374
14375 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14376 if the platform doesn't know about it.
14377
65f479b6
PA
143782012-05-30 Jeff Kenton <jkenton@tilera.com>
14379
14380 * Makefile.in (SFILES): Add linux-tile-low.c.
14381 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14382 * configure.srv: Handle tilegx-*-linux*.
14383 * linux-tile-low.c: New file.
14384
0c5bf5a9
JK
143852012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14386
14387 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14388
a493e3e2
PA
143892012-05-24 Pedro Alves <palves@redhat.com>
14390
14391 PR gdb/7205
14392
43aaf8b6 14393 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 14394
2ea28649
PA
143952012-05-24 Pedro Alves <palves@redhat.com>
14396
14397 PR gdb/7205
14398
14399 Replace target_signal with gdb_signal throughout.
14400
8d409d16
MR
144012012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14402
14403 * linux-low.c (linux_store_registers): Avoid the copying sequence
14404 when no data has been retrieved by ptrace.
14405
23512c01
MGD
144062012-05-22 Will Deacon <will.deacon@arm.com>
14407
14408 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14409 Include asm/ptrace.h.
14410 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14411 already defined.
14412
4934b29e
MR
144132012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14414
14415 * linux-low.c (linux_store_registers): Don't re-retrieve data
14416 with ptrace that has already been obtained from /proc. Always
14417 copy any data retrieved with ptrace to the buffer supplied.
14418
bde24c0a
PA
144192012-05-11 Yao Qi <yao@codesourcery.com>
14420 Pedro Alves <palves@redhat.com>
14421
14422 * linux-low.c (enum stopping_threads_kind): New.
14423 (stopping_threads): Change type to `enum stopping_threads_kind'.
14424 (handle_extended_wait): If stopping and suspending threads, leave
14425 the new_lwp suspended too.
14426 (linux_wait_for_event): Adjust.
14427 (stop_all_lwps): Set `stopping_threads' to
14428 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14429 whether we're suspending threads or just stopping them. Assert no
14430 recursion happens.
14431
623b6bdf
YQ
144322012-04-29 Yao Qi <yao@codesourcery.com>
14433
14434 * server.h: Move some code to ...
14435 * gdbthread.h: ... here. New.
14436 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14437 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14438 (nto-low.o, win32-low.o): Likewise.
14439 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14440 * regcache.c, remote-utils.c, server.c: Likewise.
14441 * target.c, tracepoint.c, win32-low.c: Likewise.
14442
f15f9948
TJB
144432012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14444
14445 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14446 (PTRACE_ARG4_TYPE): Likewise.
14447 (PTRACE_XFER_TYPE): Likewise.
14448 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14449 ptrace to PTRACE_ARG3_TYPE.
14450 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14451 (PTRACE_ARG4_TYPE): Likewise.
14452 (PTRACE_XFER_TYPE): Likewise.
14453 (linux_detach_one_lwp): Cast fourth argument of
14454 ptrace to long then PTRACE_ARG4_TYPE.
14455 (regsets_fetch_inferior_registers): Cast third argument of
14456 ptrace to long then PTRACE_ARG3_TYPE.
14457 (regsets_store_inferior_registers): Likewise.
14458
38ea300a
PA
144592012-04-20 Pedro Alves <palves@redhat.com>
14460
14461 * configure: Regenerate.
14462
c971b7fa
PA
144632012-04-19 Pedro Alves <palves@redhat.com>
14464
43aaf8b6 14465 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 14466 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
14467 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14468 (all, install-only, uninstall, clean-info, all-lib, clean): No
14469 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14470 (maintainer-clean realclean distclean): Use subdir_do.
14471 (subdir_do): New.
14472 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 14473 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
14474 * acinclude.m4: Include acx_configure_dir.m4.
14475 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14476 calls. Call AC_PROG_RANLIB. Configure gnulib using
14477 ACX_CONFIGURE_DIR.
14478 (GNULIB): New.
14479 (GNULIB_STDINT_H): Adjust.
14480 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14481 * gdbreplay.c: Include build-gnulib/config.h.
14482 * server.h: Likewise.
14483 * aclocal.m4: Regenerate.
14484 * config.in: Regenerate.
14485 * configure: Regenerate.
c971b7fa 14486
809277f8
PA
144872012-04-19 Pedro Alves <palves@redhat.com>
14488
14489 * Makefile.in (LIBGNU, INCGNU): Adjust.
14490 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14491 (all, install-only, uninstall, clean-info, all-lib, clean)
14492 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14493 * configure.ac: Adjust AC_OUTPUT output.
14494 * aclocal.m4: Regenerate.
14495 * configure: Regenerate.
14496
fd9bb8b8
PA
144972012-04-19 Pedro Alves <palves@redhat.com>
14498
14499 * Makefile.in (generated_files): New.
14500 (server_h): Remove the explicit dependency on config.h, and depend
14501 on $generated_files.
14502
1c298c66
PA
145032012-04-19 Pedro Alves <palves@redhat.com>
14504
14505 * Makefile.in (INCGNU): Add -Ignulib.
14506
57c4b50b
PA
145072012-04-19 Pedro Alves <palves@redhat.com>
14508
14509 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14510 (INCGNU): ... this, and spell out -I here.
14511 (GNULIB_LIB): Rename to ...
14512 (LIBGNU): ... this.
14513 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14514
1030e047
PA
145152012-04-19 Pedro Alves <palves@redhat.com>
14516
14517 * config.in: Regenerate.
14518
447d4319
PA
145192012-04-19 Pedro Alves <palves@redhat.com>
14520
14521 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14522 * server.h (memmem): Remove declaration.
14523 * config.in: Regenerate.
14524 * configure: Regenerate.
14525
aad9eab9
YQ
145262012-04-19 Yao Qi <yao@codesourcery.com>
14527
14528 * Makefile.in (SFILES): Add common/vec.c.
14529 (OBS): Add vec.o.
14530 (vec.o): New rule.
14531
3e10640f
YQ
145322012-04-19 Yao Qi <yao@codesourcery.com>
14533
14534 * remote-utils.c (prepare_resume_reply): Replace with macro
14535 target_core_of_thread.
14536 * server.c (handle_qxfer_threads_proper): Likewise.
14537 * target.h (traget_core_of_thread): New macro.
14538
71622373
PA
145392012-04-18 Pedro Alves <palves@redhat.com>
14540
14541 * aclocal.m4: Regenerate.
14542 * configure: Regenerate.
14543
80d26939
YQ
145442012-04-16 Yao Qi <yao@codesourcery.com>
14545
14546 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
14547 duplicated on address.
14548
42476b70
YQ
145492012-04-16 Yao Qi <yao@codesourcery.com>
14550
14551 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
14552 (struct tracepoint_action_ops) <send>: New field.
14553 (m_tracepoint_action_send, r_tracepoint_action_send): New.
14554 (agent_expr_send, x_tracepoint_action_send): New.
14555 (l_tracepoint_action_send): New.
14556 (cmd_qtdp): Download and install tracepoint
14557 according to `use_agent'.
14558 (run_inferior_command): Add one more parameter `len'.
14559 Update callers.
14560 (tracepoint_send_agent): New.
14561 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
14562
7bc83639
YQ
145632012-04-16 Yao Qi <yao@codesourcery.com>
14564
14565 * tracepoint.c (download_tracepoints): Moved to ...
14566 (cmd_qtstart): ... here.
14567
5f18041e
YQ
145682012-04-14 Yao Qi <yao@codesourcery.com>
14569
14570 * tracepoint.c: Include inttypes.h.
14571 (struct collect_memory_action): Use sized types.
14572 (struct tracepoint): Likewise.
14573 (cmd_qtdp, stop_tracing): Update print specifiers.
14574 (cmd_qtp, response_tracepoint): Likewise.
14575 (collect_data_at_tracepoint): Likewise.
14576 (collect_data_at_step): Likewise.
14577
55a8c076
YQ
145782012-04-14 Yao Qi <yao@codesourcery.com>
14579
14580 Import gnulib module inttypes.
14581 * aclocal.m4, config.in, configure: Regenerated.
14582
dc750257
YQ
145832012-04-14 Yao Qi <yao@codesourcery.com>
14584
14585 * Makefile.in (maintainer-clean, realclean, distclean): Remove
14586 Makefile and config.status at last.
14587
0ab5faf9
YQ
145882012-04-13 Yao Qi <yao@codesourcery.com>
14589
14590 * tracepoint.c: Include stdint.h unconditionally.
14591
18f5fd81
TJB
145922012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14593
14594 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
14595 on BFD_HAVE_SYS_PROCFS_TYPE.
14596 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
14597 * configure: Regenerate.
14598 * config.in: Likewise.
14599
4d47af5c
L
146002012-04-13 H.J. Lu <hongjiu.lu@intel.com>
14601
14602 * Makefile.in (clean): Also remove x32.c x32-linux.c
14603 x32-avx.c x32-avx-linux.c.
14604 (x32.o): New target.
14605 (x32.c): Likewise.
14606 (x32-linux.o): Likewise.
14607 (x32-linux.c): Likewise.
14608 (x32-avx.o): Likewise.
14609 (x32-avx.c): Likewise.
14610 (x32-avx-linux.o): Likewise.
14611 (x32-avx-linux.c): Likewise.
14612
14613 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
14614 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
14615 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
14616 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
14617 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
14618 i386/x32-avx-linux.xml.
14619
14620 * linux-x86-low.c (init_registers_x32_linux): New prototype.
14621 (init_registers_x32_avx_linux): Likwise.
14622 (x86_linux_update_xmltarget): Call init_registers_x32_linux
14623 or init_registers_x32_avx_linux if linux_is_elf64 is false.
14624
ecedbe58
PA
146252012-04-13 Pedro Alves <palves@redhat.com>
14626
14627 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
14628 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
14629 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
14630 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
14631 the sub-make.
14632
c92b5177
L
146332012-04-12 H.J. Lu <hongjiu.lu@intel.com>
14634
14635 * linux-x86-low.c (compat_x32_clock_t): New.
14636 (compat_x32_siginfo_t): Likewise.
14637 (compat_x32_siginfo_from_siginfo): Likewise.
14638 (siginfo_from_compat_x32_siginfo): Likewise.
14639 (linux_is_elf64): Likewise.
14640 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
14641 and siginfo_from_compat_x32_siginfo for x32.
14642 (x86_arch_setup): Set linux_is_elf64.
14643
214d508e
L
146442012-04-12 H.J. Lu <hongjiu.lu@intel.com>
14645
14646 PR gdb/13969
14647 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
14648 e_machine field.
14649 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
14650 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
14651 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
14652 compatible with process.
14653
c9a1864a
YQ
146542012-04-12 Yao Qi <yao@codesourcery.com>
14655
14656 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
14657 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
14658 (install-only, install-info, clean): Handle sub dir gnulib.
14659 (all-lib, am--refresh): New targets.
14660 (memmem.o): Remove target.
14661 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
14662 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
14663 (AC_REPLACE_FUNCS): Remove memmem.
14664 Invoke gl_INIT and AM_INIT_AUTOMAKE.
14665 (AC_OUTPUT): Generate Makefile in gnulib/.
14666 * aclocal.m4, config.in, configure: Regenerated.
14667
367ba2c2
MR
146682012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
14669
14670 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
14671
9d236627
PA
146722012-04-05 Pedro Alves <palves@redhat.com>
14673
14674 -Werror=strict-aliasing
14675
14676 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
14677 pointer.
14678
111217b3
PA
146792012-04-04 Pedro Alves <palves@redhat.com>
14680
14681 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
14682 (sparc_store_gregset_from_stack, sparc_store_gregset)
14683 (sparc_breakpoint_at): Fix formatting.
14684
8365dcf5
TJB
146852012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14686
14687 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
14688 are available.
14689 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
14690 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
14691 * config.in: Regenerate.
14692 * configure: Likewise.
14693
689cc2ae
PA
146942012-03-29 Pedro Alves <palves@redhat.com>
14695
14696 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
14697 Correct ptrace arguments.
14698
c14dfd32
PA
146992012-03-28 Pedro Alves <palves@redhat.com>
14700
14701 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
14702 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
14703 (IA64_FR1_REGNUM): New defines.
14704 (ia64_fetch_register): New.
14705 (the_low_target): Install it.
14706 * linux-low.h (struct linux_target_ops) <fetch_register>: New
14707 field.
14708 * linux-low.c (linux_fetch_registers): Try the
14709 the_low_target.fetch_register hook first.
14710
14711 * linux-arm-low.c (the_low_target): Adjust.
14712 * linux-bfin-low.c (the_low_target): Adjust.
14713 * linux-cris-low.c (the_low_target): Adjust.
14714 * linux-crisv32-low.c (the_low_target): Adjust.
14715 * linux-m32r-low.c (the_low_target): Adjust.
14716 * linux-m68k-low.c (the_low_target): Adjust.
14717 * linux-mips-low.c (the_low_target): Adjust.
14718 * linux-ppc-low.c (the_low_target): Adjust.
14719 * linux-s390-low.c (the_low_target): Adjust.
14720 * linux-sh-low.c (the_low_target): Adjust.
14721 * linux-sparc-low.c (the_low_target): Adjust.
14722 * linux-tic6x-low.c (the_low_target): Adjust.
14723 * linux-x86-low.c (the_low_target): Adjust.
14724 * linux-xtensa-low.c (the_low_target): Adjust.
14725
63c88e13
PA
147262012-03-26 Pedro Alves <palves@redhat.com>
14727
14728 * server.c (handle_qxfer_libraries): Don't bail early if
14729 the_target->qxfer_libraries_svr4 is not NULL.
14730
fb723180
PA
147312012-03-26 Pedro Alves <palves@redhat.com>
14732
14733 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
14734
0afae3cf
PA
147352012-03-23 Pedro Alves <palves@redhat.com>
14736
14737 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
14738 "library-list-svr4" element's start tag when the the DSO list is
14739 empty.
14740
485f1ee4
PA
147412012-03-23 Pedro Alves <palves@redhat.com>
14742
14743 * linux-low.c (read_one_ptr): Read the inferior's pointer through
14744 a variable whose type size is the same as the inferior's pointer
14745 size.
14746
a5362b9a
TS
147472012-03-21 Thomas Schwinge <thomas@codesourcery.com>
14748
14749 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
14750 struct siginfo.
14751 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
14752 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
14753 * linux-low.h: Include <signal.h>.
14754 (struct siginfo): Remove forward declaration.
14755 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
14756 struct siginfo.
14757
d226c142
MF
147582012-03-21 Mike Frysinger <vapier@gentoo.org>
14759
14760 * .gitignore: Ignore more files.
14761
122f36ef
PA
147622012-03-19 Pedro Alves <palves@redhat.com>
14763 Jan Kratochvil <jan.kratochvil@redhat.com>
14764
14765 * server.c (cont_thread, general_thread): Add describing comments.
14766 (start_inferior): Clear `cont_thread'.
14767 (handle_v_cont): Don't set `cont_thread' if resuming all threads
14768 of a process.
14769
fc3e5175
YQ
147702012-03-15 Yao Qi <yao@codesourcery.com>
14771
14772 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
14773 handling to ...
14774 (cmd_qtdp): ... here.
14775
8d0d92cd
YQ
147762012-03-15 Yao Qi <yao@codesourcery.com>
14777
14778 * tracepoint.c (struct tracepoint_action_ops): New.
14779 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
14780 (m_tracepoint_action_download): New.
14781 (r_tracepoint_action_download): New.
14782 (x_tracepoint_action_download): New.
14783 (l_tracepoint_action_download): New.
14784 (add_tracepoint_action): Install `action->ops' according type.
14785 (download_tracepoint_1): Move code `download' function pointer
14786 of various tracepoint_action_ops.
14787
87b0bb13
JK
147882012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14789
14790 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
14791 linux_ptrace_attach_warnings.
14792
5f572dec
JK
147932012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14794
14795 * Makefile.in (linux-ptrace.o): New.
14796 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
14797 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
14798 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
14799 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
14800 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
14801 of these targets.
14802 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
14803
f4647387
YQ
148042012-03-08 Yao Qi <yao@codesourcery.com>
14805 Pedro Alves <palves@redhat.com>
14806
14807 Fix PR server/13392.
14808 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
14809 offset of JMP insn.
14810 * tracepoint.c (remove_tracepoint): New.
14811 (cmd_qtdp): Call remove_tracepoint when failed to install.
14812
9b224c5e
PA
148132012-03-07 Pedro Alves <palves@redhat.com>
14814
14815 * linux-low.c (get_detach_signal): New.
14816 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
14817 Pass on pending signals to PTRACE_DETACH. Check the result of the
14818 ptrace call.
14819 * server.c (program_signals, program_signals_p): New.
14820 (handle_general_set): Handle QProgramSignals.
14821 * server.h (program_signals, program_signals_p): Declare.
14822
e237a7e2
JK
148232012-03-05 Pedro Alves <palves@redhat.com>
14824 Jan Kratochvil <jan.kratochvil@redhat.com>
14825
14826 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
14827 New comment why.
14828
5808517f
YQ
148292012-03-03 Yao Qi <yao@codesourcery.com>
14830
14831 * tracepoint.c (tracepoint_look_up_symbols): Update call to
14832 agent_look_up_symbols.
14833
58b4daa5
YQ
148342012-03-03 Yao Qi <yao@codesourcery.com>
14835
14836 * Makefile.in (linux-low.o): Keep dependence on agent.h.
14837 (linux-x86-low.o): Likewise.
14838 * server.h: Remove in_process_agent_loaded.
14839 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
14840 common/agent.c.
14841 Update callers.
14842
8ffcbaaf
YQ
148432012-03-03 Yao Qi <yao@codesourcery.com>
14844
14845 * tracepoint.c (gdb_agent_capability): New global.
14846 (in_process_agent_loaded_ust): Renamed to
14847 `in_process_agent_supports_ust'.
14848 Update callers.
14849 (in_process_agent_supports_ust): Call agent_capability_check.
14850 (clear_installed_tracepoints): Assert that agent supports
14851 agent.
14852
d1feda86
YQ
148532012-03-03 Yao Qi <yao@codesourcery.com>
14854
14855 * linux-low.c (linux_supports_agent): New.
14856 (linux_target_ops): Initialize field `supports_agent' with
14857 linux_supports_agent.
14858 * target.h (struct target_ops) <supports_agent>: New.
14859 (target_supports_agent): New macro.
14860 * server.c (handle_general_set): Handle packet 'QAgent'.
14861 (handle_query): Send `QAgent+'.
14862 * Makefile.in (server.o): Depends on agent.h.
14863
2fa291ac
YQ
148642012-03-03 Yao Qi <yao@codesourcery.com>
14865
14866 * Makefile.in (OBS): Add agent.o.
14867 Add new rule for agent.o.
14868 Track dependence of tracepoint.c on agent.h.
14869 * tracepoint.c (run_inferior_command_1):
14870 (run_inferior_command): Call agent_run_command.
14871 (gdb_ust_connect_sync_socket): Deleted. Move it to
14872 common/agent.c.
14873 (resume_thread, stop_thread): Likewise.
14874 (gdb_ust_socket_init): Renamed to ...
14875 (gdb_agent_socket_init): ... New.
14876 (gdb_ust_thread): Renamed to ...
14877 (gdb_agent_helper_thread): ... New.
14878 (gdb_ust_init): Move some code to ...
14879 (gdb_agent_init): ... here. New.
14880 [HAVE_UST]: Call gdb_ust_init.
14881 (initialize_tracepoint_ftlib): Call gdb_agent_init.
14882 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
14883 * config.in, configure: Regenerated.
14884
05044653
PA
148852012-03-02 Pedro Alves <palves@redhat.com>
14886
14887 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
14888 * linux-low.c (struct simple_pid_list): New.
14889 (stopped_pids): New a struct simple_pid_list pointer.
14890 (add_to_pid_list, pull_pid_from_list): New.
14891 (handle_extended_wait): Don't assume the first signal new children
14892 report is SIGSTOP. Adjust call to pull_pid_from_list.
14893 (linux_wait_for_lwp): Adjust.
14894
8d00225b
YQ
148952012-03-02 Yao Qi <yao@codesourcery.com>
14896
14897 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
14898 debug log.
14899
19560ba5
YQ
149002012-03-02 Yao Qi <yao@codesourcery.com>
14901
14902 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
14903 `stop_pc' and `tpoint'. Update caller.
14904
1faeff08
MR
149052012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
14906
14907 * linux-low.h (linux_target_ops): Add regset_bitmap member.
14908 * linux-low.c (use_linux_regsets): New macro.
14909 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
14910 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
14911 (linux_register_in_regsets): New function.
14912 (usr_fetch_inferior_registers): Skip registers covered by
14913 regsets.
14914 (usr_store_inferior_registers): Likewise.
14915 (usr_fetch_inferior_registers): New macro.
14916 (usr_store_inferior_registers): Likewise.
14917 (linux_fetch_registers): Handle mixed regset/non-regset targets.
14918 (linux_store_registers): Likewise.
14919 * linux-mips-low.c (init_registers_mips_dsp_linux): New
14920 prototype.
14921 (init_registers_mips64_dsp_linux): Likewise.
14922 (init_registers_mips_linux): New macro.
14923 (init_registers_mips_dsp_linux): Likewise.
14924 (mips_dsp_num_regs): Likewise.
14925 (DSP_BASE, DSP_CONTROL): New fallback macros.
14926 (mips_base_regs): New macro.
14927 (mips_regmap): Use it. Fix the size.
14928 (mips_dsp_regmap): New variable.
14929 (mips_dsp_regset_bitmap): Likewise.
14930 (mips_arch_setup): New function.
14931 (mips_cannot_fetch_register): Use the_low_target.regmap rather
14932 than mips_regmap.
14933 (mips_cannot_store_register): Likewise.
14934 (the_low_target): Update .arch_setup, .num_regs and .regmap
14935 initializers. Add .regset_bitmap initializer.
14936 * linux-arm-low.c (the_low_target): Add .regset_bitmap
14937 initializer.
14938 * linux-bfin-low.c (the_low_target): Likewise.
14939 * linux-cris-low.c (the_low_target): Likewise.
14940 * linux-crisv32-low.c (the_low_target): Likewise.
14941 * linux-ia64-low.c (the_low_target): Likewise.
14942 * linux-m32r-low.c (the_low_target): Likewise.
14943 * linux-m68k-low.c (the_low_target): Likewise.
14944 * linux-ppc-low.c (the_low_target): Likewise.
14945 * linux-s390-low.c (the_low_target): Likewise.
14946 * linux-sh-low.c (the_low_target): Likewise.
14947 * linux-sparc-low.c (the_low_target): Likewise.
14948 * linux-tic6x-low.c (the_low_target): Likewise.
14949 * linux-x86-low.c (the_low_target): Likewise.
14950 * linux-xtensa-low.c (the_low_target): Likewise.
14951 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
14952 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
14953 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
14954 srv_xmlfiles.
14955 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
14956 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
14957
c03e6ccc
YQ
149582012-02-29 Yao Qi <yao@codesourcery.com>
14959 Pedro Alves <palves@redhat.com>
14960
14961 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
14962 `step_over_finished' is true.
14963
644cebc9
PA
149642012-02-27 Pedro Alves <palves@redhat.com>
14965
14966 * linux-low.c (pid_is_stopped): Delete, moved to common/.
14967 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
14968
c14d7ab2
PA
149692012-02-27 Pedro Alves <palves@redhat.com>
14970
14971 PR server/9684
14972 * linux-low.c (pid_is_stopped): New.
14973 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
14974
412c89dd
LM
149752012-02-25 Luis Machado <lgustavo@codesourcery.com>
14976
14977 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
14978 of conditions.
14979
b745defe
MR
149802012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
14981
14982 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
14983
9f3a5c85
LM
149842012-02-24 Luis Machado <lgustavo@codesourcery>
14985
14986 * server.c (handle_query): Advertise support for target-side
14987 breakpoint condition evaluation.
14988 (process_point_options): New function.
14989 (process_serial_event): When inserting a breakpoint, check for
14990 a target-side condition that should be evaluated.
14991
14992 * mem-break.c: Include regcache.h and ax.h.
14993 (point_cond_list_t): New data structure.
14994 (breakpoint) <cond_list>: New field.
14995 (find_gdb_breakpoint_at): Make non-static.
14996 (delete_gdb_breakpoint_at): Clear any target-side
14997 conditions.
14998 (clear_gdb_breakpoint_conditions): New function.
14999 (add_condition_to_breakpoint): Likewise.
15000 (add_breakpoint_condition): Likewise.
15001 (gdb_condition_true_at_breakpoint): Likewise.
15002 (gdb_breakpoint_here): Return result directly instead
15003 of going through a local variable.
15004
15005 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15006 (clear_gdb_breakpoint_conditions): Likewise.
15007 (add_breakpoint_condition): Likewise.
15008 (gdb_condition_true_at_breakpoint): Likewise.
15009
15010 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15011 (need_step_over_p): Take target-side breakpoint condition into
15012 consideration.
15013
5e1dc496
LM
150142012-02-24 Luis Machado <lgustavo@codesourcery>
15015
15016 * server.h: Include tracepoint.h.
15017 (agent_mem_read, agent_get_trace_state_variable_value,
15018 agent_set_trace_state_variable_value,
15019 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15020 get_set_tsv_func_addr): New prototypes.
15021
15022 * ax.h: New include file.
15023 * ax.c: New source file.
15024
15025 * tracepoint.c: Include ax.h.
15026 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15027 agent_expr, eval_result_type): Move to ax.h.
15028 (parse_agent_expr): Rename to ...
15029 (gdb_parse_agent_expr): ... this, make it non-static and move
15030 to ax.h.
15031 (unparse_agent_expr) Rename to ...
15032 (gdb_unparse_agent_expr): ... this, make it non-static and move
15033 to ax.h.
15034 (eval_agent_expr): Rename to ...
15035 (eval_tracepoint_agent_expr): ... this.
15036 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15037 forward declarations.
15038 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15039 (agent_get_trace_state_variable_value): New function.
15040 (agent_set_trace_state_variable_value): New function.
15041 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15042 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15043 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15044 (condition_true_at_tracepoint): Likewise.
15045 (parse_agent_expr): Rename to ...
15046 (gdb_parse_agent_expr): ... this and move to ax.c.
15047 (unparse_agent_expr): Rename to ...
15048 (gdb_unparse_agent_expr): ... this and move to ax.c.
15049 (gdb_agent_op_name): Move to ax.c.
15050 (eval_agent_expr): Rename to ...
15051 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15052 and move to ax.c.
15053 (eval_tracepoint_agent_expr): New function.
15054 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15055 non-static.
5e1dc496
LM
15056 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15057 ax.c.
15058 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15059 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15060 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15061 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15062 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15063 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15064 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15065 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15066 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15067 (compile_bytecodes): Remove forward declaration.
15068 (is_goto_target): Move to ax.c.
15069 (compile_bytecodes): Move to ax.c and call
15070 agent_get_trace_state_variable_value (...) and
15071 agent_set_trace_state_variable_value (...).
15072
15073 * Makefile.in: Update ax.c and IPA dependencies.
15074
277e4e52
PA
150752012-02-24 Pedro Alves <palves@redhat.com>
15076
15077 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15078 (cmd_bigqtbuffer_circular): ... this. Only handle
15079 'QTBuffer:circular:'.
15080 (handle_tracepoint_general_set): Adjust.
15081
bf4c19f7
YQ
150822012-02-16 Yao Qi <yao@codesourcery.com>
15083
15084 * inferiors.c: Move code to ...
15085 * dll.c: .... here. New.
15086 * server.h: Declare clear_dlls.
15087 * Makefile.in (SFILES): Add dll.c.
15088 (OBS): Add dll.o
15089 (dll.o): New rule.
15090
d73f2619
YQ
150912012-02-11 Yao Qi <yao@codesourcery.com>
15092
15093 * server.c: (handle_monitor_command): Add a new parameter
15094 `own_buf'.
15095 (handle_query): Update caller.
15096
f8255c2a
JB
150972012-02-09 Joel Brobecker <brobecker@adacore.com>
15098
15099 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15100 * configure, config.in: Regenerate.
15101 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15102 is not defined.
15103
da84f473
PA
151042012-02-02 Pedro Alves <palves@redhat.com>
15105
15106 Try SIGKILL first, then PTRACE_KILL.
15107 * linux-low.c (linux_kill_one_lwp): New.
15108 (linux_kill_one_lwp): Rename to ...
15109 (kill_one_lwp_callback): ... this. Use the new
15110 linux_kill_one_lwp.
15111
e886a173
PA
151122012-02-02 Pedro Alves <palves@redhat.com>
15113
15114 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15115 inferior.
15116
be07f1a2
PA
151172012-01-27 Pedro Alves <palves@redhat.com>
15118
15119 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15120 (elf_64_file_p): Make static.
15121 (linux_pid_exe_is_elf_64_file): New.
15122 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15123 Delete declarations.
15124 (linux_pid_exe_is_elf_64_file): Declare.
15125 * linux-x86-low.c (x86_arch_setup): Use
15126 linux_pid_exe_is_elf_64_file.
15127
d8301ad1
JK
151282012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15129
15130 * linux-low.c (linux_wait_for_event_1): Rename to ...
15131 (linux_wait_for_event): ... here and merge it with former
15132 linux_wait_for_event - new variable wait_ptid, use it.
15133 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15134
01b17894
PA
151352012-01-23 Pedro Alves <palves@redhat.com>
15136
15137 * server.c (main): Avoid yet another case of infinite loop while
15138 detaching/killing after a longjmp.
15139
e825046f
JK
151402012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15141
15142 Code cleanup.
15143 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15144
b9e7b9c3
UW
151452012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15146
15147 * hostio.c (handle_readlink): New function.
15148 (handle_vFile): Call it to handle "vFile:readlink" packets.
15149
901f9912
UW
151502012-01-20 Pedro Alves <palves@redhat.com>
15151 Ulrich Weigand <ulrich.weigand@linaro.org>
15152
15153 * server.c (handle_v_requests): Only support vAttach and vRun to
15154 start multiple processes when in extended protocol mode.
15155
fc1ab1a0
PA
151562012-01-17 Pedro Alves <palves@redhat.com>
15157
15158 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15159 memalign plus mprotect to allocate the scratch buffer.
15160
7d5d4e98
PA
151612012-01-13 Pedro Alves <palves@redhat.com>
15162
15163 * server.c (attach_inferior): Clear `cont_thread'.
15164
f128d5e9
PA
151652012-01-13 Pedro Alves <palves@redhat.com>
15166
15167 * server.c (main): Avoid infinite loop while detaching/killing
15168 after a longjmp.
15169
06db92f0
DE
151702012-01-09 Doug Evans <dje@google.com>
15171
15172 * server.c (start_inferior): Set last_ptid in --wrapper case.
15173
32d92999
YQ
151742012-01-06 Yao Qi <yao@codesourcery.com>
15175
15176 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15177 defined.
15178 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15179
5e0a92a9
YQ
151802012-01-04 Yao Qi <yao@codesourcery.com>
15181
15182 * tracepoint.c (cmd_qtdp): Print debug message
15183 for static tracepoint.
15184
ae639e8c
YQ
151852012-01-04 Yao Qi <yao@codesourcery.com>
15186
15187 * tracepoint.c (trace_vdebug): Differentiate debug message
15188 between gdbserver and IPA.
15189
f72429c5
YQ
151902012-01-03 Yao Qi <yao@codesourcery.com>
15191
15192 * tracepoint.c (tracepoint_was_hit): Don't collect for
15193 static tracepoint.
15194
12c3e59c
JB
151952012-01-02 Joel Brobecker <brobecker@adacore.com>
15196
15197 * terminal.h: Reformat copyright header.
15198
67827812
JB
151992012-01-02 Joel Brobecker <brobecker@adacore.com>
15200
15201 * server.c (gdbserver_version): Update copyright year.
15202 * gdbreplay.c (gdbreplay_version): Likewise.
15203
3e52c33d
JK
152042011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15205
15206 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15207
15208 Revert:
15209 2011-12-18 Hui Zhu <teawater@gmail.com>
15210 * linux-low.c (linux_create_inferior): Save return value to ret.
15211
66f1260e
HZ
152122011-12-18 Hui Zhu <teawater@gmail.com>
15213
15214 * linux-low.c (linux_create_inferior): Save return value to ret.
15215
e77616d7
DE
152162011-12-16 Doug Evans <dje@google.com>
15217
e7b06c57
DE
15218 * linux-low.c (linux_create_inferior): If stdio connection,
15219 redirect stdin from /dev/null, stdout to stderr.
15220 * remote-utils.c (remote_is_stdio): New static global.
15221 (remote_connection_is_stdio): New function.
15222 (remote_prepare): Handle stdio connection.
15223 (remote_open): Ditto.
15224 (remote_close): Don't close stdin for stdio connections.
15225 (read_prim,write_prim): New functions. Replace all calls to
15226 read/write to these.
15227 * server.c (main): Watch for "-" argument. Move call to
15228 remote_prepare before start_inferior.
15229 * server.h (STDIO_CONNECTION_NAME): New macro.
15230 (remote_connection_is_stdio): Declare.
15231
e77616d7
DE
15232 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15233 in debugging output.
15234
82067193
YQ
152352011-12-15 Yao Qi <yao@codesourcery.com>
15236
15237 * tracepoint.c: Include sys/syscall.h.
15238 (gdb_ust_thread): Remove preprocessor conditional.
15239
82bfbe7e
PA
152402011-12-14 Pedro Alves <pedro@codesourcery.com>
15241
15242 * linux-low.c (linux_detach_one_lwp): Call
15243 the_low_target.prepare_to_resume before detaching.
15244
712c6575
YQ
152452011-12-14 Yao Qi <yao@codesourcery.com>
15246
15247 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15248 of write.
15249
d54d1edf
YQ
152502011-12-14 Yao Qi <yao@codesourcery.com>
15251
15252 * i386-low.c (i386_low_stopped_data_address): Initialize local
15253 variable `control'.
15254
6210a125
PA
152552011-12-13 Pedro Alves <pedro@codesourcery.com>
15256
15257 PR remote/13492
15258
15259 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15260 DR_CONTROL unless necessary. Extend comments.
15261 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15262 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15263
2ece8244
YQ
152642011-12-13 Yao Qi <yao@codesourcery.com>
15265
15266 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15267 macros.
15268 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15269
784867a5
JK
152702011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15271
15272 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15273 Print new debug message for such case.
15274
6bf36717
JK
152752011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15276
15277 Fix overlapping memcpy.
15278 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15279 the read_inferior_memory transfer.
15280 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15281 write_inferior_memory transfer.
15282 (set_fast_tracepoint_jump): New variable buf. Use it for the
15283 read_inferior_memory and write_inferior_memory transfers.
15284 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15285 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15286 Use it for the write_inferior_memory transfer.
15287 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15288 buffers.
15289
50275556
MR
152902011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15291
15292 * linux-low.c (fetch_register, store_register): Make code
15293 consistent, fix formatting.
15294
7325beb4
MR
152952011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15296
15297 * linux-low.c (usr_store_inferior_registers): Factor out code
15298 to handle individual registers into...
15299 (store_register): ... this new function.
15300
c642a434
UW
153012011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15302
15303 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15304 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15305 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15306 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15307 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15308 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15309 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15310 (srv_xmlfiles): Add new XML files.
15311
15312 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15313 and <sys/uio.h>.
15314 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15315 (init_registers_s390_linux32v1): Add prototype.
15316 (init_registers_s390_linux32v2): Likewise.
15317 (init_registers_s390_linux64v1): Likewise.
15318 (init_registers_s390_linux64v2): Likewise.
15319 (init_registers_s390x_linux64v1): Likewise.
15320 (init_registers_s390x_linux64v2): Likewise.
15321 (s390_num_regs): Increment to 52.
15322 (s390_regmap): Add orig_r2 register.
15323 (s390_num_regs_3264): Increment to 68.
15324 (s390_regmap_3264): Add orig_r2 register.
15325 (s390_collect_ptrace_register): Handle orig_r2 register.
15326 (s390_supply_ptrace_register): Likewise.
15327 (s390_fill_last_break): New function.
15328 (s390_store_last_break): Likewise.
15329 (s390_fill_system_call): New function.
15330 (s390_store_system_call): Likewise.
15331 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15332 register sets.
15333 (s390_check_regset): New function.
15334 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15335 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15336 Update target_regsets for available register sets.
15337
2268b414
JK
153382011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15339 Jan Kratochvil <jan.kratochvil@redhat.com>
15340
15341 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15342 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15343 New.
15344 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15345 * linux-low.h (struct process_info_private): New member r_debug.
15346 * server.c (handle_qxfer_libraries): Call
15347 the_target->qxfer_libraries_svr4.
15348 (handle_qxfer_libraries_svr4): New function.
15349 (qxfer_packets): New entry "libraries-svr4".
15350 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15351 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15352 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15353 PACKET_qXfer_libraries_svr4.
15354
d6db1fab
UW
153552011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15356
15357 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15358 PSW address/mask between 8-byte and 16-byte formats.
15359 (s390_supply_ptrace_register): Likewise.
15360 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15361 basic addressing mode bit.
15362
242f5f1c
SS
153632011-11-24 Stan Shebs <stan@codesourcery.com>
15364
15365 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15366
f196051f
SS
153672011-11-17 Stan Shebs <stan@codesourcery.com>
15368
15369 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15370 (tracing_start_time): New global.
15371 (tracing_stop_time): New global.
15372 (tracing_user_name): New global.
15373 (tracing_notes): New global.
15374 (tracing_stop_note): New global.
15375 (cmd_qtstart): Set traceframe_usage, start_time.
15376 (stop_tracing): Set stop_time.
15377 (cmd_qtstatus): Report additional status.
15378 (cmd_qtp): New function.
15379 (handle_tracepoint_query): Call it.
15380 (cmd_qtnotes): New function.
15381 (handle_tracepoint_general_set): Call it.
15382 (get_timestamp): Rename from tsv_get_timestamp.
15383
405f8e94
SS
153842011-11-14 Stan Shebs <stan@codesourcery.com>
15385 Kwok Cheung Yeung <kcy@codesourcery.com>
15386
15387 * linux-x86-low.c (small_jump_insn): New.
15388 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15389 trampoline and error message, build a trampoline and issue a small
15390 jump instruction to it.
15391 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15392 trampoline and error message.
15393 (x86_get_min_fast_tracepoint_insn_len): New.
15394 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15395 * linux-low.h (struct linux_target_ops): Add arguments to
15396 install_fast_tracepoint_jump_pad operation, add new operation.
15397 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15398 arguments.
15399 (linux_get_min_fast_tracepoint_insn_len): New function.
15400 (linux_target_op): Add new operation.
15401 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15402 (gdb_trampoline_buffer_end): Ditto.
15403 (gdb_trampoline_buffer_error): Ditto.
15404 (struct ipa_sym_addresses): Add fields for new IPA variables.
15405 (symbol_list): Add entries for new IPA variables.
15406 (struct tracepoint): Add fields to hold the address range of the
15407 trampoline used by the tracepoint.
15408 (trampoline_buffer_head): New static variable.
15409 (trampoline_buffer_tail): Ditto.
15410 (claim_trampoline_space): New function.
15411 (have_fast_tracepoint_trampoline_buffer): New function.
15412 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15413 structure.
15414 (install_fast_tracepoint): Ditto, also add error buffer argument.
15415 (cmd_qtminftpilen): New function.
15416 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15417 (fast_tracepoint_from_trampoline_address): New function.
15418 (fast_tracepoint_collecting): Handle trampoline as part of jump
15419 pad space.
15420 (set_trampoline_buffer_space): New function.
15421 (initialize_tracepoint): Initialize new IPA variables.
15422 * target.h (struct target_ops): Add arguments to
15423 install_fast_tracepoint_jump_pad operation, add new
15424 get_min_fast_tracepoint_insn_len operation.
15425 (target_get_min_fast_tracepoint_insn_len): New.
15426 (install_fast_tracepoint_jump_pad): Add arguments.
15427 * server.h (IPA_BUFSIZ): Define.
15428 * linux-i386-ipa.c: Include extra header files.
15429 (initialize_fast_tracepoint_trampoline_buffer): New function.
15430 (initialize_low_tracepoint): Call it.
15431 * server.h (set_trampoline_buffer_space): Declare.
15432 (claim_trampoline_space): Ditto.
15433 (have_fast_tracepoint_trampoline_buffer): Ditto.
15434
1e4d1764
YQ
154352011-11-14 Yao Qi <yao@codesourcery.com>
15436
15437 * server.c (handle_query): Handle InstallInTrace for qSupported.
15438 * tracepoint.c (add_tracepoint): Sort list.
15439 (install_tracepoint, download_tracepoint): New.
15440 (cmd_qtdp): Call them to install and download tracepoints.
15441 (sort_tracepoints): Removed.
15442 (cmd_qtstart): Update.
15443
5c73ff4e
YQ
154442011-11-14 Yao Qi <yao@codesourcery.com>
15445
15446 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15447 * mem-break.h: Declare.
15448 * tracepoint.c (cmd_qtstart): Move some code to ...
15449 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15450 New.
15451 (download_tracepoints): Move some code to ...
15452 (download_tracepoint_1): ... here. New.
15453
86a30030
YQ
154542011-11-08 Yao Qi <yao@codesourcery.com>
15455
15456 * remote-utils.c (relocate_instruction): A comment fix.
15457
8d26e50c
JB
154582011-11-07 Joel Brobecker <brobecker@adacore.com>
15459
15460 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15461 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15462 dr_status_mirror and dr_control_mirror from debug_reg_state.
15463 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15464 (i386_initial_stuff): Remove use of deleted globals.
15465 (i386_get_thread_context, i386_set_thread_context,
15466 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15467 from debug_reg_state.
15468
a59306a3
YQ
154692011-11-05 Yao Qi <yao@codesourcery.com>
15470
15471 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15472 address as TPOINT's.
15473
3065dfb6
SS
154742011-11-02 Stan Shebs <stan@codesourcery.com>
15475
15476 * tracepoint.c (agent_mem_read_string): New function.
15477 (eval_agent_expr): Call it for tracenz.
15478 * server.c (handle_query): Report support for tracenz.
15479
fd0d8c7c
YQ
154802011-11-02 Yao Qi <yao@codesourcery.com>
15481
15482 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15483
609086b1
YQ
154842011-11-02 Yao Qi <yao@codesourcery.com>
15485
15486 * target.h: Fix a typo in comment.
15487
b9fd1791
PA
154882011-10-31 Pedro Alves <pedro@codesourcery.com>
15489
15490 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15491 clobber the breakpoints' shadows with fast tracepoint jumps.
15492 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15493 * target.c (write_inferior_memory): Also pass MYADDR down to
15494 check_mem_write.
15495
03583c20
UW
154962011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15497
15498 * configure.ac: Check support for personality routine.
15499 * configure: Regenerate.
15500 * config.in: Likewise.
15501 * linux-low.c: Include <sys/personality.h>.
15502 Define ADDR_NO_RANDOMIZE if necessary.
15503 (linux_create_inferior): Disable address space randomization when
15504 forking inferior, if requested.
15505 (linux_supports_disable_randomization): New function.
15506 (linux_target_ops): Install it.
15507 * server.h (disable_randomization): Declare.
15508 * server.c (disable_randomization): New global variable.
15509 (handle_general_set): Handle QDisableRandomization.
15510 (handle_query): Likewise for qSupported.
15511 (main): Support --disable-randomization and --no-disable-randomization
15512 command line arguments.
15513 * target.h (struct target_ops): Add supports_disable_randomization.
15514 (target_supports_disable_randomization): New macro.
15515
723b724b
MF
155162011-09-29 Mike Frysinger <vapier@gentoo.org>
15517
15518 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15519 ifdef check.
15520 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15521 [!PT_GETDSBT] (target_loadmap): New definition.
15522 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15523 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15524 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15525 and PT_GETDSBT to LINUX_LOADMAP.
15526 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15527 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15528
55329a5c 155292011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
15530
15531 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
15532 (arm_linux_hwbp_cap): New static variable.
15533 (arm_linux_get_hwbp_cap): Replace by ...
15534 (arm_linux_init_hwbp_cap): ... this new function.
15535 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
15536 (arm_linux_get_hw_watchpoint_count): Likewise.
15537 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15538 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
15539 (arm_prepare_to_resume): Use perror_with_name instead of error.
15540
55329a5c 155412011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
15542
15543 * linux-arm-low.c: Include <signal.h>.
15544 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
15545 (struct arm_linux_hwbp_cap): New data type.
15546 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
15547 (struct arm_linux_hw_breakpoint): New data type.
15548 (MAX_BPTS, MAX_WPTS): Define.
15549 (struct arch_process_info, struct arch_lwp_info): New data types.
15550 (arm_linux_get_hwbp_cap): New function.
15551 (arm_linux_get_hw_breakpoint_count): Likewise.
15552 (arm_linux_get_hw_watchpoint_count): Likewise.
15553 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15554 (arm_hwbp_control_initialize): Likewise.
15555 (arm_hwbp_control_is_enabled): Likewise.
15556 (arm_hwbp_control_is_initialized): Likewise.
15557 (arm_hwbp_control_disable): Likewise.
15558 (arm_linux_hw_breakpoint_equal): Likewise.
15559 (arm_linux_hw_point_initialize): Likewise.
15560 (struct update_registers_data): New data structure.
15561 (update_registers_callback: New function.
15562 (arm_insert_point): Likewise.
15563 (arm_remove_point): Likewise.
15564 (arm_stopped_by_watchpoint): Likewise.
15565 (arm_stopped_data_address): Likewise.
15566 (arm_new_process): Likewise.
15567 (arm_new_thread): Likewise.
15568 (arm_prepare_to_resume): Likewise.
15569 (the_low_target): Register arm_insert_point, arm_remove_point,
15570 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
15571 arm_new_thread, and arm_prepare_to_resume.
15572
6b9801d4
SS
155732011-09-15 Stan Shebs <stan@codesourcery.com>
15574
15575 * server.h (struct emit_ops): Add compare-goto fields.
15576 * tracepoint.c (gdb_agent_op_sizes): New table.
15577 (emit_eq_goto): New function.
15578 (emit_ne_goto): New function.
15579 (emit_lt_goto): New function.
15580 (emit_le_goto): New function.
15581 (emit_gt_goto): New function.
15582 (emit_ge_goto): New function.
15583 (is_goto_target): New function.
15584 (compile_bytecodes): Recognize special cases of compare-goto
15585 combinations and call specialized emitters for them.
15586 * linux-x86-low.c (amd64_emit_eq_goto): New function.
15587 (amd64_emit_ne_goto): New function.
15588 (amd64_emit_lt_goto): New function.
15589 (amd64_emit_le_goto): New function.
15590 (amd64_emit_gt_goto): New function.
15591 (amd64_emit_ge_goto): New function.
15592 (amd64_emit_ops): Add the new functions.
15593 (i386_emit_eq_goto): New function.
15594 (i386_emit_ne_goto): New function.
15595 (i386_emit_lt_goto): New function.
15596 (i386_emit_le_goto): New function.
15597 (i386_emit_gt_goto): New function.
15598 (i386_emit_ge_goto): New function.
15599 (i386_emit_ops): Add the new functions.
15600
bf15cbda
SS
156012011-09-08 Stan Shebs <stan@codesourcery.com>
15602
15603 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
15604 (i386_emit_epilogue): Restore %ebx.
15605
943ca1dd
JZ
156062011-08-31 Jie Zhang <jzhang918@gmail.com>
15607
15608 * server.c (step_thread): Remove definition.
15609 (process_serial_event): Don't handle Hs.
15610 * server.h (step_thread): Remove declaration.
15611 * target.c (set_desired_inferior): Remove use of step_thread.
15612
e3deef73
LM
156132011-08-24 Luis Machado <lgustavo@codesourcery.com>
15614
15615 * linux-low.c: Include linux-procfs.h.
15616 (linux_attach_lwp_1): Update comments.
15617 (linux_attach): Scan for existing threads when attaching to a
15618 process that is the tgid.
15619 * Makefile.in: Update dependencies.
15620
13da1c97
LM
156212011-08-24 Luis Machado <lgustavo@codesourcery.com>
15622
15623 * configure.srv: Add linux-procfs.o dependencies.
15624
881127c9
YQ
156252011-08-14 Yao Qi <yao@codesourcery.com>
15626
15627 * target.h (struct target_ops): Fix indent.
15628 * win32-low.c (win32_target_ops): Fix comment.
15629
58dbd541
YQ
156302011-08-14 Andrew Jenner <andrew@codesourcery.com>
15631 Yao Qi <yao@codesourcery.com>
15632
15633 * Makefile.in (clean): Remove tic6x-*.c files.
15634 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
15635 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
15636 (tic6x-c64xp-linux.c): Likewise.
15637 * configure.srv: Add support for tic6x-*-uclinux.
15638 * linux-tic6x-low.c: New.
15639 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
15640
78d85199
YQ
156412011-08-14 Andrew Stubbs <ams@codesourcery.com>
15642 Yao Qi <yao@codesourcery.com>
15643
15644 * target.h (struct target_ops): Add read_loadmap.
15645 * linux-low.c (struct target_loadseg): New type.
15646 (struct target_loadmap): New type.
15647 (linux_read_loadmap): New function.
15648 (linux_target_ops): Add linux_read_loadmap.
15649 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
15650 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
15651 to NULL.
78d85199 15652
a959a88d
EZ
156532011-08-05 Eli Zaretskii <eliz@gnu.org>
15654
15655 * win32-low.c: Include <stdint.h>.
15656
1ced966e
PA
156572011-07-22 Pedro Alves <pedro@codesourcery.com>
15658
15659 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
15660 to the inferior here.
15661 (i386_remove_aligned_watchpoint): Ditto.
15662 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
15663 fit part of the watchpoint in the debug registers.
15664 (i386_update_inferior_debug_regs): New.
15665 (i386_low_insert_watchpoint): Work on a local mirror of the debug
15666 registers, and only update the inferior on success.
15667 (i386_low_remove_watchpoint): Ditto.
15668
d26e3629
KY
156692011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
15670
15671 * linux-low.c (compare_ints, unique, list_threads, show_process,
15672 linux_core_of_thread): Delete.
15673 (linux_target_ops): Change linux_core_of_thread to
15674 linux_common_core_of_thread.
15675 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
15676 * utils.c (malloc_failure): Change type of argument.
15677 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
15678 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
15679 common/linux-osdata.c, common/ptid.c and common/buffer.c.
15680 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
15681 (IPA_OBJS): Add common-utils-ipa.o.
15682 (ptid_h, linux_osdata_h): New macros.
15683 (server_h): Add common/common-utils.h, common/xml-utils.h,
15684 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
15685 common/ptid.h.
15686 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
15687 ptid.o, buffer.o): New rules.
15688 (linux-low.o): Add common/linux-osdata.h as a dependency.
15689 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
15690 * configure.ac: Add AC_HEADER_DIRENT check.
15691 * config.in: Regenerate.
15692 * configure: Regenerate.
15693 * remote-utils.c (xml_escape_text): Delete.
15694 (buffer_grow, buffer_free, buffer_init, buffer_finish,
15695 buffer_xml_printf): Move to common/buffer.c.
15696 * server.c (main): Remove call to initialize_inferiors.
15697 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
15698 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
15699 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
15700 internal_error, gdb_assert, gdb_assert_fail): Delete.
15701 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
15702 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
15703 common/buffer.h.
15704 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
15705 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
15706 initialize_inferiors): Delete.
15707
2275a1a7
PA
157082011-07-20 Pedro Alves <pedro@codesourcery.com>
15709
15710 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
15711 symbol error.
15712
0a5b1e09
PA
157132011-05-31 Pedro Alves <pedro@codesourcery.com>
15714
15715 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
15716 assertion.
15717 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
15718
6938fd34
YQ
157192011-05-26 Yao Qi <yao@codesourcery.com>
15720
15721 * Makefile.in (thread-db.o): Track dependence to
15722 common/gdb_thread_db.h.
15723 * thread-db.c: include gdb_thread_db.h from right place.
15724
b481f9e0
TT
157252011-05-16 Adrian Cornish <gnu@bluedreamer.com>
15726
15727 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
15728 __FILE__ and __LINE__ to internal_error.
15729
98a5dd13
DE
157302011-05-13 Doug Evans <dje@google.com>
15731
15732 * thread-db.c (try_thread_db_load_from_sdir): New function.
15733 (try_thread_db_load_from_dir): New function.
15734 (thread_db_load_search): Handle $sdir, ignore $pdir.
15735 Remove trying of system directories if search of
15736 libthread-db-search-path fails, that is now done via $sdir.
15737
d248b706
KY
157382011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
15739
15740 * server.c (handle_query): Add EnableDisableTracepoints to the list
15741 of supported features.
43aaf8b6 15742 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 15743 tracepoints.
43aaf8b6
PA
15744 (cmd_qtenable_disable): New.
15745 (cmd_qtstart): Install tracepoints even if disabled.
15746 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
15747 receiving a QTEnable or QTDisable packet.
15748 (gdb_collect): Skip data collection if fast tracepoint is disabled.
15749 (ust_marker_to_static_tracepoint): Do not ignore disabled static
15750 tracepoints.
15751 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 15752
84e578fb
DE
157532011-05-10 Doug Evans <dje@google.com>
15754
15755 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
15756
71f55dd8
DE
157572011-05-04 Doug Evans <dje@google.com>
15758
15759 * linux-low.c (linux_join): Skip process lookup.
15760 * spu-low.c (spu_join): Ditto.
15761 * server.c (join_inferiors_callback): Delete.
15762 (process_serial_event): For 'D' packet (detach) call join_inferior
15763 directly.
15764
4d393d60
JM
157652011-05-04 Joseph Myers <joseph@codesourcery.com>
15766
15767 * README: Don't mention xscale*-*-linux*.
15768 * configure.srv (xscale*-*-linux*): Don't handle target.
15769
b00ad6ff
NF
157702011-04-27 Nathan Froyd <froydnj@codesourcery.com>
15771
15772 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
15773 casting pointers.
15774 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
15775 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
15776 (i386_emit_void_call_2): Likewise.
15777
af96c192
YQ
157782011-04-26 Yao Qi <yao@codesourcery.com>
15779
43aaf8b6
PA
15780 * linux-low.c: Move common macros to linux-ptrace.h.
15781 Include linux-ptrace.h.
af96c192
YQ
15782 * Makefile.in (linux_ptrace_h): New.
15783 (linux-low.o): Depends on linux-ptrace.h.
15784
03f2bd59
JK
157852011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
15786
15787 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
15788 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
15789 (remote_prepare): New function with most of the TCP code from ...
15790 (remote_open): ... here. Detect PORT here unconditionally. Move also
15791 setting transport_is_reliable.
15792 * server.c (run_once): New variable.
15793 (gdbserver_usage): Document it.
15794 (main): Set run_once for `--once'. Call remote_prepare. Exit after
15795 the first run if RUN_ONCE.
15796 * server.h (run_once, remote_prepare): New declarations.
15797
7a9dd1b2
TT
157982011-04-19 Tom Tromey <tromey@redhat.com>
15799
15800 * win32-low.c (handle_load_dll): Remove duplicate "the".
15801
81239425
PM
158022011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
15803
15804 Remove support for old Cygwin 1.5 versions.
15805 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
15806 function to avoid warning.
15807 (win32_add_one_solib): Use cygwin_conv_path function to avoid
15808 warning.
15809
9e0627f1
PM
158102011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
15811
15812 * gdbserver/server.h (Macro _): Define it if not available.
15813
588eebee
MS
158142011-03-14 Michael Snyder <msnyder@vmware.com>
15815
348af9f7 15816 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 15817
43f70d4c
JB
158182011-03-10 Joel Brobecker <brobecker@adacore.com>
15819
15820 * Makefile.in (maintainer-clean realclean distclean): Remove
15821 "make ... subdir_do" command.
15822
348af9f7
MS
158232011-03-10 Michael Snyder <msnyder@vmware.com>
15824
15825 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
15826
15827 * server.c (handle_v_run): Free alloced buffer on early return.
15828
e637a4f5
YQ
158292011-03-09 Yao Qi <yao@codesourcery.com>
15830
15831 Revert:
15832 2011-03-04 Yao Qi <yao@codesourcery.com>
15833
15834 * Makefile.in: Remove GNU make feature --directory.
15835
15836 2011-03-05 Yao Qi <yao@codesourcery.com>
15837
15838 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
15839 (subdir_do): New make target. Copied from gdb/Makefile.
15840 (maintainer-clean, realclean, distclean, clean): Call corresponding
15841 make targets in common/Makefile.
15842
15843 2011-02-11 Yao Qi <yao@codesourcery.com>
15844
15845 * configure.ac: Call AC_PROG_RANLIB.
15846 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
15847 * configure: Regenerate.
15848
e6edda56
JK
158492011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15850
15851 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
15852
e5141119
JB
158532011-03-06 Yao Qi <yao@codesourcery.com>
15854
15855 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
15856
64794aa4
JB
158572011-03-05 Yao Qi <yao@codesourcery.com>
15858
15859 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
15860 (subdir_do): New make target. Copied from gdb/Makefile.
15861 (maintainer-clean, realclean, distclean, clean): Call corresponding
15862 make targets in common/Makefile.
15863
7a762829
YQ
158642011-03-04 Yao Qi <yao@codesourcery.com>
15865
15866 * Makefile.in: Remove GNU make feature --directory.
15867
348af9f7
MS
158682011-03-04 Michael Snyder <msnyder@vmware.com>
15869
15870 * server.c (queue_stop_reply): Call xmalloc not malloc.
15871
158722011-03-02 Michael Snyder <msnyder@vmware.com>
15873
15874 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
15875
9f72fee2
MS
158762011-02-28 Michael Snyder <msnyder@vmware.com>
15877
588eebee
MS
15878 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
15879 (cmd_qtframe): Ditto.
15880 (cmd_qtbuffer): Ditto.
15881 (cmd_bigqtbuffer): Ditto.
15882
9f72fee2
MS
15883 * utils.c (decimal2str): Initialize 'width' to nine, then
15884 don't mess with it.
15885
8040bd49
UW
158862011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15887
15888 * hostio.c (require_data): Free *data, not data.
15889
7e52cbd0
JK
158902011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15891
15892 * hostio.c (require_data): Use free, not xfree.
15893
9130f83e
MS
158942011-02-27 Michael Snyder <msnyder@vmware.com>
15895
4b812f4e
MS
15896 * server.c (handle_query): Discard unused value.
15897
9130f83e
MS
15898 * hostio.c (require_data): Free malloc memory before returning
15899 error.
15900
69d37113
MS
159012011-02-26 Michael Snyder <msnyder@vmware.com>
15902
15903 * linux-low.c (list_threads): Call closedir for dirent.
15904
35f5825a
MS
159052011-02-27 Michael Snyder <msnyder@vmware.com>
15906
2a589cef
MS
15907 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
15908 a case statement falls through.
15909
0adea5f7
MS
15910 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
15911
35f5825a
MS
15912 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
15913 in comparison.
15914
238f1c74
MS
159152011-02-26 Michael Snyder <msnyder@vmware.com>
15916
15917 * utils.c (decimal2str): Eliminate dead code and dead param.
15918 (pulongest): Drop dead param from call to decimal2str.
15919 (plongest): Ditto.
15920
633ff500
JB
159212011-02-24 Joel Brobecker <brobecker@adacore.com>
15922
15923 Revert the following patch (not approved yet):
15924 2011-02-21 Hui Zhu <teawater@gmail.com>
15925 * tracepoint.c (tp_printf): New function.
15926 (eval_agent_expr): Handle gdb_agent_op_printf.
15927
f9c6ff72
HZ
159282011-02-21 Hui Zhu <teawater@gmail.com>
15929
15930 * tracepoint.c (tp_printf): New function.
15931 (eval_agent_expr): Handle gdb_agent_op_printf.
15932
94d5e490
TT
159332011-02-18 Tom Tromey <tromey@redhat.com>
15934
15935 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
15936 (tracepoint.o): Likewise.
15937 * tracepoint.c (enum gdb_agent_op): Use ax.def.
15938 (gdb_agent_op_names): Likewise.
15939
c7f96d2b
TT
159402011-02-18 Tom Tromey <tromey@redhat.com>
15941
15942 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
15943 gdb_agent_op_rot>: New constants.
15944 (gdb_agent_op_names): Add pick and roll.
15945 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
15946 cases.
15947
0feedb2c
JK
159482011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
15949
15950 * aclocal.m4: Regenerated with aclocal-1.11.1.
15951
b3b9301e
PA
159522011-02-14 Pedro Alves <pedro@codesourcery.com>
15953
15954 * server.c (handle_qxfer_traceframe_info): New.
15955 (qxfer_packets): Register "traceframe-info".
15956 (handle_query): Report support for qXfer:traceframe-info:read+.
15957 * tracepoint.c (match_blocktype): New.
15958 (traceframe_find_block_type): Rename to ...
15959 (traceframe_walk_blocks): ... this. Add callback filter argument,
15960 and use it.
15961 (traceframe_find_block_type): New, reimplemented on top of
15962 traceframe_walk_blocks.
15963 (build_traceframe_info_xml): New.
15964 (traceframe_read_info): New.
15965 * server.h (traceframe_read_info): Declare.
15966
4f3e6fb7
YQ
159672011-02-11 Yao Qi <yao@codesourcery.com>
15968
15969 * configure.ac: Call AC_PROG_RANLIB.
15970 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
15971 * configure: Regenerate.
15972
764880b7
PA
159732011-02-07 Pedro Alves <pedro@codesourcery.com>
15974
15975 * server.c (gdb_read_memory): Change return semantics to allow
15976 partial transfers.
15977 (handle_search_memory_1): Adjust.
15978 (process_serial_event) <'m' packet>: Handle partial transfers.
15979 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
15980
1c79eb8a
PA
159812011-01-28 Pedro Alves <pedro@codesourcery.com>
15982
15983 * regcache.c (init_register_cache): Initialize
15984 regcache->register_status.
15985 (free_register_cache): Release regcache->register_status.
15986 (regcache_cpy): Copy register_status.
15987 (registers_to_string): Print 'x's for unavailable registers.
15988 (supply_register): Mark the register's status valid or
15989 unavailable, depending on whether a buffer was passed in or not.
15990 (supply_register_zeroed): New.
15991 (supply_regblock): Mark the registers' status valid or
15992 unavailable, depending on whether a buffer was passed in or not.
15993 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
15994 (struct regcache): New `register_status' field.
15995 (supply_register_zeroed): Declare.
15996 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
15997 supply_register_zeroed, rather than passing a NULL buffer to
15998 supply_register.
15999 * tracepoint.c (fetch_traceframe_registers): Update comment.
16000
85724a0e
PA
160012011-01-28 Pedro Alves <pedro@codesourcery.com>
16002
16003 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16004 buffer explicit.
16005
d08aafef
PA
160062011-01-25 Pedro Alves <pedro@codesourcery.com>
16007
16008 * server.h (decode_xfer_write): Change prototype.
16009 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16010 and don't extract the annex here.
16011 * server.c (decode_xfer_read): Remove `annex' parameter,
16012 and don't extract the annex here.
16013 (decode_xfer): New.
16014 (struct qxfer): New.
16015 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16016 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16017 (handle_qxfer_statictrace): New functions, abstracted out from
16018 handle_query, and made to use the struct qxfer interface.
16019 (handle_threads_qxfer_proper): Rename to ...
16020 (handle_qxfer_threads_proper): ... this.
16021 (handle_threads_qxfer): Rename to ...
16022 (handle_qxfer_threads): ... this. Adjust.
16023 (qxfer_packets): New array.
16024 (handle_qxfer): New function.
16025 (handle_query): Use handle_qxfer.
16026
493e2a69
MS
160272011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16028
16029 * gdbreplay.c: Shorten lines of >= 80 columns.
16030 * linux-low.c: Ditto.
16031 * linux-ppc-low.c: Ditto.
16032 * linux-s390-low.c: Ditto.
16033 * linux-sparc-low.c: Ditto.
16034 * linux-x86-low.c: Ditto.
16035 * linux-xtensa-low.c: Ditto.
16036 * mem-break.c: Ditto.
16037 * nto-low.c: Ditto.
16038 * regcache.h: Ditto.
16039 * remote-utils.c: Ditto.
16040 * server.c: Ditto.
16041 * server.h: Ditto.
16042 * thread-db.c: Ditto.
16043 * tracepoint.c: Ditto.
16044 * utils.c: Ditto.
16045 * win32-low.h: Ditto.
16046
44944448
JB
160472011-01-05 Joel Brobecker <brobecker@adacore.com>
16048
16049 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16050 update.
16051
71ce852c
JB
160522011-01-01 Joel Brobecker <brobecker@adacore.com>
16053
16054 * server.c (gdbserver_version): Update copyright year in version
16055 output.
16056 * gdbreplay.c (gdbreplay_version): Ditto.
16057
eb826dc6
MF
160582010-12-29 Jie Zhang <jie.zhang@analog.com>
16059
16060 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16061 * linux-bfin-low.c: New file.
16062 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16063 PT_DATA_ADDR for BFIN targets.
16064 * Makefile.in (SFILES): Add linux-bfin-low.c.
16065 (clean): Remove reg-bfin.c.
16066 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16067 * README: Mention supported Blackfin targets.
16068
39ab222a
MF
160692010-12-23 Mike Frysinger <vapier@gentoo.org>
16070
16071 * .gitignore: New file.
16072
a1f2ce7d
MF
160732010-11-16 Mike Frysinger <vapier@gentoo.org>
16074
16075 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16076
f474844c
JZ
160772010-10-22 Jie Zhang <jie@codesourcery.com>
16078
16079 * Makefile.in: Add FLAGS_TO_PASS variable.
16080 (install): Remove dependency of install-only and recursively
16081 invoke make for install-only.
16082
f1048712
DE
160832010-10-04 Doug Evans <dje@google.com>
16084
16085 * Makefile.in (uninstall): Use $(DESTDIR).
16086
b53a1623
PA
160872010-09-24 Pedro Alves <pedro@codesourcery.com>
16088
e6ee044d
PA
16089 PR gdb/11842
16090
b53a1623
PA
16091 * linux-x86-low.c (compat_siginfo_from_siginfo)
16092 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16093 si_code is < 0. Check for si_code == SI_TIMER before checking for
16094 si_code < 0.
16095
fa1bd1e4
JB
160962010-09-13 Joel Brobecker <brobecker@adacore.com>
16097
16098 * lynx-i386-low.c: New file.
16099 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16100
47fac8f8
JB
161012010-09-13 Joel Brobecker <brobecker@adacore.com>
16102
16103 * lynx-low.c (ptrace_request_to_str): Remove handling for
16104 request values that have been removed in LynxOS 5.x.
16105
1adfc54d
JB
161062010-09-13 Joel Brobecker <brobecker@adacore.com>
16107
16108 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16109 <ptrace.h>
16110
c2a66c29
NS
161112010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16112
16113 * configure.ac: Add --enable-inprocess-agent option.
16114 * configure: Rebuilt.
16115
32fcada3
YQ
161162010-09-06 Yao Qi <yao@codesourcery.com>
16117
16118 * linux-low.c (linux_kill): Remove unused variable.
16119 (linux_stabilize_threads): Likewise.
16120 * server.c (start_inferior): Likewise.
16121 (queue_stop_reply_callback): Likewise.
16122 * tracepoint.c (do_action_at_tracepoint): Likewise.
16123
0cccb683
YQ
161242010-09-06 Yao Qi <yao@codesourcery.com>
16125
16126 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16127 on return.
16128
423ec54c
JK
161292010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16130
16131 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16132
12ac6819
PA
161332010-09-06 Pedro Alves <pedro@codesourcery.com>
16134
16135 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16136 "$(IPA_DEPFILES)".
16137
8ed54b31
JB
161382010-09-01 Joel Brobecker <brobecker@adacore.com>
16139
16140 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16141 gdbserver/lynx-ppc-low.c: New files.
16142 * Makefile.in (lynx_low_h): New variable.
16143 (lynx-low.o, lynx-ppc-low.o): New rules.
16144 * configure.ac: On LynxOS, link with -lnetinet.
16145 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16146 * configure: regenerate.
16147
bb0116a4
JB
161482010-09-01 Joel Brobecker <brobecker@adacore.com>
16149
16150 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16151 * configure.ac: Add check for vasprintf and vsnprintf.
16152 * configure, config.in: Regenerate.
16153 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16154
a778ab81 161552010-09-01 Joel Brobecker <brobecker@adacore.com>
16156
16157 * gdbreplay.c: Move include of alloca.h up, next to include of
16158 malloc.h.
16159 * server.h: Add include of malloc.h.
16160 * mem-break.c: Remove include of malloc.h.
16161 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16162
8b034a19 161632010-09-01 Joel Brobecker <brobecker@adacore.com>
16164
16165 * Makefile.in (memmem.o): Build with -Wno-error.
16166
161672010-09-01 Joel Brobecker <brobecker@adacore.com>
16168
16169 * utils.c (xsnprintf): Make non-static.
16170 * server.h: Add xsnprintf declaration.
16171 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16172 replace calls to snprintf by calls to xsnprintf throughout.
16173
161742010-09-01 Joel Brobecker <brobecker@adacore.com>
16175
16176 * configure.ac: Add configure check for alloca.
16177 * configure, config.in: Regenerate.
16178 * server.h: Include alloca.h if it exists.
16179 * gdbreplay.c: Include alloca.h if it exists.
16180
1a981360
PA
161812010-08-28 Pedro Alves <pedro@codesourcery.com>
16182
16183 * linux-low.c (__SIGRTMIN): Define if not already defined.
16184 (linux_create_inferior): Check for __ANDROID__ rather than
16185 __SIGRTMIN.
16186 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16187 are already deferred.
16188 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16189 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16190 stopped and already has a pending signal to report.
16191 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16192 a pending signal to report or is moving out of a jump pad.
16193 (linux_init_signals): Check for __ANDROID__ rather than
16194 __SIGRTMIN.
16195
b4d51a55
PA
161962010-08-28 Pedro Alves <pedro@codesourcery.com>
16197
16198 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16199 debug_threads check. Avoid a linear search when not doing debug
16200 output.
16201
ec48365d
PA
162022010-08-27 Pedro Alves <pedro@codesourcery.com>
16203
16204 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16205 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16206 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16207 (process_event): Change local fd's type to gdb_fildes_t.
16208 (create_file_handler): Adjust prototype.
16209 (delete_file_handler): Adjust prototype.
16210 (handle_file_event): Adjust prototype. Use pfildes.
16211 (create_file_event): Adjsut prototype.
16212 * remote-utils.c (remote_desc, listen_desc): Change type to
16213 gdb_fildes_t.
16214 * server.h: New gdb_fildes_t typedef.
16215 [USE_WIN32API]: Include winsock2.h.
16216 (delete_file_handler, add_file_handler): Adjust prototypes.
16217 (pfildes): Declare.
16218 * utils.c (pfildes): New.
16219
854d88f0
PA
162202010-08-27 Pedro Alves <pedro@codesourcery.com>
16221
16222 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16223 * configure: Regenerate.
16224
0146f85b
PA
162252010-08-27 Pedro Alves <pedro@codesourcery.com>
16226
16227 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16228 (linux_done_accessing_memory): ... this.
16229 (linux_target_ops): Adjust.
16230 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16231 * nto-low.c (nto_target_ops): Adjust comment.
16232 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16233 * spu-low.c (spu_target_ops): Adjust comment.
16234 * target.h (target_ops): Rename unprepare_to_access_memory field
16235 to done_accessing_memory.
16236 (unprepare_to_access_memory): Rename to ...
16237 (done_accessing_memory): ... this.
16238
90d74c30
PA
162392010-08-26 Pedro Alves <pedro@codesourcery.com>
16240
16241 * linux-low.c (linux_prepare_to_access_memory): New.
16242 (linux_unprepare_to_access_memory): New.
16243 (linux_target_ops): Install them.
16244 * server.c (read_memory): Rename to ...
16245 (gdb_read_memory): ... this. Use
16246 prepare_to_access_memory/prepare_to_access_memory.
16247 (write_memory): Rename to ...
16248 (gdb_write_memory): ... this. Use
16249 prepare_to_access_memory/prepare_to_access_memory.
16250 (handle_search_memory_1): Adjust.
16251 (process_serial_event): Adjust.
16252 * target.h (struct target_ops): New fields
16253 prepare_to_access_memory and unprepare_to_access_memory.
16254 (prepare_to_access_memory, unprepare_to_access_memory): New.
16255 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16256 prepare_to_access_memory/prepare_to_access_memory.
16257 * nto-low.c (nto_target_ops): Adjust.
16258 * spu-low.c (spu_target_ops): Adjust.
16259 * win32-low.c (win32_target_ops): Adjust.
16260
fd467969
PA
162612010-08-26 Pedro Alves <pedro@codesourcery.com>
16262
16263 * Makefile.in (WARN_CFLAGS): Get it from configure.
16264 (WERROR_CFLAGS): New.
16265 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16266 * configure.ac: Introduce --enable-werror, which adds -Werror to
16267 the compiler command line. Enabled by default. Disable with
16268 --disable-werror. Add -Wdeclaration-after-statement
16269 Wpointer-arith and -Wformat-nonliteral to warning flags.
16270 * configure: Regenerate.
16271
331e2f5f
PA
162722010-08-26 Pedro Alves <pedro@codesourcery.com>
16273
16274 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16275
e581f2b4
PA
162762010-08-26 Pedro Alves <pedro@codesourcery.com>
16277
16278 * gdbreplay.c (remote_error): New.
16279 (gdbchar): New.
16280 (expect): Use gdbchar. Check for error reading from GDB.
16281 Clarify sync error output.
16282 (play): Check for errors writing to GDB.
16283 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16284 * remote-utils.c (getpkt): Check for errors writing to the remote
16285 descriptor.
16286
3c11dd79
PA
162872010-08-25 Pedro Alves <pedro@codesourcery.com>
16288
16289 * linux-low.c (linux_wait_1): Move non-debugging code out of
16290 `debug_threads' control.
16291
d20a8ad9
PA
162922010-08-25 Pedro Alves <pedro@codesourcery.com>
16293
16294 * linux-low.c (linux_wait_1): Don't set last_status here.
16295 * server.c (push_event, queue_stop_reply_callback): Assert we're
16296 not pushing a TARGET_WAITKIND_IGNORE event.
16297 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16298 (myresume, handle_target_event): Set the thread's last_resume_kind
16299 and last_status from the target returned status.
16300
964e4306
PA
163012010-08-25 Pedro Alves <pedro@codesourcery.com>
16302
16303 PR threads/10729
16304
16305 * linux-x86-low.c (update_debug_registers_callback): New.
16306 (i386_dr_low_set_addr): Use it.
16307 (i386_dr_low_get_addr): New.
16308 (i386_dr_low_set_control): Use update_debug_registers_callback.
16309 (i386_dr_low_get_control): New.
16310 (i386_dr_low_get_status): Adjust.
16311 * linux-low.c (linux_stop_lwp): New.
16312 * linux-low.h (linux_stop_lwp): Declare.
16313
16314 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16315 argument instead of a i386_debug_reg_state.
16316 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16317 a i386_debug_reg_state.
16318 (i386_insert_aligned_watchpoint): Adjust.
16319 (i386_remove_aligned_watchpoint): Adjust.
16320 (i386_low_stopped_data_address): Read the debug registers from the
16321 inferior instead of from the mirrors.
16322 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16323 (i386_dr_low_get_addr): Declare.
16324 (i386_dr_low_get_control): Declare.
16325 (i386_dr_low_get_status): Change prototype.
16326
16327 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16328 (i386_dr_low_get_addr): New.
16329 (i386_dr_low_get_control): New.
16330 (i386_dr_low_get_status): Adjust prototype. Return
16331 dr_status_mirror.
16332 (i386_initial_stuff): Clear dr_status_mirror and
16333 dr_control_mirror.
16334 (i386_get_thread_context): Adjust.
16335 (i386_set_thread_context): Adjust.
16336 (i386_thread_added): Adjust.
16337
5f21a75b
PA
163382010-08-24 Pedro Alves <pedro@codesourcery.com>
16339
16340 * linux-low.h (linux_thread_area): Delete declaration.
16341
3e4c1235
TS
163422010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16343
16344 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16345 after its termination.
16346
1971b033
PA
163472010-08-09 Pedro Alves <pedro@codesourcery.com>
16348
16349 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16350 (gdb_wants_all_stopped): Delete.
16351 (linux_wait_1): Don't call them.
16352 * server.c (handle_v_cont): Tag all threads as want-stopped.
16353 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16354 stopped as "client-wants-stopped".
16355
310444ac
PA
163562010-07-31 Pedro Alves <pedro@codesourcery.com>
16357
16358 * Makefile.in (signals_h): New.
16359 (server_h): Depend on it.
16360 (server.o): Don't depend on $(signals_def).
16361 (signals.o): Depend on $(signals_def).
16362
a19cae16
JK
163632010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16364
16365 * Makefile.in (signals_def): New.
16366 (server_h): Append include/gdb/signals.h and signals_def.
16367 (server.o): Append signals_def.
16368
30d50328
JK
163692010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16370
16371 * server.c (handle_target_event): Use target_signal_to_host for
16372 resume_info.sig initialization.
16373 * target.h (struct thread_resume) <sig>: New comment.
16374
5c3216e2
OS
163752010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16376
c6f46ca0
OS
16377 * server.c (handle_query): strcpy() the returned string from paddress()
16378 instead of sprintf().
5c3216e2
OS
16379 * utils.c (paddress): Return phex_nz().
16380
6bd31874
JB
163812010-07-07 Joel Brobecker <brobecker@adacore.com>
16382
16383 * server.c (handle_v_cont): Call mourn_inferior if process
16384 just exited.
16385 (myresume): Likewise.
16386
0fb4aa4b
PA
163872010-07-01 Pedro Alves <pedro@codesourcery.com>
16388
16389 Static tracepoints, and integration with UST.
16390
16391 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16392 * mem-break.c (uninsert_all_breakpoints)
16393 (reinsert_all_breakpoints): New.
16394 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16395 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16396 (gdb_agent_ust_loaded, helper_thread_id)
16397 (gdb_agent_helper_thread_id): New macros.
16398 (struct ipa_sym_addresses): Add addr_ust_loaded,
16399 addr_helper_thread_id, addr_cmd_buf.
16400 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16401 (in_process_agent_loaded_ust): New.
16402 (write_e_ust_not_loaded): New.
16403 (maybe_write_ipa_ust_not_loaded): New.
16404 (struct collect_static_trace_data_action): New.
16405 (enum tracepoint_type) <static_tracepoint>: New.
16406 (struct tracepoint) <handle>: Mention static tracepoints.
16407 (struct static_tracepoint_ctx): New.
16408 (CMD_BUF_SIZE): New.
16409 (add_tracepoint_action): Handle static tracepoint actions.
16410 (unprobe_marker_at): New.
16411 (clear_installed_tracepoints): Handle static tracepoints.
16412 (cmd_qtdp): Handle static tracepoints.
16413 (probe_marker_at): New.
16414 (cmd_qtstart): Handle static tracepoints.
16415 (response_tracepoint): Handle static tracepoints.
16416 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16417 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16418 (get_context_regcache): Handle static tracepoints.
16419 (do_action_at_tracepoint): Handle static tracepoint actions.
16420 (traceframe_find_block_type): Handle static trace data blocks.
16421 (traceframe_read_sdata): New.
16422 (download_tracepoints): Download static tracepoint actions.
16423 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16424 (GDB_PROBE_NAME): New.
16425 (ust_ops): New.
16426 (GET_UST_SYM): New.
16427 (USTF): New.
16428 (dlsym_ust): New.
16429 (ust_marker_to_static_tracepoint): New.
16430 (gdb_probe): New.
16431 (collect_ust_data_at_tracepoint): New.
16432 (gdb_ust_probe): New.
16433 (UNIX_PATH_MAX, SOCK_DIR): New.
16434 (gdb_ust_connect_sync_socket): New.
16435 (resume_thread, stop_thread): New.
16436 (run_inferior_command): New.
16437 (init_named_socket): New.
16438 (gdb_ust_socket_init): New.
16439 (cstr_to_hexstr): New.
16440 (next_st): New.
16441 (first_marker, next_marker): New.
16442 (response_ust_marker): New.
16443 (cmd_qtfstm, cmd_qtsstm): New.
16444 (unprobe_marker_at, probe_marker_at): New.
16445 (cmd_qtstmat, gdb_ust_thread): New.
16446 (gdb_ust_init): New.
16447 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16448 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16449 (ST_REGENTRY): New.
16450 (x86_64_st_collect_regmap): New.
16451 (X86_64_NUM_ST_COLLECT_GREGS): New.
16452 (AMD64_RIP_REGNUM): New.
16453 (supply_static_tracepoint_registers): New.
16454 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16455 (ST_REGENTRY): New.
16456 (i386_st_collect_regmap): New.
16457 (i386_NUM_ST_COLLECT_GREGS): New.
16458 (supply_static_tracepoint_registers): New.
16459 * server.c (handle_query): Handle qXfer:statictrace:read.
16460 <qSupported>: Report support for StaticTracepoints, and
16461 qXfer:statictrace:read features.
16462 * server.h (traceframe_read_sdata)
16463 (supply_static_tracepoint_registers): Declare.
16464 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16465 (unpack_varlen_hex): Include in IPA build.
16466 * Makefile.in (ustlibs, ustinc): New.
16467 (IPA_OBJS): Add remote-utils-ipa.o.
16468 ($(IPA_LIB)): Link -ldl and -lpthread.
16469 (UST_CFLAGS): New.
16470 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16471 * config.in, configure: Regenerate.
16472
9e4344e5
PA
164732010-06-20 Ian Lance Taylor <iant@google.com>
16474 Pedro Alves <pedro@codesourcery.com>
16475
16476 * linux-x86-low.c (always_true): Delete.
16477 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16478 trying to fool the compiler with always_true.
16479
c6beb2cb
PA
164802010-06-20 Pedro Alves <pedro@codesourcery.com>
16481
16482 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16483 conditions in gdbserver.
16484
d2ed6730
UW
164852010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16486
16487 * spu-low.c (spu_read_memory): Wrap around local store limit.
16488 (spu_write_memory): Likewise.
16489
4e29fb54
PA
164902010-06-15 Pedro Alves <pedro@codesourcery.com>
16491
16492 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16493 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16494 LONGEST uses.
16495 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16496 uses.
16497 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16498 uses with LONGEST uses.
16499
6a271cae
PA
165002010-06-14 Stan Shebs <stan@codesourcery.com>
16501 Pedro Alves <pedro@codesourcery.com>
16502
16503 Bytecode compiler.
16504
16505 * linux-x86-low.c: Include limits.h.
16506 (add_insns): New.
16507 (always_true): New.
16508 (EMIT_ASM): New.
16509 (EMIT_ASM32): New.
16510 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16511 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16512 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16513 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16514 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16515 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16516 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16517 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16518 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16519 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16520 (amd64_emit_void_call_2): New.
16521 (amd64_emit_ops): New.
16522 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16523 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16524 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16525 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16526 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16527 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16528 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16529 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16530 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
16531 (i386_emit_stack_adjust, i386_emit_int_call_1)
16532 (i386_emit_void_call_2): New.
16533 (i386_emit_ops): New.
16534 (x86_emit_ops): New.
16535 (the_low_target): Install x86_emit_ops.
16536 * server.h (struct emit_ops): New.
16537 (get_raw_reg_func_addr): Declare.
16538 (current_insn_ptr, emit_error): Declare.
16539 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
16540 (set_trace_state_variable_value): New defines.
16541 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
16542 addr_get_trace_state_variable_value and
16543 addr_set_trace_state_variable_value.
16544 (symbol_list): New fields for get_raw_reg,
16545 get_trace_state_variable_value and set_trace_state_variable_value.
16546 (condfn): New typedef.
16547 (struct tracepoint): New field `compiled_cond'.
16548 (do_action_at_tracepoint): Clear compiled_cond.
16549 (get_trace_state_variable_value, set_trace_state_variable_value):
16550 Export in the IPA.
16551 (condition_true_at_tracepoint): If there's a compiled condition,
16552 run that.
16553 (current_insn_ptr, emit_error): New globals.
16554 (struct bytecode_address): New.
16555 (get_raw_reg_func_addr): New.
16556 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
16557 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
16558 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
16559 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
16560 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
16561 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
16562 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
16563 (compile_tracepoint_condition, compile_bytecodes): New.
16564 * target.h (emit_ops): Forward declare.
16565 (struct target_ops): New field emit_ops.
16566 (target_emit_ops): New.
16567 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
16568 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
16569 * linux-low.c (linux_emit_ops): New.
16570 (linux_target_ops): Install it.
16571 * linux-low.h (struct linux_target_ops): New field emit_ops.
16572
92b72907
UW
165732010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
16574
16575 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
16576 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
16577
fa593d66
PA
165782010-06-01 Pedro Alves <pedro@codesourcery.com>
16579 Stan Shebs <stan@codesourcery.com>
16580
16581 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
16582 (all): Depend on $(extra_libraries).
16583 (install-only): Install the IPA.
16584 (IPA_OBJS, IPA_LIB): New.
16585 (clean): Remove the IPA lib.
16586 (IPAGENT_CFLAGS): New.
16587 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
16588 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
16589 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
16590 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
16591 * configure.ac: Check for atomic builtins support in the compiler.
16592 (IPA_DEPFILES, extra_libraries): Define.
16593 * configure.srv (ipa_obj): Add description.
16594 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
16595 (i[34567]86-*-linux*): Set ipa_obj.
16596 (x86_64-*-linux*): Set ipa_obj.
16597 * linux-low.c (stabilizing_threads): New.
16598 (supports_fast_tracepoints): New.
16599 (linux_detach): Stabilize threads before detaching.
16600 (handle_tracepoints): Handle internal tracing breakpoints. Assert
16601 the lwp is either not stabilizing, or is moving out of a jump pad.
16602 (linux_fast_tracepoint_collecting): New.
16603 (maybe_move_out_of_jump_pad): New.
16604 (enqueue_one_deferred_signal): New.
16605 (dequeue_one_deferred_signal): New.
16606 (linux_wait_for_event_1): If moving out of a jump pad, defer
16607 pending signals to later.
16608 (linux_stabilize_threads): New.
16609 (linux_wait_1): Check if threads need moving out of jump pads, and
16610 do it if so.
16611 (stuck_in_jump_pad_callback): New.
16612 (move_out_of_jump_pad_callback): New.
16613 (lwp_running): New.
16614 (linux_resume_one_lwp): Handle moving out of jump pads.
16615 (linux_set_resume_request): Dequeue deferred signals.
16616 (need_step_over_p): Also step over fast tracepoint jumps.
16617 (start_step_over): Also uninsert fast tracepoint jumps.
16618 (finish_step_over): Also reinsert fast tracepoint jumps.
16619 (linux_install_fast_tracepoint_jump): New.
16620 (linux_target_ops): Install linux_stabilize_threads and
16621 linux_install_fast_tracepoint_jump_pad.
16622 * linux-low.h (linux_target_ops) <get_thread_area,
16623 install_fast_tracepoint_jump_pad>: New fields.
16624 (struct lwp_info) <collecting_fast_tracepoint,
16625 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
16626 (linux_get_thread_area): Declare.
16627 * linux-x86-low.c (jump_insn): New.
16628 (x86_get_thread_area): New.
16629 (append_insns): New.
16630 (push_opcode): New.
16631 (amd64_install_fast_tracepoint_jump_pad): New.
16632 (i386_install_fast_tracepoint_jump_pad): New.
16633 (x86_install_fast_tracepoint_jump_pad): New.
16634 (the_low_target): Install x86_get_thread_area and
16635 x86_install_fast_tracepoint_jump_pad.
16636 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
16637 (struct fast_tracepoint_jump): New.
16638 (fast_tracepoint_jump_insn): New.
16639 (fast_tracepoint_jump_shadow): New.
16640 (find_fast_tracepoint_jump_at): New.
16641 (fast_tracepoint_jump_here): New.
16642 (delete_fast_tracepoint_jump): New.
16643 (set_fast_tracepoint_jump): New.
16644 (uninsert_fast_tracepoint_jumps_at): New.
16645 (reinsert_fast_tracepoint_jumps_at): New.
16646 (set_breakpoint_at): Use write_inferior_memory.
16647 (uninsert_raw_breakpoint): Use write_inferior_memory.
16648 (check_mem_read): Mask out fast tracepoint jumps.
16649 (check_mem_write): Mask out fast tracepoint jumps.
16650 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
16651 (set_fast_tracepoint_jump): Declare.
16652 (delete_fast_tracepoint_jump)
16653 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
16654 (reinsert_fast_tracepoint_jumps_at): Declare.
16655 * regcache.c: Don't compile many functions when building the
16656 in-process agent library.
16657 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
16658 the register buffer in the heap.
16659 (free_register_cache): If the register buffer isn't owned by the
16660 regcache, don't free it.
16661 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
16662 pre-existing register caches.
16663 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
16664 type.
16665 (convert_ascii_to_int): : Constify `from' parameter type.
16666 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
16667 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
16668 the needed buffer in-place.
16669 (relocate_instruction): New.
16670 * server.c (handle_query) <qSymbols>: If the target supports
16671 tracepoints, give it a chance of looking up symbols. Report
16672 support for fast tracepoints.
16673 (handle_status): Stabilize threads.
16674 (process_serial_event): Adjust.
16675 * server.h (struct fast_tracepoint_jump): Forward declare.
16676 (struct process_info) <fast_tracepoint_jumps>: New field.
16677 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
16678 (decode_X_packet, decode_M_packet): Adjust.
16679 (relocate_instruction): Declare.
16680 (in_process_agent_loaded): Declare.
16681 (tracepoint_look_up_symbols): Declare.
16682 (struct fast_tpoint_collect_status): Declare.
16683 (fast_tracepoint_collecting): Declare.
16684 (force_unlock_trace_buffer): Declare.
16685 (handle_tracepoint_bkpts): Declare.
16686 (initialize_low_tracepoint)
16687 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
16688 * target.h (struct target_ops) <stabilize_threads,
16689 install_fast_tracepoint_jump_pad>: New fields.
16690 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
16691 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
16692 [HAVE_STDINT_H]: Include stdint.h.
16693 (trace_debug_1): Rename to ...
16694 (trace_vdebug): ... this.
16695 (trace_debug): Rename to ...
16696 (trace_debug_1): ... this. Add `level' parameter.
16697 (trace_debug): New.
16698 (ATTR_USED, ATTR_NOINLINE): New.
16699 (IP_AGENT_EXPORT): New.
16700 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
16701 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
16702 (about_to_request_buffer_space, trace_buffer_is_full)
16703 (stopping_tracepoint, expr_eval_result, error_tracepoint)
16704 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
16705 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
16706 (traceframe_write_count, traceframes_created)
16707 (trace_state_variables)
16708 New renaming defines.
16709 (struct ipa_sym_addresses): New.
16710 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
16711 (symbol_list): New.
16712 (ipa_sym_addrs): New.
16713 (all_tracepoint_symbols_looked_up): New.
16714 (in_process_agent_loaded): New.
16715 (write_e_ipa_not_loaded): New.
16716 (maybe_write_ipa_not_loaded): New.
16717 (tracepoint_look_up_symbols): New.
16718 (debug_threads) [IN_PROCESS_AGENT]: New.
16719 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
16720 (UNKNOWN_SIDE_EFFECTS): New.
16721 (stop_tracing): New.
16722 (flush_trace_buffer): New.
16723 (stop_tracing_bkpt): New.
16724 (flush_trace_buffer_bkpt): New.
16725 (read_inferior_integer): New.
16726 (read_inferior_uinteger): New.
16727 (read_inferior_data_pointer): New.
16728 (write_inferior_data_pointer): New.
16729 (write_inferior_integer): New.
16730 (write_inferior_uinteger): New.
16731 (struct collect_static_trace_data_action): Delete.
16732 (enum tracepoint_type): New.
16733 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
16734 <actions_str, step_actions, step_actions_str>: Only include in
16735 GDBserver.
fa593d66
PA
16736 <orig_size, obj_addr_on_target, adjusted_insn_addr>
16737 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
16738 (tracepoints): Use IP_AGENT_EXPORT.
16739 (last_tracepoint): Don't include in the IPA.
16740 (stopping_tracepoint): Use IP_AGENT_EXPORT.
16741 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
16742 (alloced_trace_state_variables): New.
16743 (trace_state_variables): Use IP_AGENT_EXPORT.
16744 (traceframe_t): Delete unused variable.
16745 (circular_trace_buffer): Don't include in the IPA.
16746 (trace_buffer_start): Delete.
16747 (struct trace_buffer_control): New.
16748 (trace_buffer_free): Delete.
16749 (struct ipa_trace_buffer_control): New.
16750 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
16751 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
16752 New.
16753 (trace_buffer_ctrl): New.
16754 (TRACE_BUFFER_CTRL_CURR): New.
16755 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
16756 Reimplement as macros.
16757 (trace_buffer_wrap): Delete.
16758 (traceframe_write_count, traceframe_read_count)
16759 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
16760 (struct tracepoint_hit_ctx) <type>: New field.
16761 (struct fast_tracepoint_ctx): New.
16762 (memory_barrier): New.
16763 (cmpxchg): New.
16764 (record_tracepoint_error): Update atomically in the IPA.
16765 (clear_inferior_trace_buffer): New.
16766 (about_to_request_buffer_space): New.
16767 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
16768 updating the same buffer.
16769 (add_tracepoint): Default the tracepoint's type to trap
16770 tracepoint, and orig_size to -1.
16771 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
16772 internal variables.
16773 (create_trace_state_variable): New parameter `gdb'. Handle it.
16774 (clear_installed_tracepoints): Clear fast tracepoint jumps.
16775 (cmd_qtdp): Handle fast tracepoints.
16776 (cmd_qtdv): Adjust.
16777 (max_jump_pad_size): New.
16778 (gdb_jump_pad_head): New.
16779 (get_jump_space_head): New.
16780 (claim_jump_space): New.
16781 (sort_tracepoints): New.
16782 (MAX_JUMP_SIZE): New.
16783 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
16784 IPA.
16785 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
16786 support. Upload fast traceframes, and delete internal IPA
16787 breakpoints.
16788 (stop_tracing_handler): New.
16789 (flush_trace_buffer_handler): New.
16790 (cmd_qtstop): Upload fast tracepoints.
16791 (response_tracepoint): Handle fast tracepoints.
16792 (tracepoint_finished_step): Upload fast traceframes. Set the
16793 tracepoint hit context's tracepoint type.
16794 (handle_tracepoint_bkpts): New.
16795 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
16796 type. Add comment about fast tracepoints.
16797 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
16798 non-existing action_str field.
16799 (get_context_regcache): Handle fast tracepoints.
16800 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
16801 to the regcache.
16802 (fast_tracepoint_from_jump_pad_address): New.
16803 (fast_tracepoint_from_ipa_tpoint_address): New.
16804 (collecting_t): New.
16805 (force_unlock_trace_buffer): New.
16806 (fast_tracepoint_collecting): New.
16807 (collecting): New.
16808 (gdb_collect): New.
16809 (write_inferior_data_ptr): New.
16810 (target_tp_heap): New.
16811 (target_malloc): New.
16812 (download_agent_expr): New.
16813 (UALIGN): New.
16814 (download_tracepoints): New.
16815 (download_trace_state_variables): New.
16816 (upload_fast_traceframes): New.
16817 (IPA_FIRST_TRACEFRAME): New.
16818 (IPA_NEXT_TRACEFRAME_1): New.
16819 (IPA_NEXT_TRACEFRAME): New.
16820 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
16821 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
16822 (gdb_jump_pad_buffer_end): New.
16823 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
16824 (initialize_tracepoint): Adjust.
16825 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
16826 buffer. Initialize the low module.
16827 * utils.c (PREFIX, TOOLNAME): New.
16828 (malloc_failure): Use PREFIX.
16829 (error): In the IPA, an error causes an exit.
16830 (fatal, warning): Use PREFIX.
16831 (internal_error): Use TOOLNAME.
16832 (NUMCELLS): Increase to 10.
16833 * configure, config.in: Regenerate.
16834
d149dd1d
PA
168352010-06-01 Pedro Alves <pedro@codesourcery.com>
16836
16837 * server.c (handle_query) <qSupported>: Do two passes over the
16838 qSupported string to avoid nesting strtok.
16839
f6528abd
JK
168402010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16841
16842 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
16843 (CDEPS): New.
16844 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
16845 -Wl,--dynamic-list.
16846 * configure: Regenerate.
16847 * proc-service.list: New.
16848
ca2a87a0
JK
168492010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16850
16851 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
16852 New comment.
16853
363a6e9f
OS
168542010-05-26 Ozkan Sezer <sezeroz@gmail.com>
16855
16856 * gdbreplay.c (remote_open): Check error return from socket() call by
16857 its equality to -1 not by it being negative.
16858 * remote-utils.c (remote_open): Likewise.
16859
d23b6cb1
PA
168602010-05-23 Pedro Alves <pedro@codesourcery.com>
16861
16862 * config.h: Regenerate.
16863
28d3cf85
MK
168642010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
16865
16866 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
16867 doesn't provide PTRACE_GET_THREAD_AREA.
16868
fea36a59
MK
168692010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
16870
16871 * linux-m68k-low.c: Include <asm/ptrace.h>
16872 (ps_get_thread_area): Implement.
16873
24b066ba
DE
168742010-05-03 Doug Evans <dje@google.com>
16875
16876 * event-loop.c (struct callback_event): New struct.
16877 (callback_list): New global.
16878 (append_callback_event, delete_callback_event): New functions.
16879 (process_callback): New function.
16880 (start_event_loop): Call it.
16881 * remote-utils.c (NOT_SCHEDULED): Define.
16882 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
16883 moved out of readchar.
16884 (readchar): Rewrite. Call reschedule before returning.
16885 (reset_readchar): New function.
16886 (remote_close): Call it.
16887 (process_remaining, reschedule): New functions.
16888 * server.h (callback_handler_func): New typedef.
16889 (append_callback_event, delete_callback_event): Declare.
16890
9836d6ea
PA
168912010-05-03 Pedro Alves <pedro@codesourcery.com>
16892
16893 * proc-service.c (ps_pglobal_lookup): Use
16894 thread_db_look_up_one_symbol.
16895 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
16896 parameter. Use it instead of all_symbols_looked_up.
16897 * server.h (struct process_info) <all_symbols_looked_up>: Delete
16898 field.
16899 (all_symbols_looked_up): Don't declare.
16900 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
16901 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
16902 field.
16903 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
16904 Set all_symbols_looked_up here.
16905 (thread_db_look_up_one_symbol): New.
16906 (thread_db_get_tls_address): Adjust.
16907 (thread_db_load_search, try_thread_db_load_1): Always allocate the
16908 thread_db object on the heap, and tentatively set it in the
16909 process structure.
16910 (thread_db_init): Don't set all_symbols_looked_up here.
16911 * linux-low.h (thread_db_look_up_one_symbol): Declare.
16912
7984d532
PA
169132010-05-03 Pedro Alves <pedro@codesourcery.com>
16914
16915 * linux-low.c (linux_kill, linux_detach): Adjust.
16916 (status_pending_p_callback): Remove redundant statement. Check
16917 for !TARGET_WAITIKIND_IGNORE, instead of
16918 TARGET_WAITKIND_STOPPED.
16919 (handle_tracepoints): Make sure LWP is locked. Adjust.
16920 (linux_wait_for_event_1): Adjust.
16921 (linux_cancel_breakpoints): New.
16922 (unsuspend_one_lwp): New.
16923 (unsuspend_all_lwps): New.
16924 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
16925 (send_sigstop_callback): Change return type to int, add new
16926 `except' parameter and handle it.
16927 (suspend_and_send_sigstop_callback): New.
16928 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
16929 pass them down. If SUSPEND, also increment the lwp's suspend
16930 count.
16931 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
16932 (need_step_over_p): Don't consider suspended LWPs.
16933 (start_step_over): Adjust.
16934 (proceed_one_lwp): Change return type to int, add new `except'
16935 parameter and handle it.
16936 (unsuspend_and_proceed_one_lwp): New.
16937 (proceed_all_lwps): Use find_inferior instead of
16938 for_each_inferior.
16939 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
16940 also decrement the suspend count of LWPs. Pass `except' down,
16941 instead of hacking its suspend count.
16942 (linux_pause_all): Add `freeze' parameter. Adjust.
16943 (linux_unpause_all): New.
16944 (linux_target_ops): Install linux_unpause_all.
16945 * server.c (handle_status): Adjust.
16946 * target.h (struct target_ops): New fields `unpause_all' and
16947 `cancel_breakpoints'. Add new parameter to `pause_all'.
16948 (pause_all): Add new `freeze' parameter.
16949 (unpause_all): New.
16950 (cancel_breakpoints): New.
16951 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
16952 cancel breakpoints.
16953 (cmd_qtstart): Pause threads.
16954 (stop_tracing): Pause threads, and cancel breakpoints.
16955 * win32-low.c (win32_target_ops): Adjust.
16956
e471f25b
PA
169572010-05-03 Pedro Alves <pedro@codesourcery.com>
16958
16959 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
16960 the inferior right away from here...
16961 (linux_wait_1): ... to here, and adjust to check the thread's
16962 last_resume_kind instead of the lwp's step or stop_expected flags.
16963
1915ef4f
PA
169642010-05-02 Pedro Alves <pedro@codesourcery.com>
16965
16966 * README: Use consistent `GDB' and `GDBserver' spellings.
16967
f9e39928
PA
169682010-05-02 Pedro Alves <pedro@codesourcery.com>
16969
16970 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
16971 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
16972 (linux_detach_one_lwp): Assume the lwp is stopped.
16973 (any_thread_of): Delete.
16974 (linux_detach): Stop all lwps here. Don't blindly delete all
16975 breakpoints.
16976 (delete_lwp_callback): New.
16977 (linux_mourn): Delete all lwps of the process that is gone.
16978 (linux_wait_1): Don't delete the last lwp of the process here.
16979 * mem-break.h (mark_breakpoints_out): Declare.
16980 * mem-break.c (mark_breakpoints_out): New.
16981 (free_all_breakpoints): Use it.
16982 * server.c (handle_target_event): If the process is gone, mark
16983 breakpoints out.
16984 * thread-db.c (struct thread_db) <create_bp>: New field.
16985 (thread_db_enable_reporting): Fix prototype. Store a thread event
16986 breakpoint reference in the thread_db struct.
16987 (thread_db_load_search): Clear the thread_db object.
16988 (try_thread_db_load_1): Ditto.
16989 (switch_to_process): New.
16990 (disable_thread_event_reporting): Use it.
16991 (remove_thread_event_breakpoints): New.
16992 (thread_db_detach, thread_db_mourn): Use it.
16993
1e7fc18c
PA
169942010-05-01 Pedro Alves <pedro@codesourcery.com>
16995
16996 * linux-low.c (linux_enable_event_reporting): New.
16997 (linux_wait_for_event_1, handle_extended_wait): Use it.
16998
02fc4de7
PA
169992010-04-30 Pedro Alves <pedro@codesourcery.com>
17000
17001 * linux-low.c (linux_kill_one_lwp, linux_kill)
17002 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17003 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17004 SIGSTOP even if the LWP is stopped.
17005 (send_sigstop_callback): New.
17006 (stop_all_lwps): Use send_sigstop_callback instead.
17007 (linux_resume_one_thread): Adjust.
17008 (proceed_one_lwp): Still proceed an LWP that the client has
17009 requested to stop, if we haven't reported it as stopped yet. Make
17010 sure that LWPs the client want stopped, have a pending SIGSTOP.
17011
bc3b5632
DE
170122010-04-26 Doug Evans <dje@google.com>
17013
ae1ada35
DE
17014 * server.c (handle_general_set): Make static.
17015
bc3b5632
DE
17016 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17017 Print received char after testing for error/eof instead of before.
17018 (input_interrupt): Tweak comment.
17019
65730243
DE
170202010-04-23 Doug Evans <dje@google.com>
17021
17022 * server.c (start_inferior): Print inferior argv if --debug.
17023
a8ae7dc0
AR
170242010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17025
17026 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17027 * nto-x86-low.c: Include server.h
17028
1c07cc19
PM
170292010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17030
17031 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17032 be consistent with other sources of this directory.
17033 (init_registers_amd64): Correct name of source file of this function
17034 in the comment.
17035
e0a61e09
PM
170362010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17037
17038 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17039 64-bit executables.
17040
54709339
PM
170412010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17042
17043 * win32-i386-low.c: Add 64-bit support.
17044 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17045 (init_registers_amd64): Declare.
17046 (mappings): Add 64-bit version of array.
17047 (init_windows_x86): New function.
17048 (the_low_target): Change init_arch field to init_windows_x86.
17049
e8f0053d
PM
170502010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17051
17052 * win32-low.c: Adapt to support also 64-bit architecture.
17053 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17054 (get_image_name): Use SIZE_T type for local variable `done'.
17055 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17056 (toolhelp_get_dll_name): Idem.
17057 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17058 Use uintptr_t typecast to avoid warning.
17059 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17060 (handle_exception): Use phex_nz to avoid warning.
17061 (win32_wait): Remove unused local variable `process'.
17062
c481e77e
PM
170632010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17064
17065 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17066 `amd64-avx.o'.
17067
12ea4b69
PM
170682010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17069
17070 * configure.ac: Use `ws2_32' library for srv_mingw.
17071 * configure: Regenerate.
17072 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17073 * remote-utils.c: Likewise.
17074
f6d1620c
L
170752010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17076
17077 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17078 if __x86_64__ is defined.
17079
8e642873
PM
170802010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17081
17082 * configure: Regenerate.
17083
711e434b
PM
170842010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17085
17086 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17087 * target.h (target_ops): New get_tib_address field.
17088 * win32-low.h (win32_thread_info): Add thread_local_base field.
17089 * win32-low.c (child_add_thread): Add tlb argument.
17090 Set thread_local_base field to TLB.
17091 (get_child_debug_event): Adapt to child_add_thread change.
17092 (win32_get_tib_address): New function.
17093 (win32_target_ops): Set get_tib_address field to
17094 win32_get_tib_address.
17095 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17096
505106cd
PA
170972010-04-12 Pedro Alves <pedro@codesourcery.com>
17098
505106cd
PA
17099 * linux-low.c (linux_mourn): Also remove the process.
17100 * server.c (handle_target_event): Don't remove the process here.
17101 * nto-low.c (nto_mourn): New.
17102 (nto_target_ops): Install it.
17103 * spu-low.c (spu_mourn): New.
17104 (spu_target_ops): Install it.
17105 * win32-low.c (win32_mourn): New.
17106 (win32_target_ops): Install it.
17107
e8470a06
PA
171082010-04-12 Pedro Alves <pedro@codesourcery.com>
17109
17110 * server.h (buffer_xml_printf): Remove redundant `;'.
17111
45ba0d02
PA
171122010-04-12 Pedro Alves <pedro@codesourcery.com>
17113
17114 * regcache.c (set_register_cache): Invalidate regcaches before
17115 changing the register cache layout.
17116 (regcache_invalidate_one): Allow a NULL regcache.
17117 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17118 regcaches before changing the register cache layout or the target
17119 regsets.
17120
59e04013
L
171212010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17122
17123 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17124 variable warning on Linux/x86-64.
17125
8336d594
PA
171262010-04-11 Pedro Alves <pedro@codesourcery.com>
17127
17128 GDBserver disconnected tracing support.
17129
17130 * linux-low.c (linux_remove_process): Delete.
17131 (add_lwp): Don't set last_resume_kind here.
17132 (linux_kill): Use `mourn'.
17133 (linux_detach): Use `thread_db_detach', and `mourn'.
17134 (linux_mourn): New.
17135 (linux_attach_lwp_1): Adjust comment.
17136 (linux_attach): last_resume_kind moved the thread_info; adjust.
17137 (status_pending_p_callback): Adjust.
17138 (linux_wait_for_event_1): Adjust.
17139 (count_events_callback, select_singlestep_lwp_callback)
17140 (select_event_lwp_callback, cancel_breakpoints_callback)
17141 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17142 (proceed_one_lwp): Adjust.
17143 (linux_async): Add debug output.
17144 (linux_thread_stopped): New.
17145 (linux_pause_all): New.
17146 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17147 linux_pause_all.
17148 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17149 (thread_db_free): Delete declaration.
17150 (thread_db_detach, thread_db_mourn): Declare.
17151 * thread-db.c (thread_db_init): Use thread_db_mourn.
17152 (thread_db_free): Delete, split in two.
17153 (disable_thread_event_reporting): New.
17154 (thread_db_detach): New.
17155 (thread_db_mourn): New.
17156
17157 * server.h (struct thread_info) <last_resume_kind>: New field.
17158 <attached>: Add comment.
17159 <gdb_detached>: New field.
17160 (handler_func): Change return type to int.
17161 (handle_serial_event, handle_target_event): Ditto.
17162 (gdb_connected): Declare.
17163 (tracing): Delete.
17164 (disconnected_tracing): Declare.
17165 (stop_tracing): Declare.
17166
17167 * server.c (handle_query) <qSupported>: Report support for
17168 disconnected tracing.
17169 (queue_stop_reply_callback): Account for running threads.
17170 (gdb_wants_thread_stopped): New.
17171 (gdb_wants_all_threads_stopped): New.
17172 (gdb_reattached_process): New.
17173 (handle_status): Clear the `gdb_detached' flag of all processes.
17174 In all-stop, stop all threads.
17175 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17176 (process_serial_event): If the remote connection breaks, or if an
17177 exit was forced with "monitor exit", force an event loop exit.
17178 Handle disconnected tracing on detach.
17179 (handle_serial_event): Adjust.
17180 (handle_target_event): If GDB isn't connected, forward events back
17181 to the inferior, unless the last process exited, in which case,
17182 exit gdbserver. Adjust interface.
17183
17184 * remote-utils.c (remote_open): Don't block in accept. Instead
17185 register an event loop source on the listen socket file
17186 descriptor. Refactor bits into ...
17187 (listen_desc): ... this new global.
17188 (gdb_connected): ... this new function.
17189 (enable_async_notification): ... this new function.
17190 (handle_accept_event): ... this new function.
17191 (remote_close): Clear remote_desc.
17192
17193 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17194
17195 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17196 New fields.
17197 (mourn_inferior): Define.
17198 (target_process_qsupported): Avoid the dangling else problem.
17199 (thread_stopped): Define.
17200 (pause_all): Define.
17201 (target_waitstatus_to_string): Declare.
17202 * target.c (target_waitstatus_to_string): New.
17203
17204 * tracepoint.c (tracing): Make extern.
17205 (disconnected_tracing): New.
17206 (stop_tracing): Make extern. Handle tracing stops due to GDB
17207 disconnecting.
17208 (cmd_qtdisconnected): New.
17209 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17210 (handle_tracepoint_general_set): Handle QTDisconnected.
17211
17212 * event-loop.c (event_handler_func): Change return type to int.
17213 (process_event): Bail out if the event handler wants the event
17214 loop to stop.
17215 (handle_file_event): Ditto.
17216 (start_event_loop): Bail out if the event handler wants the event
17217 loop to stop.
17218
17219 * nto-low.c (nto_target_ops): Adjust.
17220 * spu-low.c (spu_wait): Don't remove the process here.
17221 (spu_target_ops): Adjust.
17222 * win32-low.c (win32_wait): Don't remove the process here.
17223 (win32_target_ops): Adjust.
17224
5d267c4c
PA
172252010-04-11 Pedro Alves <pedro@codesourcery.com>
17226
17227 * regcache.c (realloc_register_cache): Invalidate inferior's
17228 regcache before recreating it.
17229
623ccd72
PA
172302010-04-09 Pedro Alves <pedro@codesourcery.com>
17231
17232 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17233
219f2f23
PA
172342010-04-09 Stan Shebs <stan@codesourcery.com>
17235 Pedro Alves <pedro@codesourcery.com>
17236
17237 * server.h (LONGEST): New.
17238 (struct thread_info) <while_stepping>: New field.
17239 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17240 Declare.
17241 (initialize_tracepoint, handle_tracepoint_general_set)
17242 (handle_tracepoint_query, tracepoint_finished_step)
17243 (tracepoint_was_hit, release_while_stepping_state_list):
17244 (current_traceframe): Declare.
17245 * server.c (handle_general_set): Handle tracepoint packets.
17246 (read_memory): New.
17247 (write_memory): New.
17248 (handle_search_memory_1): Use read_memory.
17249 (handle_query): Report support for conditional tracepoints, trace
17250 state variables, and tracepoint sources. Handle tracepoint
17251 queries.
17252 (main): Initialize the tracepoints module.
17253 (process_serial_event): Handle traceframe reads/writes.
17254
17255 * linux-low.c (handle_tracepoints): New.
17256 (linux_wait_1): Call it.
17257 (linux_resume_one_lwp): Handle while-stepping.
17258 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17259 (linux_target_ops): Install them.
17260 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17261 New field.
17262 * linux-x86-low.c (x86_supports_tracepoints): New.
17263 (the_low_target). Install it.
17264
17265 * mem-break.h (delete_breakpoint): Declare.
17266 * mem-break.c (delete_breakpoint): Make external.
17267
17268 * target.h (struct target_ops): Add `supports_tracepoints',
17269 `read_pc', and `write_pc' fields.
17270 (target_supports_tracepoints): Define.
17271 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17272 (phex_nz): New.
17273
17274 * regcache.h (struct regcache) <registers_owned>: New field.
17275 (init_register_cache, regcache_cpy): Declare.
17276 (regcache_read_pc, regcache_write_pc): Declare.
17277 (register_cache_size): Declare.
17278 (supply_regblock): Declare.
17279 * regcache.c (init_register_cache): New.
17280 (new_register_cache): Use it.
17281 (regcache_cpy): New.
17282 (register_cache_size): New.
17283 (supply_regblock): New.
17284 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 17285
219f2f23
PA
17286 * tracepoint.c: New.
17287
17288 * Makefile.in (OBS): Add tracepoint.o.
17289 (tracepoint.o): New rule.
17290
3a13a53b
L
172912010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17292
17293 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17294 (i386-mmx.o): New.
17295 (i386-mmx.c): Likewise.
17296 (i386-mmx-linux.o): Likewise.
17297 (i386-mmx-linux.c): Likewise.
17298
17299 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17300 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17301 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17302 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17303
17304 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17305 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17306 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17307
1570b33e
L
173082010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17309
17310 * Makefile.in (clean): Updated.
17311 (i386-avx.o): New.
17312 (i386-avx.c): Likewise.
17313 (i386-avx-linux.o): Likewise.
17314 (i386-avx-linux.c): Likewise.
17315 (amd64-avx.o): Likewise.
17316 (amd64-avx.c): Likewise.
17317 (amd64-avx-linux.o): Likewise.
17318 (amd64-avx-linux.c): Likewise.
17319
17320 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17321 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17322 (srv_amd64_regobj): Add amd64-avx.o.
17323 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17324 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17325 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17326 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17327 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17328 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17329 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17330
17331 * i387-fp.c: Include "i386-xstate.h".
17332 (i387_xsave): New.
17333 (i387_cache_to_xsave): Likewise.
17334 (i387_xsave_to_cache): Likewise.
17335 (x86_xcr0): Likewise.
17336
17337 * i387-fp.h (i387_cache_to_xsave): Likewise.
17338 (i387_xsave_to_cache): Likewise.
17339 (x86_xcr0): Likewise.
17340
17341 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17342 * linux-crisv32-low.c (target_regsets): Likewise.
17343 * linux-m68k-low.c (target_regsets): Likewise.
17344 * linux-mips-low.c (target_regsets): Likewise.
17345 * linux-ppc-low.c (target_regsets): Likewise.
17346 * linux-s390-low.c (target_regsets): Likewise.
17347 * linux-sh-low.c (target_regsets): Likewise.
17348 * linux-sparc-low.c (target_regsets): Likewise.
17349 * linux-xtensa-low.c (target_regsets): Likewise.
17350
17351 * linux-low.c: Include <sys/uio.h>.
17352 (regsets_fetch_inferior_registers): Support nt_type.
17353 (regsets_store_inferior_registers): Likewise.
17354 (linux_process_qsupported): New.
17355 (linux_target_ops): Add linux_process_qsupported.
17356
17357 * linux-low.h (regset_info): Add nt_type.
17358 (linux_target_ops): Add process_qsupported.
17359
17360 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17361 and <sys/uio.h>.
17362 (init_registers_i386_avx_linux): New.
17363 (init_registers_amd64_avx_linux): Likewise.
17364 (xmltarget_i386_linux_no_xml): Likewise.
17365 (xmltarget_amd64_linux_no_xml): Likewise.
17366 (PTRACE_GETREGSET): Likewise.
17367 (PTRACE_SETREGSET): Likewise.
17368 (x86_fill_xstateregset): Likewise.
17369 (x86_store_xstateregset): Likewise.
17370 (use_xml): Likewise.
17371 (x86_linux_update_xmltarget): Likewise.
17372 (x86_linux_process_qsupported): Likewise.
17373 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17374 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17375 init_registers_i386_linux here. Call
17376 x86_linux_update_xmltarget.
17377 (the_low_target): Add x86_linux_process_qsupported.
17378
17379 * server.c (handle_query): Call target_process_qsupported.
17380
17381 * target.h (target_ops): Add process_qsupported.
17382 (target_process_qsupported): New.
17383
fc7238bb
PA
173842010-04-03 Pedro Alves <pedro@codesourcery.com>
17385
17386 * inferiors.c (add_thread): Set last_status kind to
17387 TARGET_WAITKIND_IGNORE.
17388 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17389 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17390 (linux_wait_1): Move `thread' local definition to block that uses
17391 it. Don't NULL initialize `event_child'.
17392 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17393 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17394 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17395
bdabb078
PA
173962010-04-01 Pedro Alves <pedro@codesourcery.com>
17397
17398 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17399 an extended waitstatus, or by a watchpoint.
17400 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17401 thread was stepping or has been stopped by a watchpoint.
17402
d3bbe7a0
PA
174032010-04-01 Pedro Alves <pedro@codesourcery.com>
17404
17405 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17406 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17407 of another, then delete the previous, and validate all
17408 breakpoints.
17409 (validate_inserted_breakpoint): New.
17410 (delete_disabled_breakpoints): New.
17411 (validate_breakpoints): New.
17412 (check_mem_read): Validate breakpoints before trusting their
17413 shadow. Delete disabled breakpoints.
17414 (check_mem_write): Validate breakpoints before trusting they
17415 should be inserted. Delete disabled breakpoints.
17416 * mem-break.h (validate_breakpoints):
17417 * server.c (handle_query): Validate breakpoints when we see a
17418 qSymbol query.
17419
8b07ae33
PA
174202010-04-01 Pedro Alves <pedro@codesourcery.com>
17421
17422 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17423 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17424 if we could tell there's a GDB breakpoint at stop_pc.
17425 (need_step_over_p): Don't do a step over if we find a GDB
17426 breakpoint at the resume PC.
17427
17428 * mem-break.c (struct raw_breakpoint): New.
17429 (enum bkpt_type): New type `gdb_breakpoint'.
17430 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17431 fields. New field `raw'.
17432 (find_raw_breakpoint_at): New.
17433 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17434 breakpoint instead.
17435 (set_breakpoint_at): Adjust.
17436 (delete_raw_breakpoint): New.
17437 (release_breakpoint): New.
17438 (delete_breakpoint): Rename to...
17439 (delete_breakpoint_1): ... this. Add proc parameter. Use
17440 release_breakpoint. Return ENOENT.
17441 (delete_breakpoint): Reimplement.
17442 (find_breakpoint_at): Delete.
17443 (find_gdb_breakpoint_at): New.
17444 (delete_breakpoint_at): Delete.
17445 (set_gdb_breakpoint_at): New.
17446 (delete_gdb_breakpoint_at): New.
17447 (gdb_breakpoint_here): New.
17448 (set_reinsert_breakpoint): Use release_breakpoint.
17449 (uninsert_breakpoint): Rename to ...
17450 (uninsert_raw_breakpoint): ... this.
17451 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17452 (reinsert_raw_breakpoint): Change parameter type to
17453 raw_breakpoint.
17454 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17455 instead.
17456 (check_breakpoints): Adjust. Use release_breakpoint.
17457 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17458 (breakpoint_inserted_here): Ditto.
17459 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17460 Don't trust the breakpoint's shadow if it is not inserted.
17461 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17462 (delete_all_breakpoints): Adjust.
17463 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17464 use delete_breakpoint_1.
17465
17466 * mem-break.h (breakpoints_supported): Delete declaration.
17467 (set_gdb_breakpoint_at): Declare.
17468 (gdb_breakpoint_here): Declare.
17469 (delete_breakpoint_at): Delete.
17470 (delete_gdb_breakpoint_at): Declare.
17471
17472 * server.h (struct raw_breakpoint): Forward declare.
17473 (struct process_info): New field `raw_breakpoints'.
17474
17475 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17476 breakpoints.
17477
6bf5e0ba
PA
174782010-03-24 Pedro Alves <pedro@codesourcery.com>
17479
17480 * linux-low.c (status_pending_p_callback): Fix comment.
17481 (linux_wait_for_event_1): Move most of the internal breakpoint
17482 handling from here...
17483 (linux_wait_1): ... to here.
17484 (count_events_callback): New.
17485 (select_singlestep_lwp_callback): New.
17486 (select_event_lwp_callback): New.
17487 (cancel_breakpoints_callback): New.
17488 (select_event_lwp): New.
17489 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17490 priority to all LWPs that have had events that should be reported
17491 to the client. Cancel breakpoints when about to reporting the
17492 event to the client, not while stopping lwps. No longer cancel
17493 finished single-steps here.
17494 (cancel_finished_single_step): Delete.
17495 (cancel_finished_single_steps): Delete.
17496
414a389f
PA
174972010-03-24 Pedro Alves <pedro@codesourcery.com>
17498
17499 * mem-break.c (enum bkpt_type): New.
17500 (struct breakpoint): New field `type'.
17501 (set_breakpoint_at): Change return type to struct breakpoint
17502 pointer. Set type to `other_breakpoint' by default.
17503 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17504 in the breakpoint list.
17505 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17506 (reinsert_breakpoint): Rename to ...
17507 (reinsert_raw_breakpoint): ... this.
17508 (reinsert_breakpoints_at): Adjust.
17509 * mem-break.h (struct breakpoint): Declare.
17510 (set_breakpoint_at): Change return type to struct breakpoint
17511 pointer.
17512
2280c721
PA
175132010-03-24 Pedro Alves <pedro@codesourcery.com>
17514
17515 * server.c (handle_query): Assign, not compare.
17516
d50171e4
PA
175172010-03-24 Pedro Alves <pedro@codesourcery.com>
17518
17519 Teach linux gdbserver to step-over-breakpoints.
17520
17521 * linux-low.c (can_hardware_single_step): New.
17522 (supports_breakpoints): New.
17523 (handle_extended_wait): If stopping threads, read the stop pc of
17524 the new cloned LWP.
17525 (get_pc): New.
17526 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17527 low target doesn't support retrieving the PC.
17528 (add_lwp): Set last_resume_kind to resume_continue.
17529 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17530 (linux_attach): Don't clear stop_expected. Set the lwp's
17531 last_resume_kind to resume_stop.
17532 (linux_detach_one_lwp): Don't check for removed breakpoints.
17533 (check_removed_breakpoint): Delete.
17534 (status_pending_p): Rename to ...
17535 (status_pending_p_callback): ... this. Don't check for removed
17536 breakpoints. Don't consider threads that are stopped from GDB's
17537 perspective.
17538 (linux_wait_for_lwp): Always read the stop_pc here.
17539 (cancel_breakpoint): New.
17540 (step_over_bkpt): New global.
17541 (linux_wait_for_event_1): Implement stepping over breakpoints.
17542 (gdb_wants_lwp_stopped): New.
17543 (gdb_wants_all_stopped): New.
17544 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
17545 single-step traps here. Store the thread's last reported target
17546 wait status.
17547 (send_sigstop): Don't clear stop_expected. Always set it,
17548 instead.
17549 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
17550 (cancel_finished_single_step): New.
17551 (cancel_finished_single_steps): New.
17552 (wait_for_sigstop): Don't cancel finished single-step traps here.
17553 (linux_resume_one_lwp): Don't check for removed breakpoints.
17554 Don't set `step' on non-hardware step archs.
17555 (linux_set_resume_request): Ignore resume_stop requests if already
17556 stopping or stopped. Set the lwp's last_resume_kind.
17557 (resume_status_pending_p): Don't check for removed breakpoints.
17558 (need_step_over_p): New.
17559 (start_step_over): New.
17560 (finish_step_over): New.
17561 (linux_resume_one_thread): Always queue a sigstop for resume_stop
17562 requests. Clear the thread's last reported target waitstatus.
17563 Don't use the `suspended' flag. Don't consider pending breakpoints.
17564 (linux_resume): Start a step-over if necessary.
17565 (proceed_one_lwp): New.
17566 (proceed_all_lwps): New.
17567 (unstop_all_lwps): New.
17568 * linux-low.h (struct lwp_info): Rewrite comment for the
17569 `suspended' flag. Add the `stop_pc' field. Delete the
17570 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
17571 Add `'last_resume_kind' and `need_step_over' fields.
17572 * inferiors.c (struct thread_info): Delete, moved elsewhere.
17573 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
17574 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
17575 (set_raw_breakpoint_at): New.
17576 (set_breakpoint_at): Rewrite to use it.
17577 (reinsert_breakpoint_handler): Delete.
17578 (set_reinsert_breakpoint): New.
17579 (reinsert_breakpoint_by_bp): Delete.
17580 (delete_reinsert_breakpoints): New.
17581 (uninsert_breakpoint): Rewrite.
17582 (uninsert_breakpoints_at): New.
17583 (reinsert_breakpoint): Rewrite.
17584 (reinsert_breakpoints_at): New.
17585 (check_breakpoints): Rewrite.
17586 (breakpoint_here): New.
17587 (breakpoint_inserted_here): New.
17588 (check_mem_read): Adjust.
17589 * mem-break.h (breakpoints_supported, breakpoint_here)
17590 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
17591 (reinsert_breakpoint_by_bp): Delete declaration.
17592 (delete_reinsert_breakpoints): Declare.
17593 (reinsert_breakpoint): Delete declaration.
17594 (reinsert_breakpoints_at): Declare.
17595 (uninsert_breakpoint): Delete declaration.
17596 (uninsert_breakpoints_at): Declare.
17597 (check_breakpoints): Adjust prototype.
17598 * server.h: Adjust include order.
17599 (struct thread_info): Declare here. Add a `last_status' field.
17600
30ba68cb
MS
176012010-03-23 Michael Snyder <msnyder@vmware.com>
17602
17603 * server.c (crc32): New function.
17604 (handle_query): Add handling for 'qCRC:' request.
17605
b9a881c2
PA
176062010-03-23 Pedro Alves <pedro@codesourcery.com>
17607
17608 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
17609 lwp had been stopped by a watchpoint.
17610
e92d13d5
PA
176112010-03-16 Pedro Alves <pedro@codesourcery.com>
17612
17613 * server.h (internal_error): Declare.
17614 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
17615 * utils.c (internal_error): New function.
17616
64daa791
AS
176172010-03-15 Andreas Schwab <schwab@redhat.com>
17618
17619 * configure.srv: Fix typo setting srv_regobj.
17620
f52cd8cd
PA
176212010-03-15 Pedro Alves <pedro@codesourcery.com>
17622
17623 * linux-low.c (fetch_register): Avoid passing a non string literal
17624 format to `error'.
17625 (usr_store_inferior_registers): Ditto.
17626
93ae6fdc
PA
176272010-03-14 Pedro Alves <pedro@codesourcery.com>
17628
17629 * linux-low.c (linux_write_memory): Bail out early if peeking
17630 memory failed.
17631
c3adc08c
PA
176322010-03-14 Pedro Alves <pedro@codesourcery.com>
17633
17634 * linux-low.h (struct lwp_info): New fields
17635 `stopped_by_watchpoint' and `stopped_data_address'.
17636 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
17637 here, and cache them in the lwp object.
17638 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
17639 directly.
17640 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
17641 field.
17642 (linux_stopped_by_watchpoint): Rewrite.
17643 (linux_stopped_data_address): Rewrite.
17644
bce522a2
PA
176452010-03-06 Simo Melenius <simo.melenius@iki.fi>
17646
17647 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
17648 switching the current inferior, not before.
17649
90884b2b
L
176502010-03-01 H.J. Lu <hongjiu.lu@intel.com>
17651
17652 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
17653 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
17654 i386-linux.c and amd64-linux.c.
17655 (reg-i386.o): Removed.
17656 (reg-i386.c): Likewise.
17657 (reg-i386-linux.o): Likewise.
17658 (reg-i386-linux.c): Likewise.
17659 (reg-x86-64.o): Likewise.
17660 (reg-x86-64.c): Likewise.
17661 (reg-x86-64-linux.o): Likewise.
17662 (reg-x86-64-linux.c): Likewise.
17663 (i386.o): New.
17664 (i386.c): Likewise.
17665 (i386-linux.o): Likewise.
17666 (i386-linux.c): Likewise.
17667 (amd64.o): Likewise.
17668 (amd64.c): Likewise.
17669 (amd64-linux.o): Likewise.
17670 (amd64-linux.c): Likewise.
17671
17672 * configure.srv (srv_i386_regobj): New.
17673 (srv_i386_linux_regobj): Likewise.
17674 (srv_amd64_regobj): Likewise.
17675 (srv_amd64_linux_regobj): Likewise.
17676 (srv_i386_32bit_xmlfiles): Likewise.
17677 (srv_i386_64bit_xmlfiles): Likewise.
17678 (srv_i386_xmlfiles): Likewise.
17679 (srv_amd64_xmlfiles): Likewise.
17680 (srv_i386_linux_xmlfiles): Likewise.
17681 (srv_amd64_linux_xmlfiles): Likewise.
17682 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
17683 srv_xmlfiles to $srv_i386_xmlfiles.
17684 (i[34567]86-*-mingw32ce*): Likewise.
17685 (i[34567]86-*-mingw*): Likewise.
17686 (i[34567]86-*-nto*): Likewise.
17687 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
17688 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
17689 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
17690 (x86_64-*-linux*): Likewise.
17691
17692 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
17693 (init_registers_amd64_linux): New.
17694 (x86_arch_setup): Replace init_registers_x86_64_linux with
17695 init_registers_amd64_linux.
17696
193f13e6
MK
176972010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
17698
17699 * configure.ac: Check for libdl. If it is not available link against
17700 static libthread_db.
17701 * configure: Regenerate.
17702
85d721b8
PA
177032010-02-22 Pedro Alves <pedro@codesourcery.com>
17704
17705 PR9605
17706
17707 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
17708 handing a read watchpoint.
17709 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
17710
6076632b
DE
177112010-02-12 Doug Evans <dje@google.com>
17712
17713 * linux-low.c (linux_supports_tracefork_flag): Document.
17714 (linux_look_up_symbols): Add comment.
17715
3327ccf7
L
177162010-02-03 H.J. Lu <hongjiu.lu@intel.com>
17717
17718 * regcache.c (supply_register): Clear regcache if buf is NULL.
17719
0718675c 177202010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 17721 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
17722
17723 * inferiors.c (find_inferior): Add function documentation.
17724 (unloaded_dll): Handle the case where the unloaded dll has not
17725 been previously registered in the dll list.
17726
177321bd
DJ
177272010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
17728
17729 * linux-arm-low.c (thumb_breakpoint_len): Delete.
17730 (thumb2_breakpoint): New.
17731 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
17732
2b009048
DJ
177332010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17734
17735 * linux-low.c (get_stop_pc): Check for SIGTRAP.
17736 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
17737 breakpoints.
17738
3be029c7
PA
177392010-01-21 Pedro Alves <pedro@codesourcery.com>
17740
17741 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
17742
18f5de3b
JK
177432010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
17744
17745 * linux-s390-low.c (s390_collect_ptrace_register)
17746 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
17747
3743bb4f
DE
177482010-01-21 Doug Evans <dje@google.com>
17749
14ce3065
DE
17750 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
17751 (PTRACE_ARG4_TYPE): New macro.
17752 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
17753 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
17754 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
17755 (usr_store_inferior_registers): Ditto.
17756 (linux_read_memory, linux_write_memory): Ditto.
17757 (linux_test_for_tracefork): Ditto.
17758
3743bb4f
DE
17759 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
17760 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
17761
8b315be5
PA
177622010-01-21 Pedro Alves <pedro@codesourcery.com>
17763
17764 * proc-service.c (ps_lgetregs): Don't refetch registers from the
17765 target.
17766
85492558
PA
177672010-01-21 Pedro Alves <pedro@codesourcery.com>
17768
17769 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
17770 prototype to take a regcache. Adjust.
17771
442ea881
PA
177722010-01-20 Pedro Alves <pedro@codesourcery.com>
17773
17774 * regcache.h (struct thread_info): Forward declare.
17775 (struct regcache): New.
17776 (new_register_cache): Adjust prototype.
17777 (get_thread_regcache): Declare.
17778 (free_register_cache): Adjust prototype.
17779 (registers_to_string, registers_from_string): Ditto.
17780 (supply_register, supply_register_by_name, collect_register)
17781 (collect_register_as_string, collect_register_by_name): Ditto.
17782 * regcache.c (struct inferior_regcache_data): Delete.
17783 (get_regcache): Rename to ...
17784 (get_thread_regcache): ... this. Adjust. Switch inferior before
17785 fetching registers.
17786 (regcache_invalidate_one): Adjust.
17787 (regcache_invalidate): Fix prototype.
17788 (new_register_cache): Return the new register cache.
17789 (free_register_cache): Change prototype.
17790 (realloc_register_cache): Adjust.
17791 (registers_to_string): Change prototype to take a regcache. Adjust.
17792 (registers_from_string): Ditto.
17793 (register_data): Ditto.
17794 (supply_register): Ditto.
17795 (supply_register_by_name): Ditto.
17796 (collect_register): Ditto.
17797 (collect_register_as_string): Ditto.
17798 (collect_register_by_name): Ditto.
17799 * server.c (process_serial_event): Adjust.
17800 * linux-low.h (regset_fill_func, regset_store_func): Change
17801 prototype.
17802 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
17803 Change prototype.
17804 * linux-low.c (get_stop_pc): Adjust.
17805 (check_removed_breakpoint): Adjust.
17806 (linux_wait_for_event): Adjust.
17807 (linux_resume_one_lwp): Adjust.
17808 (fetch_register): Add regcache parameter. Adjust.
17809 (usr_store_inferior_registers): Ditto.
17810 (regsets_fetch_inferior_registers): Ditto.
17811 (regsets_store_inferior_registers): Ditto.
17812 (linux_fetch_registers, linux_store_registers): Ditto.
17813 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
17814 regcache. Adjust.
43aaf8b6
PA
17815 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
17816 Ditto.
442ea881
PA
17817 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
17818 prototype to take a regcache.
17819 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
17820 * remote-utils.c (convert_ascii_to_int, outreg)
17821 (prepare_resume_reply): Change prototype to take a regcache.
17822 Adjust.
17823 * target.h (struct target_ops) <fetch_registers, store_registers>:
17824 Change prototype to take a regcache.
17825 (fetch_inferior_registers, store_inferior_registers): Change
17826 prototype to take a regcache. Adjust.
17827 * proc-service.c (ps_lgetregs): Adjust.
17828 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
17829 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
17830 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
17831 take a regcache. Adjust.
17832 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
17833 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
17834 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
17835 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
17836 * linux-cris-low.c (cris_get_pc, cris_set_pc)
17837 (cris_cannot_fetch_register):
17838 (cris_breakpoint_at): Change prototype to take a regcache.
17839 Adjust.
17840 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
17841 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
17842 to take a regcache. Adjust.
17843 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
17844 Adjust.
17845 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
17846 take a regcache. Adjust.
17847 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
17848 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
17849 (m68k_set_pc): Change prototype to take a regcache. Adjust.
17850 * linux-mips-low.c (mips_get_pc):
17851 (mips_set_pc): Change prototype to take a regcache. Adjust.
17852 (mips_reinsert_addr): Adjust.
17853 (mips_collect_register): Change prototype to take a regcache.
17854 Adjust.
17855 (mips_supply_register):
17856 (mips_collect_register_32bit, mips_supply_register_32bit)
17857 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
17858 (mips_store_fpregset): Ditto.
43aaf8b6
PA
17859 * linux-ppc-low.c (ppc_supply_ptrace_register)
17860 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
17861 (parse_spufs_run): Adjust.
17862 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
17863 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
17864 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
17865 take a regcache. Adjust.
17866 * linux-s390-low.c (s390_collect_ptrace_register)
17867 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
17868 (s390_set_pc): Change prototype to take a regcache. Adjust.
17869 (s390_arch_setup): Adjust.
17870 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
17871 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
17872 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
17873 (sparc_fill_gregset, sparc_store_gregset_from_stack)
17874 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
17875 regcache. Adjust.
17876 (sparc_breakpoint_at): Adjust.
17877 * linux-xtensa-low.c (xtensa_fill_gregset):
17878 (xtensa_store_gregset):
17879 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
17880 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
17881 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
17882 prototype to take a regcache. Adjust.
17883 * win32-arm-low.c (arm_fetch_inferior_register)
17884 (arm_store_inferior_register): Change prototype to take a
17885 regcache. Adjust.
17886 * win32-i386-low.c (i386_fetch_inferior_register)
17887 (i386_store_inferior_register): Change prototype to take a
17888 regcache. Adjust.
17889 * win32-low.c (child_fetch_inferior_registers)
17890 (child_store_inferior_registers): Change prototype to take a
17891 regcache. Adjust.
17892 (win32_wait): Adjust.
17893 (win32_fetch_inferior_registers): Change prototype to take a
17894 regcache. Adjust.
17895 (win32_store_inferior_registers): Adjust.
17896 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
17897 store_inferior_register>: Change prototype to take a regcache.
17898
60c3d7b0
DE
178992010-01-20 Doug Evans <dje@google.com>
17900
17901 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
17902 #ifdef.
17903 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 17904 (W_STOPCODE): Provide definition if missing.
60c3d7b0 17905
dc146f7c
VP
179062010-01-13 Vladimir Prus <vladimir@codesourcery.com>
17907
17908 * linux-low.c (linux_core_of_thread): New.
17909 (compare_ints, show_process, list_threads): New.
17910 (linux_qxfer_osdata): Report threads and cores.
17911 (linux_target_op): Register linux_core_of_thread.
17912 * remote-utils.c (prepare_resume_reply): Report the core.
17913 (buffer_xml_printf): Support %d specifier.
17914 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
17915 New.
17916 (handle_query): Handle qXfer:threads. Announce availability
17917 thereof.
17918 * target.h (struct target_ops): New field core_of_thread.
17919
7803799a
UW
179202010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
17921
17922 * Makefile.in (clean): Remove new generated files.
17923 (reg-s390.o, reg-s390.c): Remove rules.
17924 (reg-s390x.o, reg-s390x.c): Likewise.
17925 (s390-linux32.o, s390-linux32.c): Add rules.
17926 (s390-linux64.o, s390-linux64.c): Likewise.
17927 (s390x-linux64.o, s390x-linux64.c): Likewise.
17928 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
17929 * linux-s390-low.c: Include <elf.h>.
17930 (HWCAP_S390_HIGH_GPRS): Define if undefined.
17931 (init_registers_s390): Remove prototype.
17932 (init_registers_s390x): Likewise.
17933 (init_registers_s390_linux32): Add prototype.
17934 (init_registers_s390_linux64): Likewise.
17935 (init_registers_s390x_linux64): Likewise.
17936 (s390_num_regs_3264): New define.
17937 (s390_regmap_3264): New global variable.
17938 (s390_cannot_fetch_register): Remove obsolete check.
17939 (s390_cannot_store_register): Likewise.
17940 (s390_collect_ptrace_register): Handle upper/lower register halves.
17941 (s390_supply_ptrace_register): Likewise.
17942 (s390_fill_gregset): Update to register number changes.
17943 (s390_get_hwcap): New routine.
17944 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
17945 Install appropriate regmap and register set.
17946
6e7ffa39
JB
179472010-01-01 Joel Brobecker <brobecker@adacore.com>
17948
17949 * server.c (gdbserver_version): Update copyright year to 2010.
17950 * gdbreplay.c (gdbreplay_version): Likewise.
17951
957f3f49
DE
179522009-12-28 Doug Evans <dje@google.com>
17953
17954 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
17955 elf/external.h. Include <elf.h> instead but only if necessary.
17956
ca5c370d
PA
179572009-12-28 Pedro Alves <pedro@codesourcery.com>
17958
17959 * linux-low.c (linux_remove_process): Remove `detaching'
17960 parameter. Don't release/detach from thread_db here.
17961 (linux_kill): Release/detach from thread_db here, ...
17962 (linux_detach): ... and here, before actually detaching.
17963 (linux_wait_1): ... and here, when a process exits.
17964 * thread-db.c (any_thread_of): New.
17965 (thread_db_free): Switch the current inferior to a thread of the
17966 passed in process.
17967
4ee62156
DE
179682009-12-21 Doug Evans <dje@google.com>
17969
d90e6a88
DE
17970 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
17971
c5f62d5f
DE
17972 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
17973 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
17974 warning ifndef __NR_tkill. Move setting of errno there too.
17975 Delete unnecessary resetting of errno after syscall.
17976 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
17977
10e86dd7
DE
17978 * configure.ac: Check for dladdr.
17979 * config.in: Regenerate.
17980 * configure: Regenerate.
17981 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
17982 (try_thread_db_load): Update.
17983
4ee62156
DE
17984 * linux-low.c (my_waitpid): Delete unnecessary prototype.
17985
00f515da
DE
179862009-12-18 Doug Evans <dje@google.com>
17987
e9464885
DE
17988 * event-loop.c: Include unistd.h if it exists.
17989
07d4f67e
DE
17990 * linux-low.c (my_waitpid): Move definition away from being in
17991 between linux_tracefork_child/linux_test_for_tracefork.
17992
00f515da
DE
17993 * gdb_proc_service.h (psaddr_t): Fix type.
17994 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
17995 signature to match glibc.
17996
1de1badb
DE
179972009-12-16 Doug Evans <dje@google.com>
17998
17999 * linux-low.c (linux_read_memory): Fix argument to read.
18000
aeeb81d1
PA
180012009-11-26 Pedro Alves <pedro@codesourcery.com>
18002
18003 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18004 events, don't leave current_inferior pointing at null.
18005
10357975
PA
180062009-11-26 Pedro Alves <pedro@codesourcery.com>
18007
18008 * win32-low.c (LOG): Delete.
18009 (OUTMSG): Output to stderr.
18010 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18011 on compile time LOG macro.
18012 (win32_wait): Fix debug output.
18013
cf6e3471
PA
180142009-11-26 Pedro Alves <pedro@codesourcery.com>
18015
18016 * win32-low.c (win32_add_one_solib): If the dll name is
18017 "ntdll.dll", prepend the system directory to the dll path.
18018
0c85e18e
MK
180192009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18020
18021 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18022
9ac544ce 180232009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18024 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18025
18026 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18027 * configure.ac: Check for __mcoldfire__ and set
18028 gdb_cv_m68k_is_coldfire.
18029 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18030 reg-cf.o and reg-m68k.o.
18031 * configure: Regenerated.
18032
fd7dd3e6
PA
180332009-11-16 Pedro Alves <pedro@codesourcery.com>
18034
18035 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18036 Pass it to thread_db_free.
18037 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18038 proper `detaching' argument to linux_remove_process.
18039 * linux-low.h (thread_db_free): Add `detaching' parameter.
18040 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18041 to thread_db_free.
18042 (thread_db_free): Add `detaching' parameter. Only
18043 call td_ta_clear_event if detaching from process.
18044
75aa492e
MK
180452009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18046
18047 * thread-db.c (thread_db_free): Fix typo.
18048
21e1bee4
PP
180492009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18050
18051 PR gdb/10838
18052 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18053
8838b45e
NS
180542009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18055
18056 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18057 with an i686 compiler.
18058 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18059 needed.
18060 * configure: Rebuilt.
18061
8a35fb51
SL
180622009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18063
18064 PR gdb/10783
18065
18066 * server.c (handle_search_memory_1): Correct read_addr initialization
18067 in loop for searching subsequent chunks.
18068
96f15937
PP
180692009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18070
18071 * configure.ac: New --with-libthread-db option.
18072 * thread-db.c: Allow direct dependence on libthread_db.
18073 (thread_db_free): Adjust.
18074 * config.in: Regenerate.
18075 * configure: Likewise.
889bf7c5 18076
5f7d1694
PP
180772009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18078
18079 PR gdb/10757
18080 * thread-db.c (attach_thread): New function.
18081 (maybe_attach_thread): Return success/failure.
18082 (find_new_threads_callback): Adjust.
889bf7c5
PA
18083 (thread_db_find_new_threads): Loop until no new threads.
18084
88e3b899
PA
180852009-10-13 Pedro Alves <pedro@codesourcery.com>
18086
18087 * proc-service.c (ps_lgetregs): Formatting.
18088
cdbfd419
PP
180892009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18090
18091 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18092 * configure.ac: Adjust.
18093 * linux-low.h (struct process_info_private): Move members to struct
18094 thread_db.
18095 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18096 * linux-low.c (linux_remove_process): Adjust.
18097 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18098 * server.c (handle_query): Move code ...
18099 (handle_monitor_command): ... here. New function.
18100 * target.h (struct target_ops): New member.
18101 * thread-db.c (struct thread_db): New.
18102 (libthread_db_search_path): New variable.
18103 (thread_db_create_event, thread_db_enable_reporting)
18104 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18105 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18106 (try_thread_db_load_1, dladdr_to_soname): New functions.
18107 (try_thread_db_load, thread_db_load_search): New functions.
18108 (thread_db_init): Search for libthread_db.
18109 (thread_db_free): New function.
18110 (thread_db_handle_monitor_command): Likewise.
18111 * config.in: Regenerate.
18112 * configure: Regenerate.
889bf7c5 18113
4168d2d6
UW
181142009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18115
18116 * spu-low.c (spu_kill): Wait for inferior to terminate.
18117 Call clear_inferiors.
18118 (spu_detach): Call clear_inferiors.
18119
81ecdfbb
RW
181202009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18121
18122 * aclocal.m4: Regenerate.
18123 * config.in: Likewise.
18124 * configure: Likewise.
18125
0b9ff2c0
UW
181262009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18127
18128 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18129 (parse_spufs_run): New function.
18130 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18131 (ppc_breakpoint_at): Handle SPU breakpoints.
18132
efcbbd14
UW
181332009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18134
18135 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18136 (SPUFS_MAGIC): Define.
18137 (spu_enumerate_spu_ids): New function.
18138 (linux_qxfer_spu): New function.
18139 (linux_target_ops): Install linux_qxfer_spu.
18140
f4d9bade
UW
181412009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18142
18143 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18144 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18145 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18146 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18147 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18148 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18149 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18150 (init_registers_powerpc_cell32l): Add prototype.
18151 (init_registers_powerpc_cell64l): Likewise.
18152 (ppc_arch_setup): Detect Cell/B.E. architecture.
18153
96e946ca
RW
181542009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18155
18156 * Makefile.in (datarootdir): New variable.
18157
58d6951d
DJ
181582009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18159
18160 * linux-low.c (linux_write_memory): Update debugging output.
18161 * Makefile.in (clean): Add new descriptions.
18162 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18163 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18164 * configure.srv: Add new files for arm*-*-linux*.
18165 * linux-arm-low.c: Add new declarations.
18166 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18167 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18168 (HWCAP_VFPv3D16): New.
18169 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18170 instead of __IWMMXT__.
18171 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18172 (arm_arch_setup): New.
18173 (target_regsets): Remove #ifdef. Add VFP regset.
18174 (the_low_target): Use arm_arch_setup.
18175
12b42a12
DJ
181762009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18177
18178 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18179 the main thread again.
18180
ac8c974e
AR
181812009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18182
18183 Adding Neutrino gdbserver.
18184 * configure: Regenerated.
18185 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18186 * configure.srv (i[34567]86-*-nto*): New target.
18187 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18188 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18189 (nto_comctrl) [__QNX__]: New function.
18190 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18191
4424e0c3 181922009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18193
18194 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18195 srv_tgtobj.
18196
912cf4ba
PA
181972009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18198 Pedro Alves <pedro@codesourcery.com>
18199
18200 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18201 don't support CONTEXT_EXTENDED_REGISTERS.
18202 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18203 (the_low_target): Install them.
18204 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18205 failing with ERROR_PIPE_NOT_CONNECTED.
18206
aa5ca48f
DE
182072009-06-30 Doug Evans <dje@google.com>
18208 Pierre Muller <muller@ics.u-strasbg.fr>
18209
18210 Add h/w watchpoint support to x86-linux, win32-i386.
18211 * Makefile.in (SFILES): Add i386-low.c
18212 (i386_low_h): Define.
18213 (i386-low.o): Add dependencies.
18214 (linux-x86-low.o): Add i386-low.h dependency.
18215 (win32-i386-low.o): Ditto.
18216 * i386-low.c: New file.
18217 * i386-low.h: New file.
18218 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18219 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18220 * linux-low.c (linux_add_process): Initialize arch_private.
18221 (linux_remove_process): Free arch_private.
18222 (add_lwp): Initialize arch_private.
18223 (delete_lwp): Free arch_private.
18224 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18225 provided.
18226 * linux-low.h (process_info_private): New member arch_private.
18227 (lwp_info): New member arch_private.
18228 (linux_target_ops): New members new_process, new_thread,
18229 prepare_to_resume.
18230 (ptid_of): New macro.
18231 * linux-x86-low.c: Include stddef.h, i386-low.h.
18232 (arch_process_info): New struct.
18233 (arch_lwp_info): New struct.
18234 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18235 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18236 (i386_dr_low_get_status): New function.
18237 (x86_insert_point, x86_remove_point): New functions.
18238 (x86_stopped_by_watchpoint): New function.
18239 (x86_stopped_data_address): New function.
18240 (x86_linux_new_process, x86_linux_new_thread): New functions.
18241 (x86_linux_prepare_to_resume): New function.
18242 (the_low_target): Add entries for insert_point, remove_point,
18243 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18244 prepare_to_resume.
18245 * server.c (debug_hw_points): New global.
18246 (monitor_show_help): Document set debug-hw-points.
18247 (handle_query): Process "set debug-hw-points".
18248 * server.h (debug_hw_points): Declare.
18249 (paddress): Declare.
18250 * utils.c (NUMCELLS, CELLSIZE): New macros.
18251 (get_sell, xsnprintf, paddress): New functions.
18252 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18253 remove_point, stopped_by_watchpoint, stopped_data_address.
18254 * win32-i386-low.c: Include i386-low.h.
18255 (debug_reg_state): Replaces dr.
18256 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18257 (i386_dr_low_get_status): New function.
18258 (i386_insert_point, i386_remove_point): New functions.
18259 (i386_stopped_by_watchpoint): New function.
18260 (i386_stopped_data_address): New function.
18261 (i386_initial_stuff): Update.
18262 (get_thread_context,set_thread_context,i386_thread_added): Update.
18263 (the_low_target): Add entries for insert_point,
18264 remove_point, stopped_by_watchpoint, stopped_data_address.
18265 * win32-low.c (win32_insert_watchpoint): New function.
18266 (win32_remove_watchpoint): New function.
18267 (win32_stopped_by_watchpoint): New function.
18268 (win32_stopped_data_address): New function.
18269 (win32_target_ops): Add entries for insert_watchpoint,
18270 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18271 * win32-low.h (win32_target_ops): New members insert_point,
18272 remove_point, stopped_by_watchpoint, stopped_data_address.
18273
d993e290
PA
182742009-06-25 Pedro Alves <pedro@codesourcery.com>
18275
18276 * server.c (process_serial_event): Re-return unsupported, not
18277 error, if the type isn't recognized. Re-allow supporting only
18278 insert or remove packets. Also call require_running for
18279 breakpoints. Add missing break statement to default case. Tidy.
18280 * target.h (struct target_ops): Rename insert_watchpoint to
18281 insert_point, and remove_watchpoint to remove_point.
18282
18283 * linux-low.h (struct linux_target_ops): Likewise.
18284 * linux-low.c (linux_insert_watchpoint): Rename to ...
18285 (linux_insert_point): ... this. Adjust.
18286 (linux_remove_watchpoint): Rename to ...
18287 (linux_remove_point): ... this. Adjust.
18288 (linux_target_ops): Adjust.
18289 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18290 (cris_insert_point): ... this.
18291 (cris_remove_watchpoint): Rename to ...
18292 (cris_remove_point): ... this.
18293 (the_low_target): Adjust.
18294
0f54c268
PM
182952009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18296
18297 * server.c (handle_v_kill): Pass signal_pid to
18298 kill_inferior if multi_process is zero.
18299
c6314022
AR
183002009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18301
18302 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18303 * target.h (target_ops): Comment for *_watchpoint to make it clear
18304 the functions can get types '0' and '1'.
18305
4463ce24
AR
183062009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18307
18308 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18309 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18310 * regcache.c (get_regcache): Likewise.
18311 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18312 * win32-low.c (child_fetch_inferior_registers): Remove check for
18313 regno 0.
18314
cf8fd78b
PA
183152009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18316 Pedro Alves <pedro@codesourcery.com>
18317
18318 * target.h (struct target_ops) <supports_multi_process>: New
18319 callback.
18320 (target_supports_multi_process): New.
18321 * server.c (handle_query): Even if GDB reports support, only
18322 enable multi-process if the target also supports it. Report
18323 multi-process support only if the target backend supports it.
18324 * linux-low.c (linux_supports_multi_process): New function.
18325 (linux_target_ops): Install it as target_supports_multi_process
18326 callback.
18327
47c0c975
DE
183282009-05-24 Doug Evans <dje@google.com>
18329
e09875d4
DE
18330 Global renaming of find_thread_pid to find_thread_ptid.
18331 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18332 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18333 All callers updated.
18334
e27d73f6
DE
18335 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18336 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18337 directly.
18338
47c0c975
DE
18339 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18340 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18341 (linux_resume_one_lwp): Ditto.
18342
2acc282a
DE
183432009-05-23 Doug Evans <dje@google.com>
18344
18345 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18346 from struct inferior_list_entry * to struct lwp_info *.
18347 All callers updated.
18348
9f1036c1
DE
183492009-05-13 Doug Evans <dje@google.com>
18350
18351 * linux-x86-low.c: Don't include assert.h.
18352 (x86_siginfo_fixup): Use fatal, not assert.
18353 (x86_arch_setup): Fix comment.
18354
d0722149
DE
183552009-05-12 Doug Evans <dje@google.com>
18356
18357 Biarch support for i386/amd64 gdbserver.
18358 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18359 Add linux-x86-low.c.
18360 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18361 (linux-x86-low.o): Add.
18362 * linux-x86-64-low.c: Delete.
18363 * linux-i386-low.c: Delete.
18364 * linux-x86-low.c: New file.
18365 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18366 linux-x86-low.o.
18367 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18368 linux-x86-low.o.
18369 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18370 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18371 (linux_child_pid_to_exec_file): New function.
18372 (elf_64_header_p, elf_64_file_p): New functions.
18373 (siginfo_fixup): New function.
18374 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18375 give target a chance to convert layout.
18376 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18377 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18378
fdeb2a12
DE
183792009-05-07 Doug Evans <dje@google.com>
18380
18381 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18382 (regsets_store_inferior_registers): Ditto.
18383
a6dbe5df
PA
183842009-05-06 Pedro Alves <pedro@codesourcery.com>
18385
18386 PR server/10048
18387
18388 * linux-low.c (must_set_ptrace_flags): Delete.
18389 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18390 of the global.
18391 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18392 `lwp->must_set_ptrace_flags' instead.
ba42693b 18393 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
18394 (linux_wait_1): ... not here.
18395
5091eb23
DE
183962009-04-30 Doug Evans <dje@google.com>
18397
9f767825
DE
18398 * inferiors.c (started_inferior_callback): New function.
18399 (attached_inferior_callback): New function.
18400 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18401 * server.c (print_started_pid, print_attached_pid): New functions.
18402 (detach_or_kill_for_exit): New function.
18403 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18404 * server.h (have_started_inferiors_p): Declare.
18405 (have_attached_inferiors_p): Declare.
18406
5091eb23
DE
18407 * inferiors.c (remove_process): Fix memory leak, free process.
18408 * linux-low.c (linux_remove_process): New function.
18409 (linux_kill): Call it instead of remove_process.
18410 (linux_detach, linux_wait_1): Ditto.
18411
155c8968
PA
184122009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18413
18414 * configure.srv: Add x86 Windows CE target.
18415
7fe519cb
UW
184162009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18417
18418 * inferiors.c (get_thread_process): Make global.
18419 * server.h (get_thread_process): Add prototype.
18420 * thread-db.c (find_one_thread): Use get_thread_process
18421 instead of current_process.
18422 (thread_db_get_tls_address): Do not crash if called when
18423 thread layer is not yet initialized.
18424
5472f405
UW
184252009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18426
18427 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18428 * spu-low.c (current_tid): Rename to ...
18429 (current_ptid): ... this.
18430 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18431 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18432 ptid_get_lwp (current_ptid) instead of current_tid.
18433 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18434 instead of current_tid. Use find_process_pid to verify pid
18435 argument is valid. Pass proper argument to remove_process.
18436 (spu_thread_alive): Compare current_ptid instead of current_tid.
18437 (spu_resume): Likewise.
18438
55ac2b99
PA
184392009-04-02 Pedro Alves <pedro@codesourcery.com>
18440
18441 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18442 variable.
18443
95954743
PA
184442009-04-01 Pedro Alves <pedro@codesourcery.com>
18445
18446 Implement the multiprocess extensions, and add linux multiprocess
18447 support.
18448
18449 * server.h (ULONGEST): Declare.
18450 (struct ptid, ptid_t): New.
18451 (minus_one_ptid, null_ptid): Declare.
18452 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18453 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18454 (struct inferior_list_entry): Change `id' type from unsigned from
18455 to ptid_t.
18456 (struct sym_cache, struct breakpoint, struct
18457 process_info_private): Forward declare.
18458 (struct process_info): Declare.
18459 (current_process): Declare.
18460 (all_processes): Declare.
18461 (initialize_inferiors): Declare.
18462 (add_thread): Adjust to use ptid_t.
18463 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18464 (add_process, remove_process, find_thread_pid): Declare.
18465 (find_inferior_id): Adjust to use ptid_t.
18466 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18467 (multi_process): Declare.
18468 (push_event): Adjust to use ptid_t.
18469 (read_ptid, write_ptid): Declare.
18470 (prepare_resume_reply): Adjust to use ptid_t.
18471 (clear_symbol_cache): Declare.
18472 * inferiors.c (all_processes): New.
18473 (null_ptid, minus_one_ptid): New.
18474 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18475 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18476 (add_thread): Change unsigned long to ptid. Remove gdb_id
18477 parameter. Adjust.
18478 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18479 (gdb_id_to_thread): Rename to ...
18480 (find_thread_pid): ... this. Change unsigned long to ptid.
18481 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18482 (loaded_dll, pull_pid_from_list): Adjust.
18483 (add_process, remove_process, find_process_pid)
18484 (get_thread_process, current_process, initialize_inferiors): New.
18485 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18486 (struct target_waitstatus) <related_pid>: Ditto.
18487 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18488 return type to int.
18489 (struct target_ops) <join>: Add `pid' argument.
18490 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18491 (struct target_ops) <wait>: Add `ptid' field. Change return type
18492 to ptid.
18493 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18494 (mywait): Add `ptid' argument. Change return type to ptid_t.
18495 (target_pid_to_str): Declare.
18496 * target.c (set_desired_inferior): Adjust to use ptids.
18497 (mywait): Add new `ptid' argument. Adjust.
18498 (target_pid_to_str): New.
18499 * mem-break.h (free_all_breakpoints): Declare.
18500 * mem-break.c (breakpoints): Delelete.
18501 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18502 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18503 to use per-process breakpoint list.
18504 (free_all_breakpoints): New.
18505 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18506 (symbol_cache, all_symbols_looked_up): Delete.
18507 (hexchars): New.
18508 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18509 read_ptid): New.
18510 (prepare_resume_reply): Change ptid argument's type from unsigned
18511 long to ptid_t. Adjust. Implement W;process and X;process.
18512 (free_sym_cache, clear_symbol_cache): New.
18513 (look_up_one_symbol): Adjust to per-process symbol cache. *
18514 * server.c (cont_thread, general_thread, step_thread): Change type
18515 to ptid_t.
18516 (attached): Delete.
18517 (multi_process): New.
18518 (last_ptid): Change type to ptid_t.
18519 (struct vstop_notif) <ptid>: Change type to ptid_t.
18520 (queue_stop_reply, push_event): Change `ptid' argument's type to
18521 ptid_t.
18522 (discard_queued_stop_replies): Add `pid' argument.
18523 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18524 changes. Don't reference the `attached' global.
18525 (attach_inferior): Adjust to mywait interface changes.
18526 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18527 features. Handle and report "multiprocess+". Handle
18528 "qAttached:PID".
18529 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18530 changes.
18531 (handle_v_kill): New.
18532 (handle_v_stopped): Adjust to use target_pid_to_str.
18533 (handle_v_requests): Allow multiple attaches and runs when
18534 multiprocess extensions are in effect. Handle "vKill".
18535 (myresume): Adjust to use ptids.
18536 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
18537 (handle_status): Adjust to discard_queued_stop_replies interface
18538 change.
18539 (first_thread_of, kill_inferior_callback)
18540 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
18541 (main): Call initialize_inferiors. Adjust to use ptids, killing
18542 and detaching from all inferiors. Handle multiprocess packet
18543 variants.
18544 * linux-low.h: Include gdb_proc_service.h.
18545 (struct process_info_private): New.
18546 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
18547 <lwpid_of>: Use ptid_get_lwp.
18548 (get_lwp_thread): Adjust.
18549 (struct lwp_info): Add `dead' member.
18550 (find_lwp_pid): Declare.
18551 * linux-low.c (thread_db_active): Delete.
18552 (new_inferior): Adjust comment.
18553 (inferior_pid): Delete.
18554 (linux_add_process): New.
18555 (handle_extended_wait): Adjust.
18556 (add_lwp): Change unsigned long to ptid.
18557 (linux_create_inferior): Add process to processes table. Adjust
18558 to use ptids. Don't set new_inferior here.
18559 (linux_attach_lwp): Rename to ...
18560 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
18561 it. Adjust to use ptids.
18562 (linux_attach_lwp): New.
18563 (linux_attach): Add process to processes table. Don't set
18564 new_inferior here.
18565 (struct counter): New.
18566 (second_thread_of_pid_p, last_thread_of_process_p): New.
18567 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
18568 multiple processes.
18569 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
18570 processes. Remove process from process table.
18571 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
18572 to multiple processes.
18573 (any_thread_of): New.
18574 (linux_detach): Add `pid' argument, and handle it. Remove process
18575 from processes table.
18576 (linux_join): Add `pid' argument. Handle it.
18577 (linux_thread_alive): Change unsighed long argument to ptid_t.
18578 Consider dead lwps as not being alive.
18579 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
18580 threads we're not interested in.
18581 (same_lwp, find_lwp_pid): New.
18582 (linux_wait_for_lwp): Change `pid' argument's type from int to
18583 ptid_t. Adjust.
18584 (linux_wait_for_event): Rename to ...
18585 (linux_wait_for_event_1): ... this. Change `pid' argument's type
18586 from int to ptid_t. Adjust.
18587 (linux_wait_for_event): New.
18588 (linux_wait_1): Add `ptid' argument. Change return type to
18589 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
18590 that exit from the process table.
18591 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
18592 Adjust.
18593 (mark_lwp_dead): New.
18594 (wait_for_sigstop): Adjust to use ptids. If a process exits while
18595 stopping all threads, mark its main lwp as dead.
18596 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
18597 ptids.
18598 (fetch_register, usr_store_inferior_registers)
18599 (regsets_fetch_inferior_registers)
18600 (regsets_store_inferior_registers, linux_read_memory)
18601 (linux_write_memory): Inline `inferior_pid'.
18602 (linux_look_up_symbols): Adjust to use per-process
18603 `thread_db_active'.
18604 (linux_request_interrupt): Adjust to use ptids.
18605 (linux_read_auxv): Inline `inferior_pid'.
18606 (initialize_low): Don't reference thread_db_active.
18607 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
18608 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
18609 (ps_getpid): Return the pid of the current inferior.
18610 * thread-db.c (proc_handle, thread_agent): Delete.
18611 (thread_db_create_event, thread_db_enable_reporting): Adjust to
18612 per-process data.
18613 (find_one_thread): Change argument type to ptid_t. Adjust to
18614 per-process data.
18615 (maybe_attach_thread): Adjust to per-process data and ptids.
18616 (thread_db_find_new_threads): Ditto.
18617 (thread_db_init): Ditto.
18618 * spu-low.c (spu_create_inferior, spu_attach): Add process to
18619 processes table. Adjust to use ptids.
18620 (spu_kill, spu_detach): Adjust interface. Remove process from
18621 processes table.
18622 (spu_join, spu_thread_alive): Adjust interface.
18623 (spu_wait): Adjust interface. Remove process from processes
18624 table. Adjust to use ptids.
18625 * win32-low.c (current_inferior_tid): Delete.
18626 (current_inferior_ptid): New.
18627 (debug_event_ptid): New.
18628 (thread_rec): Take a ptid. Adjust.
18629 (child_add_thread): Add `pid' argument. Adjust to use ptids.
18630 (child_delete_thread): Ditto.
18631 (do_initial_child_stuff): Add `attached' argument. Add process to
18632 processes table.
18633 (child_fetch_inferior_registers, child_store_inferior_registers):
18634 Adjust.
18635 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
18636 (win32_attach): Pass 1 to do_initial_child_stuff.
18637 (win32_kill): Adjust interface. Remove process from processes
18638 table.
18639 (win32_detach): Ditto.
18640 (win32_join): Adjust interface.
18641 (win32_thread_alive): Take a ptid.
18642 (win32_resume): Adjust to use ptids.
18643 (get_child_debug_event): Ditto.
18644 (win32_wait): Adjust interface. Remove exiting process from
18645 processes table.
18646
bd99dc85
PA
186472009-04-01 Pedro Alves <pedro@codesourcery.com>
18648
18649 Non-stop mode support.
18650
18651 * server.h (non_stop): Declare.
18652 (gdb_client_data, handler_func): Declare.
18653 (delete_file_handler, add_file_handler, start_event_loop):
18654 Declare.
18655 (handle_serial_event, handle_target_event, push_event)
18656 (putpkt_notif): Declare.
18657 * target.h (enum resume_kind): New.
18658 (struct thread_resume): Replace `step' field by `kind' field.
18659 (TARGET_WNOHANG): Define.
18660 (struct target_ops) <wait>: Add `options' argument.
18661 <supports_non_stop, async, start_non_stop>: New fields.
18662 (target_supports_non_stop, target_async): New.
18663 (start_non_stop): Declare.
18664 (mywait): Add `options' argument.
18665 * target.c (mywait): Add `options' argument. Print child exit
18666 notifications here.
18667 (start_non_stop): New.
18668 * server.c (non_stop, own_buf, mem_buf): New globals.
18669 (struct vstop_notif): New.
18670 (notif_queue): New global.
18671 (queue_stop_reply, push_event, discard_queued_stop_replies)
18672 (send_next_stop_reply): New.
18673 (start_inferior): Adjust to use resume_kind. Adjust to mywait
18674 interface changes.
18675 (attach_inferior): In non-stop mode, don't wait for the target
18676 here.
18677 (handle_general_set): Handle QNonStop.
18678 (handle_query): When handling qC, return the current general
18679 thread, instead of the first thread of the list.
18680 (handle_query): If the backend supports non-stop mode, include
18681 QNonStop+ in the qSupported query response.
18682 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
18683 and non-stop mode.
18684 (handle_v_attach, handle_v_run): Handle non-stop mode.
18685 (handle_v_stopped): New.
18686 (handle_v_requests): Report support for vCont;t. Handle vStopped.
18687 (myresume): Adjust to use resume_kind. Handle non-stop.
18688 (queue_stop_reply_callback): New.
18689 (handle_status): Handle non-stop mode.
18690 (main): Clear non_stop flag on reconnection. Use the event-loop.
18691 Refactor serial protocol handling from here ...
18692 (process_serial_event): ... to this new function. When GDB
18693 selects any thread, select one here. In non-stop mode, wait until
18694 GDB acks all pending events before exiting.
18695 (handle_serial_event, handle_target_event): New.
18696 * remote-utils.c (remote_open): Install remote_desc in the event
18697 loop.
18698 (remote_close): Remove remote_desc from the event loop.
18699 (putpkt_binary): Rename to...
18700 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
18701 (putpkt_binary): New as wrapper around putpkt_binary_1.
18702 (putpkt_notif): New.
18703 (prepare_resume_reply): In non-stop mode, don't change the
18704 general_thread.
18705 * event-loop.c: New.
18706 * Makefile.in (OBJ): Add event-loop.o.
18707 (event-loop.o): New rule.
18708
18709 * linux-low.h (pid_of): Moved here.
18710 (lwpid_of): New.
18711 (get_lwp_thread): Use lwpid_of.
18712 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
18713 * linux-low.c (pid_of): Delete.
18714 (inferior_pid): Use lwpid_of.
18715 (linux_event_pipe): New.
18716 (target_is_async_p): New.
18717 (delete_lwp): New.
18718 (handle_extended_wait): Use lwpid_of.
18719 (add_lwp): Don't set lwpid field.
18720 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
18721 (linux_kill_one_lwp): If killing a running lwp, stop it first.
18722 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
18723 (linux_detach_one_lwp): If detaching from a running lwp, stop it
18724 first. Adjust to linux_wait_for_event interface changes. Use
18725 lwpid_of.
18726 (linux_detach): Don't delete the main lwp here.
18727 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
18728 (status_pending_p): Don't consider explicitly suspended lwps.
18729 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
18730 pointer. Add OPTIONS argument. Change return type to int. Use
18731 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
18732 (linux_wait_for_event): Take an integer pid instead of a lwp_info
18733 pointer. Add status pointer argument. Return a pid instead of a
18734 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
18735 changes. In non-stop mode, don't switch to a random thread.
18736 (linux_wait): Rename to...
18737 (linux_wait_1): ... this. Add target_options argument, and handle
18738 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
18739 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
18740 clean exit and signal exit code. Don't stop all threads in
18741 non-stop mode. In all-stop mode, only stop all threads when
18742 reporting a stop to GDB. Handle explicit thread stop requests.
18743 (async_file_flush, async_file_mark): New.
18744 (linux_wait): New.
18745 (send_sigstop): Use lwpid_of.
18746 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
18747 interface changes. In non-stop mode, don't switch to a random
18748 thread.
18749 (linux_resume_one_lwp): Use lwpid_of.
18750 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
18751 (linux_resume_one_thread): ... this. Handle resume_stop. In
18752 non-stop mode, don't look for pending flag in all threads.
18753 (resume_status_pending_p): Don't consider explicitly suspended
18754 threads.
18755 (my_waitpid): Reimplement. Emulate __WALL.
18756 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
18757 Use lwpid_of.
18758 (sigchld_handler, linux_supports_non_stop, linux_async)
18759 (linux_start_non_stop): New.
18760 (linux_target_ops): Register linux_supports_non_stop, linux_async
18761 and linux_start_non_stop.
18762 (initialize_low): Install SIGCHLD handler.
18763 * thread-db.c (thread_db_create_event, find_one_thread)
18764 (thread_db_get_tls_address): Use lwpid_of.
18765 * win32-low.c (win32_detach): Adjust to use resume_kind.
18766 (win32_wait): Add `options' argument.
18767 * spu-low.c (spu_resume): Adjust to use resume_kind.
18768 (spu_wait): Add `options' argument.
18769
5b1c542e
PA
187702009-04-01 Pedro Alves <pedro@codesourcery.com>
18771
18772 Decouple target code from remote protocol.
18773
18774 * target.h (enum target_waitkind): New.
18775 (struct target_waitstatus): New.
18776 (struct target_ops) <wait>: Return an unsigned long. Take a
18777 target_waitstatus pointer instead of a char pointer.
18778 (mywait): Likewise.
18779 * target.c (mywait): Change prototype to return an unsigned long.
18780 Take a target_waitstatus pointer instead of a char pointer. Adjust.
18781 * server.h (thread_from_wait, old_thread_from_wait): Delete
18782 declarations.
18783 (prepare_resume_reply): Change prototype to take a
18784 target_waitstatus.
18785 * server.c (thread_from_wait, old_thread_from_wait): Delete.
18786 (last_status, last_ptid): New.
18787 (start_inferior): Remove "statusptr" argument. Adjust. Return a
18788 pid instead of a signal.
18789 (attach_inferior): Remove "status" and "signal" parameters.
18790 Adjust.
18791 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
18792 not as an address.
18793 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
18794 (handle_v_requests, myresume): Remove "status" and "signal"
18795 parameters. Adjust.
18796 (handle_status): New.
18797 (main): Delete local `status'. Adjust.
18798 * remote-utils.c: Include target.h.
18799 (prepare_resume_reply): Change prototype to take a
18800 target_waitstatus. Adjust.
18801
18802 * linux-low.c (linux_wait): Adjust to new target_ops->wait
18803 interface.
18804 * spu-low.c (spu_wait): Adjust.
18805 * win32-low.c (enum target_waitkind, struct target_waitstatus):
18806 Delete.
18807 (win32_wait): Adjust.
18808
2bd7c093
PA
188092009-04-01 Pedro Alves <pedro@codesourcery.com>
18810
18811 * target.h (struct thread_resume): Delete leave_stopped member.
18812 (struct target_ops): Add a `n' argument to the `resume' callback.
18813 * server.c (start_inferior): Adjust.
18814 (handle_v_cont, myresume): Adjust.
18815 * linux-low.c (check_removed_breakpoint): Adjust to resume
18816 interface change, and to removed leave_stopped field.
18817 (resume_ptr): Delete.
18818 (struct thread_resume_array): New.
18819 (linux_set_resume_request): Add new `arg' parameter. Adjust to
18820 resume interface change.
18821 (linux_continue_one_thread, linux_queue_one_thread)
18822 (resume_status_pending_p): Check if the resume field is NULL
18823 instead of checking the leave_stopped member.
18824 (linux_resume): Adjust to the target resume interface change.
18825 * spu-low.c (spu_resume): Adjust to the target resume interface
18826 change.
18827 * win32-low.c (win32_detach, win32_resume): Ditto.
18828
c35fafde
PA
188292009-04-01 Pedro Alves <pedro@codesourcery.com>
18830
18831 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
18832 flag.
18833 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
18834 pending.
18835 (linux_continue_one_thread): Only preserve the stepping flag if
18836 there's a pending breakpoint.
18837
0a59d50b
PA
188382009-03-31 Pedro Alves <pedro@codesourcery.com>
18839
18840 * server.c (main): After the inferior having exited, call
18841 remote_close before exiting gdbserver.
18842
f04c6d38
TJB
188432009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
18844
18845 Fix size of FPSCR in Power 7 processors.
18846 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
18847 (PPC_FEATURE_HAS_DFP): New #define.
18848 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
18849 size of the FPSCR.
18850
78e5cee6
PA
188512009-03-23 Pedro Alves <pedro@codesourcery.com>
18852
18853 * server.c (handle_query) Whitespace and formatting.
18854
1b3f6016
PA
188552009-03-22 Pedro Alves <pedro@codesourcery.com>
18856
18857 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
18858 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
18859 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
18860 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
18861 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
18862 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
18863 Makefile.in, configure.ac: Fix whitespace throughout.
18864 * configure: Regenerate.
18865
a07b2135
PA
188662009-03-22 Pedro Alves <pedro@codesourcery.com>
18867
18868 * inferiors.c (find_inferior): Make it safe for the callback
18869 function to delete the currently iterated inferior.
18870
67cc2626
PA
188712009-03-22 Pedro Alves <pedro@codesourcery.com>
18872
18873 * Makefile.in (linuw_low_h): Move higher.
18874 (thread-db.o): Depend on $(linux_low_h).
18875
54a0b537
PA
188762009-03-17 Pedro Alves <pedro@codesourcery.com>
18877
18878 Rename "process" to "lwp" throughout.
18879
18880 * linux-low.c (all_processes): Rename to...
18881 (all_lwps): ... this.
18882 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
18883 (add_process): Rename to ...
18884 (add_lwp): ... this. Adjust.
18885 (linux_create_inferior): Adjust.
18886 (linux_attach_lwp): Adjust.
18887 (linux_attach): Adjust.
18888 (linux_kill_one_process): Rename to ...
18889 (linux_kill_one_lwp): ... this. Adjust.
18890 (linux_kill): Adjust.
18891 (linux_detach_one_process): Rename to ...
18892 (linux_detach_one_lwp): ... this. Adjust.
18893 (linux_detach): Adjust.
18894 (check_removed_breakpoint): Adjust.
18895 (status_pending_p): Adjust.
18896 (linux_wait_for_process): Rename to ...
18897 (linux_wait_for_lwp): ... this. Adjust.
18898 (linux_wait_for_event): Adjust.
18899 (send_sigstop): Adjust.
18900 (wait_for_sigstop): Adjust.
18901 (stop_all_processes): Rename to ...
18902 (stop_all_lwps): ... this.
18903 (linux_resume_one_process): Rename to ...
18904 (linux_resume_one_lwp): ... this. Adjust.
18905 (linux_set_resume_request, linux_continue_one_thread)
18906 (linux_queue_one_thread, resume_status_pending_p)
18907 (usr_store_inferior_registers, regsets_store_inferior_registers)
18908 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
18909 Adjust.
18910 * linux-low.h (get_process): Rename to ...
18911 (get_lwp): ... this. Adjust.
18912 (get_thread_process): Rename to ...
18913 (get_thread_lwp): ... this. Adjust.
18914 (get_process_thread): Rename to ...
18915 (get_lwp_thread): ... this. Adjust.
18916 (struct process_info): Rename to ...
18917 (struct lwp_info): ... this.
18918 (all_processes): Rename to ...
18919 (all_lwps): ... this.
18920 * proc-service.c (ps_lgetregs): Adjust.
18921 * thread-db.c (thread_db_create_event, find_one_thread)
18922 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
18923
0b16c5cf
PA
189242009-03-14 Pedro Alves <pedro@codesourcery.com>
18925
18926 * server.c (handle_query): Handle "qAttached".
18927
32de4b9d
NS
189282009-03-13 Nathan Sidwell <nathan@codesourcery.com>
18929
18930 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
18931 GPLv3, update license URL.
18932
2aecd87f
DE
189332009-03-01 Doug Evans <dje@google.com>
18934
93efd302 18935 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
18936 (server_h): Add gdb_signals.h.
18937 (signals.o): Update.
18938 * server.h (target_signal_from_host,target_signal_to_host_p)
18939 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
18940
86b1f9c5
PM
189412009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
18942
18943 * remote-utils.c (getpkt): Also generate remote-debug
18944 information if noack_mode is set.
18945
4aa995e1
PA
189462009-02-06 Pedro Alves <pedro@codesourcery.com>
18947
18948 * server.c (handle_query): Report qXfer:siginfo:read and
18949 qXfer:siginfo:write as supported and handle them.
18950 * target.h (struct target_ops) <qxfer_siginfo>: New field.
18951 * linux-low.c (linux_xfer_siginfo): New.
18952 (linux_target_ops): Set it.
18953
62709adf
PA
189542009-01-26 Pedro Alves <pedro@codesourcery.com>
18955
18956 * server.c (gdbserver_usage): Mention --remote-debug.
18957 (main): Accept '--remote-debug' switch.
18958
aef93bd7
DE
189592009-01-18 Doug Evans <dje@google.com>
18960
18961 * regcache.c (new_register_cache): No need to check result of xcalloc.
18962 * server.c (handle_search_memory): Back out calls to xmalloc,
18963 result is checked and error is returned to user upon failure.
18964 (handle_query): Ditto. Add more checks for result of malloc.
18965 (handle_v_cont): Check result of malloc, report error back to
18966 user upon failure.
18967 (handle_v_run): Ditto. Call freeargv.
18968 * server.h (freeargv): Declare.
18969 * utils.c (freeargv): New fn.
18970
54363045
DE
189712009-01-15 Doug Evans <dje@google.com>
18972
f626972c
DE
18973 * gdbreplay.c (perror_with_name): Make arg const char *.
18974 * server.h (target_signal_to_name): Make return type const char *.
0842e787 18975 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 18976 * utils.c (perror_with_name): Make arg const char *.
54363045 18977
18aae699
PA
189782009-01-14 Pedro Alves <pedro@codesourcery.com>
18979
18980 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
18981 when handling a EXIT_PROCESS_DEBUG_EVENT.
18982
ff703abe
JB
189832009-01-06 Joel Brobecker <brobecker@adacore.com>
18984
18985 * gdbreplay.c (gdbreplay_version): Update copyright year.
18986 * server.c (gdbserver_version): Likewise.
18987
f21cc1a2 189882009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
18989
18990 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 18991 (handle_extended_wait): Improve comment.
0e21c1ec 18992
bca929d3
DE
189932008-12-13 Doug Evans <dje@google.com>
18994
18995 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
18996 * server.h (ATTR_MALLOC): New macro.
18997 (xmalloc,xcalloc,xstrdup): Declare.
18998 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
18999 * inferiors.c: Ditto.
19000 * linux-low.c: Ditto.
19001 * mem-break.c: Ditto.
19002 * regcache.c: Ditto.
19003 * remote-utils.c: Ditto.
19004 * server.c: Ditto.
19005 * target.c: Ditto.
19006 * win32-low.c: Ditto.
19007
97438e3f
DE
190082008-12-12 Doug Evans <dje@google.com>
19009
896c7fbb
DE
19010 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19011 in debugging printf.
19012
97438e3f
DE
19013 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19014
e3b886f8
DE
190152008-12-09 Doug Evans <dje@google.com>
19016
19017 * linux-low.h (struct process_info): Delete member tid, unused.
19018 * thread-db.c (find_one_thread): Update.
19019 (maybe_attach_thread): Update.
19020
07e059b5
VP
190212008-12-02 Pedro Alves <pedro@codesourcery.com>
19022
889bf7c5
PA
19023 * target.h (struct target_ops): Add qxfer_osdata member.
19024 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19025 and dirent.h.
19026 (linux_qxfer_osdata): New functions.
19027 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19028 callback.
19029 * server.c (handle_query): Handle "qXfer:osdata:read:".
19030 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19031 (buffer_xml_printf): New functions.
19032 * server.h (struct buffer): New.
19033 (buffer_grow_str, buffer_grow_str0): New macros.
19034 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19035 (buffer_xml_printf): Declare.
07e059b5 19036
4cab47ab
DE
190372008-11-24 Doug Evans <dje@google.com>
19038
19039 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19040
f142445f
DJ
190412008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19042
19043 * server.c (handle_v_run): Always use the supplied argument list.
19044
d0107bb6 190452008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19046
d0107bb6
BW
19047 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19048 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19049
2c4ad781
TJB
190502008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19051
19052 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19053 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19054 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19055 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19056 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19057 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19058 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19059 XML target descriptions.
19060 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19061 when inferior is running on an ISA 2.05 or later processor. Add
19062 special case to return offset for full 64-bit slot of FPSCR when
19063 in 32-bits.
19064
dfb64f85
DJ
190652008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19066
19067 * Makefile.in (SFILES, clean): Added sparc64 files.
19068 (reg-sparc64.o, reg-sparc64.c): New.
19069 * configure.srv (sparc*-*-linux*): New configuration.
19070 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19071 syscall arguments for SPARC.
19072 (regsets_store_inferior_registers): Likewise.
19073 * linux-sparc-low.c: New file.
19074
66b6e1dd
DE
190752008-10-21 Doug Evans <dje@google.com>
19076
19077 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19078 (READLINE_DIR,READLINE_DEP): Delete.
19079 (INTERNAL_CFLAGS): Update.
19080 (LINTFLAGS): Update.
19081
9b710a42
PA
190822008-10-10 Pedro Alves <pedro@codesourcery.com>
19083
19084 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19085 whole argv from the last run, not just argv[0].
19086
5822d809
PA
190872008-09-08 Pedro Alves <pedro@codesourcery.com>
19088
19089 * regcache.c (new_register_cache): Return NULL if the register
19090 cache size isn't known yet.
19091 (free_register_cache): Avoid dereferencing a NULL regcache.
19092
74aac56f
DJ
190932008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19094
19095 * configure.srv: Merge MIPS and MIPS64.
19096
400b20f5
MR
190972008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19098
19099 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19100
677c5bb1
LM
191012008-08-18 Luis Machado <luisgpm@br.ibm.com>
19102
19103 * Makefile.in: Add required vsx dependencies.
19104
19105 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19106 Declare init_registers_powerpc_vsx32l.
19107 Declare init_registers_powerpc_vsx64l.
19108 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19109 (ppc_arch_setup): Check for VSX in hwcap.
19110 (ppc_fill_vsxregset): New function.
19111 (ppc_store_vsxregset): New function.
19112 Add new VSX entry in regset_info target_regsets.
19113
19114 * configure.srv: Add new VSX dependencies.
19115
a6f3e723
SL
191162008-08-12 Pedro Alves <pedro@codesourcery.com>
19117
19118 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19119 (remote_open): Set or clear transport_is_reliable.
19120 (putpkt_binary): Don't expect acks in noack mode.
19121 (getpkt): Don't send ack/nac in noack mode.
19122 * server.c (handle_general_set): Handle QStartNoAckMode.
19123 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19124 qSupported.
19125 (main): Reset noack_mode on every connection.
19126 * server.h (noack_mode): Declare.
19127
a417dc56
RW
191282008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19129
19130 * Makefile.in (GDBREPLAY_OBS): New variable.
19131 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19132
3221518c
UW
191332008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19134 Daniel Jacobowitz <dan@codesourcery.com>
19135
19136 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19137 (usr_store_inferior_registers): Likewise.
19138 (regsets_store_inferior_registers): Likewise.
19139
ec56be1b
PA
191402008-07-31 Rolf Jansen <rj@surtec.com>
19141 Pedro Alves <pedro@codesourcery.com>
19142
19143 * configure.ac: Check for memmem declaration.
19144 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19145 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19146 (disable_packet_qfThreadInfo): Unconditionally compile.
19147 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19148 * configure, config.in: Regenerate.
19149
2fe5e3ff
DE
191502008-07-28 Doug Kwan <dougkwan@google.com>
19151
19152 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19153 (linux_write_memory): Remove declaration of errno.
19154
836acd6d
UW
191552008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19156
19157 * linux-low.c (handle_extended_wait): Do not use "status"
19158 variable uninitialized.
19159
aeba519e
PA
191602008-07-07 Pedro Alves <pedro@codesourcery.com>
19161
19162 * server.c (handle_v_attach): Inhibit reporting dll changes.
19163
db42f210
PA
191642008-06-27 Pedro Alves <pedro@codesourcery.com>
19165
19166 * remote-utils.c (prepare_resume_reply): If requested, don't
19167 output "thread:TID" in the T stop reply.
19168
19169 * server.c (disable_packet_vCont, disable_packet_Tthread)
19170 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19171 (handle_query): If requested, disable support for qC, qfThreadInfo
19172 and qsThreadInfo.
19173 (handle_v_requests): If requested, disable support for vCont.
19174 (gdbserver_show_disableable): New.
19175 (main): Handle --disable-packet and --disable-packet=LIST.
19176
19177 * server.h (disable_packet_vCont, disable_packet_Tthread)
19178 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19179
8e4c5421
CD
191802008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19181
19182 * server.c (gdbserver_usage): Mention --version.
19183
6e23a804
DJ
191842008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19185
19186 * Makefile.in (gdbreplay.o): New rule.
19187
90aa6a40
JM
191882008-06-06 Joseph Myers <joseph@codesourcery.com>
19189
19190 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19191 message, not gdbserver.
19192
c16158bc 191932008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19194 Nathan Sidwell <nathan@codesourcery.com>
19195 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19196
19197 * acinclude.m4: Include ../../config/acx.m4.
19198 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19199 * configure, config.in: Regenerate.
19200 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19201 * server.c (gdbserver_version): Print PKGVERSION.
19202 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19203 (main): Adjust gdbserver_usage calls.
19204 * gdbreplay.c (version, host_name): Add declarations.
19205 (gdbreplay_version, gdbreplay_usage): New.
19206 (main): Accept --version and --help options.
19207
aeb75bf5
DJ
192082008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19209
19210 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19211 (arm_breakpoint_at): Handle Thumb.
19212 (the_low_target): Add comment.
19213
76b233dd
UW
192142008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19215
19216 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19217
08388c79
DE
192182008-05-09 Doug Evans <dje@google.com>
19219
a3c83fae
DE
19220 * server.h (decode_search_memory_packet): Declare.
19221 * remote-utils.c (decode_search_memory_packet): New fn.
19222 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19223 (handle_search_memory): New fn.
19224 (handle_query): Process qSearch:memory packets.
19225
bb9c3d36
UW
192262008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19227
19228 * regcache.c (registers_length): Remove.
19229 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19230 full register packet.
19231 * regcache.h (registers_length): Remove prototype.
19232 * server.h (PBUFSIZ): Define to 16384.
19233
7284e1be
UW
192342008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19235
19236 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19237 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19238 powerpc-64l.o, and powerpc-altivec64l.o.
19239 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19240 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19241 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19242 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19243 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19244 to srv_xmlfiles.
19245
19246 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19247 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19248 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19249 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19250 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19251 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19252 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19253 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19254 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19255 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19256 (clean): Update.
19257
19258 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19259 (init_registers_powerpc_32l): ... this new prototype.
19260 (init_registers_powerpc_32): Remove, replace by ...
19261 (init_registers_powerpc_altivec32l): ... this new prototype.
19262 (init_registers_powerpc_e500): Remove, replace by ...
19263 (init_registers_powerpc_e500l): ... this new prototype.
19264 (init_registers_ppc64): Remove, replace by ...
19265 (init_registers_powerpc_64l): ... this new prototype.
19266 (init_registers_powerpc_64): Remove, replace by ...
19267 (init_registers_powerpc_altivec64l): ... this new prototype.
19268 (ppc_num_regs): Set to 73.
19269 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19270 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19271 (ppc_cannot_store_register): Handle orig_r3 and trap.
19272 (ppc_arch_setup): Update init_registers_... calls.
19273 (ppc_fill_gregset): Handle orig_r3 and trap.
19274
19275 * inferiors.c (clear_inferiors): Reset current_inferior.
19276
fdc59709
PB
192772008-04-23 Paolo Bonzini <bonzini@gnu.org>
19278
889bf7c5
PA
19279 * acinclude.m4: Add override.m4.
19280 * configure: Regenerate.
fdc59709 19281
c9b2f845
UW
192822008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19283
19284 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19285 initial call to init_register_ppc64.
19286
550512b8
UW
192872008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19288
43aaf8b6
PA
19289 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19290 single powerpc*-*-linux* case.
550512b8
UW
19291 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19292
b6430ec3
UW
192932008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19294
19295 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 19296 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
19297 from reg_xmlfiles.
19298 * linux-ppc-low.c: Include <elf.h>.
19299 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19300 (ppc_hwcap): New global variable.
19301 (ppc_regmap): Remove __SPE__ #ifdef sections.
19302 (ppc_regmap_e500): New global variable.
19303 (ppc_cannot_store_register): Update __SPE__ special case.
19304 (ppc_get_hwcap): New function.
19305 (ppc_arch_setup): Use it to determine whether inferior supports
19306 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19307 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19308 Do not access registers if target does not support AltiVec.
19309 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19310 Do not access registers if target does not support SPE.
19311 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19312
52fa2412
UW
193132008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19314
19315 * linux-low.c (disabled_regsets, num_regsets): New.
19316 (use_regsets_p): Delete.
19317 (linux_wait_for_process): Clear disabled_regsets.
19318 (regsets_fetch_inferior_registers): Check and set it.
19319 (regsets_store_inferior_registers): Likewise.
19320 (linux_fetch_registers, linux_store_registers): Do not use
19321 use_regsets_p.
19322 (initialize_low): Allocate disabled_regsets.
19323
e28b3332
DJ
193242008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19325
19326 * Makefile.in (LIBOBJS): New.
19327 (OBS): Use LIBOBJS.
19328 (memmem.o): New rule.
19329 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19330 * configure: Regenerated.
19331
4536995d
UW
193322008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19333
19334 * server.c (handle_query): Never return "unsupported" for
19335 qXfer:features:read queries.
19336
221c031f
UW
193372008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19338
19339 * server.c (get_features_xml): Fix inverted condition.
19340 (handle_query): Always support qXfer:feature:read.
19341
ccd213ac
DJ
193422008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19343
19344 * server.c (wrapper_argv): New.
19345 (start_inferior): Handle wrapper_argv. If set, expect an extra
19346 trap.
19347 (gdbserver_usage): Document --wrapper.
19348 (main): Parse --wrapper.
19349
6fe305f7
UW
193502008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19351
19352 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19353 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19354 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19355 (ppc_set_pc): Likewise.
19356 (ppc_arch_setup): New function.
19357 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19358 of collect_register.
889bf7c5 19359 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 19360
5b0a002e
UW
193612008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19362
19363 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19364 instead of linux-ppc64-low.o.
19365 * linux-ppc64-low.c: Remove file.
19366 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19367 (linux-ppc64-low.o): Remove rule.
19368
19369 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19370 (init_registers_powerpc_64): Likewise.
19371 (ppc_regmap): Conditionally define depending on __powerpc64__.
19372 (ppc_cannot_store_register): Do not special-case "fpscr" when
19373 compiled on __powerpc64__.
19374 (ppc_collect_ptrace_register): New function.
19375 (ppc_supply_ptrace_register): New function.
19376 (ppc_breakpoint): Change type to "unsigned int".
19377 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19378 (the_low_target): Conditionally provide initializers for the
889bf7c5 19379 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
19380 collect_ptrace_register and supply_ptrace_register members.
19381
9b4b61c8
UW
193822008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19383
19384 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19385 * server.c (gdbserver_xmltarget): Define.
19386 (get_features_xml): Use it to replace "target.xml" and arch_string.
19387
19388 * configure.srv: Remove srv_xmltarget. Add XML files that were
19389 mentioned there to srv_xmlfiles instead. Remove conditional tests
19390 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19391 srv_xmlfiles and srv_regobj to include all possible choices.
19392 * configure.ac (srv_xmltarget): Remove.
19393 (srv_xmlfiles): Do not add "target.xml".
19394 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19395 checks for supplementary target information.
19396 * configure: Regenerate.
19397 * Makefile.in (XML_TARGET): Remove.
19398 (target.xml): Remove rule.
19399 (clean): Do not clean up target.xml.
19400 (.PRECIOUS): Do not mention target.xml.
19401
19402 * target.h (struct target_ops): Remove arch_string member.
19403 * linux-low.c (linux_arch_string): Remove.
19404 (linux_target_ops): Remove arch_string initializer.
19405 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19406 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19407 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19408 * spu-low.c (spu_arch_string): Remove.
19409 (spu_target_ops): Remove arch_string initializer.
19410 * win32-low.c (win32_arch_string): Remove.
19411 (win32_target_ops): Remove arch_string initializer.
19412 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19413 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19414 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19415
ee1a7ae4
UW
194162008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19417
19418 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19419 by collect_ptrace_register and supply_ptrace_register hooks.
19420 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19421 instead of checking for the_low_target.left_pad_xfer.
19422 (usr_store_inferior_registers): Use collect_ptrace_register callback
19423 instead of checking for the_low_target.left_pad_xfer.
19424
19425 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19426 (s390_supply_ptrace_register): Likewise.
19427 (s390_fill_gregset): Call s390_collect_ptrace_register.
19428 (the_low_target): Update.
19429
19430 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19431 (ppc_supply_ptrace_register): Likewise.
19432 (the_low_target): Update.
19433
19434 * linux-i386-low.c (the_low_target): Update.
19435 * linux-x86-64-low.c (the_low_target): Update.
19436
d61ddec4
UW
194372008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19438
19439 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19440 reg-s390.o and reg-s390x.o.
19441
19442 * linux-low.c (new_inferior): New global variable.
19443 (linux_create_inferior, linux_attach): Set it.
19444 (linux_wait_for_process): Call the_low_target.arch_setup after the
19445 target has stopped for the first time.
19446 (initialize_low): Do not call the_low_target.arch_setup.
19447
19448 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19449 (s390_set_pc): Likewise.
19450 (s390_arch_setup): New function.
19451 (the_low_target): Use s390_arch_setup as arch_setup routine.
19452
19453 * regcache.c (realloc_register_cache): New function.
19454 (set_register_cache): Call it for each existing regcache.
19455
d05b4ac3
UW
194562008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19457
19458 * server.h (init_registers): Remove prototype.
19459
19460 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19461 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19462 instead of init_registers ().
19463 * linux-arm-low.c (init_registers_arm): Add prototype.
19464 (init_registers_arm_with_iwmmxt): Likewise.
19465 (the_low_target): Add initializer for arch_setup field.
19466 * linux-cris-low.c (init_registers_cris): Add prototype.
19467 (the_low_target): Add initializer for arch_setup field.
19468 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19469 (the_low_target): Add initializer for arch_setup field.
19470 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19471 (the_low_target): Add initializer for arch_setup field.
19472 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19473 (the_low_target): Add initializer for arch_setup field.
19474 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19475 (the_low_target): Add initializer for arch_setup field.
19476 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19477 (the_low_target): Add initializer for arch_setup field.
19478 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19479 (init_registers_mips64_linux): Likewise.
19480 (the_low_target): Add initializer for arch_setup field.
19481 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19482 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19483 (the_low_target): Add initializer for arch_setup field.
19484 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19485 (init_registers_powerpc_64): Likewise.
19486 (the_low_target): Add initializer for arch_setup field.
19487 * linux-s390-low.c (init_registers_s390): Add prototype.
19488 (init_registers_s390x): Likewise.
19489 (the_low_target): Add initializer for arch_setup field.
19490 * linux-sh-low.c (init_registers_sh): Add prototype.
19491 (the_low_target): Add initializer for arch_setup field.
19492 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19493 (the_low_target): Add initializer for arch_setup field.
19494 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19495 (the_low_target): Add initializer for arch_setup field.
19496
19497 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19498 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19499 instead of init_registers ().
19500 * win32-arm-low.c (init_registers_arm): Add prototype.
19501 (the_low_target): Add initializer for arch_setup field.
19502 * win32-i386-low.c (init_registers_i386): Add prototype.
19503 (the_low_target): Add initializer for arch_setup field.
19504
19505 * spu-low.c (init_registers_spu): Add prototype.
19506 (initialize_low): Call initialie_registers_spu () instead of
19507 initialize_registers ().
19508
fd96d250
PA
195092008-02-19 Pedro Alves <pedro@codesourcery.com>
19510
19511 * server.c (handle_v_requests): When handling the vRun and vAttach
19512 packets, if already debugging a process, don't kill it. Return an
19513 error instead.
19514
d41b6bb4
DJ
195152008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19516
19517 * server.c (handle_query): Correct length check.
19518
5ac588cf
PA
195192008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19520
19521 * win32-low.c (do_initial_child_stuff): Add process handle
19522 parameter. Set current_process_handle and current_process_id from the
19523 parameters. Clear globals.
19524 (win32_create_inferior): Don't set current_process_handle and
19525 current_process_id here. Instead pass them on the call to
19526 do_initial_child_stuff.
19527 (win32_attach): Likewise.
19528 (win32_clear_inferiors): New.
19529 (win32_kill): Don't close the current process handle or the
19530 current thread handle here. Instead call win32_clear_inferiors.
19531 (win32_detach): Don't open a new handle to the process. Call
19532 win32_clear_inferiors.
19533 (win32_join): Don't rely on current_process_handle; open a new
19534 handle using the process id.
19535 (win32_wait): Call win32_clear_inferiors when the inferior process
19536 has exited.
19537
ecd7ecbc
DJ
195382008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
19539
19540 * server.c (monitor_show_help): Add "exit".
19541
1525d545
MG
195422008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
19543
ecd7ecbc 19544 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
19545 (clean): Add reg-xtensa.c.
19546 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
19547 * configure.srv (xtensa*-*-linux*) New target.
19548 * linux-xtensa-low.c: New.
19549 * xtensa-xtregs.c: New.
1525d545 19550
59a016f0
PA
195512008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
19552
19553 * hostio.c: Don't include errno.h.
19554 (errno_to_fileio_errno): Move to hostio-errno.
19555 * hostio.c: (hostio_error): Remove the error parameter. Defer the
19556 error number outputting to the target->hostio_last_error callback.
19557 (hostio_packet_error): Use FILEIO_EINVAL directly.
19558 (handle_open, handle_pread, hostio_error, handle_unlink): Update
19559 calls to hostio_error.
19560 * hostio-errno.c: New.
19561 * server.h (hostio_last_error_from_errno): Declare.
19562 * target.h (target_ops): Add hostio_last_error member.
19563 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
19564 as hostio_last_error handler.
889bf7c5 19565 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
19566 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
19567 (wince_hostio_last_error): New functions.
19568 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
19569 as hostio_last_error handler.
19570 (win32_target_ops) [!_WIN32_WCE]: Register
19571 hostio_last_error_from_errno as hostio_last_error handler.
19572 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
19573 (hostio-errno.o): New rule.
19574 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
19575 * configure.srv (srv_hostio_err_objs): New variable. Default to
19576 hostio-errno.o.
19577 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
19578 * configure: Regenerate.
19579
2d717e4f
DJ
195802008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19581
19582 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
19583 (linux_kill, linux_detach): Clean up the process list.
19584 * remote-utils.c (remote_open): Improve port number parsing.
19585 (putpkt_binary, input_interrupt): Only send interrupts if the target
19586 is running.
19587 * server.c (extended_protocol): Make static.
19588 (attached): Define earlier.
19589 (exit_requested, response_needed, program_argv): New variables.
19590 (target_running): New.
19591 (start_inferior): Clear attached here.
19592 (attach_inferior): Set attached here.
19593 (require_running): Define.
19594 (handle_query): Use require_running and target_running. Implement
19595 "monitor exit".
19596 (handle_v_attach, handle_v_run): New.
19597 (handle_v_requests): Use require_running. Handle vAttach and vRun.
19598 (gdbserver_usage): Update.
19599 (main): Redo argument parsing. Handle --debug and --multi. Handle
19600 --attach along with other options or after the port. Save
19601 program_argv. Support no initial program. Resynchronize
19602 communication with GDB after an error. Handle "monitor exit".
19603 Use require_running and target_running. Always allow the extended
19604 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
19605 restart in extended mode.
19606 * README: Refer to the GDB manual. Update --attach usage.
19607
7407e2de
AS
196082007-12-20 Andreas Schwab <schwab@suse.de>
19609
19610 * linux-low.c (STACK_SIZE): Define.
19611 (linux_tracefork_child): Use it. Use __clone2 on ia64.
19612 (linux_test_for_tracefork): Likewise.
19613
b65d95c5
DJ
196142007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
19615
19616 * linux-low.c (linux_wait_for_event): Update messages. Do not
19617 reinsert auto-delete breakpoints.
19618 * mem-break.c (struct breakpoint): Change return type of handler to
19619 int.
19620 (set_breakpoint_at): Update handler type.
19621 (reinsert_breakpoint_handler): Return 1 instead of calling
19622 delete_breakpoint.
19623 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
19624 setting a new one.
19625 (check_breakpoints): Delete auto-delete breakpoints and return 2.
19626 * mem-break.h (set_breakpoint_at): Update handler type.
19627 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
19628 * win32-low.c (auto_delete_breakpoint): New.
19629 (get_child_debug_event): Use it.
19630
4e799345
DJ
196312007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
19632
19633 * configure.ac: Check for pread and pwrite.
19634 * hostio.c (handle_pread): Fall back to lseek and read.
19635 (handle_pwrite): Fall back to lseek and write.
19636 * config.in, configure: Regenerated.
19637
27524b67
DJ
196382007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
19639
19640 * server.c (myresume): Add own_buf argument.
19641 (main): Update calls.
19642
a20d5e98
DJ
196432007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
19644
19645 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
19646 * remote-utils.c (remote_open): Do not call disable_async_io.
19647 (block_async_io): Delete.
19648 (unblock_async_io): Make static.
19649 (initialize_async_io): New.
19650 * server.c (handle_v_cont): Handle async I/O here.
19651 (myresume): Likewise. Move other common resume tasks here...
19652 (main): ... from here. Call initialize_async_io. Disable async
19653 I/O before the main loop.
19654 * server.h (initialize_async_io): Declare.
19655 (block_async_io, unblock_async_io): Delete prototypes.
19656 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
19657
b79d787e
DJ
196582007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
19659
19660 * remote-utils.c (readchar): Allow binary data in received messages.
19661
d97903b2
PA
196622007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19663
19664 * win32-low.c (attaching): New global.
19665 (win32_create_inferior): Clear the `attaching' global.
19666 (win32_attach): Set the `attaching' global.
19667 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
19668 attaching. Only set a breakpoint at the entry point if not
19669 attaching.
19670
311de423
PA
196712007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19672
19673 * server.c (main): Don't report dll events on the initial
19674 connection on attaches.
19675
6c2d16d2
PA
196762007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19677
19678 * server.c (main): Relax numerical bases supported for the pid of
19679 the --attach command line argument.
19680
5ca906e6
PA
196812007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19682
19683 * win32-low.c (win32_attach): Call OpenProcess before
19684 DebugActiveProcess, not after. Add last error output to error
19685 call.
19686
9c6c8194
PA
196872007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19688
19689 * win32-low.c (win32_get_thread_context)
19690 (win32_set_thread_context): New functions.
19691 (thread_rec): Use win32_get_thread_context.
19692 (continue_one_thread, win32_resume): Use win32_set_thread_context.
19693 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
19694 field.
19695
4d5d1aaa
PA
196962007-12-03 Leo Zayas
19697 Pedro Alves <pedro_alves@portugalmail.pt>
19698
19699 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
19700 global variables.
19701 (child_add_thread): Minor cleanup.
19702 (child_continue): Resume artificially suspended threads before
19703 calling ContinueDebugEvent.
19704 (suspend_one_thread): New.
19705 (fake_breakpoint_event): New.
19706 (get_child_debug_event): Change return type to int. Check here if
19707 gdb sent an interrupt request. If a soft interrupt was requested,
19708 fake a breakpoint event. Return 0 if there is no event to handle,
19709 and 1 otherwise.
19710 (win32_wait): Don't check here if gdb sent an interrupt request.
19711 Ensure there is a valid event to handle.
19712 (win32_request_interrupt): Add soft interruption method as last
19713 resort.
19714
c436e841
PA
197152007-12-03 Leo Zayas
19716 Pedro Alves <pedro_alves@portugalmail.pt>
19717
19718 * win32-low.h (win32_thread_info): Add descriptions to the
19719 structure members. Replace `suspend_count' counter by a
19720 `suspended' flag.
19721 * win32-low.c (thread_rec): Update condition of when to get the
19722 context from the inferior. Rely on ContextFlags being set if it
19723 has already been retrieved. Only suspend the inferior thread if
19724 we haven't already. Warn if that fails.
19725 (continue_one_thread): s/suspend_count/suspended/. Only call
19726 ResumeThread once. Warn if that fails.
19727
e7b5fa67
PA
197282007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
19729
19730 * win32-low.c (win32_wait): Don't read from the inferior when it
19731 has already exited.
19732
a385171d
PA
197332007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
19734
19735 * Makefile.in (win32_low_h): New variable.
19736 (win32-low.o): Add dependency on $(win32_low_h).
19737 (win32-arm-low.o, win32-i386-low.o): New rules.
19738
f80c84b3
DJ
197392007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
19740
19741 * hostio.c: Correct copyright year.
19742
a6b151f1
DJ
197432007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
19744
19745 * Makefile.in (OBS): Add hostio.o.
19746 (hostio.o): New rule.
19747 * server.h (handle_vFile): Declare.
19748 * hostio.c: New file.
19749 * server.c (handle_v_requests): Take packet_len and new_packet_len
19750 for binary packets. Call handle_vFile.
19751 (main): Update call to handle_v_requests.
19752
f9387fc3
DJ
197532007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
19754
19755 * linux-low.c: Include <sched.h>.
19756
51c2684e
DJ
197572007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
19758
19759 * linux-low.c (linux_tracefork_grandchild): New.
19760 (linux_tracefork_child): Use clone.
19761 (linux_test_for_tracefork): Use clone; allocate and free a stack.
19762
75f83163
JB
197632007-10-31 Joel Brobecker <brobecker@adacore.com>
19764
19765 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
19766
da5898ce
DJ
197672007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
19768
19769 * linux-low.c (handle_extended_wait): Handle unexpected signals.
19770
24a09b5f
DJ
197712007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
19772
19773 * inferiors.c (change_inferior_id): Delete.
19774 (add_pid_to_list, pull_pid_from_list): New.
19775 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
19776 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
19777 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
19778 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
19779 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
19780 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
19781 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
19782 (using_threads): Always set to 1.
19783 (handle_extended_wait): New.
19784 (add_process): Do not set TID.
19785 (linux_create_inferior): Set must_set_ptrace_flags.
19786 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
19787 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
19788 (linux_thread_alive): Rename TID argument to LWPID.
19789 (linux_wait_for_process): Handle unknown processes. Do not use TID.
19790 (linux_wait_for_event): Do not use TID or check using_threads. Update
19791 call to dead_thread_notify. Call handle_extended_wait.
19792 (linux_create_inferior): Use PTRACE_SETOPTIONS.
19793 (send_sigstop): Delete sigstop_sent.
19794 (wait_for_sigstop): Avoid TID.
19795 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
19796 (linux_test_for_tracefork): New.
19797 (linux_lookup_signals): Use thread_db_active and
19798 linux_supports_tracefork_flag.
19799 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
19800 * linux-low.h (get_process_thread): Avoid TID.
19801 (struct process_ifo): Move thread_known and tid to the end. Remove
19802 sigstop_sent.
19803 (linux_attach_lwp, thread_db_init): Update prototypes.
19804 * server.h (change_inferior_id): Delete prototype.
19805 (add_pid_to_list, pull_pid_from_list): New prototypes.
19806 * thread-db.c (thread_db_use_events): New.
19807 (find_first_thread): Rename to...
19808 (find_one_thread): ...this. Update callers and messages. Do not
19809 call fatal. Check thread_db_use_events. Do not call
19810 change_inferior_id or new_thread_notify.
19811 (maybe_attach_thread): Update. Do not call new_thread_notify.
19812 (thread_db_init): Set thread_db_use_events. Check use_events.
19813 * utils.c (fatal, warning): Correct message prefix.
19814
30ed0a8f
DJ
198152007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
19816
19817 * Makefile.in (clean): Remove new files.
19818 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
19819 (powerpc-64.o, powerpc-64.c): New rules.
19820 * configure.srv: Use alternate register sets for powerpc64-*-linux*
19821 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
19822 with SPE.
19823 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
19824 SPE targets.
19825 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
19826 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
19827 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
19828 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
19829 (target_regsets): Add AltiVec and SPE register sets.
19830 * configure.ac: Check for AltiVec and SPE.
19831 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
19832 (ppc_fill_vrregset, ppc_store_vrregset): New.
19833 (target_regsets): Add AltiVec register set.
19834 * configure: Regenerated.
19835
fd462a61
DJ
198362007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
19837
19838 * linux-low.c (O_LARGEFILE): Define.
19839 (linux_read_memory): Use /proc/PID/mem.
19840 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
19841 * configure, config.in: Regenerated.
19842
69f223ed
DJ
198432007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19844
19845 * linux-low.c (linux_wait_for_event): Do not pass signals while
19846 single-stepping.
19847
aec18585
PA
198482007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
19849
19850 * win32-low.c (create_process): New.
19851 (win32_create_inferior): Use create_process instead of
19852 CreateProcess. If create_process failed retry appending an ".exe"
19853 suffix. Store the GetLastError result immediatelly after
19854 create_process calls and use it on the call to error.
19855
34d86ddd
PA
198562007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
19857
19858 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
19859
5a0e3bd0
JB
198602007-08-23 Joel Brobecker <brobecker@adacore.com>
19861
19862 * configure.ac: Switch license to GPLv3.
19863
f88c79e6
MS
198642007-08-01 Michael Snyder <msnyder@access-company.com>
19865
19866 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
19867
6b3d9b83
PA
198682007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
19869
19870 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
19871 typedef.
19872 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
19873 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
19874 CloseToolhelp32Snapshot.
19875 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
19876 CloseToolhelp32Snapshot.
19877
c588c53c
MS
198782007-07-27 Michael Snyder <michael.snyder@access-company.com>
19879
19880 * server.c (main): Check for inferior exit before main loop.
19881
aa0403d9
PA
198822007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
19883
19884 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
19885 instead of on tmp_desc.
19886
255e7678
DJ
198872007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
19888 Daniel Jacobowitz <dan@codesourcery.com>
19889
19890 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
19891 (add_thread): Minor cleanups.
19892 (clear_inferiors): Move lower in the file. Clear the DLL
19893 list.
19894 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
19895 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
19896 (xml_escape_text): New.
19897 * server.c (handle_query): Handle qXfer:libraries:read. Report it
19898 for qSupported.
19899 (handle_v_cont): Report errors.
19900 (gdbserver_version): Update.
19901 (main): Correct size of own_buf. Do not report initial DLL events.
19902 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
19903 (unloaded_dll, xml_escape_text): New.
19904 * win32-low.c (enum target_waitkind): Update comments.
19905 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
19906 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
19907 (win32_EnumProcessModules, win32_GetModuleInformation)
19908 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
19909 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
19910 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
19911 (win32_Module32First, win32_Module32Next, load_toolhelp)
19912 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
19913 (get_child_debug_event): Handle DLL events.
19914 (win32_wait): Likewise.
19915
0d37add9
DJ
199162007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
19917
19918 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
19919 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
19920
45e2715e
PA
199212007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
19922
19923 * win32-low.c (handle_output_debug_string): Ignore event if not
19924 waiting.
19925
c5674cf1
PA
199262007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
19927
19928 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
19929
2bbe3cc1
DJ
199302007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
19931
19932 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
19933
ae13219e
DJ
199342007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
19935
19936 * inferiors.c (change_inferior_id): Add comment.
19937 * linux-low.c (check_removed_breakpoint): Add an early
19938 prototype. Improve debug output.
19939 (linux_attach): Doc update.
19940 (linux_detach_one_process, linux_detach): Clean up before releasing
19941 each process.
19942 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
19943 * linux-low.h (struct process_info): Doc improvement.
19944 * mem-break.c (delete_all_breakpoints): New.
19945 * mem-break.h (delete_all_breakpoints): New prototype.
19946 * thread-db.c (find_first_thread): New.
19947 (thread_db_create_event): Call it instead of
19948 thread_db_find_new_threads. Clean up unused variables.
19949 (maybe_attach_thread): Remove first thread handling.
19950 (thread_db_find_new_threads): Use find_first_thread.
19951 (thread_db_get_tls_address): Likewise.
19952
4105de34
DJ
199532007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
19954
19955 * thread-db.c (thread_db_find_new_threads): Add prototype.
19956 (thread_db_create_event): Check for the main thread before adding
19957 a new thread.
19958 (maybe_attach_thread): Only enable event reporting if TID == 0.
19959 (thread_db_get_tls_address): Check for new threads.
19960
2b876972
DJ
199612007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
19962
19963 * linux-low.c (linux_create_inferior): Try execv before execvp.
19964 * spu-low.c (spu_create_inferior): Likewise.
19965
7a245884
DJ
199662007-06-13 Mike Frysinger <vapier@gentoo.org>
19967
19968 * linux-low.c (linux_create_inferior): Change execv to execvp.
19969 * spu-low.c (spu_create_inferior): Likewies.
19970
117ce543
DJ
199712007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
19972
19973 * Makefile.in (clean): Clean new files instead of deleted ones.
19974 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
19975 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
19976 rules.
19977 * configure.srv: Specify XML files and new regformats for MIPS and
19978 MIPS64 GNU/Linux.
19979 * linux-mips-low.c (mips_num_regs): Set to only used registers.
19980 (mips_regmap): Do not fetch $0. Remove unused registers. Add
19981 an entry for the restart register.
19982 (mips_cannot_fetch_register, mips_cannot_store_register)
19983 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
19984 register names to match the XML descriptions.
19985 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
19986 restart register instead of $0.
19987
0e7f50da
UW
199882007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
19989 Markus Deuling <deuling@de.ibm.com>
19990
19991 * remote-utils.c (decode_xfer_write): New function.
19992 * server.h (decode_xfer_write): Add prototype.
19993 * server.c (handle_query): Add PACKET_LEN argument. Support
19994 qXfer:spu:read and qXfer:spu:write packets.
19995 (main): Pass packet_len to handle_query.
19996 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
19997 * target.h (target_ops): Add qxfer_spu.
19998
374c1d38
UW
199992007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20000
20001 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20002 accessing non-seekable spufs files.
20003
bb63802a
UW
200042007-05-16 Markus Deuling <deuling@de.ibm.com>
20005
889bf7c5 20006 * server.c (handle_query): Add reply for qC packet.
bb63802a 20007
7390519e
PA
200082007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20009 Leo Zayas <lerele@champenstudios@com>
20010
20011 * server.h (check_remote_input_interrupt_request): New function.
20012 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20013 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20014 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20015 (check_remote_input_interrupt_request): New function.
20016 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20017 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20018 winapi_GenerateConsoleCtrlEvent): New typedefs.
20019 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20020 to 250 ms.
20021 (win32_wait): Check for remote interrupt request
20022 with check_remote_input_interrupt_request.
20023 (win32_request_interrupt): New function.
20024 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20025
34b34921
PA
200262007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20027
20028 * win32-low.c (debug_registers_changed,
20029 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20030 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20031 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20032 (thread_rec): Get context using the low target.
20033 (child_add_thread): Call thread_added on the low target,
20034 which does the same thing.
20035 (regptr): Delete.
20036 (do_initial_child_stuff): Remove debug registers references.
20037 Set context using the low target. Resume threads after
20038 setting the contexts.
20039 (child_continue): Remove dead variable. Remove debug
20040 registers references.
20041 (child_fetch_inferior_registers): Go through the low target.
20042 (do_child_store_inferior_registers): Remove.
20043 (child_store_inferior_registers): Go through the low target.
20044 (win32_resume): Remove debug registers references.
20045 Set context using the low target.
20046 (handle_exception): Change return type to void. Don't record
20047 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20048 first chance exception.
889bf7c5 20049 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20050 goto loop. Always return after waiting for debug event.
20051 (win32_wait): Convert to switch statement. Handle spurious
20052 events.
20053
20054 * win32-i386-low.c (debug_registers_changed,
20055 debug_registers_used): New.
20056 (initial_stuff): Rename to ...
20057 (i386_initial_stuff): ... this. Clear debug registers
20058 state variables.
20059 (store_debug_registers): Delete.
20060 (i386_get_thread_context): New.
20061 (load_debug_registers): Delete.
20062 (i386_set_thread_context): New.
20063 (i386_thread_added): New.
20064 (single_step): Rename to ...
20065 (i386_single_step): ... this.
20066 (do_fetch_inferior_registers): Rename to ...
20067 (i386_fetch_inferior_register): ... this.
20068 (i386_store_inferior_register): New.
20069 (the_low_target): Adapt to new interface.
20070
20071 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20072 (arm_get_thread_context): New.
20073 (arm_set_thread_context): New.
20074 (regptr): New.
20075 (do_fetch_inferior_registers): Rename to ...
20076 (arm_fetch_inferior_register): ... this.
20077 (arm_store_inferior_register): New.
20078 (arm_wince_breakpoint): Reimplement as unsigned long.
20079 (arm_wince_breakpoint_len): Define.
20080 (the_low_target): Adapt to new interface.
20081
20082 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20083 load_debug_registers. Add get_thread_context, set_thread_context,
20084 thread_added and store_inferior_register. Rename
20085 fetch_inferior_registers to fetch_inferior_register.
20086 (regptr): Remove declaration.
20087
dd6953e1
PA
200882007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20089
20090 * linux-low.c (linux_detach): Change return type to int. Return 0.
20091 * spu-low.c (spu_detach): Likewise.
20092
444d6139
PA
200932007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20094
20095 * target.h (target_ops): Change return type of detach to int.
20096 Add join.
20097 (join_inferior): New.
20098 * server.c (main): Don't skip detach support on mingw32.
20099 If the inferior doesn't support detaching return error.
20100 Call join_inferior instead of using waitpid.
20101 * linux-low.c (linux_join): New.
20102 (linux_target_op): Add linux_join.
20103 * spu-low.c (spu_join): New.
20104 (spu_target_ops): Add spu_join.
20105 * win32-low.c (win32_detach): Adapt to new interface.
20106 Reopen current_process_handle before detaching. Issue a child
20107 resume before detaching.
20108 (win32_join): New.
20109 (win32_target_op): Add win32_join.
20110
1d5315fe
PA
201112007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20112
20113 * win32-low.c (win32-attach): Fix return value.
20114 * target.h (target_ops): Describe ATTACH return values.
20115
bf914831
PA
201162007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20117
20118 * win32-low.c (GETPROCADDRESS): Define.
20119 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20120 (winapi_DebugSetProcessKillOnExit): Likewise.
20121 (win32_create_inferior): Force usage of ansi CreateProcessA.
20122 (win32_attach): Use GETPROCADDRESS.
20123 (win32_detach): Likewise.
20124
f72f3e60
PA
201252007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20126
20127 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20128
ed50f18f
PA
201292007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20130
20131 * win32-low.c: Commit leftover changes from 2007-03-29.
20132
0c2ead7e
DJ
201332007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20134
20135 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20136 fields short instead of int. Add explicit padding.
20137 (i387_cache_to_fsave): Remove unnecessary casts.
20138 (i387_fsave_to_cache): Doc fix.
20139 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20140
73725ff3
DJ
201412007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20142
20143 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20144 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20145
d99f33d8
PA
201462007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20147
20148 * configure.srv (arm*-*-mingw32ce*): Move near the other
20149 arm targets.
20150
68070c10
PA
201512007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20152
2482afc6 20153 * configure.ac: Add errno checking.
68070c10
PA
20154 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20155 sys/file.h and malloc.h.
20156 (AC_CHECK_DECLS): Add perror.
20157 (srv_mingwce): Handle.
2482afc6 20158 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20159 win32-i386-low.o to srv_tgtobj.
20160 (i[34567]86-*-mingw*): Likewise.
20161 (arm*-*-mingw32ce*): Add case.
20162 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20163 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20164 [__MINGW32CE__] (strerror): New function.
20165 [__MINGW32CE__] (errno): Define to GetLastError.
20166 [__MINGW32CE__] (COUNTOF): New macro.
20167 (remote_open): Remove extra close call.
20168 * mem-break.c (delete_breakpoint_at): New function.
20169 * mem-break.h (delete_breakpoint_at): Declare.
20170 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20171 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20172 [USE_WIN32API] (read, write): Add char* casts.
20173 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20174 * server.h: Include wincecompat.h on Windows CE.
20175 [HAVE_ERRNO_H]: Check.
20176 (perror): Declare if not declared.
20177 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20178 (perror_with_name): Remove errno declaration.
20179 * wincecompat.h: New.
20180 * wincecompat.c: New.
20181 * win32-low.h: New.
20182 * win32-arm-low.c: New.
20183 * win32-i386-low.c: New.
20184 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20185 (OUTMSG2): Make it safe.
20186 (_T): New macro.
20187 (COUNTOF): New macro.
20188 (NUM_REGS): Get it from the low target.
20189 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20190 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20191 (thread_rec): Let low target handle debug registers.
20192 (child_add_thread): Likewise.
20193 (child_init_thread_list): Likewise.
20194 (continue_one_thread): Likewise.
20195 (regptr): New.
20196 (do_child_fetch_inferior_registers): Move to ...
20197 * win32-i386-low.c: ... here, and rename to ...
20198 (do_fetch_inferior_registers): ... this.
889bf7c5 20199 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20200 Go through the low target.
20201 (do_child_store_inferior_registers): Use regptr.
20202 (strwinerror): New function.
20203 (win32_create_inferior): Handle Windows CE.
20204 Use strwinerror instead of strerror on Windows error
20205 codes. Add program to the error output.
20206 Don't close the main thread handle on Windows CE.
20207 (win32_attach): Use coredll.dll on Windows CE.
20208 (win32_kill): Close current process and current
20209 thread handles.
20210 (win32_detach): Use coredll.dll on Windows CE.
20211 (win32_resume): Let low target handle debug registers, and
20212 step request.
20213 (handle_exception): Add/Remove initial breakpoint. Avoid
20214 non-existant WSTOPSIG on Windows CE.
20215 (win32_read_inferior_memory): Cast to remove warning.
20216 (win32_arch_string): Go through the low target.
20217 (initialize_low): Call set_breakpoint_data with the low
20218 target's breakpoint.
20219 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20220 FOP_REGNUM, mappings): Move to ...
20221 * win32-i386-low.c: ... here.
20222 * win32-low.c (win32_thread_info): Move to ...
20223 * win32-low.h: ... here.
20224 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20225 win32-arm-low.c and wincecompat.c.
20226 (all:): Add $EXEEXT.
20227 (install-only:): Likewise.
20228 (gdbserver:): Likewise.
20229 (gdbreplay:): Likewise.
20230 * config.in: Regenerate.
20231 * configure: Regenerate.
20232
41093d81
PA
202332007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20234
20235 * win32-low.c: Rename typedef thread_info to
20236 win32_thread_info throughout.
20237
544afa54
PA
202382007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20239
20240 * win32-i386-low.c: Rename to ...
20241 * win32-low.c: ... this.
20242 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20243 * Makefile.in: Likewise.
20244
bce7165d
PA
202452007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20246
20247 * remote-utils.c (monitor_output): Constify msg parameter.
20248 * server.h (monitor_output): Likewise.
20249 * win32-i386-low.c (handle_output_debug_string): New.
20250 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20251 handle_output_debug_string.
20252 (get_child_debug_event): Likewise.
20253
506c7aa0
DJ
202542007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20255
20256 * server.c (main): Correct strtoul check.
20257
42c81e2a
DJ
202582007-03-27 Jon Ringle <jon@ringle.org>
20259
20260 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20261
9453113a
DJ
202622007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20263
20264 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20265
64a69107
DJ
202662007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20267
20268 * terminal.h: Check HAVE_SGTTY_H.
20269
202702007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
20271
20272 * remote-utils.c (remote_open): Print out the assigned port number.
20273
c74d0ad8
DJ
202742007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20275
20276 * remote-utils.c (monitor_output): New function.
20277 * server.c (debug_threads): Define here.
20278 (monitor_show_help): New function.
20279 (handle_query): Handle qRcmd.
20280 (main): Do not handle 'd' packet.
20281 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20282 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20283 of debug_threads.
20284
de7c3b4a
PA
202852007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20286
20287 * Makefile.in (EXEEXT): New.
20288 (clean): Use $(EXEEXT).
20289
ef57601b
PA
202902007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20291
20292 * target.h (target_ops): Rename send_signal to request_interrupt,
20293 and remove enum target_signal parameter.
20294 * linux-low.c (linux_request_interrupt): Rename from
20295 linux_send_signal, and always send SIGINT.
20296 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20297 and always send SIGINT.
20298 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20299 of send_signal.
20300 (input_interrupt): Likewise.
20301
820f2bda
PA
203022007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20303
20304 * server.c (get_features_xml): Check if target implemented
20305 arch_string.
20306 * win32-i386-low.c (win32_arch_string): New.
20307 (win32_target_ops): Add win32_arch_string as arch_string member.
20308
ab39bf24
UW
203092007-02-22 Markus Deuling <deuling@de.ibm.com>
20310
20311 * spu-low.c (spu_arch_string): New.
20312 (spu_target_ops): Add spu_arch_string.
20313
61ff6e04
DJ
203142007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20315
20316 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20317 * configure.ac: Do not check for terminal.h.
20318 * configure, config.in: Regenerated.
20319
fb1e4ffc
DJ
203202007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20321
20322 * Makefile.in (OBS): Add $(XML_BUILTIN).
20323 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20324 (clean): Update.
20325 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20326 (arm-with-iwmmxt.c): New.
20327 * config.in, configure: Regenerate.
20328 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20329 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20330 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20331 (arm*-*-linux*): Add iWMMXt and regset support.
20332 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20333 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20334 (arm_store_wmmxregset, target_regsets): New.
20335 * server.c (get_features_xml): Take annex argument. Check builtin
20336 XML documents.
20337 (handle_query): Handle multiple annexes.
20338
0f48aa01
DJ
203392007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20340
20341 * remote-utils.c [USE_WIN32API] (read, write): Define.
20342 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20343 write.
20344
23181151
DJ
203452007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20346
20347 * linux-i386-low.c (the_low_target): Set arch_string.
20348 * linux-x86-64-low.c (the_low_target): Likewise.
20349 * linux-low.c (linux_arch_string): New.
20350 (linux_target_ops): Add it.
20351 * linux-low.h (struct linux_target_ops): Add arch_string.
20352 * server.c (write_qxfer_response): Use const void * for DATA.
20353 (get_features_xml): New.
20354 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20355 * target.h (struct target_ops): Add arch_string method.
20356
9d606399
DJ
203572007-01-03 Denis Pilat <denis.pilat@st.com>
20358 Daniel Jacobowitz <dan@codesourcery.com>
20359
20360 * linux-low.c (linux_kill): Handle being called with no threads.
20361 * win32-i386-low.c (win32_kill): Likewise.
20362 (get_child_debug_event): Clear current_process_handle.
20363
203642006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
20365 Daniel Jacobowitz <dan@codesourcery.com>
20366
20367 * remote-utils.c (remote_open): Check the type of specified
20368 serial port devices before opening them.
20369 * server.c (main): Kill the inferior if an error occurs during
20370 the first remote_open.
20371
a5e13d24
DJ
203722006-12-05 Markus Deuling <deuling@de.ibm.com>
20373
20374 * README: Update supported targets.
20375
186947f7
DJ
203762006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20377
20378 * Makefile.in (clean): Remove reg-mips64.c.
20379 (reg-mips64.c, reg-mips64.o): New rules.
20380 * configure.srv: Handle mips64. Include regset support for mips.
20381 * linux-mips-low.c (union mips_register): New.
20382 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20383 (mips_breakpoint, mips_breakpoint_at): Use int.
20384 (mips_collect_register, mips_supply_register)
20385 (mips_collect_register_32bit, mips_supply_register_32bit)
20386 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20387 (mips_store_fpregset, target_regsets): New.
20388 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20389
a13e2c95
UW
203902006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20391
20392 * configure.srv: Add target "spu*-*-*".
20393 * Makefile.in (clean): Remove reg-spu.c.
20394 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20395 * spu-low.c: New file.
20396
cb7283db
DJ
203972006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20398
20399 * configure.ac: Correct td_thr_tls_get_addr test.
20400 * configure: Regenerated.
20401
89be2091
DJ
204022006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20403
20404 * linux-low.c (linux_wait_for_event): Reformat. Use the
20405 pass_signals array.
20406 * remote-utils.c (decode_address_to_semicolon): New.
20407 * server.c (pass_signals, handle_general_set): New.
20408 (handle_query): Mention QPassSignals for qSupported.
20409 (main): Call handle_general_set.
20410 * server.h (pass_signals, decode_address_to_semicolon): New.
20411
000ef4f0
DJ
204122006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20413
20414 * server.c (handle_query): Correct error handling for read_auxv.
20415
b7149293
UW
204162005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20417
20418 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20419 and srv_linux_thread_db to yes.
20420 * linux-s390-low.c (s390_fill_gregset): New function.
20421 (target_regsets): Define data structure.
20422
dae5f5cf
DJ
204232006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20424
20425 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20426 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20427 * config.in, configure: Regenerated.
20428 * inferiors.c (gdb_id_to_thread): New function.
20429 (gdb_id_to_thread_id): Use it.
20430 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20431 * linux-low.h (struct process_info): Add th member.
20432 (thread_db_get_tls_address): New prototype.
20433 * remote-utils.c (decode_address): Make non-static.
20434 * server.c (handle_query): Handle qGetTLSAddr.
20435 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20436 * target.h (struct target_ops): Add get_tls_address.
20437 * thread-db.c (maybe_attach_thread): Save the thread handle.
20438 (thread_db_get_tls_address): New.
20439
32ca6d61
DJ
204402006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20441
20442 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20443 (linux_resume_one_process): Take a siginfo_t *. Update all
20444 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20445 (struct pending_signals): Add a siginfo_t.
20446 (linux_wait_for_process): Always set last_status.
20447 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20448 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20449 * linux-low.h (struct process_info): Add last_status.
20450
5ffff7c1
DJ
204512006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20452
20453 * remote-utils.c (try_rle): New function.
20454 (putpkt_binary): Use it.
20455
8695c747
DJ
204562006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20457
20458 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20459 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20460 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20461 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20462 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20463 point registers.
20464
290fadea
RS
204652006-08-08 Richard Sandiford <richard@codesourcery.com>
20466
20467 * server.c (terminal_fd): New variable.
20468 (old_foreground_pgrp): Likewise.
20469 (restore_old_foreground_pgrp): New function.
20470 (start_inferior): Record the terminal file descriptor in terminal_fd
20471 and its original foreground group in old_foreground_pgrp. Register
20472 restore_old_foreground_pgrp with atexit().
20473
9f2e1e63
DJ
204742006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20475
20476 * server.c (handle_query): Correct qPart to qXfer.
20477
b80864fb
DJ
204782006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20479
20480 * configure.ac: Check for more headers which are missing on
20481 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20482 * configure.srv: Add Cygwin and mingw32.
20483 * remote-utils.c: Don't include headers unconditionally which
20484 are missing on mingw32. Include <winsock.h> for mingw32.
20485 (remote_open): Adjust for mingw32 support. Flush
20486 standard error after writing to it.
20487 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20488 (unblock_async_io, enable_async_io, disable_async_io)
20489 (readchar, getpkt): Update for Winsock support.
20490 (prepare_resume_reply): Expect a protocol signal number.
20491 * server.c: Disable <sys/wait.h> on mingw32.
20492 (start_inferior): Adjust for mingw32 support. Flush
20493 standard error after writing to it.
20494 (attach_inferior): Likewise. Use protocol signal
20495 numbers.
20496 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20497 and names.
20498 * win32-i386-low.c: New file.
20499 * Makefile.in (XM_CLIBS): Set.
20500 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20501 (win32-i386-low.o): New dependency rule.
20502 * linux-low.c (linux_wait): Use target signal numbers.
20503 * target.h (struct target_ops): Doc fix.
20504 * server.h (target_signal_to_name): New prototype.
20505 * gdbreplay.c: Don't include headers unconditionally which
20506 are missing on mingw32. Include <winsock.h> for mingw32.
20507 (remote_close, remote_open): Adjust for Winsock support.
20508 * configure, config.in: Regenerated.
20509
0876f84a
DJ
205102006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20511
20512 * server.c (decode_xfer_read, write_qxfer_response): New.
20513 (handle_query): Take a packet length argument. Handle
20514 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20515 the qSupported response.
20516 (main): Update call to handle_query.
20517
01f9e8fa
DJ
205182006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20519
20520 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20521 (putpkt_binary): Renamed from putpkt and adjusted for binary
20522 data.
20523 (putpkt): New wrapper for putpkt_binary.
20524 (readchar): Don't mask off the high bit.
20525 (decode_X_packet): New function.
20526 * server.c (main): Call putpkt_binary if a handler sets the packet
20527 length. Save the length of the incoming packet. Handle 'X'.
20528 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20529
be2a5f71
DJ
205302006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20531
20532 * server.c (handle_query): Handle qSupported.
20533
ea025f5f
DJ
205342006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20535
20536 * remote-utils.c (all_symbols_looked_up): New variable.
20537 (look_up_one_symbol): Check it.
20538 * server.h (look_up_one_symbol): New declaration.
20539 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
20540
9308fc88
DJ
205412006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20542
20543 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 20544 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
20545 (PTRACE_GET_THREAD_AREA): Define.
20546 (ps_get_thread_area): New function.
20547
52fb6437
NS
205482006-05-09 Nathan Sidwell <nathan@codesourcery.com>
20549
20550 * configure.srv (m68k*-*-uclinux*): New target.
20551 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
20552 (linux_resume_one_process): Remove extraneous cast.
20553 (linux_read_offsets): New.
20554 (linux_target_op): Add linux_read_offsets on mmuless systems.
20555 * server.c (handle_query): Add qOffsets logic.
20556 * target.h (struct target_ops): Add read_offsets.
20557
21b0f40c
DJ
205582006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20559
20560 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
20561 (PTRACE_GET_THREAD_AREA): Define.
20562 (ps_get_thread_area): New function.
20563 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
20564 (linux-x86-64-low.o): Update.
20565
0050a760
DJ
205662006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20567
20568 * configure.ac: Remove checks for prfpregset_t.
20569 * gdb_proc_service.h: New file.
20570 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
20571 new "gdb_proc_service.h".
20572 * proc-service.c: Likewise.
20573 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
20574 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
20575 * Makefile.in (gdb_proc_service_h): Updated.
20576 * configure, config.in: Regenerated.
20577
b92a518e
DJ
205782006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20579
20580 * remote-utils.c (prepare_resume_reply): Move declaration
20581 of gdb_id_from_wait to the top of the block.
20582
545587ee
DJ
205832006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
20584
20585 * linux-low.c (regsets_store_inferior_registers): Read the regset
20586 from the target before filling it.
20587
9db87ebd
DJ
205882006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20589
20590 * server.c (attach_inferior): Return SIGTRAP for a successful
20591 attach.
20592
dd24457d
DJ
205932006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
20594
20595 * Makefile.in (OBS): Add version.o.
20596 (STAGESTUFF): Delete.
20597 (version.o): Add dependencies.
20598 (version.c): Replace rule.
20599 (clean): Remove version.c.
20600 * server.c (gdbserver_version): New.
20601 (gdbserver_usage): Use printf.
20602 (main): Handle --version and --help.
20603 * server.h (version, host_name): Add declarations.
20604
6f0f660e
EZ
206052005-12-23 Eli Zaretskii <eliz@gnu.org>
20606
889bf7c5
PA
20607 * linux-arm-low.c:
20608 * linux-arm-low.c:
20609 * inferiors.c:
20610 * i387-fp.h:
20611 * i387-fp.c:
20612 * gdbreplay.c:
20613 * regcache.c:
20614 * proc-service.c:
20615 * mem-break.h:
20616 * mem-break.c:
20617 * linux-x86-64-low.c:
20618 * linux-sh-low.c:
20619 * linux-s390-low.c:
20620 * linux-ppc64-low.c:
20621 * linux-ppc-low.c:
20622 * linux-mips-low.c:
20623 * linux-m68k-low.c:
20624 * linux-m32r-low.c:
20625 * linux-low.h:
20626 * linux-low.c:
20627 * linux-ia64-low.c:
20628 * linux-i386-low.c:
20629 * linux-crisv32-low.c:
20630 * thread-db.c:
20631 * terminal.h:
20632 * target.h:
20633 * target.c:
20634 * server.h:
20635 * server.c:
20636 * remote-utils.c:
20637 * regcache.h:
20638 * utils.c:
20639 * Makefile.in:
20640 * configure.ac:
6f0f660e
EZ
20641 * gdbserver.1: Add (C) after Copyright. Update the FSF
20642 address.
20643
9d1fb177
DJ
206442005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
20645
20646 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
20647 (arm_breakpoint_at): Recognize both breakpoints.
20648 (the_low_target): Use the correct breakpoint instruction.
20649
011a70c2
DJ
206502005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
20651
20652 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
20653 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
20654 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
20655 (the_low_target): Update.
20656
7fb85e41
AS
206572005-10-25 Andreas Schwab <schwab@suse.de>
20658
20659 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
20660
20661 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
20662 (ia64_num_regs): Reduce to 462.
20663
3db0444b
DJ
206642005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
20665
20666 * acinclude.m4: Correct quoting.
20667 * aclocal.m4: Regenerated.
20668
20669 Suggested by SZOKOVACS Robert <szo@ies.hu>:
20670 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
20671 (thread_db_init): Call thread_db_err_str.
20672 * configure.ac: Check for TD_VERSION.
20673 * config.in, configure: Regenerated.
20674
bee0189a
DJ
206752005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20676
20677 * server.h (error, fatal, warning): Add ATTR_FORMAT.
20678
e9d25b98
DJ
206792005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20680
20681 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
20682 is not available. Define HAVE_PTRACE_GETREGS if it is.
20683 * config.in, configure: Regenerated.
20684 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
20685 * linux-i386-low.c, linux-m68k-low.c: Update to use
20686 HAVE_PTRACE_GETREGS.
20687 * linux-low.c (regsets_fetch_inferior_registers)
20688 (regsets_store_inferior_registers): Only return 0 if we processed
20689 GENERAL_REGS.
20690 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
20691 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
20692
a06660f7
DJ
206932005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20694
20695 * inferiors.c (struct thread_info): Add gdb_id.
20696 (add_thread): Add gdb_id argument.
20697 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
20698 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
20699 calls to add_thread.
20700 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
20701 * server.c (handle_query): Use thread_to_gdb_id.
20702 (handle_v_cont, main): Use gdb_id_to_thread_id.
20703 * server.h (add_thread): Update prototype.
20704 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
20705 prototypes.
20706
5a1f5858
DJ
207072005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20708
20709 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
20710 left-padded registers.
20711 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
20712 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
20713
e122f1f5
SE
207142005-07-01 Steve Ellcey <sje@cup.hp.com>
20715
20716 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
20717 * configure: Regenerate.
20718 * config.in: Regenerate.
20719 * server.h (NEED_DECLARATION_STRERROR):
20720 Replace with !HAVE_DECL_STRERROR.
20721
d592fa2f
DJ
207222005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
20723
20724 * linux-low.c (linux_wait, linux_send_signal): Don't test
20725 an unsigned long variable for > 0 if it could be MAX_ULONG.
20726 * server.c (myresume): Likewise.
20727 * target.c (set_desired_inferior): Likewise.
20728
ccbd4912
MK
207292005-06-13 Mark Kettenis <kettenis@gnu.org>
20730
20731 * configure.ac: Simplify and improve check for socklen_t.
20732 * configure, config.in: Regenerate.
20733
f450004a
DJ
207342005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
20735
20736 * acconfig.h: Remove.
20737 * configure.ac: Add a test for socklen_t. Use three-argument
20738 AC_DEFINE throughout.
20739 * config.in: Regenerated using autoheader 2.59.
20740 * configure: Regenerated.
20741
20742 * gdbreplay.c (socklen_t): Provide a default.
20743 (remote_open): Use socklen_t.
20744 * remote-utils.c (socklen_t): Provide a default.
20745 (remote_open): Use socklen_t.
20746 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
20747 unsigned char.
20748
20749 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
20750 char for buffers.
20751 * linux-low.c (linux_read_memory, linux_write_memory)
20752 (linux_read_auxv): Likewise.
20753 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
20754 (check_mem_write): Likewise.
20755 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
20756 Likewise.
20757 * regcache.c (struct inferior_rgcache_data, registers_to_string)
20758 (registers_from_string, register_data): Likewise.
20759 * server.c (handle_query, main): Likewise.
20760 * server.h (convert_ascii_to_int, convert_int_to_ascii)
20761 (decode_M_packet): Likewise.
20762 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
20763 * target.h (struct target_ops): Update read_memory, write_memory,
20764 and read_auxv.
20765 (read_inferior_memory, write_inferior_memory): Update.
20766 * linux-low.h (struct linux_target_ops): Change type of breakpoint
20767 to unsigned char *.
20768 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
20769 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
20770 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
20771 linux-s390-low.c, linux-sh-low.c: Update for changes in
20772 read_inferior_memory and the_low_target->breakpoint.
20773
eee84df1
DJ
207742005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
20775
20776 * Makefile.in (SFILES): Add linux-ppc64-low.c.
20777 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
20778 * configure.srv: Add powerpc64-*-linux*.
20779 * linux-ppc64-low.c: New file.
20780
45b134e5
OF
207812005-05-23 Orjan Friberg <orjanf@axis.com>
20782
20783 * linux-cris-low.c: New file with support for CRIS.
20784 * linux-crisv32-low.c: Ditto for CRISv32.
20785 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
20786 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 20787 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
20788 reg-crisv32.o, and reg-crisv32.c to make rules.
20789 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
20790 recognized targets.
20791
48d93c75
UW
207922005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
20793
20794 * linux-low.c (fetch_register): Ensure buffer size is a multiple
20795 of sizeof (PTRACE_XFER_TYPE).
20796 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
20797
e013ee27
OF
207982005-05-12 Orjan Friberg <orjanf@axis.com>
20799
889bf7c5 20800 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
20801 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
20802 pointers for hardware watchpoint support.
20803 * linux-low.h (struct linux_target_ops): Ditto.
20804 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
20805 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
20806 to linux_target_ops.
20807 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
20808 reply packet.
20809 * server.c (main): Recognize 'Z' and 'z' packets.
20810
b0ded00b
UW
208112005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
20812
20813 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
20814 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
20815 (the_low_target): Add new members.
20816
8643e2ad
DJ
208172005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
20818
20819 * proc-service.c (ps_lgetregs): Search all_processes instead of
20820 all_threads.
20821
fc620387
DJ
208222005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
20823
20824 * server.c (start_inferior): Change return type to int.
20825 (attach_inferior): Change sigptr to int *.
20826 (handle_v_cont, handle_v_requests): Change signal to int *.
20827 (main): Change signal to int.
20828
208292005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
20830
20831 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
20832 * configure.srv: Add m32r*-*-linux*.
20833 * linux-m32r-low.c: New file.
20834
e0e76420
DJ
208352005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
20836
20837 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
20838
a1928bad
DJ
208392005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20840
20841 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
20842 Take unsigned long arguments for PIDs.
20843 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
20844 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
20845 (wait_for_sigstop, linux_resume_one_process)
20846 (regsets_fetch_inferior_registers, linux_send_signal)
20847 (linux_read_auxv): Likewise. Update the types of variables holding
20848 PIDs. Update format string specifiers.
20849 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
20850 * remote-utils.c (prepare_resume_reply): Likewise.
20851 * server.c (cont_thread, general_thread, step_thread)
20852 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
20853 unsigned long.
20854 (handle_query): Update format specifiers.
20855 (handle_v_cont, main): Use strtoul for thread IDs.
20856 * server.h (struct inferior_list_entry): Use unsigned long for ID.
20857 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
20858 (general_thread, step_thread, thread_from_wait)
20859 (old_thread_from_wait): Update.
20860 * target.h (struct thread_resume): Use unsigned long for THREAD.
20861 (struct target_ops): Use unsigned long for arguments to attach and
20862 thread_alive.
20863
dcdb98d2
DJ
208642005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
20865
20866 * acinclude.m4: Include bfd/bfd.m4 directly.
20867 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
20868 <agriffis@toolchain.org>.
20869 * aclocal.m4, configure: Regenerated.
20870
bec39cab
AC
208712005-01-07 Andrew Cagney <cagney@gnu.org>
20872
20873 * configure.ac: Rename configure.in, require autoconf 2.59.
20874 * configure: Re-generate.
20875
434c4c77
DJ
208762004-12-08 Daniel Jacobowitz <dan@debian.org>
20877
20878 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
20879 LIBS when finished.
20880 * aclocal.m4: Regenerated.
20881 * configure: Regenerated.
20882
db1d3e1b
AS
208832004-11-21 Andreas Schwab <schwab@suse.de>
20884
20885 * linux-m68k-low.c (m68k_num_gregs): Define.
20886 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
20887 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
20888 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
20889 (m68k_breakpoint_at): New. Add to the_low_target.
20890
20891 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
20892 srv_linux_thread_db to yes.
20893
43360365
JB
208942004-10-20 Joel Brobecker <brobecker@gnat.com>
20895
20896 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
20897 (ARCH_SET_FS): Likewise.
20898 (ARCH_GET_FS): Likewise.
20899 (ARCH_GET_GS): Likewise.
20900
fd500816
DJ
209012004-10-16 Daniel Jacobowitz <dan@debian.org>
20902
20903 * linux-i386-low.c (ps_get_thread_area): New.
20904 * linux-x86-64-low.c (ps_get_thread_area): New.
20905 * linux-low.c: Include <sys/syscall.h>.
20906 (linux_kill_one_process): Don't kill the first thread here.
20907 (linux_kill): Kill the first thread here.
20908 (kill_lwp): New function.
20909 (send_sigstop, linux_send_signal): Use it.
20910 * proc-service.c: Clean up #ifdefs.
20911 (fpregset_info): Delete.
20912 (ps_lgetregs): Update and enable implementation.
20913 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
20914 implementations.
20915 * remote-utils.c (struct sym_cache, symbol_cache): New.
20916 (input_interrupt): Print a clearer message.
20917 (async_io_enabled): New variable.
20918 (enable_async_io, disable_async_io): Use it. Update comments.
20919 (look_up_one_symbol): Use the symbol cache.
20920 * thread-db.c (thread_db_look_up_symbols): New function.
20921 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
20922
f6de3c42
DJ
209232004-10-16 Daniel Jacobowitz <dan@debian.org>
20924
20925 * configure.in: Test for -rdynamic.
20926 * configure: Regenerated.
20927 * Makefile (INTERNAL_LDFLAGS): New.
20928 (gdbserver, gdbreplay): Use it.
20929
2c0fc042
AC
209302004-09-02 Andrew Cagney <cagney@gnu.org>
20931
20932 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
20933
075b3282
DJ
209342004-03-23 Daniel Jacobowitz <drow@mvista.com>
20935
20936 * linux-low.c (linux_wait): Clear all_processes list also.
20937
fa6a77dc
DJ
209382004-03-12 Daniel Jacobowitz <drow@mvista.com>
20939
20940 * linux-low.c: Include <errno.h>. Remove extern declaration of
20941 errno.
20942
6d782a97
DJ
209432004-03-12 Daniel Jacobowitz <drow@mvista.com>
20944
20945 * gdbreplay.c, server.h, utils.c: Update copyright years.
20946
3a7fb99b
DJ
209472004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
20948
20949 * server.c (main): Print child status or termination signal from
20950 variable 'signal', not 'sig'.
20951
c3e735a6
DJ
209522004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
20953
20954 * linux-low.c (linux_read_memory): Change return type to
20955 int. Check for and return error from ptrace().
20956 * target.c (read_inferior_memory): Change return type to int. Pass
20957 back return status from the_target->read_memory().
20958 * target.h (struct target_ops): Adapt *read_memory() prototype.
20959 Update comment.
20960 (read_inferior_memory): Adapt prototype.
20961 * server.c (main): Return an error packet if
20962 read_inferior_memory() returns an error.
20963
a59d1c82
DJ
209642004-03-04 Daniel Jacobowitz <drow@mvista.com>
20965
20966 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
20967 Unify with other clean targets.
20968
dc3f8883
DJ
209692004-02-29 Daniel Jacobowitz <drow@mvista.com>
20970
20971 * server.c (handle_v_cont): Call set_desired_inferior.
20972
89a208da
DJ
209732004-02-29 Daniel Jacobowitz <drow@mvista.com>
20974
20975 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
20976
62ea82f5
DJ
209772004-02-29 Daniel Jacobowitz <drow@mvista.com>
20978
20979 * linux-low.c (linux_wait): Unblock async I/O.
20980 (linux_resume): Block and enable async I/O.
20981 * remote-utils.c (block_async_io, unblock_async_io): New functions.
20982 * server.h (block_async_io, unblock_async_io): Add prototypes.
20983
6910d122
DJ
209842004-02-29 Daniel Jacobowitz <drow@mvista.com>
20985
20986 * remote-utils.c (remote_open): Print a status notice after
20987 opening a TCP port.
20988 * server.c (attach_inferior): Print a status notice after
20989 attaching.
20990
209912004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
20992
20993 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
20994
c89dc5d4
DJ
209952004-02-26 Daniel Jacobowitz <drow@mvista.com>
20996
20997 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
20998 error packet.
20999 * server.c, target.h: Update copyright years.
21000
4b8dad4a
RM
210012004-02-25 Roland McGrath <roland@redhat.com>
21002
21003 * target.h (struct target_ops): New member `read_auxv'.
21004 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21005 * linux-low.c (linux_read_auxv): New function.
21006 (linux_target_ops): Initialize `read_auxv' member to that.
21007
d7446758
JB
210082004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21009
21010 Committed by Jim Blandy <jimb@redhat.com>.
21011
21012 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21013 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21014 instead of GPR_SIZE to distiguish s390 and s390x targets.
21015
5544ad89
DJ
210162004-01-31 Daniel Jacobowitz <drow@mvista.com>
21017
21018 * linux-low.c: Update copyright year.
21019 (check_removed_breakpoint): Clear pending_is_breakpoint.
21020 (linux_set_resume_request, linux_queue_one_thread)
21021 (resume_status_pending_p): New functions.
21022 (linux_continue_one_thread): Use process->resume.
21023 (linux_resume): Only resume threads if there are no pending events.
21024 * linux-low.h (struct process_info): Add resume request
21025 pointer.
21026
2a68b70e
DJ
210272004-01-30 Daniel Jacobowitz <drow@mvista.com>
21028
21029 * regcache.c (new_register_cache): Clear the allocated register
21030 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21031
64386c31
DJ
210322003-10-13 Daniel Jacobowitz <drow@mvista.com>
21033
21034 * linux-low.c (linux_resume): Take a struct thread_resume *
21035 argument.
21036 (linux_wait): Update call.
21037 (resume_ptr): New static variable.
21038 (linux_continue_one_thread): Renamed from
21039 linux_continue_one_process. Use resume_ptr.
21040 (linux_resume): Use linux_continue_one_thread.
21041 * server.c (handle_v_cont, handle_v_requests): New functions.
21042 (myresume): New function.
21043 (main): Handle 'v' case.
21044 * target.h (struct thread_resume): New type.
21045 (struct target_ops): Change argument of "resume" to struct
21046 thread_resume *.
21047 (myresume): Delete macro.
21048
c938e9b0
L
210492003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21050
21051 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21052 (uninstall): Support DESTDIR.
21053
7f313d07
BC
21054Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21055
21056 * configure.srv: Add xscale*linux copy of arm*linux entry.
21057
3b2fc2ea
DJ
210582003-07-24 Daniel Jacobowitz <drow@mvista.com>
21059
21060 * linux-arm-low.c (arm_reinsert_addr): New function.
21061 (the_low_target): Add arm_reinsert_addr.
21062
1c0a559e
MK
210632003-07-08 Mark Kettenis <kettenis@gnu.org>
21064
21065 * mem-break.c: Remove whitespace at end of file.
21066
43d5792c
DJ
210672003-06-28 Daniel Jacobowitz <drow@mvista.com>
21068
21069 * configure.in: Check whether we need to prototype strerror.
21070 * server.h: Optionally prototype strerror.
21071 * gdbreplay.c (perror_with_name): Use strerror.
21072 * linux-low.c (linux_attach_lwp): Use strerror.
21073 * utils.c (perror_with_name): Use strerror.
21074 * config.in, configure: Regenerated.
21075
c8a86edf
DJ
210762003-06-28 Daniel Jacobowitz <drow@mvista.com>
21077
21078 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21079 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21080
73d37363
DJ
210812003-06-20 Daniel Jacobowitz <drow@mvista.com>
21082
21083 * Makefile.in (SFILES): Update.
21084 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21085 low-sun3.c: Remove files.
21086
6ad8ae5c
DJ
210872003-06-17 Daniel Jacobowitz <drow@mvista.com>
21088
21089 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21090 (linux_detach_one_process, linux_detach): New functions.
21091 (linux_target_ops): Add linux_detach.
21092 * server.c (main): Handle 'D' packet.
21093 * target.h (struct target_ops): Add "detach" member.
21094 (detach_inferior): Define.
21095
1581182a
MK
210962003-06-13 Mark Kettenis <kettenis@gnu.org>
21097
21098 From Kelley Cook <kelleycook@wideopenwest.com>:
21099 * configure.srv: Accept i[34567]86 variants.
21100
e5379b03
DJ
211012003-06-05 Daniel Jacobowitz <drow@mvista.com>
21102
21103 * linux-low.c (linux_wait_for_event): Correct comment typos.
21104 (linux_resume_one_process): Call check_removed_breakpoint.
21105 (linux_send_signal): New function.
21106 (linux_target_ops): Add linux_send_signal.
21107 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21108 of kill.
21109 * target.h (struct target_ops): Add send_signal.
21110
2ff29de4
JB
211112003-05-29 Jim Blandy <jimb@redhat.com>
21112
21113 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21114 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21115 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21116 away part of the register's value.
21117
254787d4
DJ
211182003-03-26 Daniel Jacobowitz <drow@mvista.com>
21119
21120 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21121 (linux_wait_for_event, linux_init_signals): Likewise.
21122
94e10508
DJ
211232003-03-17 Daniel Jacobowitz <drow@mvista.com>
21124
21125 * configure.in: Check for stdlib.h.
21126 * configure: Regenerated.
21127 * config.in: Regenerated.
21128
4c0711e0
DJ
211292003-01-04 Andreas Schwab <schwab@suse.de>
21130
21131 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21132
ef66e766
AC
211332003-01-02 Andrew Cagney <ac131313@redhat.com>
21134
21135 * Makefile.in: Remove obsolete code.
21136
a1358604
DJ
211372002-11-20 Daniel Jacobowitz <drow@mvista.com>
21138
21139 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21140 defined(PT_FPR0_HI).
21141
23ce3b1c
DJ
211422002-11-17 Stuart Hughes <seh@zee2.com>
21143
21144 * linux-arm-low.c (arm_num_regs): Increase.
21145 (arm_regmap): Include status register.
21146
211472002-11-17 Daniel Jacobowitz <drow@mvista.com>
21148
21149 * linux-low.c (register_addr): Remove incorrect -1 check.
21150
a9fa9f7d
DJ
211512002-08-29 Daniel Jacobowitz <drow@mvista.com>
21152
21153 * linux-low.c (linux_create_inferior): Call setpgid. Return
21154 the new PID.
21155 (unstopped_p, linux_signal_pid): Remove.
21156 (linux_target_ops): Remove linux_signal_pid.
21157 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21158 global instead of target method.
21159 * target.h (struct target_ops): Remove signal_pid. Update comment
21160 for create_inferior.
21161 * server.c (signal_pid): New variable.
21162 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21163 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21164 (attach_inferior): Set signal_pid.
21165
17574093
DJ
211662002-08-23 Daniel Jacobowitz <drow@mvista.com>
21167
21168 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21169
211702002-08-20 Jim Blandy <jimb@redhat.com>
21171
21172 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21173 default for this.
21174
211752002-08-01 Andrew Cagney <cagney@redhat.com>
21176
21177 * Makefile.in: Make chill references obsolete.
21178
211792002-07-24 Kevin Buettner <kevinb@redhat.com>
21180
21181 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21182 * configure: Regenerate.
21183 * config.in: Regenerate.
21184
211852002-07-09 David O'Brien <obrien@FreeBSD.org>
21186
21187 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21188 (perror_with_name, remote_close, remote_open, expect, play): Static.
21189
211902002-07-04 Michal Ludvig <mludvig@suse.cz>
21191
4b8dad4a 21192 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21193 byte offsets instead of an array of indexes.
21194 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21195
211962002-06-13 Daniel Jacobowitz <drow@mvista.com>
21197
21198 * regcache.c: Add comment.
21199
212002002-06-11 Daniel Jacobowitz <drow@mvista.com>
21201
21202 * thread-db.c: New file.
21203 * proc-service.c: New file.
21204 * acinclude.m4: New file.
21205 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21206 proc-service.o, and thread-db.o.
21207 (linux-low.o): Add USE_THREAD_DB.
21208 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21209 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21210 * aclocal.m4: Regenerated.
21211 * config.in: Regenerated.
21212 * configure: Regenerated.
21213 * configure.in: Check for proc_service.h, sys/procfs.h,
21214 thread_db.h, and linux/elf.h headrs.
21215 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21216 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21217 Check for -lthread_db and thread support.
21218 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21219 PowerPC, and SuperH.
21220 * i387-fp.c: Constify arguments.
21221 * i387-fp.h: Likewise.
21222 * inferiors.c: (struct thread_info): Renamed from
21223 `struct inferior_info'. Remove PID member. Use generic inferior
21224 list header. All uses updated.
21225 (inferiors, signal_pid): Removed.
21226 (all_threads): New variable.
21227 (get_thread): Define.
21228 (add_inferior_to_list): New function.
21229 (for_each_inferior): New function.
21230 (change_inferior_id): New function.
21231 (add_inferior): Removed.
21232 (remove_inferior): New function.
21233 (add_thread): New function.
21234 (free_one_thread): New function.
21235 (remove_thread): New function.
21236 (clear_inferiors): Use for_each_inferior and free_one_thread.
21237 (find_inferior): New function.
21238 (find_inferior_id): New function.
21239 (inferior_target_data): Update argument type.
21240 (set_inferior_target_data): Likewise.
21241 (inferior_regcache_data): Likewise.
21242 (set_inferior_regcache_data): Likewise.
21243 * linux-low.c (linux_bp_reinsert): Remove.
21244 (all_processes, stopping_threads, using_thrads)
21245 (struct pending_signals, debug_threads, pid_of): New.
21246 (inferior_pid): Replace with macro.
21247 (struct inferior_linux_data): Remove.
21248 (get_stop_pc, add_process): New functions.
21249 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21250 Use add_process and add_thread.
21251 (linux_attach_lwp): New function, based on old linux_attach. Use
21252 add_process and add_thread. Set stop_expected for new threads.
21253 (linux_attach): New function.
21254 (linux_kill_one_process): New function.
21255 (linux_kill): Kill all LWPs.
21256 (linux_thread_alive): Use find_inferior_id.
21257 (check_removed_breakpoints, status_pending_p): New functions.
21258 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21259 Update. Use WNOHANG. Wait for cloned processes also. Update process
21260 struct for the found process.
21261 (linux_wait_for_event): New function.
21262 (linux_wait): Use it. Support LWPs.
21263 (send_sigstop, wait_for_sigstop, stop_all_processes)
21264 (linux_resume_one_process, linux_continue_one_process): New functions.
21265 (linux_resume): Support LWPs.
21266 (REGISTER_RAW_SIZE): Remove.
21267 (fetch_register): Use register_size instead. Call supply_register.
21268 (usr_store_inferior_registers): Likewise. Call collect_register.
21269 Fix recursive case.
21270 (regsets_fetch_inferior_registers): Improve error message.
21271 (regsets_store_inferior_registers): Add debugging.
21272 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21273 (unstopped_p, linux_signal_pid): New functions.
21274 (linux_target_ops): Add linux_signal_pid.
21275 (linux_init_signals): New function.
21276 (initialize_low): Call it. Initialize using_threads.
21277 * regcache.c (inferior_regcache_data): Add valid
21278 flag.
21279 (get_regcache): Fetch registers lazily. Add fetch argument
21280 and update all callers.
21281 (regcache_invalidate_one, regcache_invalidate): New
21282 functions.
21283 (new_register_cache): Renamed from create_register_cache.
21284 Return the new regcache.
21285 (free_register_cache): Change argument to a void *.
21286 (registers_to_string, registers_from_string): Call get_regcache
21287 with fetch flag set.
21288 (register_data): Make static. Pass fetch flag to get_regcache.
21289 (supply_register): Call get_regcache with fetch flag clear.
21290 (collect_register): Call get_regcache with fetch flag set.
21291 (collect_register_as_string): New function.
21292 * regcache.h: Update.
21293 * remote-utils.c (putpkt): Flush after debug output and use
21294 stderr.
21295 Handle input interrupts while waiting for an ACK.
21296 (input_interrupt): Use signal_pid method.
21297 (getpkt): Flush after debug output and use stderr.
21298 (outreg): Use collect_register_as_string.
21299 (new_thread_notify, dead_thread_notify): New functions.
21300 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21301 and general_thread.
21302 (look_up_one_symbol): Flush after debug output.
21303 * server.c (step_thread, server_waiting): New variables.
21304 (start_inferior): Don't use signal_pid. Update call to mywait.
21305 (attach_inferior): Update call to mywait.
21306 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21307 (main): Don't fetch/store registers explicitly. Use
21308 set_desired_inferior. Support proposed ``Hs'' packet. Update
21309 calls to mywait.
21310 * server.h: Update.
21311 (struct inferior_list, struct_inferior_list_entry): New.
21312 * target.c (set_desired_inferior): New.
21313 (write_inferior_memory): Constify.
21314 (mywait): New function.
21315 * target.h: Update.
21316 (struct target_ops): New signal_pid method.
21317 (mywait): Removed macro, added prototype.
21318
21319 * linux-low.h (regset_func): Removed.
21320 (regset_fill_func, regset_store_func): New.
21321 (enum regset_type): New.
21322 (struct regset_info): Add type field. Use new operation types.
21323 (struct linux_target_ops): stop_pc renamed to get_pc.
21324 Add decr_pc_after_break and breakpoint_at.
21325 (get_process, get_thread_proess, get_process_thread)
21326 (strut process_info, all_processes, linux_attach_lwp)
21327 (thread_db_init): New.
21328
21329 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21330 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21331 (the_low_target): Add new members.
21332 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21333 (i386_store_fpxregset): Constify.
21334 (target_regsets): Add new kind identifier.
21335 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21336 (i386_set_pc): Add debugging.
21337 (i386_breakpoint_at): New function.
21338 (the_low_target): Add new members.
21339 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21340 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21341 (mips_breakpoint_at): New.
21342 (the_low_target): Add new members.
21343 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21344 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21345 (the_low_target): Add new members.
21346 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21347 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21348 (the_low_target): Add new members.
21349 * linux-x86-64-low.c (target_regsets): Add new kind
21350 identifier.
21351
213522002-05-15 Daniel Jacobowitz <drow@mvista.com>
21353
21354 From Martin Pool <mbp@samba.org>:
21355 * server.c (gdbserver_usage): New function.
21356 (main): Call it.
21357
213582002-05-14 Daniel Jacobowitz <drow@mvista.com>
21359
21360 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21361 stop_at -> stop_pc.
21362
213632002-05-04 Andrew Cagney <ac131313@redhat.com>
21364
21365 * Makefile.in: Remove obsolete code.
21366
213672002-04-24 Michal Ludvig <mludvig@suse.cz>
21368
21369 * linux-low.c (regsets_fetch_inferior_registers),
21370 (regsets_store_inferior_registers): Removed cast to int from
21371 ptrace() calls.
21372 * regcache.h: Added declaration of struct inferior_info.
21373
213742002-04-20 Daniel Jacobowitz <drow@mvista.com>
21375
21376 * inferiors.c (struct inferior_info): Add regcache_data.
21377 (add_inferior): Call create_register_cache.
21378 (clear_inferiors): Call free_register_cache.
21379 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21380 * regcache.c (struct inferior_regcache_data): New.
21381 (registers): Remove.
21382 (get_regcache): New function.
21383 (create_register_cache, free_register_cache): New functions.
21384 (set_register_cache): Don't initialize the register cache here.
21385 (registers_to_string, registers_from_string, register_data): Call
21386 get_regcache.
21387 * regcache.h: Add prototypes.
21388 * server.h: Likewise.
21389
213902002-04-20 Daniel Jacobowitz <drow@mvista.com>
21391
21392 * mem-break.c: New file.
21393 * mem-break.h: New file.
21394 * Makefile.in: Add mem-break.o rule; update server.h
21395 dependencies.
21396 * inferiors.c (struct inferior_info): Add target_data
21397 member.
21398 (clear_inferiors): Free target_data member if set.
21399 (inferior_target_data, set_inferior_target_data): New functions.
21400 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21401 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21402 * linux-low.c (linux_bp_reinsert): New variable.
21403 (struct inferior_linux_data): New.
21404 (linux_create_inferior): Use set_inferior_target_data.
21405 (linux_attach): Likewise. Call add_inferior.
21406 (linux_wait_for_one_inferior): New function.
21407 (linux_wait): Call it.
21408 (linux_write_memory): Add const.
21409 (initialize_low): Call set_breakpoint_data.
21410 * linux-low.h (struct linux_target_ops): Add breakpoint
21411 handling members.
21412 * server.c (attach_inferior): Remove extra add_inferior
21413 call.
21414 * server.h: Include mem-break.h. Update inferior.c
21415 prototypes.
21416 * target.c (read_inferior_memory)
21417 (write_inferior_memory): New functions.
21418 * target.h (read_inferior_memory)
21419 (write_inferior_memory): Change macros to prototypes.
21420 (struct target_ops): Update comments. Add const to write_memory
21421 definition.
21422
214232002-04-11 Daniel Jacobowitz <drow@mvista.com>
21424
21425 * linux-low.c (usr_store_inferior_registers): Support
21426 registers which are allowed to fail to store.
21427 * linux-low.h (linux_target_ops): Likewise.
21428 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21429 (ppc_cannot_store_register): FPSCR may not be storable.
21430
214312002-04-09 Daniel Jacobowitz <drow@mvista.com>
21432
21433 * server.h: Include <string.h> if HAVE_STRING_H.
21434 * ChangeLog: Correct paths in last ChangeLog entry.
21435
214362002-04-09 Daniel Jacobowitz <drow@mvista.com>
21437
21438 * linux-low.h: Remove obsolete prototypes.
21439 (struct linux_target_ops): New.
21440 (extern the_low_target): New.
21441 * linux-low.c (num_regs, regmap): Remove declarations.
21442 (register_addr): Use the_low_target explicitly.
21443 (fetch_register): Likewise.
21444 (usr_fetch_inferior_registers): Likewise.
21445 (usr_store_inferior_registers): Likewise.
21446 * linux-arm-low.c (num_regs): Remove.
21447 (arm_num_regs): Define.
21448 (arm_regmap): Renamed from regmap, made static.
21449 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21450 made static.
21451 (arm_cannot_store_register): Renamed from cannot_store_register,
21452 made static.
21453 (the_low_target): New.
21454 * linux-i386-low.c (num_regs): Remove.
21455 (i386_num_regs): Define.
21456 (i386_regmap): Renamed from regmap, made static.
21457 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21458 made static.
21459 (i386_cannot_store_register): Renamed from cannot_store_register,
21460 made static.
21461 (the_low_target): New.
21462 * linux-ia64-low.c (num_regs): Remove.
21463 (ia64_num_regs): Define.
21464 (ia64_regmap): Renamed from regmap, made static.
21465 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21466 made static.
21467 (ia64_cannot_store_register): Renamed from cannot_store_register,
21468 made static.
21469 (the_low_target): New.
21470 * linux-m68k-low.c (num_regs): Remove.
21471 (m68k_num_regs): Define.
21472 (m68k_regmap): Renamed from regmap, made static.
21473 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21474 made static.
21475 (m68k_cannot_store_register): Renamed from cannot_store_register,
21476 made static.
21477 (the_low_target): New.
21478 * linux-mips-low.c (num_regs): Remove.
21479 (mips_num_regs): Define.
21480 (mips_regmap): Renamed from regmap, made static.
21481 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21482 made static.
21483 (mips_cannot_store_register): Renamed from cannot_store_register,
21484 made static.
21485 (the_low_target): New.
21486 * linux-ppc-low.c (num_regs): Remove.
21487 (ppc_num_regs): Define.
21488 (ppc_regmap): Renamed from regmap, made static.
21489 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21490 made static.
21491 (ppc_cannot_store_register): Renamed from cannot_store_register,
21492 made static.
21493 (the_low_target): New.
21494 * linux-s390-low.c (num_regs): Remove.
21495 (s390_num_regs): Define.
21496 (s390_regmap): Renamed from regmap, made static.
21497 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21498 made static.
21499 (s390_cannot_store_register): Renamed from cannot_store_register,
21500 made static.
21501 (the_low_target): New.
21502 * linux-sh-low.c (num_regs): Remove.
21503 (sh_num_regs): Define.
21504 (sh_regmap): Renamed from regmap, made static.
21505 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21506 made static.
21507 (sh_cannot_store_register): Renamed from cannot_store_register,
21508 made static.
21509 (the_low_target): New.
21510 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21511 (the_low_target): New.
21512
215132002-04-09 Daniel Jacobowitz <drow@mvista.com>
21514
21515 * Makefile.in: Add stamp-h target.
21516 * configure.in: Create stamp-h.
21517 * configure: Regenerated.
21518
215192002-04-09 Daniel Jacobowitz <drow@mvista.com>
21520
21521 * inferiors.c: New file.
21522 * target.c: New file.
21523 * target.h: New file.
21524 * Makefile.in: Add target.o and inferiors.o. Update
21525 dependencies.
21526 * linux-low.c (inferior_pid): New static variable,
21527 moved from server.c.
21528 (linux_create_inferior): Renamed from create_inferior.
21529 Call add_inferior. Return 0 on success instead of a PID.
21530 (linux_attach): Renamed from myattach.
21531 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
21532 (linux_thread_alive): Renamed from mythread_alive.
21533 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
21534 child dies.
21535 (linux_resume): Renamed from myresume. Add missing ``return 0''.
21536 (regsets_store_inferior_registers): Correct error message.
21537 Add missing ``return 0''.
21538 (linux_fetch_registers): Renamed from fetch_inferior_registers.
21539 (linux_store_registers): Renamed from store_inferior_registers.
21540 (linux_read_memory): Renamed from read_inferior_memory.
21541 (linux_write_memory): Renamed from write_inferior_memory.
21542 (linux_target_ops): New structure.
21543 (initialize_low): Call set_target_ops ().
21544 * remote-utils.c (unhexify): New function.
21545 (hexify): New function.
21546 (input_interrupt): Send signals to ``signal_pid''.
21547 * server.c (inferior_pid): Remove.
21548 (start_inferior): Update create_inferior call.
21549 (attach_inferior): Call add_inferior.
21550 (handle_query): New function.
21551 (main): Call handle_query for `q' packets.
21552 * server.h: Include "target.h". Remove obsolete prototypes.
21553 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
21554
215552002-04-09 Daniel Jacobowitz <drow@mvista.com>
21556
21557 * Makefile.in: Add WARN_CFLAGS. Update configury
21558 dependencies.
21559 * configure.in: Check for <string.h>
21560 * configure: Regenerate.
21561 * config.in: Regenerate.
21562 * gdbreplay.c: Include needed system headers.
21563 (remote_open): Remove strchr prototype.
21564 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
21565 * regcache.c (supply_register): Change buf argument to const void *.
21566 (supply_register_by_name): Likewise.
21567 (collect_register): Change buf argument to void *.
21568 (collect_register_by_name): Likewise.
21569 * regcache.h: Add missing prototypes.
21570 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
21571 * server.c (handle_query): New function.
21572 (attached): New static variable, moved out of main.
21573 (main): Quiet longjmp clobber warnings.
21574 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
21575 * utils.c (error): Remove NORETURN.
21576 (fatal): Likewise.
This page took 2.789406 seconds and 4 git commands to generate.