]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdbserver/ChangeLog
gdbserver/linux-low: turn 'supports_tracepoints' into a method
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
1 2020-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
40 2020-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
67 2020-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
111 2020-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
233 2020-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
266 2020-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
323 2020-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
384 2020-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
449 2020-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
503 2020-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
610 2020-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
657 2020-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
707 2020-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
810 2020-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
858 2020-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
1041 2020-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
1105 2020-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
1149 2020-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
1317 2020-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
1415 2020-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
1533 2020-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
1597 2020-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
1651 2020-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
1658 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
1659
1660 * config.in: Re-generate.
1661 * configure: Re-generate.
1662
1663 2020-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
1669 2020-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
1683 2020-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
1693 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
1694
1695 * acinclude.m4: Update path to selftest.m4.
1696
1697 2020-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
1703 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
1704
1705 * configure: Re-generate.
1706
1707 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
1708
1709 * configure: Re-generate.
1710
1711 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1712
1713 * .dir-locals.el: New file.
1714
1715 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1716
1717 * .gitattributes: New file.
1718
1719 2020-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
1727 2020-02-21 Tom Tromey <tom@tromey.com>
1728
1729 * Makefile.in (mostlyclean): New target.
1730
1731 2020-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
2024 2020-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
2029 2020-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
2049 2020-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
2069 2020-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
2089 2020-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
2111 2020-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
2151 2020-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
2182 2020-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
2205 2020-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
2225 2020-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
2258 2020-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
2278 2020-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
2302 2020-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
2322 2020-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
2342 2020-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
2374 2020-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
2398 2020-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
2434 2020-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
2457 2020-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
2482 2020-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
2506 2020-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
2526 2020-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
2546 2020-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
2570 2020-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
2589 2020-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
2609 2020-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
2629 2020-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
2658 2020-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
2678 2020-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
2711 2020-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
2735 2020-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
2759 2020-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
2781 2020-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
2803 2020-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
2827 2020-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
2860 2020-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
2888 2020-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
2912 2020-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
2936 2020-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
2972 2020-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
2998 2020-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
3026 2020-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
3057 2020-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
3077 2020-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
3135 2020-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
3159 2020-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
3196 2020-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
3225 2020-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
3258 2020-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
3287 2020-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
3314 2020-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
3345 2020-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
3373 2020-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
3401 2020-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
3429 2020-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
3449 2020-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
3481 2020-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
3503 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3504
3505 * configure: Regenerate.
3506
3507 2020-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
3517 2020-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
3533 2020-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
3540 2020-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
3547 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3548
3549 * Makefile.in: Rename gdbsupport source files from .c to .cc.
3550
3551 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
3552
3553 * win32-low.c (win32_create_inferior): Set signal_pid.
3554
3555 2020-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
3562 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3563
3564 * configure: Re-generate.
3565
3566 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3567
3568 * configure: Re-generate.
3569
3570 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3571
3572 * acinclude.m4: Update warning.m4 path.
3573
3574 2020-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
3580 2020-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
3597 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
3598
3599 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
3600
3601 2020-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
3606 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
3607
3608 * server.c (handle_qxfer_libraries): Write segment-address with
3609 paddress.
3610
3611 2020-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
3619 2020-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
3633 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
3634
3635 * Makefile.in (TAGS): Remove config files from the recipe.
3636
3637 2020-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
3644 2020-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
3657 2020-01-14 Tom Tromey <tom@tromey.com>
3658
3659 * configure.ac (LIBS): Use WIN32APILIBS.
3660 (USE_WIN32API): Don't define.
3661 * configure: Rebuild.
3662
3663 2020-01-14 Tom Tromey <tom@tromey.com>
3664
3665 * configure: Rebuild.
3666
3667 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3668
3669 * Makefile.in (%-generated.c): Remove rule for files from
3670 regformats/i386.
3671
3672 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3673
3674 * configure: Re-generate.
3675
3676 2020-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
3684 2020-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
3693 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3694
3695 * inferiors.c: Include gdbsupport/common-inferior.h.
3696
3697 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3698
3699 * hostio-errno.c: Include hostio.h.
3700
3701 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3702
3703 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
3704 prerequisite.
3705
3706 2020-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
3711 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3712
3713 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
3714
3715 2020-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
3720 2020-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
3742 2020-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
3751 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
3752
3753 * Makefile.in: Use INSTALL_PROGRAM_ENV.
3754
3755 2020-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
3760 2019-12-19 Christian Biesinger <cbiesinger@google.com>
3761
3762 * configure: Regenerate.
3763 * configure.ac: Quote variable arguments of test.
3764
3765 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
3766
3767 * Makefile.in: Fix build with GNU Make 3.81
3768
3769 2019-12-16 Tom Tromey <tromey@adacore.com>
3770
3771 * server.c (get_exec_file): Constify result.
3772
3773 2019-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
3788 2019-11-26 Tom Tromey <tom@tromey.com>
3789
3790 * configure, config.in: Rebuild.
3791
3792 2019-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
3799 2019-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
3807 2019-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
3826 2019-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
3833 2019-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
3839 2019-11-15 Christian Biesinger <cbiesinger@google.com>
3840
3841 * config.in: Regenerate.
3842 * configure: Regenerate.
3843
3844 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
3845
3846 * ax.c (ax_printf): Handle size_t_arg.
3847
3848 2019-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
3858 2019-11-01 Christian Biesinger <cbiesinger@google.com>
3859
3860 * configure: Regenerate.
3861 * configure.ac: Remove check for strerror_r.
3862
3863 2019-10-31 Christian Biesinger <cbiesinger@google.com>
3864
3865 * config.in: Regenerate.
3866 * configure: Regenerate.
3867 * configure.ac: Also check for strerror_r.
3868
3869 2019-10-31 Christian Biesinger <cbiesinger@google.com>
3870
3871 * ax.h (debug_agent): Remove duplicate declaration.
3872
3873 2019-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
3885 2019-10-25 Tom Tromey <tromey@adacore.com>
3886
3887 * utils.c (xstrdup): Remove.
3888
3889 2019-10-23 Tom Tromey <tom@tromey.com>
3890
3891 * configure, config.in: Rebuild.
3892
3893 2019-10-23 Tom Tromey <tom@tromey.com>
3894
3895 * configure: Rebuild.
3896 * acinclude.m4: Use m4_include, not sinclude.
3897
3898 2019-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
3906 2019-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
3911 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3912
3913 * Makefile.in: Remove references to vec-ipa.o.
3914
3915 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3916
3917 * Makefile.in: Remove references to vec.c.
3918
3919 2019-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
3947 2019-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
3953 2019-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
3958 2019-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
3969 2019-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
4009 2019-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
4016 2019-08-15 Tom Tromey <tromey@adacore.com>
4017
4018 * target.c (target_write_memory): Use gdb::byte_vector.
4019
4020 2019-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
4050 2019-08-15 Tom Tromey <tromey@adacore.com>
4051
4052 * target.c (write_inferior_memory): Use std::vector.
4053
4054 2019-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
4061 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4062
4063 * configure.srv: Remove Arm xml files.
4064
4065 2019-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
4085 2019-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
4092 2019-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
4111 2019-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
4117 2019-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
4129 2019-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
4134 2019-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
4139 2019-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
4146 2019-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
4154 2019-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
4167 2019-06-04 Pedro Alves <palves@redhat.com>
4168
4169 * server.c (captured_main): Use make_unique_xstrdup.
4170
4171 2019-06-02 Tom Tromey <tom@tromey.com>
4172
4173 * gdbreplay.c (fromhex): Remove.
4174 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4175
4176 2019-05-29 Tom Tromey <tromey@adacore.com>
4177
4178 * configure: Rebuild.
4179
4180 2019-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
4185 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4186
4187 * remote-utils.c:
4188 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4189
4190 2019-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
4213 2019-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
4220 2019-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
4229 2019-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
4239 2019-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
4244 2019-04-09 Tom Tromey <tromey@adacore.com>
4245
4246 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4247
4248 2019-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
4254 2019-04-08 Tom Tromey <tom@tromey.com>
4255
4256 * gdbreplay.c: Update.
4257 * linux-low.c: Update.
4258 * server.c: Update.
4259
4260 2019-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
4266 2019-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
4273 2019-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
4282 2019-04-05 Tom Tromey <tromey@adacore.com>
4283
4284 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4285 variables.
4286
4287 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4288
4289 * linux-low.c (AT_HWCAP2): Add define if not already included.
4290
4291 2019-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
4307 2019-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
4315 2019-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
4322 2019-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
4333 2019-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
4341 2019-03-12 Tom Tromey <tromey@adacore.com>
4342
4343 * linux-low.c (iterate_over_lwps): Update.
4344
4345 2019-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
4350 2019-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
4356 2019-02-27 Tom Tromey <tromey@adacore.com>
4357
4358 * gdbreplay.c (logchar): Handle \r\n.
4359
4360 2019-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
4365 2019-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
4398 2018-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
4404 2019-01-25 Tom Tromey <tom@tromey.com>
4405
4406 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4407
4408 2019-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
4441 2019-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
4447 2019-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
4453 2018-12-05 Alan Hayward <alan.hayward@arm.com>
4454
4455 * linux-low.c (add_lwp): Switch ordering.
4456
4457 2018-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
4468 2018-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
4474 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4475
4476 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4477
4478 2018-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
4513 2018-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
4523 2018-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
4548 2018-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
4581 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4582
4583 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
4584
4585 2018-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
4597 2018-10-04 Tom Tromey <tom@tromey.com>
4598
4599 * configure: Rebuild.
4600
4601 2018-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
4610 2018-10-01 Gary Benson <gbenson@redhat.com>
4611
4612 * gdb_proc_service.h: Moved common code to
4613 common/gdb_proc_service.h.
4614
4615 2018-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
4620 2018-09-25 Tom Tromey <tom@tromey.com>
4621
4622 * configure: Rebuild.
4623 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
4624
4625 2018-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
4631 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4632
4633 * Makefile.in: Remove references to $(ADD_DEPS).
4634
4635 2018-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
4642 2018-09-05 Tom Tromey <tom@tromey.com>
4643
4644 * configure: Rebuild.
4645
4646 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
4647
4648 PR build/23399
4649 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
4650
4651 2018-08-27 Tom Tromey <tom@tromey.com>
4652
4653 PR build/23087:
4654 * configure: Rebuild.
4655
4656 2018-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
4664 2018-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
4671 2018-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
4677 2018-07-22 Tom Tromey <tom@tromey.com>
4678
4679 * configure: Rebuild.
4680
4681 2018-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
4692 2018-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
4709 2018-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
4724 2018-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
4743 2018-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
4756 2018-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
4764 2018-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
4769 2018-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
4781 2018-07-03 Tom Tromey <tom@tromey.com>
4782
4783 * server.c: Update.
4784
4785 2018-07-03 Tom Tromey <tom@tromey.com>
4786
4787 * linux-low.c: Update.
4788
4789 2018-07-03 Tom Tromey <tom@tromey.com>
4790
4791 * target.c: Update.
4792
4793 2018-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
4805 2018-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
4818 2018-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
4829 2018-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
4839 2018-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
4844 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4845
4846 * x86-tdesc.h: Remove executable permission flag.
4847
4848 2018-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
4855 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
4856
4857 * tracepoint.h (current_traceframe): Remove declaration.
4858
4859 2018-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
4867 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4868
4869 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
4870
4871 2018-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
4882 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4883
4884 * server.h (PBUFSIZ): Increase size
4885
4886 2018-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
4891 2018-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
4903 2018-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
4911 2018-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
4916 2018-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
4930 2018-06-08 Tom Tromey <tom@tromey.com>
4931
4932 * linux-low.c (linux_low_read_btrace): Update.
4933
4934 2018-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
4951 2018-05-31 Alan Hayward <alan.hayward@arm.com>
4952
4953 * configure.srv: Add new c/h file.
4954
4955 2018-05-31 Alan Hayward <alan.hayward@arm.com>
4956
4957 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
4958 null VQ.
4959
4960 2018-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
4965 2018-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
4971 2018-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
4979 2018-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
4989 2018-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
4995 2018-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
5007 2018-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
5012 2018-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
5034 2018-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
5041 2018-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
5048 2018-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
5057 2018-05-10 Tom Tromey <tom@tromey.com>
5058
5059 * configure: Rebuild.
5060
5061 2018-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
5086 2018-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
5092 2018-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
5098 2018-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
5108 2018-05-07 Tom Tromey <tom@tromey.com>
5109
5110 * configure: Rebuild.
5111
5112 2018-05-04 Tom Tromey <tom@tromey.com>
5113
5114 * configure: Rebuild.
5115
5116 2018-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
5122 2018-04-27 Tom Tromey <tom@tromey.com>
5123
5124 * configure: Rebuild.
5125
5126 2018-04-23 Tom Tromey <tom@tromey.com>
5127
5128 * configure: Rebuild.
5129
5130 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5131
5132 * Makefile.in (depcomp): Add "..".
5133 (all_deps_files): New and use it.
5134
5135 2018-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
5149 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5150
5151 * tdesc.c: Remove xml parameter.
5152
5153 2018-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
5162 2018-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
5168 2018-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
5180 2018-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
5189 2018-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
5197 2018-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
5206 2018-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
5218 2018-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
5224 2018-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
5231 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5232
5233 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5234
5235 2018-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
5243 2018-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
5250 2018-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
5259 2018-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
5272 2018-03-14 Tom Tromey <tom@tromey.com>
5273
5274 PR cli/14977:
5275 * ax.c (ax_printf): Special case for NULL.
5276
5277 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5278
5279 * linux-low.c (linux_qxfer_libraries_svr4): Use
5280 xml_escape_text_append.
5281
5282 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5283
5284 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5285
5286 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5287
5288 * server.c (handle_general_set): Remove unnecessary xstrdup.
5289
5290 2018-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
5297 2018-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
5306 2018-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
5311 2018-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
5322 2018-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
5329 2018-02-26 Alan Hayward <alan.hayward@arm.com>
5330
5331 * tdesc.c: Use common/tdesc.h.
5332 * tdesc.h: Likewise.
5333
5334 2018-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
5339 2018-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
5345 2018-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
5355 2018-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
5363 2018-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
5372 2018-02-08 Tom Tromey <tom@tromey.com>
5373
5374 * mem-break.c (set_raw_breakpoint_at): Use
5375 gdb::unique_xmalloc_ptr.
5376
5377 2018-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
5383 2018-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
5388 2018-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
5396 2018-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
5403 2018-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
5409 2018-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
5419 2018-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
5424 2018-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
5430 2018-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
5436 2017-12-08 Tom Tromey <tom@tromey.com>
5437
5438 * ax.c (ax_printf): Update.
5439
5440 2017-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
5451 2017-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
5459 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5460
5461 * regcache.c (registers_to_string): Remove unused variable.
5462
5463 2017-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
5470 2017-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
5487 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5488
5489 * inferiors.h (find_inferior): Remove.
5490 * inferiors.c (find_inferior): Remove.
5491
5492 2017-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
5497 2017-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
5505 2017-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
5511 2017-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
5521 2017-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
5527 2017-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
5534 2017-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
5541 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5542
5543 * linux-low.c (same_lwp): Remove.
5544 (find_lwp_pid): Use find_thread.
5545
5546 2017-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
5551 2017-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
5557 2017-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
5563 2017-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
5572 2017-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
5587 2017-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
5593 2017-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
5598 2017-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
5603 2017-11-26 Tom Tromey <tom@tromey.com>
5604
5605 * linux-low.c (linux_create_inferior): Update.
5606
5607 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
5608
5609 * spu-low.c (spu_create_inferior): Fix typo in argument name.
5610
5611 2017-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
5618 2017-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
5625 2017-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
5631 2017-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
5642 2017-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
5650 2017-11-22 Yao Qi <yao.qi@linaro.org>
5651
5652 * remote-utils.c (prepare_resume_reply): Use memcpy.
5653
5654 2017-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
5660 2017-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
5666 2017-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
5672 2017-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
5679 2017-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
5685 2017-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
5691 2017-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
5698 2017-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
5704 2017-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
5711 2017-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
5717 2017-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
5724 2017-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
5735 2017-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
5740 2017-11-16 Alan Hayward <alan.hayward@arm.com>
5741
5742 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
5743
5744 2017-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
5750 2017-11-15 Alan Hayward <alan.hayward@arm.com>
5751
5752 * Makefile.in: Update arch rules.
5753 * configure.srv: Explicitly mark arch/ files.
5754
5755 2017-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
5761 2017-11-06 Pedro Alves <palves@redhat.com>
5762
5763 * config.in, configure: Regenerate.
5764
5765 2017-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
5772 2017-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
5779 2017-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
5787 2017-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
5795 2017-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
5802 2017-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
5807 2017-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
5812 2017-10-17 Yao Qi <yao.qi@linaro.org>
5813
5814 * configure.srv: Rename arm.o with arch/arm.o.
5815
5816 2017-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
5829 2017-10-16 Yao Qi <yao.qi@linaro.org>
5830
5831 * configure: Regenerated.
5832
5833 2017-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
5902 2017-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
5938 2017-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
5957 2017-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
5980 2017-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
6003 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6004
6005 * win32-low.c: Include "common-inferior.h".
6006
6007 2017-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
6015 2017-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
6021 2017-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
6026 2017-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
6031 2017-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
6046 2017-09-29 Pedro Alves <palves@redhat.com>
6047
6048 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6049 fails.
6050
6051 2017-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
6061 2017-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
6070 2017-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
6090 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6091
6092 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6093
6094 2017-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
6108 2017-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
6114 2017-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
6123 2017-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
6132 2017-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
6138 2017-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
6144 2017-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
6151 2017-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
6170 2017-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
6181 2017-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
6188 2017-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
6193 2017-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
6200 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6201
6202 * linux-low.c (linux_set_resume_request): Remove unused
6203 variables.
6204
6205 2017-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
6222 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6223
6224 * regcache.c (get_thread_regcache): Guard calls to "memset"
6225 with "!VEC_empty".
6226
6227 2017-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
6233 2017-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
6248 2017-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
6253 2017-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
6260 2017-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
6285 2017-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
6290 2017-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
6301 2017-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
6314 2017-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
6333 2017-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
6341 2017-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
6359 2017-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
6364 2017-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
6384 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6385
6386 * Makefile.in (.SECONDARY): Define target.
6387
6388 2017-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
6393 2017-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
6400 2017-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
6426 2017-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
6431 2017-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
6439 2017-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
6453 2017-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
6460 2017-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
6478 2017-07-10 Yao Qi <yao.qi@linaro.org>
6479
6480 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6481
6482 2017-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
6488 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6489
6490 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6491
6492 2017-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
6504 2017-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
6509 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6510
6511 * configure: Re-generate.
6512
6513 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6514
6515 * configure: Re-generate.
6516
6517 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6518
6519 * Makefile.in (COMPILE.pre): Add "-x c++".
6520
6521 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6522
6523 * fork-child.c: Conditionally include <signal.h>.
6524
6525 2017-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
6537 2017-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
6606 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6607
6608 * inferiors.c (switch_to_thread): New function.
6609
6610 2017-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
6615 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6616
6617 * Makefile: Remove "@host_makefile_frag@".
6618
6619 2017-05-05 Pedro Alves <palves@redhat.com>
6620
6621 * configure: Regenerate.
6622
6623 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6624
6625 * configure: Regenerate.
6626
6627 2017-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
6637 2017-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
6643 2017-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
6652 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
6653
6654 * server.c (handle_v_cont): Initialize thread_resume::thread
6655 with null_ptid.
6656
6657 2017-04-05 Pedro Alves <palves@redhat.com>
6658
6659 * configure: Regenerate.
6660
6661 2017-04-05 Pedro Alves <palves@redhat.com>
6662
6663 * gdbreplay.c (sync_error): Constify.
6664 * linux-x86-low.c (push_opcode): Constify.
6665
6666 2017-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
6672 2017-04-05 Pedro Alves <palves@redhat.com>
6673
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.
6677
6678 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
6679
6680 * Makefile.in (clean): Clear .deps.
6681
6682 2017-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
6694 2017-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
6702 2017-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
6709 2017-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
6719 2017-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
6728 2017-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
6784 2017-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
6792 2017-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
6811 2017-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
6839 2017-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
6844 2017-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
6942 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
6943
6944 * Makefile.in (SFILES): Add "common/environ.c".
6945 (OBJS): Add "common/environ.h".
6946
6947 2017-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
6954 2017-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
6961 2016-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
6966 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
6967
6968 * Makefile.in: Include disable-implicit-rules.mk.
6969
6970 2016-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
6979 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
6980
6981 * Makefile.in: Fix whitespace formatting.
6982
6983 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
6984
6985 * Makefile.in (SFILES, OBS): Flatten list and order
6986 alphabetically.
6987
6988 2016-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
6995 2016-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
7006 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7007
7008 * Makefile.in (.c.o): Replace rule with ...
7009 (%.o: %.c): ... this one.
7010
7011 2016-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
7019 2016-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
7028 2016-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
7033 2016-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
7040 2016-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
7045 2016-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
7058 2016-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
7064 2016-10-10 Yao Qi <yao.qi@linaro.org>
7065
7066 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7067
7068 2016-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
7075 2016-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
7081 2016-10-05 Yao Qi <yao.qi@linaro.org>
7082
7083 * configure.srv: Update the path of arm-*.xml files.
7084
7085 2016-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
7095 2016-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
7101 2016-09-26 Yao Qi <yao.qi@linaro.org>
7102
7103 * linux-low.c (linux_wait_1): Call debug_exit.
7104
7105 2016-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
7111 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7112
7113 * .gitinore: Ignore more files.
7114
7115 2016-09-21 Yao Qi <yao.qi@linaro.org>
7116
7117 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7118 23.
7119
7120 2016-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
7129 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7130
7131 * linux-low.c (lwp_is_stepping): New function.
7132
7133 2016-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
7139 2016-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
7145 2016-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
7154 2016-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
7160 2016-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
7166 2016-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
7175 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7176
7177 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7178
7179 2016-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
7194 2016-08-19 Pedro Alves <palves@redhat.com>
7195
7196 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7197
7198 2016-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
7203 2016-08-19 Pedro Alves <palves@redhat.com>
7204
7205 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7206 allocating around 0x80000000.
7207
7208 2016-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
7222 2016-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
7235 2016-08-05 Pedro Alves <palves@redhat.com>
7236
7237 * configure: Regenerate.
7238
7239 2016-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
7244 2016-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
7252 2016-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
7259 2016-07-26 Pedro Alves <palves@redhat.com>
7260
7261 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7262 to 'ptrace'.
7263
7264 2016-07-21 Tom Tromey <tom@tromey.com>
7265
7266 * configure: Rebuild.
7267
7268 2016-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
7273 2016-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
7278 2016-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
7289 2016-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
7296 2016-07-21 Yao Qi <yao.qi@linaro.org>
7297
7298 * linux-low.c (linux_resume_one_thread): Call
7299 enqueue_pending_signal.
7300
7301 2016-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
7310 2016-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
7326 2016-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
7335 2016-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
7366 2016-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
7374 2016-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
7380 2016-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
7390 2016-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
7400 2016-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
7405 2016-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
7411 2016-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
7420 2016-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
7437 2016-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
7448 2016-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
7453 2016-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
7459 2016-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
7466 2016-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
7476 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7477
7478 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7479
7480 2016-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
7485 2016-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
7490 2016-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
7495 2016-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
7501 2016-04-28 Par Olsson <par.olsson@windriver.com>
7502 Simon Marchi <simon.marchi@ericsson.com>
7503
7504 * tracepoint.c (write_inferior_int8): New function.
7505 (cmd_qtenable_disable): Write enable flag using
7506 write_inferior_int8.
7507
7508 2016-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
7514 2016-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
7519 2016-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
7524 2016-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
7530 2016-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
7537 2016-04-20 Pedro Alves <palves@redhat.com>
7538
7539 * configure: Renegerate.
7540
7541 2016-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
7548 2016-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
7581 2016-04-18 Pedro Alves <palves@redhat.com>
7582
7583 * configure: Regenerate.
7584
7585 2016-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
7590 2016-04-12 Pedro Alves <palves@redhat.com>
7591
7592 * utils.c (prepare_to_throw_exception): Delete.
7593
7594 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
7595
7596 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
7597
7598 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
7599
7600 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
7601
7602 2016-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
7608 2016-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
7617 2016-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
7705 2016-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
7775 2016-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
7789 2016-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
7818 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
7819
7820 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
7821
7822 2016-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
7832 2016-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
7913 2016-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
7974 2016-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
7979 2016-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
7984 2016-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
7991 2016-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
7996 2016-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
8001 2016-03-03 Yao Qi <yao.qi@linaro.org>
8002
8003 * linux-low.c: Update comments to start_step_over.
8004
8005 2016-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
8011 2016-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
8016 2016-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
8021 2016-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
8038 2016-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
8078 2016-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
8090 2016-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
8097 2016-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
8102 2016-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
8107 2016-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
8113 2016-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
8118 2016-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
8130 2016-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
8145 2016-02-10 Yao Qi <yao.qi@linaro.org>
8146
8147 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8148
8149 2016-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
8155 2016-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
8165 2016-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
8182 2016-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
8188 2016-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
8196 2016-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
8201 2016-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
8212 2016-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
8217 2016-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
8224 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8225
8226 * gdb.trace/pending.exp: Fix expected message on continue.
8227
8228 2016-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
8234 2016-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
8240 2016-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
8247 2016-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
8261 2016-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
8297 2016-01-18 Gary Benson <gbenson@redhat.com>
8298
8299 * configure.ac (AC_FUNC_FORK): New check.
8300 * config.in: Regenerate.
8301 * configure: Likewise.
8302
8303 2016-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
8310 2016-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
8340 2016-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
8346 2016-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
8359 2016-01-12 Pedro Alves <palves@redhat.com>
8360
8361 Remove use of the registered trademark symbol throughout.
8362
8363 2016-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
8368 2016-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
8382 2016-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
8388 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8389
8390 * server.c (crc32_table): Delete.
8391 (crc32): Use libiberty's xcrc32 function.
8392
8393 2015-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
8399 2015-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
8405 2015-12-21 Yao Qi <yao.qi@linaro.org>
8406
8407 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8408 arm breakpoint.
8409
8410 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8411
8412 * server.c (handle_query): Call target_supports_software_single_step.
8413
8414 2015-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
8420 2015-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
8456 2015-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
8467 2015-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
8485 2015-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
8495 2015-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
8501 2015-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
8506 2015-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
8511 2015-12-11 Yao Qi <yao.qi@linaro.org>
8512
8513 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8514 arm breakpoint.
8515
8516 2015-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
8561 2015-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
8579 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
8580
8581 * linux-arm-low.c: Remove duplicate arch/arm.h include.
8582
8583 2015-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
8598 2015-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
8617 2015-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
8661 2015-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
8667 2015-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
8682 2015-11-30 Pedro Alves <palves@redhat.com>
8683
8684 * linux-low.c (linux_resume): Wake up the event loop before
8685 returning.
8686
8687 2015-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
8700 2015-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
8716 2015-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
8724 2015-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
8745 2015-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
8750 2015-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
8755 2015-11-30 Pedro Alves <palves@redhat.com>
8756
8757 * server.c (handle_v_requests): Handle vCtrlC.
8758
8759 2015-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
8767 2015-11-26 Daniel Colascione <dancol@dancol.org>
8768 Simon Marchi <simon.marchi@ericsson.com>
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
8776 2015-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
8786 2015-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
8791 2015-11-22 Doug Evans <xdje42@gmail.com>
8792
8793 * target.h: #include <sys/types.h>.
8794
8795 2015-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
8810 2015-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
8816 2015-11-19 Pedro Alves <palves@redhat.com>
8817
8818 * configure: Regenerate.
8819
8820 2015-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
8825 2015-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
8830 2015-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
8836 2015-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
8842 2015-11-18 Pedro Alves <palves@redhat.com>
8843
8844 * Makefile.in (all_object_files): Add $IPA_OBJS.
8845
8846 2015-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
8851 2015-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
8859 2015-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
8866 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8867
8868 * linux-mips-low.c (mips_add_watchpoint): Rename private to
8869 priv.
8870
8871 2015-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
8876 2015-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
8881 2015-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
8888 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8889
8890 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
8891
8892 2015-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
8902 2015-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
8908 2015-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
8913 2015-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
8918 2015-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
8923 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
8924
8925 * server.c (handle_search_memory_1): Cast return value of
8926 memmem.
8927
8928 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
8929
8930 * server.c (write_qxfer_response): Change type of data to
8931 gdb_byte *.
8932
8933 2015-10-29 Pedro Alves <palves@redhat.com>
8934
8935 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
8936
8937 2015-10-29 Pedro Alves <palves@redhat.com>
8938
8939 * tracepoint.c (clear_installed_tracepoints): Add casts.
8940
8941 2015-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
8946 2015-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
8964 2015-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
8982 2015-10-26 Doug Evans <dje@google.com>
8983
8984 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
8985
8986 2015-10-26 Doug Evans <dje@google.com>
8987
8988 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
8989
8990 2015-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
8996 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
8997
8998 * mem-break.h (set_breakpoint_data): Remove.
8999
9000 2015-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
9012 2015-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
9019 2015-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
9025 2015-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
9030 2015-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
9036 2015-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
9045 2015-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
9078 2015-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
9169 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9170
9171 * linux-cris-low.c (cris_get_pc): Remove void arg.
9172
9173 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9174
9175 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9176 variable name.
9177
9178 2015-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
9185 2015-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
9192 2015-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
9197 2015-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
9202 2015-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
9214 2015-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
9222 2015-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
9237 2015-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
9244 2015-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
9252 2015-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
9257 2015-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
9275 2015-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
9323 2015-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
9410 2015-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
9477 2015-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
9482 2015-09-21 Yao Qi <yao.qi@linaro.org>
9483
9484 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9485
9486 2015-09-21 Yao Qi <yao.qi@linaro.org>
9487
9488 * tracepoint.c (max_jump_pad_size): Remove.
9489
9490 2015-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
9495 2015-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
9500 2015-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
9506 2015-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
9513 2015-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
9518 2015-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
9527 2015-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
9547 2015-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
9554 2015-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
9587 2015-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
9593 2015-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
9599 2015-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
9604 2015-08-27 Pedro Alves <palves@redhat.com>
9605
9606 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
9607
9608 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
9609
9610 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
9611 the XNEW-family equivalent.
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
9664 2015-08-25 Yao Qi <yao.qi@linaro.org>
9665
9666 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
9667
9668 2015-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
9677 2015-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
9682 2015-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
9687 2015-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
9694 2015-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
9699 2015-08-25 Yao Qi <yao.qi@linaro.org>
9700
9701 * linux-aarch64-low.c (debug_reg_change_callback): Use
9702 debug_printf.
9703
9704 2015-08-25 Yao Qi <yao.qi@linaro.org>
9705
9706 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
9707
9708 2015-08-25 Yao Qi <yao.qi@linaro.org>
9709
9710 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
9711
9712 2015-08-25 Yao Qi <yao.qi@linaro.org>
9713
9714 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
9715 the code.
9716
9717 2015-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
9727 2015-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
9734 2015-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
9741 2015-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
9746 2015-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
9751 2015-08-21 Pedro Alves <palves@redhat.com>
9752
9753 * tdesc.c (default_description): Explicitly zero-initialize.
9754
9755 2015-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
9769 2015-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
9800 2015-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
9807 2015-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
9812 2015-08-18 Joel Brobecker <brobecker@adacore.com>
9813
9814 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
9815
9816 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
9817
9818 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
9819
9820 2015-08-06 Pedro Alves <palves@redhat.com>
9821
9822 * tracepoint.c (expr_eval_result): Now an int.
9823
9824 2015-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
9839 2015-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
9844 2015-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
9849 2015-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
9854 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
9855
9856 * tracepoint.c (symbol_list) <required>: Remove.
9857
9858 2015-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
9882 2015-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
9896 2015-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
9902 2015-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
9907 2015-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
9914 2015-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
9920 2015-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
9933 2015-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
9951 2015-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
9957 2015-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
9966 2015-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
9974 2015-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
9980 2015-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
9988 2015-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
9994 2015-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
9999 2015-07-27 Yao Qi <yao.qi@linaro.org>
10000
10001 * configure.srv (case aarch64*-*-linux*): Don't set
10002 srv_linux_usrregs.
10003
10004 2015-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
10021 2015-07-24 Pedro Alves <palves@redhat.com>
10022
10023 * config.in: Regenerate.
10024 * configure: Regenerate.
10025
10026 2015-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
10032 2015-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
10040 2015-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
10059 2015-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
10066 2015-07-24 Yao Qi <yao.qi@linaro.org>
10067
10068 * server.c (start_inferior): Code refactor.
10069
10070 2015-07-24 Yao Qi <yao.qi@linaro.org>
10071
10072 * server.c (process_serial_event): Set general_thread.
10073
10074 2015-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
10079 2015-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
10109 2015-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
10119 2015-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
10125 2015-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
10132 2015-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
10148 2015-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
10155 2015-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
10162 2015-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
10170 2015-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
10176 2015-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
10181 2015-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
10187 2015-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
10194 2015-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
10200 2015-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
10210 2015-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
10215 2015-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
10222 2015-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
10232 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10233
10234 * server.c (write_qxfer_response): Update call to
10235 remote_escape_output.
10236
10237 2015-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
10244 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10245
10246 * server.c (handle_qxfer_libraries): Set `version' attribute for
10247 <library-list>.
10248
10249 2015-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
10269 2015-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
10278 2015-06-09 Gary Benson <gbenson@redhat.com>
10279
10280 * hostio.c (handle_open): Process mode argument with
10281 fileio_to_host_mode.
10282
10283 2015-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
10288 2015-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
10293 2015-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
10298 2015-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
10305 2015-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
10316 2015-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
10333 2015-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
10360 2015-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
10368 2015-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
10389 2015-05-12 Gary Benson <gbenson@redhat.com>
10390
10391 * server.c (handle_qxfer_exec_file): Use current process
10392 if annex is empty.
10393
10394 2015-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
10401 2015-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
10417 2015-05-06 Pedro Alves <palves@redhat.com>
10418
10419 PR server/18081
10420 * server.c (start_inferior): If the process exits, mourn it.
10421
10422 2015-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
10428 2015-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
10434 2015-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
10439 2015-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
10447 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10448
10449 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10450
10451 2015-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
10456 2015-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
10466 2015-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
10472 2015-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
10479 2015-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
10485 2015-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
10501 2015-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
10507 2015-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
10519 2015-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
10525 2015-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
10539 2015-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
10553 2015-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
10562 2015-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
10572 2015-03-24 Gary Benson <gbenson@redhat.com>
10573
10574 * linux-low.h (linux_stop_lwp): Remove declaration.
10575
10576 2015-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
10588 2015-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
10593 2015-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
10601 2015-03-20 Pedro Alves <palves@redhat.com>
10602
10603 * tracepoint.c (cmd_qtstatus): Make "str" const.
10604
10605 2015-03-20 Pedro Alves <palves@redhat.com>
10606
10607 * server.c (handle_general_set): Make "req_str" const.
10608
10609 2015-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
10619 2015-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
10625 2015-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
10630 2015-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
10635 2015-03-18 Gary Benson <gbenson@redhat.com>
10636
10637 * server.c (handle_query): Do not report vFile:fstat as supported.
10638
10639 2015-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.
10646
10647 2015-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
10657 2015-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
10662 2015-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
10677 2015-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
10683 2015-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
10696 2015-03-07 Pedro Alves <palves@redhat.com>
10697
10698 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
10699 instead.
10700
10701 2015-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
10707 2015-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
10716 2015-03-04 Pedro Alves <palves@redhat.com>
10717
10718 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
10719 Decide whether a breakpoint triggered based on the SIGTRAP's
10720 siginfo.si_code.
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.
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.
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.
10732
10733 2015-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
10748 2015-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
10760 2015-03-04 Yao Qi <yao.qi@linaro.org>
10761
10762 * Makefile.in (SFILES): Add linux-aarch64-low.c.
10763
10764 2015-03-03 Gary Benson <gbenson@redhat.com>
10765
10766 * hostio.c (handle_vFile): Fix prefix lengths.
10767
10768 2015-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
10773 2015-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
10799 2015-03-01 Pedro Alves <palves@redhat.com>
10800
10801 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
10802 parameter.
10803
10804 2015-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
10809 2015-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
10820 2015-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
10871 2015-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
10876 2015-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
10893 2015-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
10899 2015-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
10906 2015-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
10914 2015-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
10921 2015-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
10927 2015-02-20 Pedro Alves <palves@redhat.com>
10928
10929 * linux-low.c (status_pending_p_callback): Use ptid_match.
10930
10931 2015-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
10938 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
10939
10940 PR breakpoints/15956
10941 * tracepoint.c (cmd_qtinit): Add check for current_thread.
10942
10943 2015-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
10950 2015-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
10967 2015-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
10977 2015-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
10986 2015-02-06 Pedro Alves <palves@redhat.com>
10987
10988 * thread-db.c (find_new_threads_callback): Add debug output.
10989
10990 2015-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
10996 2015-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
11007 2015-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
11015 2015-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
11026 2015-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
11036 2015-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
11042 2015-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
11097 2015-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
11102 2015-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
11112 2015-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
11117 2014-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
11124 2014-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
11130 2014-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
11139 2014-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
11144 2014-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
11150 2014-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
11157 2014-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
11166 2014-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
11173 2014-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
11179 2014-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
11186 2014-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
11196 2014-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
11201 2014-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
11208 2014-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
11213 2014-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
11218 2014-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
11259 2014-10-08 Gary Benson <gbenson@redhat.com>
11260
11261 * server.h: Do not include common-exceptions.h.
11262
11263 2014-10-08 Gary Benson <gbenson@redhat.com>
11264
11265 * server.h: Do not include cleanups.h.
11266
11267 2014-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
11272 2014-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
11280 2014-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
11287 2014-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
11293 2014-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
11325 2014-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
11332 2014-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
11339 2014-09-11 Gary Benson <gbenson@redhat.com>
11340
11341 * target.c (target_stop_ptid, target_continue_ptid): New
11342 functions.
11343
11344 2014-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
11351 2014-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
11359 2014-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
11365 2014-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
11370 2014-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
11375 2014-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
11384 2014-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
11389 2014-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
11402 2014-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
11409 2014-08-29 Gary Benson <gbenson@redhat.com>
11410
11411 * config.in: Regenerate.
11412 * configure: Likewise.
11413
11414 2014-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
11420 2014-08-29 Gary Benson <gbenson@redhat.com>
11421
11422 * utils.c (internal_vwarning): New function.
11423
11424 2014-08-28 Gary Benson <gbenson@redhat.com>
11425
11426 * utils.h (fatal): Remove declaration.
11427 * utils.c (fatal): Remove function.
11428
11429 2014-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
11435 2014-08-28 Gary Benson <gbenson@redhat.com>
11436
11437 * remote-utils.c (remote_prepare): Replace fatal with error.
11438
11439 2014-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
11445 2014-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
11453 2014-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
11483 2014-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
11493 2014-08-19 Gary Benson <gbenson@redhat.com>
11494
11495 * utils.h: Do not include print-utils.h.
11496
11497 2014-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
11503 2014-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
11519 2014-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
11533 2014-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
11543 2014-08-07 Gary Benson <gbenson@redhat.com>
11544
11545 * server.h: Do not include gdb_assert.h.
11546
11547 2014-08-07 Gary Benson <gbenson@redhat.com>
11548
11549 * server.h: Do not include common-utils.h.
11550
11551 2014-08-07 Gary Benson <gbenson@redhat.com>
11552
11553 * server.h: Do not include ptid.h.
11554 * notif.h: Likewise.
11555
11556 2014-08-07 Gary Benson <gbenson@redhat.com>
11557
11558 * server.h: Do not include gdb_locale.h.
11559
11560 2014-08-07 Gary Benson <gbenson@redhat.com>
11561
11562 * server.h: Do not include gdb/signals.h.
11563 * win32-low.c: Likewise.
11564
11565 2014-08-07 Gary Benson <gbenson@redhat.com>
11566
11567 * server.h: Do not include pathmax.h.
11568
11569 2014-08-07 Gary Benson <gbenson@redhat.com>
11570
11571 * server.h: Do not include libiberty.h.
11572 * linux-bfin-low.c: Likewise.
11573
11574 2014-08-07 Gary Benson <gbenson@redhat.com>
11575
11576 * server.h: Do not include ansidecl.h.
11577
11578 2014-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
11584 2014-08-07 Gary Benson <gbenson@redhat.com>
11585
11586 * server.h: Do not include stdarg.h.
11587 * nto-low.c: Likewise.
11588
11589 2014-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
11599 2014-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
11608 2014-08-06 Gary Benson <gbenson@redhat.com>
11609
11610 * regcache.c (init_register_cache): Move conditionals inside if.
11611
11612 2014-08-06 Gary Benson <gbenson@redhat.com>
11613
11614 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
11615
11616 2014-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
11623 2014-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
11628 2014-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
11635 2014-07-24 Tom Tromey <tromey@redhat.com>
11636 Gary Benson <gbenson@redhat.com>
11637
11638 * server.h (CORE_ADDR): Now unsigned.
11639
11640 2014-07-16 Pedro Alves <palves@redhat.com>
11641
11642 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
11643
11644 2014-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
11649 2014-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
11655 2014-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
11660 2014-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
11666 2014-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
11672 2014-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
11697 2014-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
11703 2014-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
11746 2014-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
11763 2014-06-18 Gary Benson <gbenson@redhat.com>
11764
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
11772 2014-06-17 Gary Benson <gbenson@redhat.com>
11773
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
11788 2014-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
11825 2014-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
11831 2014-06-18 Gary Benson <gbenson@redhat.com>
11832
11833 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
11834 Renamed to state.
11835
11836 2014-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
11842 2014-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
11849 2014-06-18 Gary Benson <gbenson@redhat.com>
11850
11851 * i386-low.h: Comment changes.
11852 * i386-low.c: Likewise.
11853
11854 2014-06-18 Gary Benson <gbenson@redhat.com>
11855
11856 * i386-low.c: Whitespace changes.
11857
11858 2014-06-12 Tom Tromey <tromey@redhat.com>
11859
11860 * utils.c (freeargv): Remove.
11861
11862 2014-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
11883 2014-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
11890 2014-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
11902 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11903
11904 * linux-aarch64-low.c (asm/ptrace.h): Include.
11905
11906 2014-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
11913 2014-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
12067 2014-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
12092 2014-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
12113 2014-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
12119 2014-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
12125 2014-04-28 Yao Qi <yao@codesourcery.com>
12126
12127 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12128 name.
12129
12130 2014-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
12149 2014-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
12193 2014-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
12198 2014-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
12217 2014-04-23 Pedro Alves <palves@redhat.com>
12218
12219 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12220
12221 2014-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
12231 2014-04-09 Pedro Alves <palves@redhat.com>
12232
12233 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12234 to lwpid_of.
12235
12236 2014-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
12264 2014-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
12274 2014-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
12285 2014-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
12302 2014-02-20 Doug Evans <dje@google.com>
12303
12304 Remove global all_lwps.
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
12443 2014-02-20 Doug Evans <dje@google.com>
12444
12445 * inferiors.c (get_first_inferior): Fix buglet.
12446
12447 2014-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
12457 2014-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
12462 2014-02-19 Doug Evans <dje@google.com>
12463
12464 * inferiors.c (add_thread): Fix whitespace.
12465
12466 2014-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
12514 2014-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
12542 2014-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
12548 2014-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
12553 2014-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
12561 2014-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
12567 2014-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
12579 2014-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
12585 2014-02-12 Tom Tromey <tromey@redhat.com>
12586
12587 * remote-utils.c (monitor_output): Pass explicit length to
12588 hexify.
12589
12590 2014-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
12608 2014-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
12620 2014-02-06 Tom Tromey <tromey@redhat.com>
12621
12622 * Makefile.in (SFILES): Fix indentation.
12623
12624 2014-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
12629 2014-01-22 Doug Evans <dje@google.com>
12630
12631 * gdbthread.h (gdb_id_to_thread): Delete, unused.
12632
12633 2014-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
12676 2014-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
12681 2014-01-17 Pedro Alves <palves@redhat.com>
12682
12683 PR build/16445
12684 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
12685 defined after including gdb_proc_service.h.
12686
12687 2014-01-16 Doug Evans <dje@google.com>
12688
12689 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
12690 (match_dll): Use it.
12691
12692 2014-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
12702 2014-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
12707 2014-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
12713 2014-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
12719 2014-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
12737 2014-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
12742 2013-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
12747 2013-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
12755 2013-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
12770 2013-12-11 Yao Qi <yao@codesourcery.com>
12771
12772 * notif.c (handle_notif_ack): Return 0 if no notification
12773 matches.
12774
12775 2013-11-20 Doug Evans <dje@google.com>
12776
12777 * linux-low.c (linux_set_resume_request): Fix comment.
12778
12779 2013-11-20 Doug Evans <dje@google.com>
12780
12781 * linux-low.c (resume_status_pending_p): Tweak comment.
12782
12783 2013-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
12806 2013-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
12812 2013-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
12818 2013-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
12824 2013-11-18 Tom Tromey <tromey@redhat.com>
12825
12826 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
12827 LIBGNU.
12828
12829 2013-11-08 Tom Tromey <tromey@redhat.com>
12830
12831 * configure, config.in: Rebuild.
12832 * configure.ac: Remove unused configury.
12833
12834 2013-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
12840 2013-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
12846 2013-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
12852 2013-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
12859 2013-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
12865 2013-09-28 Mike Frysinger <vapier@gentoo.org>
12866
12867 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
12868 * config.in, configure: Regenerated.
12869
12870 2013-09-18 Yao Qi <yao@codesourcery.com>
12871
12872 PR server/15959
12873 * server.c (start_inferior): Clear 'resume_info'.
12874
12875 2013-09-16 Jiong Wang <jiwang@tilera.com>
12876
12877 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
12878 for each register.
12879
12880 2013-09-16 Jiong Wang <jiwang@tilera.com>
12881
12882 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
12883 linux-tile-low.o to srv_tgtobj.
12884
12885 2013-09-16 Will Newton <will.newton@linaro.org>
12886
12887 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
12888 out regs.
12889
12890 2013-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
12899 2013-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
12904 2013-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
12909 2013-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
12914 2013-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
12920 2013-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
12928 2013-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
12936 2013-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
12944 2013-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
12957 2013-09-05 Pedro Alves <palves@redhat.com>
12958
12959 * server.h (struct emit_ops, current_insn_ptr, emit_error):
12960 Move ...
12961 * ax.h: ... here.
12962
12963 2013-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
12987 2013-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
12994 2013-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
13012 2013-09-05 Pedro Alves <palves@redhat.com>
13013
13014 * server.h (_): Delete.
13015
13016 2013-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
13023 2013-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
13029 2013-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
13034 2013-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
13046 2013-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
13073 2013-08-21 Pedro Alves <palves@redhat.com>
13074
13075 * config.in: Renegerate.
13076
13077 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13078
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
13092 2013-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
13102 2013-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
13123 2013-07-27 Yao Qi <yao@codesourcery.com>
13124
13125 * i386-low.c: Include break-common.h.
13126 (enum target_hw_bp_type): Remove.
13127
13128 2013-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
13143 2013-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
13159 2013-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
13165 2013-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.
13172
13173 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13174
13175 * notif.h (notif_event): Add a dummy member to avoid compiler
13176 errors.
13177
13178 2013-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
13184 2013-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
13193 2013-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
13203 2013-06-28 Tom Tromey <tromey@redhat.com>
13204
13205 * Makefile.in (version.c): Use version.in, not
13206 common/version.in.
13207
13208 2013-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
13215 2013-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
13220 2013-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
13226 2013-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
13231 2013-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
13241 2013-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
13247 2013-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
13257 2013-06-11 Pedro Alves <palves@redhat.com>
13258
13259 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13260 xmalloc.
13261
13262 2013-06-11 Pedro Alves <palves@redhat.com>
13263
13264 * linux-x86-low.c (initialize_low_arch): Call
13265 init_registers_x32_avx_linux.
13266
13267 2013-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
13273 2013-06-07 Pedro Alves <palves@redhat.com>
13274
13275 PR server/14823
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.
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.
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
13626 2013-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
13635 2013-05-31 Doug Evans <dje@google.com>
13636
13637 PR server/15594
13638 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
13639 64 bits in 64-cross-32 environment.
13640
13641 2013-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
13650 2013-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
13656 2013-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
13683 2013-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
13688 2013-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
13703 2013-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
13708 2013-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
13718 2013-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
13727 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
13728
13729 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
13730
13731 2013-04-25 Hui Zhu <hui@codesourcery.com>
13732
13733 PR gdb/15186
13734 * ax.c (ax_printf): Add fflush.
13735
13736 2013-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
13744 2013-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
13752 2013-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
13757 2013-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
13766 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13767
13768 * Makefile.in (install-only): Fix make install regression.
13769
13770 2013-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
13777 2013-03-22 Pedro Alves <palves@redhat.com>
13778
13779 * linux-low.c (handle_extended_wait): Don't call
13780 linux_enable_event_reporting.
13781
13782 2013-03-15 Tony Theodore <tonyt@logyst.com>
13783
13784 PR build/9098:
13785 * Makefile.in (SHELL): Use @SHELL@.
13786
13787 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
13788
13789 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
13790 compiler warning.
13791
13792 2013-03-13 Joel Brobecker <brobecker@adacore.com>
13793
13794 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
13795 Remove extraneous NULL element.
13796
13797 2013-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
13802 2013-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
13830 2013-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
13836 2013-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
13842 2013-03-08 Stan Shebs <stan@codesourcery.com>
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
13857 2013-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
13865 2013-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
13871 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
13872
13873 * configure.srv: Add x86_64-*-cygwin* as target.
13874
13875 2013-02-28 Tom Tromey <tromey@redhat.com>
13876
13877 * configure.ac: Invoke AC_SYS_LARGEFILE.
13878 * configure, config.in: Rebuild.
13879
13880 2013-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
13888 2013-02-28 Yao Qi <yao@codesourcery.com>
13889
13890 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
13891 pulongest.
13892
13893 2013-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
13905 2013-02-27 Yao Qi <yao@codesourcery.com>
13906
13907 * server.c (process_point_options): Print debug message when
13908 debug_threads is true.
13909
13910 2013-02-26 Yao Qi <yao@codesourcery.com>
13911
13912 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
13913
13914 2013-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
13923 2013-02-18 Yao Qi <yao@codesourcery.com>
13924
13925 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
13926
13927 2013-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
13934 2013-02-14 Pedro Alves <palves@redhat.com>
13935
13936 * tracepoint.c (cmd_qtdpsrc): Use savestring.
13937
13938 2013-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
13943 2013-02-12 Pedro Alves <palves@redhat.com>
13944
13945 * linux-xtensa-low.c: Ditto.
13946 * xtensa-xtregs.c: Ditto.
13947
13948 2013-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
13953 2013-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
13959 2013-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
13964 2013-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
13974 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
13975
13976 * linux-low.c (handle_extended_wait, linux_create_inferior)
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
13985 2013-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
13999 2013-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
14017 2013-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
14022 2013-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
14028 2013-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
14033 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14034
14035 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14036
14037 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14038
14039 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14040
14041 2013-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
14051 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14052
14053 * lynx-low.c (lynx_resume): Delete variable ret.
14054
14055 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14056
14057 * gdbreplay.c (gdbreplay_version): Update copyright year.
14058 * server.c (gdbserver_version): Likewise.
14059
14060 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14061
14062 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14063 new thread.
14064
14065 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14066
14067 * lynx-low.c (ptrace_request_to_str): Add handling for
14068 PTRACE_GETTRACESIG.
14069
14070 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14071
14072 * lynx-low.c (lynx_attach): Delete variable new_process.
14073
14074 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14075
14076 * lynx-low.c (lynx_create_inferior): Delete variable
14077 new_process.
14078
14079 2012-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
14084 2012-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
14109 2012-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
14158 2012-12-05 Tom Tromey <tromey@redhat.com>
14159
14160 PR gdb/14917:
14161 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14162
14163 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14164
14165 * configure.ac: Check for linux/perf_event.h.
14166 * config.in: Regenerated.
14167 * configure: Regenerated.
14168
14169 2012-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
14174 2012-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
14181 2012-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
14195 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14196
14197 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14198 (various make rules): Remove -DGDBSERVER
14199
14200 2012-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
14209 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14210
14211 * server.c (handle_search_memory_1): Include access length in
14212 warning message.
14213
14214 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14215
14216 * linux-crisv32-low.c: Fix compile errors.
14217
14218 2012-09-04 Yao Qi <yao@codesourcery.com>
14219
14220 * tracepoint.c (cmd_qtsv): Adjust debug message.
14221 Don't check CUR_TPOINT.
14222
14223 2012-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
14234 2012-08-23 Yao Qi <yao@codesourcery.com>
14235
14236 * server.h: Remove declaration of 'xsnprintf'.
14237
14238 2012-08-22 Keith Seitz <keiths@redhat.com>
14239
14240 * server.h: Include build-gnulib-gbserver/config.h.
14241 * gdbreplay.c: Likewise.
14242
14243 2012-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
14258 2012-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
14264 2012-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
14270 2012-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
14276 2012-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
14281 2012-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
14298 2012-07-27 Yao Qi <yao@codesourcery.com>
14299
14300 * server.c (process_point_options): Stop at 'X' when parsing.
14301
14302 2012-07-19 Michael Eager <eager@eagercon.com>
14303
14304 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
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
14310 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14311
14312 * gdbserver/linux-low.c (initialize_low): Call
14313 linux_ptrace_init_warnings.
14314
14315 2012-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
14320 2012-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
14348 2012-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
14353 2012-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
14360 2012-06-11 Yao Qi <yao@codesourcery.com>
14361
14362 * linux-low.c (linux_attach): Add 'static'.
14363
14364 2012-06-06 Yao Qi <yao@codesourcery.com>
14365
14366 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14367
14368 2012-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
14373 2012-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
14378 2012-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
14385 2012-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
14389 2012-05-24 Pedro Alves <palves@redhat.com>
14390
14391 PR gdb/7205
14392
14393 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
14394
14395 2012-05-24 Pedro Alves <palves@redhat.com>
14396
14397 PR gdb/7205
14398
14399 Replace target_signal with gdb_signal throughout.
14400
14401 2012-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
14406 2012-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
14413 2012-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
14419 2012-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
14432 2012-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
14443 2012-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
14459 2012-04-20 Pedro Alves <palves@redhat.com>
14460
14461 * configure: Regenerate.
14462
14463 2012-04-19 Pedro Alves <palves@redhat.com>
14464
14465 * Makefile.in (GNULIB_BUILDDIR): New.
14466 (LIBGNU, INCGNU, GNULIB_H): Adjust.
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
14473 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
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.
14486
14487 2012-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
14497 2012-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
14503 2012-04-19 Pedro Alves <palves@redhat.com>
14504
14505 * Makefile.in (INCGNU): Add -Ignulib.
14506
14507 2012-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
14515 2012-04-19 Pedro Alves <palves@redhat.com>
14516
14517 * config.in: Regenerate.
14518
14519 2012-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
14526 2012-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
14532 2012-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
14539 2012-04-18 Pedro Alves <palves@redhat.com>
14540
14541 * aclocal.m4: Regenerate.
14542 * configure: Regenerate.
14543
14544 2012-04-16 Yao Qi <yao@codesourcery.com>
14545
14546 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
14547 duplicated on address.
14548
14549 2012-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
14563 2012-04-16 Yao Qi <yao@codesourcery.com>
14564
14565 * tracepoint.c (download_tracepoints): Moved to ...
14566 (cmd_qtstart): ... here.
14567
14568 2012-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
14578 2012-04-14 Yao Qi <yao@codesourcery.com>
14579
14580 Import gnulib module inttypes.
14581 * aclocal.m4, config.in, configure: Regenerated.
14582
14583 2012-04-14 Yao Qi <yao@codesourcery.com>
14584
14585 * Makefile.in (maintainer-clean, realclean, distclean): Remove
14586 Makefile and config.status at last.
14587
14588 2012-04-13 Yao Qi <yao@codesourcery.com>
14589
14590 * tracepoint.c: Include stdint.h unconditionally.
14591
14592 2012-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
14600 2012-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
14625 2012-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
14633 2012-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
14644 2012-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
14654 2012-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
14668 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
14669
14670 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
14671
14672 2012-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
14679 2012-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
14685 2012-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
14694 2012-03-29 Pedro Alves <palves@redhat.com>
14695
14696 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
14697 Correct ptrace arguments.
14698
14699 2012-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
14726 2012-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
14731 2012-03-26 Pedro Alves <palves@redhat.com>
14732
14733 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
14734
14735 2012-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
14741 2012-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
14747 2012-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
14758 2012-03-21 Mike Frysinger <vapier@gentoo.org>
14759
14760 * .gitignore: Ignore more files.
14761
14762 2012-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
14770 2012-03-15 Yao Qi <yao@codesourcery.com>
14771
14772 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
14773 handling to ...
14774 (cmd_qtdp): ... here.
14775
14776 2012-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
14788 2012-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
14793 2012-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
14804 2012-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
14813 2012-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
14823 2012-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
14829 2012-03-03 Yao Qi <yao@codesourcery.com>
14830
14831 * tracepoint.c (tracepoint_look_up_symbols): Update call to
14832 agent_look_up_symbols.
14833
14834 2012-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
14843 2012-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
14853 2012-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
14864 2012-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
14885 2012-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
14895 2012-03-02 Yao Qi <yao@codesourcery.com>
14896
14897 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
14898 debug log.
14899
14900 2012-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
14905 2012-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
14958 2012-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
14964 2012-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
14969 2012-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
14975 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
14976
14977 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
14978 of conditions.
14979
14980 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
14981
14982 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
14983
14984 2012-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
15014 2012-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
15055 non-static.
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
15075 2012-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
15082 2012-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
15091 2012-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
15097 2012-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
15104 2012-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
15112 2012-02-02 Pedro Alves <palves@redhat.com>
15113
15114 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15115 inferior.
15116
15117 2012-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
15128 2012-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
15135 2012-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
15140 2012-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
15145 2012-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
15150 2012-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
15156 2012-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
15161 2012-01-13 Pedro Alves <palves@redhat.com>
15162
15163 * server.c (attach_inferior): Clear `cont_thread'.
15164
15165 2012-01-13 Pedro Alves <palves@redhat.com>
15166
15167 * server.c (main): Avoid infinite loop while detaching/killing
15168 after a longjmp.
15169
15170 2012-01-09 Doug Evans <dje@google.com>
15171
15172 * server.c (start_inferior): Set last_ptid in --wrapper case.
15173
15174 2012-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
15180 2012-01-04 Yao Qi <yao@codesourcery.com>
15181
15182 * tracepoint.c (cmd_qtdp): Print debug message
15183 for static tracepoint.
15184
15185 2012-01-04 Yao Qi <yao@codesourcery.com>
15186
15187 * tracepoint.c (trace_vdebug): Differentiate debug message
15188 between gdbserver and IPA.
15189
15190 2012-01-03 Yao Qi <yao@codesourcery.com>
15191
15192 * tracepoint.c (tracepoint_was_hit): Don't collect for
15193 static tracepoint.
15194
15195 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15196
15197 * terminal.h: Reformat copyright header.
15198
15199 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15200
15201 * server.c (gdbserver_version): Update copyright year.
15202 * gdbreplay.c (gdbreplay_version): Likewise.
15203
15204 2011-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
15212 2011-12-18 Hui Zhu <teawater@gmail.com>
15213
15214 * linux-low.c (linux_create_inferior): Save return value to ret.
15215
15216 2011-12-16 Doug Evans <dje@google.com>
15217
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
15232 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15233 in debugging output.
15234
15235 2011-12-15 Yao Qi <yao@codesourcery.com>
15236
15237 * tracepoint.c: Include sys/syscall.h.
15238 (gdb_ust_thread): Remove preprocessor conditional.
15239
15240 2011-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
15245 2011-12-14 Yao Qi <yao@codesourcery.com>
15246
15247 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15248 of write.
15249
15250 2011-12-14 Yao Qi <yao@codesourcery.com>
15251
15252 * i386-low.c (i386_low_stopped_data_address): Initialize local
15253 variable `control'.
15254
15255 2011-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
15264 2011-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
15270 2011-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
15275 2011-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
15290 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15291
15292 * linux-low.c (fetch_register, store_register): Make code
15293 consistent, fix formatting.
15294
15295 2011-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
15301 2011-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
15338 2011-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
15355 2011-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
15363 2011-11-24 Stan Shebs <stan@codesourcery.com>
15364
15365 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15366
15367 2011-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
15384 2011-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
15435 2011-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
15444 2011-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
15454 2011-11-08 Yao Qi <yao@codesourcery.com>
15455
15456 * remote-utils.c (relocate_instruction): A comment fix.
15457
15458 2011-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
15469 2011-11-05 Yao Qi <yao@codesourcery.com>
15470
15471 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15472 address as TPOINT's.
15473
15474 2011-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
15480 2011-11-02 Yao Qi <yao@codesourcery.com>
15481
15482 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15483
15484 2011-11-02 Yao Qi <yao@codesourcery.com>
15485
15486 * target.h: Fix a typo in comment.
15487
15488 2011-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
15496 2011-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
15516 2011-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
15529 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
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
15541 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
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
15573 2011-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
15601 2011-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
15606 2011-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
15613 2011-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
15621 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
15622
15623 * configure.srv: Add linux-procfs.o dependencies.
15624
15625 2011-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
15630 2011-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
15641 2011-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.
15650 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
15651 to NULL.
15652
15653 2011-08-05 Eli Zaretskii <eliz@gnu.org>
15654
15655 * win32-low.c: Include <stdint.h>.
15656
15657 2011-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
15669 2011-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
15708 2011-07-20 Pedro Alves <pedro@codesourcery.com>
15709
15710 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
15711 symbol error.
15712
15713 2011-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
15719 2011-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
15725 2011-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
15730 2011-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
15738 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
15739
15740 * server.c (handle_query): Add EnableDisableTracepoints to the list
15741 of supported features.
15742 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
15743 tracepoints.
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.
15752
15753 2011-05-10 Doug Evans <dje@google.com>
15754
15755 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
15756
15757 2011-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
15765 2011-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
15770 2011-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
15778 2011-04-26 Yao Qi <yao@codesourcery.com>
15779
15780 * linux-low.c: Move common macros to linux-ptrace.h.
15781 Include linux-ptrace.h.
15782 * Makefile.in (linux_ptrace_h): New.
15783 (linux-low.o): Depends on linux-ptrace.h.
15784
15785 2011-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
15798 2011-04-19 Tom Tromey <tromey@redhat.com>
15799
15800 * win32-low.c (handle_load_dll): Remove duplicate "the".
15801
15802 2011-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
15810 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
15811
15812 * gdbserver/server.h (Macro _): Define it if not available.
15813
15814 2011-03-14 Michael Snyder <msnyder@vmware.com>
15815
15816 * hostio.c (handle_close): Remove unnecessary null test.
15817
15818 2011-03-10 Joel Brobecker <brobecker@adacore.com>
15819
15820 * Makefile.in (maintainer-clean realclean distclean): Remove
15821 "make ... subdir_do" command.
15822
15823 2011-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
15829 2011-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
15849 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15850
15851 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
15852
15853 2011-03-06 Yao Qi <yao@codesourcery.com>
15854
15855 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
15856
15857 2011-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
15864 2011-03-04 Yao Qi <yao@codesourcery.com>
15865
15866 * Makefile.in: Remove GNU make feature --directory.
15867
15868 2011-03-04 Michael Snyder <msnyder@vmware.com>
15869
15870 * server.c (queue_stop_reply): Call xmalloc not malloc.
15871
15872 2011-03-02 Michael Snyder <msnyder@vmware.com>
15873
15874 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
15875
15876 2011-02-28 Michael Snyder <msnyder@vmware.com>
15877
15878 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
15879 (cmd_qtframe): Ditto.
15880 (cmd_qtbuffer): Ditto.
15881 (cmd_bigqtbuffer): Ditto.
15882
15883 * utils.c (decimal2str): Initialize 'width' to nine, then
15884 don't mess with it.
15885
15886 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15887
15888 * hostio.c (require_data): Free *data, not data.
15889
15890 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15891
15892 * hostio.c (require_data): Use free, not xfree.
15893
15894 2011-02-27 Michael Snyder <msnyder@vmware.com>
15895
15896 * server.c (handle_query): Discard unused value.
15897
15898 * hostio.c (require_data): Free malloc memory before returning
15899 error.
15900
15901 2011-02-26 Michael Snyder <msnyder@vmware.com>
15902
15903 * linux-low.c (list_threads): Call closedir for dirent.
15904
15905 2011-02-27 Michael Snyder <msnyder@vmware.com>
15906
15907 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
15908 a case statement falls through.
15909
15910 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
15911
15912 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
15913 in comparison.
15914
15915 2011-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
15921 2011-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
15928 2011-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
15933 2011-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
15940 2011-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
15948 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
15949
15950 * aclocal.m4: Regenerated with aclocal-1.11.1.
15951
15952 2011-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
15967 2011-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
15973 2011-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
15981 2011-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
16001 2011-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
16006 2011-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
16027 2011-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
16047 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16048
16049 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16050 update.
16051
16052 2011-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
16058 2010-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
16069 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16070
16071 * .gitignore: New file.
16072
16073 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16074
16075 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16076
16077 2010-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
16083 2010-10-04 Doug Evans <dje@google.com>
16084
16085 * Makefile.in (uninstall): Use $(DESTDIR).
16086
16087 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16088
16089 PR gdb/11842
16090
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
16096 2010-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
16101 2010-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
16106 2010-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
16111 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16112
16113 * configure.ac: Add --enable-inprocess-agent option.
16114 * configure: Rebuilt.
16115
16116 2010-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
16124 2010-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
16129 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16130
16131 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16132
16133 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16134
16135 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16136 "$(IPA_DEPFILES)".
16137
16138 2010-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
16148 2010-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
16155 2010-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
16163 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16164
16165 * Makefile.in (memmem.o): Build with -Wno-error.
16166
16167 2010-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
16174 2010-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
16181 2010-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
16196 2010-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
16202 2010-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
16220 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16221
16222 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16223 * configure: Regenerate.
16224
16225 2010-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
16239 2010-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
16261 2010-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
16272 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16273
16274 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16275
16276 2010-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
16287 2010-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
16292 2010-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
16301 2010-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
16338 2010-08-24 Pedro Alves <pedro@codesourcery.com>
16339
16340 * linux-low.h (linux_thread_area): Delete declaration.
16341
16342 2010-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
16347 2010-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
16356 2010-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
16363 2010-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
16369 2010-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
16375 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16376
16377 * server.c (handle_query): strcpy() the returned string from paddress()
16378 instead of sprintf().
16379 * utils.c (paddress): Return phex_nz().
16380
16381 2010-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
16387 2010-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
16473 2010-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
16480 2010-06-20 Pedro Alves <pedro@codesourcery.com>
16481
16482 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16483 conditions in gdbserver.
16484
16485 2010-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
16490 2010-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
16500 2010-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
16573 2010-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
16578 2010-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'.
16734 <actions_str, step_actions, step_actions_str>: Only include in
16735 GDBserver.
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
16835 2010-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
16840 2010-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
16849 2010-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
16854 2010-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
16860 2010-05-23 Pedro Alves <pedro@codesourcery.com>
16861
16862 * config.h: Regenerate.
16863
16864 2010-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
16869 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
16870
16871 * linux-m68k-low.c: Include <asm/ptrace.h>
16872 (ps_get_thread_area): Implement.
16873
16874 2010-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
16891 2010-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
16913 2010-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
16957 2010-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
16964 2010-05-02 Pedro Alves <pedro@codesourcery.com>
16965
16966 * README: Use consistent `GDB' and `GDBserver' spellings.
16967
16968 2010-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
16994 2010-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
16999 2010-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
17012 2010-04-26 Doug Evans <dje@google.com>
17013
17014 * server.c (handle_general_set): Make static.
17015
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
17020 2010-04-23 Doug Evans <dje@google.com>
17021
17022 * server.c (start_inferior): Print inferior argv if --debug.
17023
17024 2010-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
17029 2010-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
17036 2010-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
17041 2010-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
17050 2010-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
17063 2010-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
17068 2010-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
17075 2010-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
17080 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17081
17082 * configure: Regenerate.
17083
17084 2010-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
17097 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17098
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
17108 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17109
17110 * server.h (buffer_xml_printf): Remove redundant `;'.
17111
17112 2010-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
17121 2010-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
17126 2010-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
17225 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17226
17227 * regcache.c (realloc_register_cache): Invalidate inferior's
17228 regcache before recreating it.
17229
17230 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17231
17232 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17233
17234 2010-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.
17285
17286 * tracepoint.c: New.
17287
17288 * Makefile.in (OBS): Add tracepoint.o.
17289 (tracepoint.o): New rule.
17290
17291 2010-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
17308 2010-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
17384 2010-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
17396 2010-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
17403 2010-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
17420 2010-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
17478 2010-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
17497 2010-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
17513 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17514
17515 * server.c (handle_query): Assign, not compare.
17516
17517 2010-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
17601 2010-03-23 Michael Snyder <msnyder@vmware.com>
17602
17603 * server.c (crc32): New function.
17604 (handle_query): Add handling for 'qCRC:' request.
17605
17606 2010-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
17611 2010-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
17617 2010-03-15 Andreas Schwab <schwab@redhat.com>
17618
17619 * configure.srv: Fix typo setting srv_regobj.
17620
17621 2010-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
17627 2010-03-14 Pedro Alves <pedro@codesourcery.com>
17628
17629 * linux-low.c (linux_write_memory): Bail out early if peeking
17630 memory failed.
17631
17632 2010-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
17645 2010-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
17650 2010-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
17697 2010-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
17703 2010-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
17711 2010-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
17716 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
17717
17718 * regcache.c (supply_register): Clear regcache if buf is NULL.
17719
17720 2010-02-02 Nicolas Roche <roche@sourceware.org>
17721 Joel Brobecker <brobecker@adacore.com>
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
17727 2010-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
17733 2010-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
17739 2010-01-21 Pedro Alves <pedro@codesourcery.com>
17740
17741 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
17742
17743 2010-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
17748 2010-01-21 Doug Evans <dje@google.com>
17749
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
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
17762 2010-01-21 Pedro Alves <pedro@codesourcery.com>
17763
17764 * proc-service.c (ps_lgetregs): Don't refetch registers from the
17765 target.
17766
17767 2010-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
17772 2010-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.
17815 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
17816 Ditto.
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.
17859 * linux-ppc-low.c (ppc_supply_ptrace_register)
17860 (ppc_supply_ptrace_register): Ditto.
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
17899 2010-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.
17904 (W_STOPCODE): Provide definition if missing.
17905
17906 2010-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
17920 2010-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
17947 2010-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
17952 2009-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
17957 2009-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
17968 2009-12-21 Doug Evans <dje@google.com>
17969
17970 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
17971
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
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
17984 * linux-low.c (my_waitpid): Delete unnecessary prototype.
17985
17986 2009-12-18 Doug Evans <dje@google.com>
17987
17988 * event-loop.c: Include unistd.h if it exists.
17989
17990 * linux-low.c (my_waitpid): Move definition away from being in
17991 between linux_tracefork_child/linux_test_for_tracefork.
17992
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
17997 2009-12-16 Doug Evans <dje@google.com>
17998
17999 * linux-low.c (linux_read_memory): Fix argument to read.
18000
18001 2009-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
18006 2009-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
18014 2009-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
18019 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18020
18021 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18022
18023 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18024 Vladimir Prus <vladimir@codesourcery.com>
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
18033 2009-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
18045 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18046
18047 * thread-db.c (thread_db_free): Fix typo.
18048
18049 2009-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
18054 2009-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
18062 2009-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
18069 2009-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.
18076
18077 2009-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.
18083 (thread_db_find_new_threads): Loop until no new threads.
18084
18085 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18086
18087 * proc-service.c (ps_lgetregs): Formatting.
18088
18089 2009-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.
18113
18114 2009-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
18120 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18121
18122 * aclocal.m4: Regenerate.
18123 * config.in: Likewise.
18124 * configure: Likewise.
18125
18126 2009-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
18133 2009-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
18141 2009-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
18154 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18155
18156 * Makefile.in (datarootdir): New variable.
18157
18158 2009-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
18176 2009-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
18181 2009-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
18192 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18193
18194 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18195 srv_tgtobj.
18196
18197 2009-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
18207 2009-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
18274 2009-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
18295 2009-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
18300 2009-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
18306 2009-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
18315 2009-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
18328 2009-05-24 Doug Evans <dje@google.com>
18329
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
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
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
18343 2009-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
18349 2009-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
18355 2009-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
18379 2009-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
18384 2009-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.
18393 (linux_wait_for_event_1): Set ptrace options here.
18394 (linux_wait_1): ... not here.
18395
18396 2009-04-30 Doug Evans <dje@google.com>
18397
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
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
18412 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18413
18414 * configure.srv: Add x86 Windows CE target.
18415
18416 2009-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
18425 2009-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
18439 2009-04-02 Pedro Alves <pedro@codesourcery.com>
18440
18441 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18442 variable.
18443
18444 2009-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
18647 2009-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
18770 2009-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
18809 2009-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
18829 2009-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
18838 2009-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
18843 2009-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
18851 2009-03-23 Pedro Alves <pedro@codesourcery.com>
18852
18853 * server.c (handle_query) Whitespace and formatting.
18854
18855 2009-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
18866 2009-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
18871 2009-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
18876 2009-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
18924 2009-03-14 Pedro Alves <pedro@codesourcery.com>
18925
18926 * server.c (handle_query): Handle "qAttached".
18927
18928 2009-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
18933 2009-03-01 Doug Evans <dje@google.com>
18934
18935 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
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
18941 2009-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
18946 2009-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
18954 2009-01-26 Pedro Alves <pedro@codesourcery.com>
18955
18956 * server.c (gdbserver_usage): Mention --remote-debug.
18957 (main): Accept '--remote-debug' switch.
18958
18959 2009-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
18971 2009-01-15 Doug Evans <dje@google.com>
18972
18973 * gdbreplay.c (perror_with_name): Make arg const char *.
18974 * server.h (target_signal_to_name): Make return type const char *.
18975 * thread-db.c (thread_db_err_str): Make return type const char *.
18976 * utils.c (perror_with_name): Make arg const char *.
18977
18978 2009-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
18983 2009-01-06 Joel Brobecker <brobecker@adacore.com>
18984
18985 * gdbreplay.c (gdbreplay_version): Update copyright year.
18986 * server.c (gdbserver_version): Likewise.
18987
18988 2009-01-05 Doug Evans <dje@google.com>
18989
18990 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
18991 (handle_extended_wait): Improve comment.
18992
18993 2008-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
19008 2008-12-12 Doug Evans <dje@google.com>
19009
19010 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19011 in debugging printf.
19012
19013 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19014
19015 2008-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
19021 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19022
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.
19036
19037 2008-11-24 Doug Evans <dje@google.com>
19038
19039 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19040
19041 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19042
19043 * server.c (handle_v_run): Always use the supplied argument list.
19044
19045 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19046
19047 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19048 (xtensa_regmap_table): Add entry for scompare1.
19049
19050 2008-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
19065 2008-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
19075 2008-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
19082 2008-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
19087 2008-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
19093 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19094
19095 * configure.srv: Merge MIPS and MIPS64.
19096
19097 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19098
19099 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19100
19101 2008-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
19116 2008-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
19128 2008-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
19133 2008-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
19140 2008-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
19150 2008-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
19155 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19156
19157 * linux-low.c (handle_extended_wait): Do not use "status"
19158 variable uninitialized.
19159
19160 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19161
19162 * server.c (handle_v_attach): Inhibit reporting dll changes.
19163
19164 2008-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
19180 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19181
19182 * server.c (gdbserver_usage): Mention --version.
19183
19184 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19185
19186 * Makefile.in (gdbreplay.o): New rule.
19187
19188 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19189
19190 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19191 message, not gdbserver.
19192
19193 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19194 Nathan Sidwell <nathan@codesourcery.com>
19195 Joseph Myers <joseph@codesourcery.com>
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
19208 2008-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
19214 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19215
19216 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19217
19218 2008-05-09 Doug Evans <dje@google.com>
19219
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.
19223 (handle_search_memory): New fn.
19224 (handle_query): Process qSearch:memory packets.
19225
19226 2008-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
19234 2008-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
19277 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19278
19279 * acinclude.m4: Add override.m4.
19280 * configure: Regenerate.
19281
19282 2008-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
19287 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19288
19289 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19290 single powerpc*-*-linux* case.
19291 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19292
19293 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19294
19295 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19296 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
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
19313 2008-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
19324 2008-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
19332 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19333
19334 * server.c (handle_query): Never return "unsupported" for
19335 qXfer:features:read queries.
19336
19337 2008-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
19342 2008-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
19350 2008-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.
19359 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
19360
19361 2008-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
19379 arch_setup member depending on __powerpc64__. Install
19380 collect_ptrace_register and supply_ptrace_register members.
19381
19382 2008-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
19416 2008-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
19437 2008-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
19456 2008-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
19509 2008-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
19515 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19516
19517 * server.c (handle_query): Correct length check.
19518
19519 2008-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
19538 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
19539
19540 * server.c (monitor_show_help): Add "exit".
19541
19542 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
19543
19544 * Makefile.in (SFILES): Add linux-xtensa-low.c.
19545 (clean): Add reg-xtensa.c.
19546 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
19547 * configure.srv (xtensa*-*-linux*) New target.
19548 * linux-xtensa-low.c: New.
19549 * xtensa-xtregs.c: New.
19550
19551 2008-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.
19565 * spu-low.c (spu_target_ops): Likewise.
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
19580 2008-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
19608 2007-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
19614 2007-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
19631 2007-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
19638 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
19639
19640 * server.c (myresume): Add own_buf argument.
19641 (main): Update calls.
19642
19643 2007-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
19658 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
19659
19660 * remote-utils.c (readchar): Allow binary data in received messages.
19661
19662 2007-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
19671 2007-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
19676 2007-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
19681 2007-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
19687 2007-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
19696 2007-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
19715 2007-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
19728 2007-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
19733 2007-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
19739 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
19740
19741 * hostio.c: Correct copyright year.
19742
19743 2007-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
19753 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
19754
19755 * linux-low.c: Include <sched.h>.
19756
19757 2007-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
19763 2007-10-31 Joel Brobecker <brobecker@adacore.com>
19764
19765 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
19766
19767 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
19768
19769 * linux-low.c (handle_extended_wait): Handle unexpected signals.
19770
19771 2007-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
19815 2007-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
19836 2007-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
19843 2007-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
19848 2007-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
19856 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
19857
19858 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
19859
19860 2007-08-23 Joel Brobecker <brobecker@adacore.com>
19861
19862 * configure.ac: Switch license to GPLv3.
19863
19864 2007-08-01 Michael Snyder <msnyder@access-company.com>
19865
19866 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
19867
19868 2007-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
19878 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
19879
19880 * server.c (main): Check for inferior exit before main loop.
19881
19882 2007-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
19887 2007-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
19916 2007-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
19921 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
19922
19923 * win32-low.c (handle_output_debug_string): Ignore event if not
19924 waiting.
19925
19926 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
19927
19928 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
19929
19930 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
19931
19932 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
19933
19934 2007-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
19953 2007-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
19961 2007-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
19966 2007-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
19971 2007-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
19988 2007-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
19999 2007-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
20004 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20005
20006 * server.c (handle_query): Add reply for qC packet.
20007
20008 2007-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.
20017 * win32-low.c (winapi_DebugBreakProcess,
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
20026 2007-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.
20049 (get_child_debug_event): Change return type to void. Remove
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
20088 2007-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
20093 2007-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
20111 2007-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
20116 2007-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
20125 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20126
20127 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20128
20129 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20130
20131 * win32-low.c: Commit leftover changes from 2007-03-29.
20132
20133 2007-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
20141 2007-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
20146 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20147
20148 * configure.srv (arm*-*-mingw32ce*): Move near the other
20149 arm targets.
20150
20151 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20152
20153 * configure.ac: Add errno checking.
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.
20158 * configure.srv (i[34567]86-*-cygwin*): Add
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.
20199 * win32-low.c (child_fetch_inferior_registers):
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
20233 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20234
20235 * win32-low.c: Rename typedef thread_info to
20236 win32_thread_info throughout.
20237
20238 2007-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
20245 2007-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
20254 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20255
20256 * server.c (main): Correct strtoul check.
20257
20258 2007-03-27 Jon Ringle <jon@ringle.org>
20259
20260 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20261
20262 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20263
20264 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20265
20266 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20267
20268 * terminal.h: Check HAVE_SGTTY_H.
20269
20270 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20271
20272 * remote-utils.c (remote_open): Print out the assigned port number.
20273
20274 2007-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
20285 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20286
20287 * Makefile.in (EXEEXT): New.
20288 (clean): Use $(EXEEXT).
20289
20290 2007-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
20302 2007-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
20309 2007-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
20314 2007-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
20320 2007-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
20339 2007-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
20345 2007-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
20357 2007-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
20364 2006-12-30 Denis PILAT <denis.pilat@st.com>
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
20372 2006-12-05 Markus Deuling <deuling@de.ibm.com>
20373
20374 * README: Update supported targets.
20375
20376 2006-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
20390 2006-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
20397 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20398
20399 * configure.ac: Correct td_thr_tls_get_addr test.
20400 * configure: Regenerated.
20401
20402 2006-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
20412 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20413
20414 * server.c (handle_query): Correct error handling for read_auxv.
20415
20416 2005-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
20423 2006-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
20440 2006-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
20451 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20452
20453 * remote-utils.c (try_rle): New function.
20454 (putpkt_binary): Use it.
20455
20456 2006-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
20465 2006-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
20474 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20475
20476 * server.c (handle_query): Correct qPart to qXfer.
20477
20478 2006-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
20510 2006-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
20518 2006-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
20530 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20531
20532 * server.c (handle_query): Handle qSupported.
20533
20534 2006-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
20541 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20542
20543 * Makefile.in (linux-arm-low.o): Update dependencies.
20544 * linux-arm-low.c: Include "gdb_proc_service.h".
20545 (PTRACE_GET_THREAD_AREA): Define.
20546 (ps_get_thread_area): New function.
20547
20548 2006-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
20558 2006-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
20566 2006-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
20578 2006-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
20583 2006-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
20588 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20589
20590 * server.c (attach_inferior): Return SIGTRAP for a successful
20591 attach.
20592
20593 2006-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
20605 2005-12-23 Eli Zaretskii <eliz@gnu.org>
20606
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:
20641 * gdbserver.1: Add (C) after Copyright. Update the FSF
20642 address.
20643
20644 2005-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
20650 2005-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
20657 2005-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
20664 2005-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
20675 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20676
20677 * server.h (error, fatal, warning): Add ATTR_FORMAT.
20678
20679 2005-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
20693 2005-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
20707 2005-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
20714 2005-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
20722 2005-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
20729 2005-06-13 Mark Kettenis <kettenis@gnu.org>
20730
20731 * configure.ac: Simplify and improve check for socklen_t.
20732 * configure, config.in: Regenerate.
20733
20734 2005-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
20774 2005-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
20781 2005-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.
20787 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
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
20792 2005-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
20798 2005-05-12 Orjan Friberg <orjanf@axis.com>
20799
20800 * target.h (struct target_ops): Add insert_watchpoint,
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
20811 2005-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
20817 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
20818
20819 * proc-service.c (ps_lgetregs): Search all_processes instead of
20820 all_threads.
20821
20822 2005-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
20829 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
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
20835 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
20836
20837 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
20838
20839 2005-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
20864 2005-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
20871 2005-01-07 Andrew Cagney <cagney@gnu.org>
20872
20873 * configure.ac: Rename configure.in, require autoconf 2.59.
20874 * configure: Re-generate.
20875
20876 2004-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
20883 2004-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
20894 2004-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
20901 2004-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
20923 2004-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
20930 2004-09-02 Andrew Cagney <cagney@gnu.org>
20931
20932 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
20933
20934 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
20935
20936 * linux-low.c (linux_wait): Clear all_processes list also.
20937
20938 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
20939
20940 * linux-low.c: Include <errno.h>. Remove extern declaration of
20941 errno.
20942
20943 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
20944
20945 * gdbreplay.c, server.h, utils.c: Update copyright years.
20946
20947 2004-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
20952 2004-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
20964 2004-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
20969 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20970
20971 * server.c (handle_v_cont): Call set_desired_inferior.
20972
20973 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20974
20975 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
20976
20977 2004-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
20984 2004-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
20991 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20992
20993 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
20994
20995 2004-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
21001 2004-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
21008 2004-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.
21013 (s390_regmap): Remove control registers. Use __s390x__ predefine
21014 instead of GPR_SIZE to distiguish s390 and s390x targets.
21015
21016 2004-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
21027 2004-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
21032 2003-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
21049 2003-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
21054 Mon 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
21058 2003-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
21063 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21064
21065 * mem-break.c: Remove whitespace at end of file.
21066
21067 2003-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
21076 2003-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
21081 2003-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
21087 2003-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
21096 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21097
21098 From Kelley Cook <kelleycook@wideopenwest.com>:
21099 * configure.srv: Accept i[34567]86 variants.
21100
21101 2003-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
21111 2003-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
21118 2003-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
21123 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21124
21125 * configure.in: Check for stdlib.h.
21126 * configure: Regenerated.
21127 * config.in: Regenerated.
21128
21129 2003-01-04 Andreas Schwab <schwab@suse.de>
21130
21131 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21132
21133 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21134
21135 * Makefile.in: Remove obsolete code.
21136
21137 2002-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
21142 2002-11-17 Stuart Hughes <seh@zee2.com>
21143
21144 * linux-arm-low.c (arm_num_regs): Increase.
21145 (arm_regmap): Include status register.
21146
21147 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21148
21149 * linux-low.c (register_addr): Remove incorrect -1 check.
21150
21151 2002-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
21163 gdbserver. Set the child to be the foreground process group.
21164 (attach_inferior): Set signal_pid.
21165
21166 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21167
21168 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21169
21170 2002-08-20 Jim Blandy <jimb@redhat.com>
21171
21172 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21173 default for this.
21174
21175 2002-08-01 Andrew Cagney <cagney@redhat.com>
21176
21177 * Makefile.in: Make chill references obsolete.
21178
21179 2002-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
21185 2002-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
21190 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21191
21192 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21193 byte offsets instead of an array of indexes.
21194 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21195
21196 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21197
21198 * regcache.c: Add comment.
21199
21200 2002-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
21352 2002-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
21358 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
21359
21360 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21361 stop_at -> stop_pc.
21362
21363 2002-05-04 Andrew Cagney <ac131313@redhat.com>
21364
21365 * Makefile.in: Remove obsolete code.
21366
21367 2002-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
21374 2002-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
21390 2002-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
21423 2002-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
21431 2002-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
21436 2002-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
21513 2002-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
21519 2002-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
21555 2002-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.