gdbserver/linux-low: turn 'process_qsupported' into a method
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
a5b5da92
TBA
12020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 Remove the 'process_qsupported' linux target op and let a concrete
4 linux target define the op by overriding the op declaration in
5 process_stratum_target.
6
7 * linux-low.h (struct linux_target_ops): Remove the op.
8 (class linux_process_target) <process_qsupported>: Remove.
9 * linux-low.cc (linux_process_target::process_qsupported): Remove.
10 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
11 (x86_linux_process_qsupported): Turn into...
12 (x86_target::process_qsupported): ...this.
13 (the_low_target): Remove the op field.
14 * linux-aarch64-low.cc (the_low_target): Remove the op
15 field.
16 * linux-arm-low.cc (the_low_target): Ditto.
17 * linux-bfin-low.cc (the_low_target): Ditto.
18 * linux-crisv32-low.cc (the_low_target): Ditto.
19 * linux-m32r-low.cc (the_low_target): Ditto.
20 * linux-m68k-low.cc (the_low_target): Ditto.
21 * linux-ppc-low.cc (the_low_target): Ditto.
22 * linux-s390-low.cc (the_low_target): Ditto.
23 * linux-sh-low.cc (the_low_target): Ditto.
24 * linux-tic6x-low.cc (the_low_target): Ditto.
25 * linux-tile-low.cc (the_low_target): Ditto.
26 * linux-xtensa-low.cc (the_low_target): Ditto.
27
d7599cc0
TBA
282020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
29
30 Turn the 'prepare_to_resume' linux target op into a method of
31 linux_process_target.
32
33 * linux-low.h (struct linux_target_ops): Remove the op.
34 (class linux_process_target) <low_prepare_to_resume>: Declare.
35 * linux-low.cc (linux_process_target::low_prepare_to_resume):
36 Define.
37
38 Update the callers below:
39
40 (linux_process_target::resume_one_lwp_throw)
41 (linux_process_target::low_prepare_to_resume)
42
43 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
44 Declare.
45 (x86_target::low_prepare_to_resume): Define.
46 (the_low_target): Remove the op field.
47 * linux-aarch64-low.cc (class aarch64_target)
48 <low_prepare_to_resume>: Declare.
49 (aarch64_target::low_prepare_to_resume): Define.
50 (the_low_target): Remove the op field.
51 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
52 Declare.
53 (arm_prepare_to_resume): Turn into...
54 (arm_target::low_prepare_to_resume): ...this.
55 (the_low_target): Remove the op field.
56 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
57 Declare.
58 (mips_linux_prepare_to_resume): Turn into...
59 (mips_target::low_prepare_to_resume): ...this.
60 (the_low_target): Remove the op field.
61 * linux-bfin-low.cc (the_low_target): Remove the op field.
62 * linux-crisv32-low.cc (the_low_target): Ditto.
63 * linux-m32r-low.cc (the_low_target): Ditto.
64 * linux-m68k-low.cc (the_low_target): Ditto.
65 * linux-ppc-low.cc (the_low_target): Ditto.
66 * linux-s390-low.cc (the_low_target): Ditto.
67 * linux-sh-low.cc (the_low_target): Ditto.
68 * linux-tic6x-low.cc (the_low_target): Ditto.
69 * linux-tile-low.cc (the_low_target): Ditto.
70 * linux-xtensa-low.cc (the_low_target): Ditto.
71
fd000fb3
TBA
722020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
73
74 Turn the 'new_process', 'delete_process', 'new_thread',
75 'delete_thread', and 'new_fork' linux target ops into methods
76 of linux_process_target.
77
78 * linux-low.h (struct linux_target_ops): Remove the ops.
79 (class linux_process_target) <add_linux_process>
80 <add_lwp>
81 <delete_lwp>
82 <attach_lwp>
83 <detach_one_lwp>
84 <check_zombie_leaders>
85 <filter_exit_event>
86 <low_new_process>
87 <low_delete_process>
88 <low_new_thread>
89 <low_delete_thread>
90 <low_new_fork>: Declare.
91 * linux-low.cc (delete_lwp): Turn into...
92 (linux_process_target::delete_lwp): ...this.
93 (linux_process_target::low_delete_thread): Define.
94 (linux_add_process): Turn into...
95 (linux_process_target::add_linux_process): ...this.
96 (linux_process_target::low_new_process): Define.
97 (linux_process_target::low_delete_process): Define.
98 (linux_process_target::low_new_fork): Define.
99 (add_lwp): Turn into...
100 (linux_process_target::add_lwp): ...this.
101 (linux_process_target::low_new_thread): Define.
102 (linux_attach_lwp): Turn into...
103 (linux_process_target::attach_lwp): ...this.
104 (linux_detach_one_lwp): Turn into...
105 (linux_process_target::detach_one_lwp): ...this.
106 (linux_detach_lwp_callback): Remove and inline...
107 (linux_process_target::detach): ...here.
108 (check_zombie_leaders): Turn into...
109 (linux_process_target::check_zombie_leaders): ...this.
110 (filter_exit_event): Turn into...
111 (linux_process_target::filter_exit_event): ...this.
112
113 Update the callers below.
114
115 (linux_process_target::handle_extended_wait)
116 (linux_process_target::create_inferior)
117 (attach_proc_task_lwp_callback)
118 (linux_process_target::attach)
119 (linux_process_target::detach)
120 (linux_process_target::mourn)
121 * thread-db.cc (attach_thread)
122
123 * linux-x86-low.cc (class x86_target) <low_new_process>
124 <low_delete_process>
125 <low_new_thread>
126 <low_delete_thread>
127 <low_new_fork>: Declare.
128 (x86_linux_new_process): Turn into...
129 (x86_target::low_new_process): ...this.
130 (x86_linux_delete_process): Turn into...
131 (x86_target::low_delete_process): ...this.
132 (x86_target::low_new_thread): Define.
133 (x86_target::low_delete_thread): Define.
134 (x86_linux_new_fork): Turn into...
135 (x86_target::low_new_fork): ...this.
136 (the_low_target): Remove the op fields.
137 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
138 <low_delete_process>
139 <low_new_thread>
140 <low_delete_thread>
141 <low_new_fork>: Declare.
142 (aarch64_linux_new_process): Turn into...
143 (aarch64_target::low_new_process): ...this.
144 (aarch64_linux_delete_process): Turn into...
145 (aarch64_target::low_delete_process): ...this.
146 (aarch64_target::low_new_thread): Define.
147 (aarch64_target::low_delete_thread): Define.
148 (aarch64_linux_new_fork): Turn into...
149 (aarch64_target::low_new_fork): ...this.
150 (the_low_target): Remove the op fields.
151 * linux-arm-low.cc (class arm_target) <low_new_process>
152 <low_delete_process>
153 <low_new_thread>
154 <low_delete_thread>
155 <low_new_fork>: Declare.
156 (arm_new_process): Turn into...
157 (arm_target::low_new_process): ...this.
158 (arm_delete_process): Turn into...
159 (arm_target::low_delete_process): ...this.
160 (arm_new_thread): Turn into...
161 (arm_target::low_new_thread): ...this.
162 (arm_delete_thread): Turn into...
163 (arm_target::low_delete_thread): ...this.
164 (arm_new_fork): Turn into...
165 (arm_target::low_new_fork): ...this.
166 (the_low_target): Remove the op fields.
167 * linux-mips-low.cc (class mips_target) <low_new_process>
168 <low_delete_process>
169 <low_new_thread>
170 <low_delete_thread>
171 <low_new_fork>: Declare.
172 (mips_linux_new_process): Turn into...
173 (mips_target::low_new_process): ...this.
174 (mips_linux_delete_process): Turn into...
175 (mips_target::low_delete_process): ...this.
176 (mips_linux_new_thread): Turn into...
177 (mips_target::low_new_thread): ...this.
178 (mips_linux_delete_thread): Turn into...
179 (mips_target::low_delete_thread): ...this.
180 (mips_linux_new_fork): Turn into...
181 (mips_target::low_new_fork): ...this.
182 (the_low_target): Remove the op fields.
183 * linux-bfin-low.cc (the_low_target): Remove the op fields.
184 * linux-crisv32-low.cc (the_low_target): Ditto.
185 * linux-m32r-low.cc (the_low_target): Ditto.
186 * linux-m68k-low.cc (the_low_target): Ditto.
187 * linux-ppc-low.cc (the_low_target): Ditto.
188 * linux-s390-low.cc (the_low_target): Ditto.
189 * linux-sh-low.cc (the_low_target): Ditto.
190 * linux-tic6x-low.cc (the_low_target): Ditto.
191 * linux-tile-low.cc (the_low_target): Ditto.
192 * linux-xtensa-low.cc (the_low_target): Ditto.
193
cb63de7c
TBA
1942020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
195
196 Turn the 'siginfo_fixup' linux target op into a method of
197 linux_process_target.
198
199 * linux-low.h (struct linux_target_ops): Remove the op.
200 (class linux_process_target) <siginfo_fixup>
201 <low_siginfo_fixup>: Declare.
202 * linux-low.cc (siginfo_fixup): Turn into...
203 (linux_process_target::siginfo_fixup): ...this.
204 (linux_process_target::low_siginfo_fixup): Define.
205 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
206 (x86_siginfo_fixup): Turn into...
207 (x86_target::low_siginfo_fixup): ...this.
208 (the_low_target): Remove the op field.
209 * linux-aarch64-low.cc (class aarch64_target):
210 <low_siginfo_fixup>: Declare.
211 (aarch64_linux_siginfo_fixup): Turn into...
212 (aarch64_target::low_siginfo_fixup): ...this.
213 (the_low_target): Remove the op field.
214 * linux-arm-low.cc (the_low_target): Remove the op field.
215 * linux-bfin-low.cc (the_low_target): Ditto.
216 * linux-crisv32-low.cc (the_low_target): Ditto.
217 * linux-m32r-low.cc (the_low_target): Ditto.
218 * linux-m68k-low.cc (the_low_target): Ditto.
219 * linux-mips-low.cc (the_low_target): Ditto.
220 * linux-ppc-low.cc (the_low_target): Ditto.
221 * linux-s390-low.cc (the_low_target): Ditto.
222 * linux-sh-low.cc (the_low_target): Ditto.
223 * linux-tic6x-low.cc (the_low_target): Ditto.
224 * linux-tile-low.cc (the_low_target): Ditto.
225 * linux-xtensa-low.cc (the_low_target): Ditto.
226
b35db733
TBA
2272020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
228
229 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
230 linux target ops into methods of linux_process_target.
231
232 * linux-low.h (struct linux_target_ops): Remove the ops.
233 (class linux_process_target) <low_collect_ptrace_register>
234 <low_store_ptrace_register>: Declare.
235 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
236 (linux_process_target::low_supply_ptrace_register): Define.
237
238 Update the callers below.
239
240 (linux_process_target::fetch_register)
241 (linux_process_target::store_register)
242
243 * linux-x86-low.cc (the_low_target): Remove the op fields.
244 * linux-aarch64-low.cc (the_low_target): Ditto.
245 * linux-arm-low.cc (the_low_target): Ditto.
246 * linux-bfin-low.cc (the_low_target): Ditto.
247 * linux-crisv32-low.cc (the_low_target): Ditto.
248 * linux-m32r-low.cc (the_low_target): Ditto.
249 * linux-m68k-low.cc (the_low_target): Ditto.
250 * linux-sh-low.cc (the_low_target): Ditto.
251 * linux-sparc-low.cc (the_low_target): Ditto.
252 * linux-tic6x-low.cc (the_low_target): Ditto.
253 * linux-tile-low.cc (the_low_target): Ditto.
254 * linux-xtensa-low.cc (the_low_target): Ditto.
255 * linux-mips-low.cc (class mips_target)
256 <low_collect_ptrace_register>
257 <low_supply_ptrace_register>: Declare.
258 (mips_collect_ptrace_register): Turn into ...
259 (mips_target::low_collect_ptrace_register): ...this.
260 (mips_supply_ptrace_register): Turn into...
261 (mips_target::low_supply_ptrace_register): ...this.
262 (the_low_target): Remove the op fields.
263 * linux-ppc-low.cc (class ppc_target)
264 <low_collect_ptrace_register>
265 <low_supply_ptrace_register>: Declare.
266 (ppc_collect_ptrace_register): Turn into ...
267 (ppc_target::low_collect_ptrace_register): ...this.
268 (ppc_supply_ptrace_register): Turn into ...
269 (ppc_target::low_supply_ptrace_register): ...this.
270 (ppc_fill_gregset): Update for the calls to
271 low_collect_ptrace_register.
272 (the_low_target): Remove the op fields.
273 * linux-s390-low.cc (class s390_target)
274 <low_collect_ptrace_register>
275 <low_supply_ptrace_register>: Declare.
276 (s390_collect_ptrace_register): Turn into ...
277 (s390_target::low_collect_ptrace_register): ...this.
278 (s390_supply_ptrace_register): Turn into ...
279 (s390_target::low_supply_ptrace_register): ...this.
280 (s390_fill_gregset): Update for the calls to
281 low_collect_ptrace_register.
282 (the_low_target): Remove the op fields.
283
ac1bbaca
TBA
2842020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
285
286 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
287 target ops into methods of linux_process_target.
288
289 * linux-low.h (struct linux_target_ops): Remove the ops.
290 (class linux_process_target) <check_stopped_by_watchpoint>
291 <low_stopped_by_watchpoint>
292 <low_stopped_data_address>: Declare.
293 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
294 (linux_process_target::check_stopped_by_watchpoint): ...this.
295 (linux_process_target::low_stopped_by_watchpoint): Define.
296 (linux_process_target::low_stopped_data_address): Define.
297 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
298 <low_stopped_data_address>: Declare.
299 (x86_stopped_by_watchpoint): Turn into...
300 (x86_target::low_stopped_by_watchpoint): ...this.
301 (x86_stopped_data_address): Turn into...
302 (x86_target::low_stopped_data_address): ...this.
303 (the_low_target): Remove the op fields.
304 * linux-aarch64-low.cc (class aarch64_target)
305 <low_stopped_by_watchpoint>
306 <low_stopped_data_address>: Declare.
307 (aarch64_stopped_by_watchpoint): Turn into...
308 (aarch64_target::low_stopped_by_watchpoint): ...this.
309 (aarch64_stopped_data_address): Turn into...
310 (aarch64_target::low_stopped_data_address): ...this.
311 (the_low_target): Remove the op fields.
312 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
313 <low_stopped_data_address>: Declare.
314 (arm_stopped_by_watchpoint): Turn into...
315 (arm_target::low_stopped_by_watchpoint): ...this.
316 (arm_stopped_data_address): Turn into...
317 (arm_target::low_stopped_data_address): ...this.
318 (the_low_target): Remove the op fields.
319 * linux-crisv32-low.cc (class crisv32_target)
320 <low_stopped_by_watchpoint>
321 <low_stopped_data_address>: Declare.
322 (cris_stopped_by_watchpoint): Turn into...
323 (crisv32_target::low_stopped_by_watchpoint): ...this.
324 (cris_stopped_data_address): Turn into...
325 (crisv32_target::low_stopped_data_address): ...this.
326 (the_low_target): Remove the op fields.
327 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
328 <low_stopped_data_address>: Declare.
329 (mips_stopped_by_watchpoint): Turn into...
330 (mips_target::low_stopped_by_watchpoint): ...this.
331 (mips_stopped_data_address): Turn into...
332 (mips_target::low_stopped_data_address): ...this.
333 (the_low_target): Remove the op fields.
334 * linux-bfin-low.cc (the_low_target): Remove the op fields.
335 * linux-m32r-low.cc (the_low_target): Ditto.
336 * linux-m68k-low.cc (the_low_target): Ditto.
337 * linux-ppc-low.cc (the_low_target): Ditto.
338 * linux-s390-low.cc (the_low_target): Ditto.
339 * linux-sh-low.cc (the_low_target): Ditto.
340 * linux-sparc-low.cc (the_low_target): Ditto.
341 * linux-tic6x-low.cc (the_low_target): Ditto.
342 * linux-tile-low.cc (the_low_target): Ditto.
343 * linux-xtensa-low.cc (the_low_target): Ditto.
344
9db9aa23
TBA
3452020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
346
347 Turn the 'insert_point' and 'remove_point' linux target ops into
348 methods of linux_process_target.
349
350 * linux-low.h (struct linux_target_ops): Remove the ops.
351 (class linux_process_target) <low_insert_point>
352 <low_remove_point>: Declare.
353 * linux-low.cc (linux_process_target::low_insert_point)
354 (linux_process_target::low_remove_point): Define.
355 (linux_process_target::insert_point)
356 (linux_process_target::remove_point): Update for calls to
357 low_insert_point and low_remove_point.
358 * linux-x86-low.cc (class x86_target) <low_insert_point>
359 <low_remove_point>: Declare.
360 (x86_insert_point): Turn into...
361 (x86_target::low_insert_point): ...this.
362 (x86_remove_point): Turn into...
363 (x86_target::low_remove_point): ...this.
364 (the_low_target): Remove the op fields.
365 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
366 <low_remove_point>: Declare.
367 (aarch64_insert_point): Turn into...
368 (aarch64_target::low_insert_point): ...this.
369 (aarch64_remove_point): Turn into...
370 (aarch64_target::low_remove_point): ...this.
371 (the_low_target): Remove the op fields.
372 * linux-arm-low.cc (class arm_target) <low_insert_point>
373 <low_remove_point>: Declare.
374 (arm_insert_point): Turn into...
375 (arm_target::low_insert_point): ...this.
376 (arm_remove_point): Turn into...
377 (arm_target::low_remove_point): ...this.
378 (the_low_target): Remove the op fields.
379 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
380 <low_remove_point>: Declare.
381 (crisv32_insert_point): Turn into...
382 (crisv32_target::low_insert_point): ...this.
383 (crisv32_remove_point): Turn into...
384 (crisv32_target::low_remove_point): ...this.
385 (the_low_target): Remove the op fields.
386 * linux-mips-low.cc (class mips_target) <low_insert_point>
387 <low_remove_point>: Declare.
388 (mips_insert_point): Turn into...
389 (mips_target::low_insert_point): ...this.
390 (mips_remove_point): Turn into...
391 (mips_target::low_remove_point): ...this.
392 (the_low_target): Remove the op fields.
393 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
394 <low_remove_point>: Declare.
395 (ppc_insert_point): Turn into...
396 (ppc_target::low_insert_point): ...this.
397 (ppc_remove_point): Turn into...
398 (ppc_target::low_remove_point): ...this.
399 (the_low_target): Remove the op fields.
400 * linux-bfin-low.cc (the_low_target): Remove the op fields.
401 * linux-m32r-low.cc (the_low_target): Ditto.
402 * linux-m68k-low.cc (the_low_target): Ditto.
403 * linux-s390-low.cc (the_low_target): Ditto.
404 * linux-sh-low.cc (the_low_target): Ditto.
405 * linux-sparc-low.cc (the_low_target): Ditto.
406 * linux-tic6x-low.cc (the_low_target): Ditto.
407 * linux-tile-low.cc (the_low_target): Ditto.
408 * linux-xtensa-low.cc (the_low_target): Ditto.
409
007c9b97
TBA
4102020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
411
412 Remove the 'supports_z_point_type' linux target op and let the
413 concrete linux target define it by overriding the op declared in
414 process_stratum_target.
415
416 * linux-low.cc (linux_process_target::supports_z_point_type):
417 Remove.
418 * linux-low.h (struct linux_target_ops): Remove the op.
419 (class linux_process_target) <supports_z_point_type>: Remove.
420 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
421 Declare.
422 (x86_supports_z_point_type): Turn into...
423 (x86_target::supports_z_point_type): ...this.
424 (the_low_target): Remove the op field.
425 * linux-aarch64-low.cc (class aarch64_target)
426 <supports_z_point_type>: Declare.
427 (aarch64_supports_z_point_type): Turn into...
428 (aarch64_target::supports_z_point_type): ...this.
429 (the_low_target): Remove the op field.
430 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
431 Declare.
432 (arm_supports_z_point_type): Turn into...
433 (arm_target::supports_z_point_type): ...this.
434 (the_low_target): Remove the op field.
435 * linux-crisv32-low.cc (class crisv32_target)
436 <supports_z_point_type>: Declare.
437 (cris_supports_z_point_type): Turn into...
438 (crisv32_target::supports_z_point_type): ...this.
439 (the_low_target): Remove the op field.
440 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
441 Declare.
442 (mips_supports_z_point_type): Turn into...
443 (mips_target::supports_z_point_type): ...this.
444 (the_low_target): Remove the op field.
445 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
446 Declare.
447 (ppc_supports_z_point_type): Turn into...
448 (ppc_target::supports_z_point_type): ...this.
449 (the_low_target): Remove the op field.
450 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
451 Declare.
452 (s390_supports_z_point_type): Turn into...
453 (s390_target::supports_z_point_type): ...this.
454 (the_low_target): Remove the op field.
455 * linux-bfin-low.cc (the_low_target): Remove the op field.
456 * linux-m32r-low.cc (the_low_target): Ditto.
457 * linux-m68k-low.cc (the_low_target): Ditto.
458 * linux-sh-low.cc (the_low_target): Ditto.
459 * linux-sparc-low.cc (the_low_target): Ditto.
460 * linux-tic6x-low.cc (the_low_target): Ditto.
461 * linux-tile-low.cc (the_low_target): Ditto.
462 * linux-xtensa-low.cc (the_low_target): Ditto.
463
d7146cda
TBA
4642020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
465
466 Turn the 'breakpoint_at' linux target op into a method of
467 linux_process_target.
468
469 * linux-low.h (struct linux_target_ops): Remove the op.
470 (class linux_process_target) <low_breakpoint_at>: Declare.
471
472 Update the callers below:
473
474 * linux-low.cc (linux_process_target::save_stop_reason)
475 (linux_process_target::thread_still_has_status_pending)
476 (linux_process_target::wait_1)
477
478 * linux-x86-low.cc (class x86_target)
479 <low_breakpoint_at>: Declare.
480 (x86_breakpoint_at): Turn into...
481 (x86_target::low_breakpoint_at): ...this.
482 (the_low_target): Remove the op field.
483 * linux-aarch64-low.cc (class aarch64_target)
484 <low_breakpoint_at>: Declare.
485 (aarch64_breakpoint_at): Turn into...
486 (aarch64_target::low_breakpoint_at): ...this.
487 (the_low_target): Remove the op field.
488 * linux-arm-low.cc (class arm_target)
489 <low_breakpoint_at>: Declare.
490 (arm_target::low_breakpoint_at): Define.
491 (the_low_target): Remove the op field.
492 * linux-bfin-low.cc (class bfin_target)
493 <low_breakpoint_at>: Declare.
494 (bfin_breakpoint_at): Turn into...
495 (bfin_target::low_breakpoint_at): ...this.
496 (the_low_target): Remove the op field.
497 * linux-cris-low.cc (class cris_target)
498 <low_breakpoint_at>: Declare.
499 (cris_breakpoint_at): Turn into...
500 (cris_target::low_breakpoint_at): ...this.
501 (the_low_target): Remove the op field.
502 * linux-crisv32-low.cc (class crisv32_target)
503 <low_breakpoint_at>: Declare.
504 (crisv32_breakpoint_at): Turn into...
505 (crisv32_target::low_breakpoint_at): ...this.
506 (the_low_target): Remove the op field.
507 * linux-ia64-low.cc (class ia64_target)
508 <low_breakpoint_at>: Declare.
509 (ia64_target::low_breakpoint_at): Define.
510 * linux-m32r-low.cc (class m32r_target)
511 <low_breakpoint_at>: Declare.
512 (m32r_breakpoint_at): Turn into...
513 (m32r_target::low_breakpoint_at): ...this.
514 (the_low_target): Remove the op field.
515 * linux-m68k-low.cc (class m68k_target)
516 <low_breakpoint_at>: Declare.
517 (m68k_breakpoint_at): Turn into...
518 (m68k_target::low_breakpoint_at): ...this.
519 (the_low_target): Remove the op field.
520 * linux-mips-low.cc (class mips_target)
521 <low_breakpoint_at>: Declare.
522 (mips_breakpoint_at): Turn into...
523 (mips_target::low_breakpoint_at): ...this.
524 (the_low_target): Remove the op field.
525 * linux-nios2-low.cc (class nios2_target)
526 <low_breakpoint_at>: Declare.
527 (nios2_breakpoint_at): Turn into...
528 (nios2_target::low_breakpoint_at): ...this.
529 (the_low_target): Remove the op field.
530 * linux-ppc-low.cc (class ppc_target)
531 <low_breakpoint_at>: Declare.
532 (ppc_breakpoint_at): Turn into...
533 (ppc_target::low_breakpoint_at): ...this.
534 (the_low_target): Remove the op field.
535 * linux-riscv-low.cc (class riscv_target)
536 <low_breakpoint_at>: Declare.
537 (riscv_breakpoint_at): Turn into...
538 (riscv_target::low_breakpoint_at): ...this.
539 (the_low_target): Remove the op field.
540 * linux-s390-low.cc (class s390_target)
541 <low_breakpoint_at>: Declare.
542 (s390_breakpoint_at): Turn into...
543 (s390_target::low_breakpoint_at): ...this.
544 (the_low_target): Remove the op field.
545 * linux-sh-low.cc (class sh_target)
546 <low_breakpoint_at>: Declare.
547 (sh_breakpoint_at): Turn into...
548 (sh_target::low_breakpoint_at): ...this.
549 (the_low_target): Remove the op field.
550 * linux-sparc-low.cc (class sparc_target)
551 <low_breakpoint_at>: Declare.
552 (sparc_breakpoint_at): Turn into...
553 (sparc_target::low_breakpoint_at): ...this.
554 (the_low_target): Remove the op field.
555 * linux-tic6x-low.cc (class tic6x_target)
556 <low_breakpoint_at>: Declare.
557 (tic6x_breakpoint_at): Turn into...
558 (tic6x_target::low_breakpoint_at): ...this.
559 (the_low_target): Remove the op field.
560 * linux-tile-low.cc (class tile_target)
561 <low_breakpoint_at>: Declare.
562 (tile_breakpoint_at): Turn into...
563 (tile_target::low_breakpoint_at): ...this.
564 (the_low_target): Remove the op field.
565 * linux-xtensa-low.cc (class xtensa_target)
566 <low_breakpoint_at>: Declare.
567 (xtensa_breakpoint_at): Turn into...
568 (xtensa_target::low_breakpoint_at): ...this.
569 (the_low_target): Remove the op field.
570
d4807ea2
TBA
5712020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
572
573 Turn the 'decr_pc_after_break' linux_target_ops field into
574 a method of linux_process_target.
575
576 * linux-low.h (struct linux_target_ops)
577 <decr_pc_after_break>: Remove.
578 (class linux_process_target) <low_decr_pc_after_break>: New method
579 declaration.
580 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
581 New method implementation.
582
583 Update the users below.
584
585 (linux_process_target::save_stop_reason)
586 (linux_process_target::wait_1)
587 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
588 New declaration.
589 (x86_target::low_decr_pc_after_break): New method implementation.
590 (the_low_target): Remove the field.
591 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
592 New declaration.
593 (bfin_target::low_decr_pc_after_break): New method implementation.
594 (the_low_target): Remove the field.
595 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
596 New declaration.
597 (m68k_target::low_decr_pc_after_break): New method implementation.
598 (the_low_target): Remove the field.
599 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
600 New declaration.
601 (s390_target::low_decr_pc_after_break): New method implementation.
602 (the_low_target): Remove the field.
603 * linux-aarch64-low.cc (the_low_target): Remove the field.
604 * linux-arm-low.cc (the_low_target): Remove the field.
605 * linux-cris-low.cc (the_low_target): Remove the field.
606 * linux-crisv32-low.cc (the_low_target): Remove the field.
607 * linux-m32r-low.cc (the_low_target): Remove the field.
608 * linux-mips-low.cc (the_low_target): Remove the field.
609 * linux-nios2-low.cc (the_low_target): Remove the field.
610 * linux-ppc-low.cc (the_low_target): Remove the field.
611 * linux-riscv-low.cc (the_low_target): Remove the field.
612 * linux-sh-low.cc (the_low_target): Remove the field.
613 * linux-sparc-low.cc (the_low_target): Remove the field.
614 * linux-tic6x-low.cc (the_low_target): Remove the field.
615 * linux-tile-low.cc (the_low_target): Remove the field.
616 * linux-xtensa-low.cc (the_low_target): Remove the field.
617
7582c77c
TBA
6182020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
619
620 Remove the 'supports_software_single_step' linux target op and let
621 the concrete linux target define it by overriding the op in
622 process_stratum_target.
623 Turn the 'get_next_pcs' linux target op into a method of
624 linux_process_target.
625
626 * linux-low.h (struct linux_target_ops): Remove the ops.
627 (class linux_process_target) <supports_software_single_step>:
628 Remove.
629 <low_get_next_pcs>: Declare.
630 * linux-low.cc (can_software_single_step): Remove.
631 (linux_process_target::low_get_next_pcs): Define.
632 (linux_process_target::supports_software_single_step): Remove.
633
634 Update the callers below.
635
636 (linux_process_target::handle_extended_wait)
637 (linux_process_target::wait_1)
638 (linux_process_target::install_software_single_step_breakpoints)
639 (linux_process_target::single_step)
640 (linux_process_target::thread_needs_step_over)
641 (linux_process_target::proceed_one_lwp)
642 (linux_process_target::supports_range_stepping)
643
644 * linux-x86-low.cc (the_low_target): Remove the op field.
645 * linux-aarch64-low.cc (the_low_target): Ditto.
646 * linux-bfin-low.cc (the_low_target): Ditto.
647 * linux-cris-low.cc (the_low_target): Ditto.
648 * linux-crisv32-low.cc (the_low_target): Ditto.
649 * linux-m32r-low.cc (the_low_target): Ditto.
650 * linux-m68k-low.cc (the_low_target): Ditto.
651 * linux-mips-low.cc (the_low_target): Ditto.
652 * linux-nios2-low.cc (the_low_target): Ditto.
653 * linux-ppc-low.cc (the_low_target): Ditto.
654 * linux-riscv-low.cc (the_low_target): Ditto.
655 * linux-s390-low.cc (the_low_target): Ditto.
656 * linux-sh-low.cc (the_low_target): Ditto.
657 * linux-sparc-low.cc (the_low_target): Ditto.
658 * linux-tic6x-low.cc (the_low_target): Ditto.
659 * linux-tile-low.cc (the_low_target): Ditto.
660 * linux-xtensa-low.cc (the_low_target): Ditto.
661 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
662 <supports_software_single_step>: Declare.
663 (arm_target::supports_software_single_step): Define.
664 (arm_gdbserver_get_next_pcs): Turn into...
665 (arm_target::low_get_next_pcs): ...this.
666 (the_low_target): Remove the op field.
667
3ca4edb6
TBA
6682020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
669
670 Remove the 'sw_breakpoint_from_kind' linux target op, and let
671 the concrete linux target define it by overriding the op
672 in process_stratum_target.
673
674 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
675 Remove.
676 * linux-low.h (struct linux_target_ops): Remove the op.
677 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
678 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
679 Declare.
680 (x86_sw_breakpoint_from_kind): Turn into...
681 (x86_target::sw_breakpoint_from_kind): ...this.
682 (the_low_target): Remove the op field.
683 * linux-aarch64-low.cc (class aarch64_target)
684 <sw_breakpoint_from_kind>: Declare.
685 (aarch64_sw_breakpoint_from_kind): Turn into...
686 (aarch64_target::sw_breakpoint_from_kind): ...this.
687 (the_low_target): Remove the op field.
688 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
689 Declare.
690 (arm_target::sw_breakpoint_from_kind): Define.
691 (the_low_target): Remove the op field.
692 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
693 Declare.
694 (bfin_sw_breakpoint_from_kind): Turn into...
695 (bfin_target::sw_breakpoint_from_kind): ...this.
696 (the_low_target): Remove the op field.
697 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
698 Declare.
699 (cris_sw_breakpoint_from_kind): Turn into...
700 (cris_target::sw_breakpoint_from_kind): ...this.
701 (the_low_target): Remove the op field.
702 * linux-crisv32-low.cc (class crisv32_target)
703 <sw_breakpoint_from_kind>: Declare.
704 (cris_sw_breakpoint_from_kind): Turn into...
705 (crisv32_target::sw_breakpoint_from_kind): ...this.
706 (the_low_target): Remove the op field.
707 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
708 Declare.
709 (ia64_target::sw_breakpoint_from_kind): Define.
710 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
711 Declare.
712 (m32r_sw_breakpoint_from_kind): Turn into...
713 (m32r_target::sw_breakpoint_from_kind): ...this.
714 (the_low_target): Remove the op field.
715 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
716 Declare.
717 (m68k_sw_breakpoint_from_kind): Turn into...
718 (m68k_target::sw_breakpoint_from_kind): ...this.
719 (the_low_target): Remove the op field.
720 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
721 Declare.
722 (mips_sw_breakpoint_from_kind): Turn into...
723 (mips_target::sw_breakpoint_from_kind): ...this.
724 (the_low_target): Remove the op field.
725 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
726 Declare.
727 (nios2_sw_breakpoint_from_kind): Turn into...
728 (nios2_target::sw_breakpoint_from_kind): ...this.
729 (the_low_target): Remove the op field.
730 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
731 Declare.
732 (ppc_sw_breakpoint_from_kind): Turn into...
733 (ppc_target::sw_breakpoint_from_kind): ...this.
734 (the_low_target): Remove the op field.
735 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
736 Declare.
737 (riscv_sw_breakpoint_from_kind): Turn into...
738 (riscv_target::sw_breakpoint_from_kind): ...this.
739 (the_low_target): Remove the op field.
740 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
741 Declare.
742 (s390_sw_breakpoint_from_kind): Turn into...
743 (s390_target::sw_breakpoint_from_kind): ...this.
744 (the_low_target): Remove the op field.
745 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
746 Declare.
747 (sh_sw_breakpoint_from_kind): Turn into...
748 (sh_target::sw_breakpoint_from_kind): ...this.
749 (the_low_target): Remove the op field.
750 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
751 Declare.
752 (sparc_sw_breakpoint_from_kind): Turn into...
753 (sparc_target::sw_breakpoint_from_kind): ...this.
754 (the_low_target): Remove the op field.
755 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
756 Declare.
757 (tic6x_sw_breakpoint_from_kind): Turn into...
758 (tic6x_target::sw_breakpoint_from_kind): ...this.
759 (the_low_target): Remove the op field.
760 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
761 Declare.
762 (tile_sw_breakpoint_from_kind): Turn into...
763 (tile_target::sw_breakpoint_from_kind): ...this.
764 (the_low_target): Remove the op field.
765 * linux-xtensa-low.cc (class xtensa_target)
766 <sw_breakpoint_from_kind>: Declare.
767 (xtensa_sw_breakpoint_from_kind): Turn into...
768 (xtensa_target::sw_breakpoint_from_kind): ...this.
769 (the_low_target): Remove the op field.
770
06250e4e
TBA
7712020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
772
773 Remove the 'breakpoint_kind_from_pc' and
774 'breakpoint_kind_from_current_state' linux target ops, and let the
775 concrete linux target define them by overriding the ops of
776 process_stratum_target.
777
778 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
779 Remove.
780 (linux_process_target::breakpoint_kind_from_current_state): Remove.
781 * linux-low.h (struct linux_target_ops): Remove ops.
782 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
783 <breakpoint_kind_from_current_state>: Remove.
784 * linux-x86-low.cc (the_low_target): Remove the op fields.
785 * linux-bfin-low.cc (the_low_target): Ditto.
786 * linux-cris-low.cc (the_low_target): Ditto.
787 * linux-crisv32-low.cc (the_low_target): Ditto.
788 * linux-m32r-low.cc (the_low_target): Ditto.
789 * linux-m68k-low.cc (the_low_target): Ditto.
790 * linux-mips-low.cc (the_low_target): Ditto.
791 * linux-nios2-low.cc (the_low_target): Ditto.
792 * linux-ppc-low.cc (the_low_target): Ditto.
793 * linux-s390-low.cc (the_low_target): Ditto.
794 * linux-sh-low.cc (the_low_target): Ditto.
795 * linux-sparc-low.cc (the_low_target): Ditto.
796 * linux-tic6x-low.cc (the_low_target): Ditto.
797 * linux-tile-low.cc (the_low_target): Ditto.
798 * linux-xtensa-low.cc (the_low_target): Ditto.
799 * linux-aarch64-low.cc (class aarch64_target)
800 <breakpoint_kind_from_pc>
801 <breakpoint_kind_from_current_state>: Declare.
802 (aarch64_breakpoint_kind_from_pc): Turn into...
803 (aarch64_target::breakpoint_kind_from_pc): ...this.
804 (aarch64_breakpoint_kind_from_current_state): Turn into...
805 (aarch64_target::breakpoint_kind_from_current_state): ...this.
806 (the_low_target): Remove the op fields.
807 * linux-arm-low.cc (class arm_target):
808 <breakpoint_kind_from_pc>
809 <breakpoint_kind_from_current_state>: Declare.
810 (arm_target::breakpoint_kind_from_pc): Define.
811 (arm_target::breakpoint_kind_from_current_state): Define.
812 (the_low_target): Remove the op fields.
813 * linux-riscv-low.cc (class riscv_target):
814 <breakpoint_kind_from_pc>: Declare.
815 (riscv_breakpoint_kind_from_pc): Turn into...
816 (riscv_target::breakpoint_kind_from_pc): ...this.
817 (the_low_target): Remove the op fields.
818
bf9ae9d8
TBA
8192020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
820
821 Turn the 'get_pc' and 'set_pc' linux target ops into methods
822 of linux_process_target.
823
824 * linux-low.h (struct linux_target_ops): Remove the ops.
825 (class linux_process_target) <low_supports_breakpoints>
826 <low_get_pc>
827 <low_set_pc>: Declare.
828 * linux-low.cc (supports_breakpoints): Turn into...
829 (linux_process_target::low_supports_breakpoints): ...this.
830 (linux_process_target::low_get_pc): Define.
831 (linux_process_target::low_set_pc): Define.
832
833 Update the callers below.
834
835 (linux_process_target::get_pc)
836 (linux_process_target::save_stop_reason)
837 (linux_process_target::maybe_move_out_of_jump_pad)
838 (linux_process_target::wait_1)
839 (linux_process_target::resume_one_lwp_throw)
840 (linux_process_target::resume)
841 (linux_process_target::proceed_all_lwps)
842 (linux_process_target::read_pc)
843 (linux_process_target::write_pc)
844
845 * linux-x86-low.cc (class linux_process_target)
846 <low_supports_breakpoints>
847 <low_get_pc>
848 <low_set_pc>: Declare.
849 (x86_target::low_supports_breakpoints): Define.
850 (x86_get_pc): Turn into...
851 (x86_target::low_get_pc): ...this.
852 (x86_set_pc): Turn into...
853 (x86_target::low_set_pc): ...this.
854 (the_low_target): Remove the op fields.
855 * linux-arm-low.cc (class arm_target)
856 <low_supports_breakpoints>
857 <low_get_pc>
858 <low_set_pc>: Declare.
859 (arm_target::low_supports_breakpoints)
860 (arm_target::low_get_pc)
861 (arm_target::low_set_pc): Define.
862 (the_low_target): Remove the op fields.
863 * linux-bfin-low.cc (class bfin_target)
864 <low_supports_breakpoints>
865 <low_get_pc>
866 <low_set_pc>: Declare.
867 (bfin_target::low_supports_breakpoints)
868 (bfin_target::low_get_pc)
869 (bfin_target::low_set_pc): Define.
870 (the_low_target): Remove the op fields.
871 * linux-cris-low.cc (class cris_target)
872 <low_supports_breakpoints>
873 <low_get_pc>
874 <low_set_pc>: Declare.
875 (cris_target::low_supports_breakpoints)
876 (cris_target::low_get_pc)
877 (cris_target::low_set_pc): Define.
878 (the_low_target): Remove the op fields.
879 * linux-crisv32-low.cc (class crisv32_target)
880 <low_supports_breakpoints>
881 <low_get_pc>
882 <low_set_pc>: Declare.
883 (crisv32_target::low_supports_breakpoints)
884 (crisv32_target::low_get_pc)
885 (crisv32_target::low_set_pc): Define.
886 (the_low_target): Remove the op fields.
887 * linux-m32r-low.cc (class m32r_target)
888 <low_supports_breakpoints>
889 <low_get_pc>
890 <low_set_pc>: Declare.
891 (m32r_target::low_supports_breakpoints)
892 (m32r_target::low_get_pc)
893 (m32r_target::low_set_pc): Define.
894 (the_low_target): Remove the op fields.
895 * linux-m68k-low.cc (class m68k_target)
896 <low_supports_breakpoints>
897 <low_get_pc>
898 <low_set_pc>: Declare.
899 (m68k_target::low_supports_breakpoints)
900 (m68k_target::low_get_pc)
901 (m68k_target::low_set_pc): Define.
902 (the_low_target): Remove the op fields.
903 * linux-nios2-low.cc (class nios2_target)
904 <low_supports_breakpoints>
905 <low_get_pc>
906 <low_set_pc>: Declare.
907 (nios2_target::low_supports_breakpoints)
908 (nios2_target::low_get_pc)
909 (nios2_target::low_set_pc): Define.
910 (the_low_target): Remove the op fields.
911 * linux-sh-low.cc (class sh_target)
912 <low_supports_breakpoints>
913 <low_get_pc>
914 <low_set_pc>: Declare.
915 (sh_target::low_supports_breakpoints)
916 (sh_target::low_get_pc)
917 (sh_target::low_set_pc): Define.
918 (the_low_target): Remove the op fields.
919 * linux-xtensa-low.cc (class xtensa_target)
920 <low_supports_breakpoints>
921 <low_get_pc>
922 <low_set_pc>: Declare.
923 (xtensa_target::low_supports_breakpoints)
924 (xtensa_target::low_get_pc)
925 (xtensa_target::low_set_pc): Define.
926 (the_low_target): Remove the op fields.
927 * linux-sparc-low.cc (class sparc_target)
928 <low_supports_breakpoints>
929 <low_get_pc>: Declare.
930 (sparc_target::low_supports_breakpoints)
931 (sparc_target::low_get_pc): Define.
932 (the_low_target): Remove the op fields.
933 * linux-tile-low.cc (class tile_target)
934 <low_supports_breakpoints>
935 <low_get_pc>
936 <low_set_pc>: Declare.
937 (tile_target::low_supports_breakpoints)
938 (tile_target::low_get_pc)
939 (tile_target::low_set_pc): Define.
940 (the_low_target): Remove the op fields.
941 * linux-aarch64-low.cc (class aarch64_target)
942 <low_supports_breakpoints>
943 <low_get_pc>
944 <low_set_pc>: Declare.
945 (aarch64_target::low_supports_breakpoints): Define.
946 (aarch64_get_pc): Turn into...
947 (aarch64_target::low_get_pc): ...this.
948 (aarch64_set_pc): Turn into...
949 (aarch64_target::low_set_pc): ...this.
950 (the_low_target): Remove the op fields.
951 * linux-mips-low.cc (class mips_target)
952 <low_supports_breakpoints>
953 <low_get_pc>
954 <low_set_pc>: Declare.
955 (mips_target::low_supports_breakpoints): Define.
956 (mips_get_pc): Turn into...
957 (mips_target::low_get_pc): ...this.
958 (mips_set_pc): Turn into...
959 (mips_target::low_set_pc): ...this.
960 (the_low_target): Remove the op fields.
961 * linux-ppc-low.cc (class ppc_target)
962 <low_supports_breakpoints>
963 <low_get_pc>
964 <low_set_pc>: Declare.
965 (ppc_target::low_supports_breakpoints): Define.
966 (ppc_get_pc): Turn into...
967 (ppc_target::low_get_pc): ...this.
968 (ppc_set_pc): Turn into...
969 (ppc_target::low_set_pc): ...this.
970 (the_low_target): Remove the op fields.
971 * linux-riscv-low.cc (class riscv_target)
972 <low_supports_breakpoints>
973 <low_get_pc>
974 <low_set_pc>: Declare.
975 (riscv_target::low_supports_breakpoints): Define.
976 (riscv_get_pc): Turn into...
977 (riscv_target::low_get_pc): ...this.
978 (riscv_set_pc): Turn into...
979 (riscv_target::low_set_pc): ...this.
980 (the_low_target): Remove the op fields.
981 * linux-s390-low.cc (class s390_target)
982 <low_supports_breakpoints>
983 <low_get_pc>
984 <low_set_pc>: Declare.
985 (s390_target::low_supports_breakpoints): Define.
986 (s390_get_pc): Turn into...
987 (s390_target::low_get_pc): ...this.
988 (s390_set_pc): Turn into...
989 (s390_target::low_set_pc): ...this.
990 (the_low_target): Remove the op fields.
991 * linux-tic6x-low.cc (class tic6x_target)
992 <low_supports_breakpoints>
993 <low_get_pc>
994 <low_set_pc>: Declare.
995 (tic6x_target::low_supports_breakpoints): Define.
996 (tic6x_get_pc): Turn into...
997 (tic6x_target::low_get_pc): ...this.
998 (tic6x_set_pc): Turn into...
999 (tic6x_target::low_set_pc): ...this.
1000 (the_low_target): Remove the op fields.
1001
df95181f
TBA
10022020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1003
1004 Turn some more static methods in linux-low into private methods
1005 of linux_process_target.
1006
1007 * linux-low.cc (get_pc): Turn into...
1008 (linux_process_target::get_pc): ...this.
1009 (save_stop_reason): Turn into...
1010 (linux_process_target::save_stop_reason): ...this.
1011 (thread_still_has_status_pending_p): Turn into...
1012 (linux_process_target::thread_still_has_status_pending): ...this.
1013 (status_pending_p_callback): Turn into...
1014 (linux_process_target::status_pending_p_callback): ...this.
1015 (resume_stopped_resumed_lwps): Turn into...
1016 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1017 (install_software_single_step_breakpoints): Turn into...
1018 (linux_process_target::install_software_single_step_breakpoints):
1019 ...this.
1020 (single_step): Turn into...
1021 (linux_process_target::single_step): ...this.
1022 (linux_resume_one_lwp_throw): Turn into...
1023 (linux_process_target::resume_one_lwp_throw): ...this.
1024 (linux_resume_one_lwp): Turn into...
1025 (linux_process_target::resume_one_lwp): ...this.
1026 (resume_status_pending_p): Turn into...
1027 (linux_process_target::resume_status_pending): ...this.
1028 (need_step_over_p): Turn into...
1029 (linux_process_target::thread_needs_step_over): ...this.
1030 (linux_resume_one_thread): Turn into...
1031 (linux_process_target::resume_one_thread): ...this.
1032 (proceed_one_lwp): Turn into...
1033 (linux_process_target::proceed_one_lwp): ...this.
1034 (unsuspend_and_proceed_one_lwp): Turn into...
1035 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1036
1037 Update the calls/references to the above functions below.
1038
1039 (linux_process_target::handle_extended_wait)
1040 (linux_process_target::filter_event)
1041 (linux_process_target::wait_for_event_filtered)
1042 (linux_process_target::wait_1)
1043 (linux_process_target::move_out_of_jump_pad)
1044 (linux_process_target::start_step_over)
1045 (linux_process_target::resume)
1046 (linux_process_target::proceed_all_lwps)
1047 (regsets_store_inferior_registers)
1048 (linux_process_target::store_register)
1049
1050 * linux-low.h (class linux_process_target)
1051 <get_pc>
1052 <save_stop_reason>
1053 <thread_still_has_status_pending>
1054 <status_pending_p_callback>
1055 <resume_stopped_resumed_lwps>
1056 <install_software_single_step_breakpoints>
1057 <single_step>
1058 <resume_one_lwp_throw>
1059 <resume_one_lwp>
1060 <resume_status_pending>
1061 <thread_needs_step_over>
1062 <resume_one_thread>
1063 <proceed_one_lwp>
1064 <unsuspend_and_proceed_one_lwp>: Declare.
1065
bd70b1f2
TBA
10662020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1067
1068 Turn the 'fetch_register' linux target op into a method of
1069 linux_process_target.
1070
1071 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1072 (class linux_process_target) <low_fetch_register>: Declare.
1073 * linux-x86-low.cc (the_low_target)
1074 * linux-aarch64-low.cc (the_low_target)
1075 * linux-arm-low.cc (the_low_target)
1076 * linux-bfin-low.cc (the_low_target)
1077 * linux-cris-low.cc (the_low_target)
1078 * linux-crisv32-low.cc (the_low_target)
1079 * linux-m32r-low.cc (the_low_target)
1080 * linux-m68k-low.cc (the_low_target)
1081 * linux-nios2-low.cc (the_low_target)
1082 * linux-ppc-low.cc (the_low_target)
1083 * linux-s390-low.cc (the_low_target)
1084 * linux-sh-low.cc (the_low_target)
1085 * linux-sparc-low.cc (the_low_target)
1086 * linux-tic6x-low.cc (the_low_target)
1087 * linux-tile-low.cc (the_low_target)
1088 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1089 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1090 Declare.
1091 (ia64_fetch_register): Turn into...
1092 (ia64_target::low_fetch_register): ...this.
1093 (the_low_target): Remove the op field.
1094 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1095 Declare.
1096 (mips_fetch_register): Turn into...
1097 (mips_target::low_fetch_register): ...this.
1098 (the_low_target): Remove the op field.
1099 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1100 Declare.
1101 (riscv_fetch_register): Turn into...
1102 (riscv_target::low_fetch_register): ...this.
1103 (the_low_target): Remove the op field.
1104
1105 Update the callers below.
1106
1107 * linux-low.cc (linux_process_target::fetch_registers)
1108 (linux_process_target::low_fetch_register)
1109
daca57a7
TBA
11102020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1111
1112 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1113 linux target ops into methods of linux_process_target.
1114
1115 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1116 (class linux_process_target) <fetch_register>
1117 <store_register>
1118 <usr_fetch_inferior_registers>
1119 <usr_store_inferior_registers>
1120 <low_cannot_fetch_register>
1121 <low_cannot_fetch_register> Declare.
1122 * linux-low.cc (fetch_register): Turn into...
1123 (linux_process_target::fetch_register): ...this.
1124 (store_register): Turn into ...
1125 (linux_process_target::store_register): ...this.
1126 (usr_fetch_inferior_registers): Turn into...
1127 (linux_process_target::usr_fetch_inferior_registers): ...this.
1128 (usr_store_inferior_registers): Turn into...
1129 (linux_process_target::usr_store_inferior_registers): ...this.
1130 * linux-x86-low.cc (class x86_target)
1131 <low_cannot_fetch_register>
1132 <low_cannot_store_register>: Declare.
1133 (x86_cannot_store_register): Turn into...
1134 (x86_target::low_cannot_store_register): ...this.
1135 (x86_cannot_fetch_register): Turn into...
1136 (x86_target::low_cannot_fetch_register): ...this.
1137 (the_low_target): Remove the target op fields.
1138 * linux-aarch64-low.cc (class aarch64_target)
1139 <low_cannot_fetch_register>
1140 <low_cannot_store_register>: Declare.
1141 (aarch64_target::low_cannot_fetch_register)
1142 (aarch64_target::low_cannot_store_register): Define.
1143 (the_low_target): Remove the op fields.
1144 * linux-arm-low.cc (class arm_target)
1145 <low_cannot_fetch_register>
1146 <low_cannot_store_register>: Declare.
1147 (arm_cannot_fetch_register): Turn into...
1148 (arm_target::low_cannot_fetch_register): ...this.
1149 (arm_cannot_store_register): Turn into...
1150 (arm_target::low_cannot_store_register): ...this.
1151 (the_low_target): Remove the op fields.
1152 * linux-bfin-low.cc (class bfin_target)
1153 <low_cannot_fetch_register>
1154 <low_cannot_store_register>: Declare.
1155 (bfin_cannot_fetch_register): Turn into...
1156 (bfin_target::low_cannot_fetch_register): ...this.
1157 (bfin_cannot_store_register): Turn into...
1158 (bfin_target::low_cannot_store_register): ...this.
1159 (the_low_target): Remove the op fields.
1160 * linux-cris-low.cc (class cris_target)
1161 <low_cannot_fetch_register>
1162 <low_cannot_store_register>: Declare.
1163 (cris_cannot_fetch_register): Turn into...
1164 (cris_target::low_cannot_fetch_register): ...this.
1165 (cris_cannot_store_register): Turn into...
1166 (cris_target::low_cannot_store_register): ...this.
1167 (the_low_target): Remove the op fields.
1168 * linux-crisv32-low.cc (class crisv32_target)
1169 <low_cannot_fetch_register>
1170 <low_cannot_store_register>: Declare.
1171 (crisv32_target::low_cannot_fetch_register)
1172 (crisv32_target::low_cannot_store_register): Define.
1173 (the_low_target): Remove the op fields.
1174 * linux-ia64-low.cc (class ia64_target)
1175 <low_cannot_fetch_register>
1176 <low_cannot_store_register>: Declare.
1177 (ia64_cannot_fetch_register): Turn into...
1178 (ia64_target::low_cannot_fetch_register): ...this.
1179 (ia64_cannot_store_register): Turn into...
1180 (ia64_target::low_cannot_store_register): ...this.
1181 (the_low_target): Remove the op fields.
1182 * linux-m32r-low.cc (class m32r_target)
1183 <low_cannot_fetch_register>
1184 <low_cannot_store_register>: Declare.
1185 (m32r_cannot_fetch_register): Turn into...
1186 (m32r_target::low_cannot_fetch_register): ...this.
1187 (m32r_cannot_store_register): Turn into...
1188 (m32r_target::low_cannot_store_register): ...this.
1189 (the_low_target): Remove the op fields.
1190 * linux-m68k-low.cc (class m68k_target)
1191 <low_cannot_fetch_register>
1192 <low_cannot_store_register>: Declare.
1193 (m68k_cannot_fetch_register): Turn into...
1194 (m68k_target::low_cannot_fetch_register): ...this.
1195 (m68k_cannot_store_register): Turn into...
1196 (m68k_target::low_cannot_store_register): ...this.
1197 (the_low_target): Remove the op fields.
1198 * linux-mips-low.cc (class mips_target)
1199 <low_cannot_fetch_register>
1200 <low_cannot_store_register>: Declare.
1201 (mips_cannot_fetch_register): Turn into...
1202 (mips_target::low_cannot_fetch_register): ...this.
1203 (mips_cannot_store_register): Turn into...
1204 (mips_target::low_cannot_store_register): ...this.
1205 (get_usrregs_info): Inline at the call sites in
1206 low_cannot_fetch_register and low_cannot_store_register,
1207 and remove.
1208 (the_low_target): Remove the op fields.
1209 * linux-nios2-low.cc (class nios2_target)
1210 <low_cannot_fetch_register>
1211 <low_cannot_store_register>: Declare.
1212 (nios2_cannot_fetch_register): Turn into...
1213 (nios2_target::low_cannot_fetch_register): ...this.
1214 (nios2_cannot_store_register): Turn into...
1215 (nios2_target::low_cannot_store_register): ...this.
1216 (the_low_target): Remove the op fields.
1217 * linux-ppc-low.cc (class ppc_target)
1218 <low_cannot_fetch_register>
1219 <low_cannot_store_register>: Declare.
1220 (ppc_cannot_fetch_register): Turn into...
1221 (ppc_target::low_cannot_fetch_register): ...this.
1222 (ppc_cannot_store_register): Turn into...
1223 (ppc_target::low_cannot_store_register): ...this.
1224 (the_low_target): Remove the op fields.
1225 * linux-riscv-low.cc (class riscv_target)
1226 <low_cannot_fetch_register>
1227 <low_cannot_store_register>: Declare.
1228 (riscv_target::low_cannot_fetch_register)
1229 (riscv_target::low_cannot_store_register): Define.
1230 (the_low_target): Remove the op fields.
1231 * linux-s390-low.cc (class s390_target)
1232 <low_cannot_fetch_register>
1233 <low_cannot_store_register>: Declare.
1234 (s390_cannot_fetch_register): Turn into...
1235 (s390_target::low_cannot_fetch_register): ...this.
1236 (s390_cannot_store_register): Turn into...
1237 (s390_target::low_cannot_store_register): ...this.
1238 (the_low_target): Remove the op fields.
1239 * linux-sh-low.cc (class sh_target)
1240 <low_cannot_fetch_register>
1241 <low_cannot_store_register>: Declare.
1242 (sh_cannot_fetch_register): Turn into...
1243 (sh_target::low_cannot_fetch_register): ...this.
1244 (sh_cannot_store_register): Turn into...
1245 (sh_target::low_cannot_store_register): ...this.
1246 (the_low_target): Remove the op fields.
1247 * linux-sparc-low.cc (class sparc_target)
1248 <low_cannot_fetch_register>
1249 <low_cannot_store_register>: Declare.
1250 (sparc_cannot_fetch_register): Turn into...
1251 (sparc_target::low_cannot_fetch_register): ...this.
1252 (sparc_cannot_store_register): Turn into...
1253 (sparc_target::low_cannot_store_register): ...this.
1254 (the_low_target): Remove the op fields.
1255 * linux-tic6x-low.cc (class tic6x_target)
1256 <low_cannot_fetch_register>
1257 <low_cannot_store_register>: Declare.
1258 (tic6x_cannot_fetch_register): Turn into...
1259 (tic6x_target::low_cannot_fetch_register): ...this.
1260 (tic6x_cannot_store_register): Turn into...
1261 (tic6x_target::low_cannot_store_register): ...this.
1262 (the_low_target): Remove the op fields.
1263 * linux-tile-low.cc (class tile_target)
1264 <low_cannot_fetch_register>
1265 <low_cannot_store_register>: Declare.
1266 (tile_cannot_fetch_register): Turn into...
1267 (tile_target::low_cannot_fetch_register): ...this.
1268 (tile_cannot_store_register): Turn into...
1269 (tile_target::low_cannot_store_register): ...this.
1270 (the_low_target): Remove the op fields.
1271 * linux-xtensa-low.cc (class xtensa_target)
1272 <low_cannot_fetch_register>
1273 <low_cannot_store_register>: Declare.
1274 (xtensa_target::low_cannot_fetch_register)
1275 (xtensa_target::low_cannot_store_register): Define.
1276 (the_low_target): Remove the op fields.
1277
aa8d21c9
TBA
12782020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1279
1280 Turn the 'regs_info' linux target op into a method of
1281 linux_process_target.
1282
1283 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1284 (class linux_process_target) <get_regs_info>: Define.
1285
1286 Update the callers below.
1287
1288 * linux-low.cc (linux_process_target::fetch_registers)
1289 (linux_process_target::store_registers)
1290 * proc-service.cc (gregset_info)
1291
1292 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1293 (x86_linux_regs_info): Turn into ...
1294 (x86_target::get_regs_info): ...this.
1295 (the_low_target): Remove the op field.
1296 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1297 Declare.
1298 (aarch64_regs_info): Turn into ...
1299 (aarch64_target::get_regs_info): ...this.
1300 (the_low_target): Remove the op field.
1301 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1302 (arm_regs_info): Turn into ...
1303 (arm_target::get_regs_info): ...this.
1304 (the_low_target): Remove the op field.
1305 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1306 (bfin_regs_info): Turn into ...
1307 (bfin_target::get_regs_info): ...this.
1308 (the_low_target): Remove the op field.
1309 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1310 (cris_regs_info): Turn into ...
1311 (cris_target::get_regs_info): ...this.
1312 (the_low_target): Remove the op field.
1313 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1314 Declare.
1315 (crisv32_regs_info): Turn into ...
1316 (crisv32_target::get_regs_info): ...this.
1317 (the_low_target): Remove the op field.
1318 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1319 (ia64_regs_info): Turn into ...
1320 (ia64_target::get_regs_info): ...this.
1321 (the_low_target): Remove the op field.
1322 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1323 (m32r_regs_info): Turn into ...
1324 (m32r_target::get_regs_info): ...this.
1325 (the_low_target): Remove the op field.
1326 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1327 (m68k_regs_info): Turn into ...
1328 (m68k_target::get_regs_info): ...this.
1329 (the_low_target): Remove the op field.
1330 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1331 (mips_regs_info): Turn into ...
1332 (mips_target::get_regs_info): ...this.
1333 (the_low_target): Remove the op field.
1334 (get_usrregs_info): Update the call to the op.
1335 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1336 (nios2_regs_info): Turn into ...
1337 (nios2_target::get_regs_info): ...this.
1338 (the_low_target): Remove the op field.
1339 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1340 (ppc_regs_info): Turn into ...
1341 (ppc_target::get_regs_info): ...this.
1342 (the_low_target): Remove the op field.
1343 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1344 (riscv_regs_info): Turn into ...
1345 (riscv_target::get_regs_info): ...this.
1346 (the_low_target): Remove the op field.
1347 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1348 (s390_regs_info): Turn into ...
1349 (s390_target::get_regs_info): ...this.
1350 (the_low_target): Remove the op field.
1351 (s390_collect_ptrace_register)
1352 (s390_supply_ptrace_register)
1353 (s390_fill_gregset): Update the call to the op.
1354 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1355 (sh_regs_info): Turn into ...
1356 (sh_target::get_regs_info): ...this.
1357 (the_low_target): Remove the op field.
1358 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1359 (sparc_regs_info): Turn into ...
1360 (sparc_target::get_regs_info): ...this.
1361 (the_low_target): Remove the op field.
1362 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1363 (tic6x_regs_info): Turn into ...
1364 (tic6x_target::get_regs_info): ...this.
1365 (the_low_target): Remove the op field.
1366 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1367 (tile_regs_info): Turn into ...
1368 (tile_target::get_regs_info): ...this.
1369 (the_low_target): Remove the op field.
1370 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1371 Declare.
1372 (xtensa_regs_info): Turn into ...
1373 (xtensa_target::get_regs_info): ...this.
1374 (the_low_target): Remove the op field.
1375
797bcff5
TBA
13762020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1377
1378 Turn the 'arch_setup' linux target op into a method of
1379 linux_process_target.
1380
1381 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1382 (class linux_process_target) <arch_setup_thread>
1383 <low_arch_setup>: New declarations.
1384 * linux-low.cc (linux_arch_setup): Delete.
1385 (linux_arch_setup_thread): Turn into...
1386 (linux_process_target::arch_setup_thread): ... this.
1387
1388 Update the callers below.
1389
1390 (linux_process_target::handle_extended_wait)
1391 (linux_process_target::post_create_inferior)
1392 (linux_process_target::filter_event)
1393
1394 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1395 declaration.
1396 (x86_linux_update_xmltarget): Turn into...
1397 (x86_target::update_xmltarget): ...this.
1398 (x86_linux_process_qsupported): Update the call to
1399 x86_linux_update_xmltarget.
1400 (x86_arch_setup): Turn into ...
1401 (x86_target::low_arch_setup): ...this.
1402 (the_low_target): Remove the op field.
1403 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1404 declaration.
1405 (aarch64_arch_setup): Turn into ...
1406 (aarch64_target::low_arch_setup): ...this.
1407 (the_low_target): Remove the op field.
1408 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1409 declaration.
1410 (arm_arch_setup): Turn into ...
1411 (arm_target::low_arch_setup): ...this.
1412 (the_low_target): Remove the op field.
1413 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1414 declaration.
1415 (bfin_arch_setup): Turn into ...
1416 (bfin_target::low_arch_setup): ...this.
1417 (the_low_target): Remove the op field.
1418 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1419 declaration.
1420 (cris_arch_setup): Turn into ...
1421 (cris_target::low_arch_setup): ...this.
1422 (the_low_target): Remove the op field.
1423 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1424 declaration.
1425 (crisv32_arch_setup): Turn into ...
1426 (crisv32_target::low_arch_setup): ...this.
1427 (the_low_target): Remove the op field.
1428 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1429 declaration.
1430 (ia64_arch_setup): Turn into ...
1431 (ia64_target::low_arch_setup): ...this.
1432 (the_low_target): Remove the op field.
1433 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1434 declaration.
1435 (m32r_arch_setup): Turn into ...
1436 (m32r_target::low_arch_setup): ...this.
1437 (the_low_target): Remove the op field.
1438 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1439 declaration.
1440 (m68k_arch_setup): Turn into ...
1441 (m68k_target::low_arch_setup): ...this.
1442 (the_low_target): Remove the op field.
1443 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1444 declaration.
1445 (mips_arch_setup): Turn into ...
1446 (mips_target::low_arch_setup): ...this.
1447 (the_low_target): Remove the op field.
1448 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1449 declaration.
1450 (nios2_arch_setup): Turn into ...
1451 (nios2_target::low_arch_setup): ...this.
1452 (the_low_target): Remove the op field.
1453 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1454 declaration.
1455 (ppc_arch_setup): Turn into ...
1456 (ppc_target::low_arch_setup): ...this.
1457 (the_low_target): Remove the op field.
1458 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1459 declaration.
1460 (riscv_arch_setup): Turn into ...
1461 (riscv_target::low_arch_setup): ...this.
1462 (the_low_target): Remove the op field.
1463 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1464 declaration.
1465 (s390_arch_setup): Turn into ...
1466 (s390_target::low_arch_setup): ...this.
1467 (the_low_target): Remove the op field.
1468 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1469 declaration.
1470 (sh_arch_setup): Turn into ...
1471 (sh_target::low_arch_setup): ...this.
1472 (the_low_target): Remove the op field.
1473 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1474 declaration.
1475 (sparc_arch_setup): Turn into ...
1476 (sparc_target::low_arch_setup): ...this.
1477 (the_low_target): Remove the op field.
1478 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1479 declaration.
1480 (tic6x_arch_setup): Turn into ...
1481 (tic6x_target::low_arch_setup): ...this.
1482 (the_low_target): Remove the op field.
1483 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1484 declaration.
1485 (tile_arch_setup): Turn into ...
1486 (tile_target::low_arch_setup): ...this.
1487 (the_low_target): Remove the op field.
1488 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1489 declaration.
1490 (xtensa_arch_setup): Turn into ...
1491 (xtensa_target::low_arch_setup): ...this.
1492 (the_low_target): Remove the op field.
1493
ef0478f6
TBA
14942020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1495
1496 * linux-low.h (the_linux_target): New extern declaration.
1497 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
1498 'the_target'.
1499 (the_linux_target): Remove.
1500 * linux-x86-low.cc (class x86_target): New class.
1501 (the_x86_target): New static object.
1502 (the_linux_target): Define as pointer to the_x86_target.
1503 * linux-aarch64-low.cc (class aarch64_target): New class.
1504 (the_aarch64_target): New static object.
1505 (the_linux_target): Define as pointer to the_aarch64_target.
1506 * linux-arm-low.cc (class arm_target): New class.
1507 (the_arm_target): New static object.
1508 (the_linux_target): Define as pointer to the_arm_target.
1509 * linux-bfin-low.cc (class bfin_target): New class.
1510 (the_bfin_target): New static object.
1511 (the_linux_target): Define as pointer to the_bfin_target.
1512 * linux-cris-low.cc (class cris_target): New class.
1513 (the_cris_target): New static object.
1514 (the_linux_target): Define as pointer to the_cris_target.
1515 * linux-crisv32-low.cc (class crisv32_target): New class.
1516 (the_crisv32_target): New static object.
1517 (the_linux_target): Define as pointer to the_crisv32_target.
1518 * linux-ia64-low.cc (class ia64_target): New class.
1519 (the_ia64_target): New static object.
1520 (the_linux_target): Define as pointer to the_ia64_target.
1521 * linux-m32r-low.cc (class m32r_target): New class.
1522 (the_m32r_target): New static object.
1523 (the_linux_target): Define as pointer to the_m32r_target.
1524 * linux-m68k-low.cc (class m68k_target): New class.
1525 (the_m68k_target): New static object.
1526 (the_linux_target): Define as pointer to the_m68k_target.
1527 * linux-mips-low.cc (class mips_target): New class.
1528 (the_mips_target): New static object.
1529 (the_linux_target): Define as pointer to the_mips_target.
1530 * linux-nios2-low.cc (class nios2_target): New class.
1531 (the_nios2_target): New static object.
1532 (the_linux_target): Define as pointer to the_nios2_target.
1533 * linux-ppc-low.cc (class ppc_target): New class.
1534 (the_ppc_target): New static object.
1535 (the_linux_target): Define as pointer to the_ppc_target.
1536 * linux-riscv-low.cc (class riscv_target): New class.
1537 (the_riscv_target): New static object.
1538 (the_linux_target): Define as pointer to the_riscv_target.
1539 * linux-s390-low.cc (class s390_target): New class.
1540 (the_s390_target): New static object.
1541 (the_linux_target): Define as pointer to the_s390_target.
1542 * linux-sh-low.cc (class sh_target): New class.
1543 (the_sh_target): New static object.
1544 (the_linux_target): Define as pointer to the_sh_target.
1545 * linux-sparc-low.cc (class sparc_target): New class.
1546 (the_sparc_target): New static object.
1547 (the_linux_target): Define as pointer to the_sparc_target.
1548 * linux-tic6x-low.cc (class tic6x_target): New class.
1549 (the_tic6x_target): New static object.
1550 (the_linux_target): Define as pointer to the_tic6x_target.
1551 * linux-tile-low.cc (class tile_target): New class.
1552 (the_tile_target): New static object.
1553 (the_linux_target): Define as pointer to the_tile_target.
1554 * linux-xtensa-low.cc (class xtensa_target): New class.
1555 (the_xtensa_target): New static object.
1556 (the_linux_target): Define as pointer to the_xtensa_target.
1557
d16f3f6c
TBA
15582020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1559
1560 Turn some static functions in linux-low.cc into private methods of
1561 linux_process_target.
1562
1563 * linux-low.cc (handle_extended_wait): Turn into ...
1564 (linux_process_target::handle_extended_wait): ...this. Call
1565 'mourn' on 'this' object instead of 'the_target'.
1566 (maybe_move_out_of_jump_pad): Turn into...
1567 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
1568 (linux_low_filter_event): Turn into...
1569 (linux_process_target::filter_event): ...this.
1570 (linux_wait_for_event_filtered): Turn into...
1571 (linux_process_target::wait_for_event_filtered): ...this.
1572 (linux_wait_for_event): Turn into...
1573 (linux_process_target::wait_for_event): ...this.
1574 (linux_wait_1): Turn into...
1575 (linux_process_target::wait_1): ...this.
1576 (wait_for_sigstop): Turn into...
1577 (linux_process_target::wait_for_sigstop): ...this.
1578 (move_out_of_jump_pad_callback): Turn into...
1579 (linux_process_target::move_out_of_jump_pad): ...this.
1580 (stop_all_lwps): Turn into...
1581 (linux_process_target::stop_all_lwps): ...this.
1582 (start_step_over): Turn into...
1583 (linux_process_target::start_step_over): ...this.
1584 (complete_ongoing_step_over): Turn into...
1585 (linux_process_target::complete_ongoing_step_over): ...this.
1586 (proceed_all_lwps): Turn into...
1587 (linux_process_target::proceed_all_lwps): ...this.
1588 (unstop_all_lwps): Turn into...
1589 (linux_process_target::unstop_all_lwps): ...this.
1590
1591 * linux-low.h (class linux_process_target)
1592 <handle_extended_wait>
1593 <maybe_move_out_of_jump_pad>
1594 filter_event>
1595 <wait_for_event_filtered>
1596 <wait_for_event>
1597 <wait_1>
1598 <wait_for_sigstop>
1599 <move_out_of_jump_pad>
1600 <stop_all_lwps>
1601 <start_step_over>
1602 <complete_ongoing_step_over>
1603 <proceed_all_lwps>
1604 <unstop_all_lwps>: Declare.
1605
1606 Update the callers below.
1607
1608 * linux-low.cc (linux_process_target::attach): Update.
1609 (linux_process_target::stabilize_threads): Ditto.
1610 (linux_process_target::wait): Ditto.
1611
a5863204
TBA
16122020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1613
1614 * linux-low.h (struct linux_target_ops): Update the comment for
1615 'cannot_store_register' to return 0 or 1.
1616 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
1617 of 2.
1618
c884cc46
SM
16192020-03-20 Simon Marchi <simon.marchi@efficios.com>
1620
1621 * config.in: Re-generate.
1622 * configure: Re-generate.
1623
5a82b8a1
KR
16242020-03-17 Kamil Rytarowski <n54@gmx.com>
1625
1626 * regcache.cc (find_register_by_number): Update.
1627 * tdesc.cc (init_target_desc): Likewise.
1628 * tdesc.h (target_desc::reg_defs): Likewise.
1629
4635ff97
TT
16302020-03-12 Tom Tromey <tom@tromey.com>
1631
1632 * configure: Rebuild.
1633 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
1634 (WIN32APILIBS): New subst.
1635 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
1636 gdbsupport files.
1637 (gdbsupport/%.o): Remove target.
1638 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
1639 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
1640 (WIN32APILIBS): New variable.
1641 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
1642 (gdbreplay$(EXEEXT)): Likewise.
1643
9a665d62
TT
16442020-03-12 Tom Tromey <tom@tromey.com>
1645
1646 * config.in, configure: Rebuild.
1647 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
1648 * acinclude.m4: Include gettext-sister.m4.
1649 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
1650 variables.
1651 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
1652 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
1653
272cd5a3
SM
16542020-03-12 Simon Marchi <simon.marchi@efficios.com>
1655
1656 * acinclude.m4: Update path to selftest.m4.
1657
db6878ac
SM
16582020-03-12 Simon Marchi <simon.marchi@efficios.com>
1659
1660 * configure.ac: Don't source bfd/development.sh, move
1661 GDB_AC_COMMON higher.
1662 * configure: Re-generate.
1663
4d696a5c
SM
16642020-03-12 Simon Marchi <simon.marchi@efficios.com>
1665
1666 * configure: Re-generate.
1667
a0761e34
SM
16682020-03-11 Simon Marchi <simon.marchi@efficios.com>
1669
1670 * configure: Re-generate.
1671
20ea4a60
AB
16722020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1673
1674 * .dir-locals.el: New file.
1675
842806cb
TBA
16762020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1677
1678 * .gitattributes: New file.
1679
442131c1
AB
16802020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
1681
1682 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
1683 reply into an S reply.
1684 * server.cc (disable_packet_T): New global.
1685 (captured_main): Set new global when appropriate.
1686 * server.h (disable_packet_T): Declare.
1687
dda42c0b
TT
16882020-02-21 Tom Tromey <tom@tromey.com>
1689
1690 * Makefile.in (mostlyclean): New target.
1691
52405d85
TBA
16922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1693
1694 * target.h (struct process_stratum_target): Remove.
1695 (class process_target): Rename to ...
1696 (class process_stratum_target): ... this.
1697 * linux-low.h (class linux_process_target): Derive from
1698 'process_stratum_target'.
1699 * linux-low.cc (linux_target_ops): Remove.
1700 (initialize_low): Set the_target to the singleton instance of
1701 linux_process_target.
1702 * lynx-low.h (class lynx_process_target): Derive from
1703 'process_stratum_target'.
1704 * lynx-low.cc (lynx_target_ops): Remove.
1705 (initialize_low): Set the_target to the singleton instance of
1706 lynx_process_target.
1707 * nto-low.h (class nto_process_target): Derive from
1708 'process_stratum_target'.
1709 * nto-low.cc (nto_target_ops): Remove.
1710 (initialize_low): Set the_target to the singleton instance of
1711 nto_process_target.
1712 * win32-low.h (class win32_process_target): Derive from
1713 'process_stratum_target'.
1714 * win32-low.cc (win32_target_ops): Remove.
1715 (initialize_low): Set the_target to the singleton instance of
1716 win32_process_target.
1717
1718 Replace 'the_target->pt' with 'the_target' in the uses below.
1719
1720 * hostio.cc (hostio_error)
1721 (handle_setfs)
1722 (handle_open)
1723 (handle_unlink)
1724 (handle_readlink)
1725 * linux-aarch32-low.cc (arm_breakpoint_at)
1726 * linux-aarch64-low.cc (aarch64_breakpoint_at)
1727 * linux-arm-low.cc (arm_sigreturn_next_pc)
1728 (arm_get_hwcap)
1729 (arm_get_syscall_trapinfo)
1730 * linux-cris-low.cc (cris_breakpoint_at)
1731 * linux-crisv32-low.cc (cris_breakpoint_at)
1732 * linux-low.cc (handle_extended_wait)
1733 (linux_wait_1)
1734 (linux_read_memory)
1735 (linux_process_target::breakpoint_kind_from_pc)
1736 (linux_get_auxv)
1737 * linux-m32r-low.cc (m32r_breakpoint_at)
1738 * linux-mips-low.cc (mips_breakpoint_at)
1739 * linux-nios2-low.cc (nios2_breakpoint_at)
1740 * linux-ppc-low.cc (ppc_breakpoint_at)
1741 * linux-s390-low.cc (s390_get_hwcap)
1742 * linux-sh-low.cc (sh_breakpoint_at)
1743 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
1744 (sparc_store_gregset_from_stack)
1745 (sparc_breakpoint_at)
1746 * linux-tic6x-low.cc (tic6x_breakpoint_at)
1747 * linux-tile-low.cc (tile_breakpoint_at)
1748 * linux-x86-low.cc (x86_breakpoint_at)
1749 * linux-xtensa-low.cc (xtensa_breakpoint_at)
1750 * mem-break.cc (bp_size)
1751 (bp_opcode)
1752 (insert_memory_breakpoint)
1753 (set_raw_breakpoint_at)
1754 (delete_raw_breakpoint)
1755 (z_type_supported)
1756 (uninsert_raw_breakpoint)
1757 (reinsert_raw_breakpoint)
1758 (validate_inserted_breakpoint)
1759 * regcache.cc (regcache_read_pc)
1760 (regcache_write_pc)
1761 * remote-utils.cc (putpkt_binary_1)
1762 (input_interrupt)
1763 (getpkt)
1764 (prepare_resume_reply)
1765 * server.cc (handle_general_set)
1766 (handle_detach)
1767 (handle_qxfer_auxv)
1768 (handle_qxfer_exec_file)
1769 (handle_qxfer_libraries_svr4)
1770 (handle_qxfer_osdata)
1771 (handle_qxfer_siginfo)
1772 (handle_qxfer_fdpic)
1773 (handle_query)
1774 (resume)
1775 (handle_v_requests)
1776 (queue_stop_reply_callback)
1777 (captured_main)
1778 * target.cc (prepare_to_access_memory)
1779 (done_accessing_memory)
1780 (read_inferior_memory)
1781 (target_write_memory)
1782 (target_stop_and_wait)
1783 (target_wait)
1784 (target_mourn_inferior)
1785 (target_continue_no_signal)
1786 (target_continue)
1787 (target_supports_multi_process)
1788 (kill_inferior)
1789 * target.h
1790 (target_create_inferior)
1791 (target_post_create_inferior)
1792 (myattach)
1793 (target_supports_fork_events)
1794 (target_supports_vfork_events)
1795 (target_supports_exec_events)
1796 (target_handle_new_gdb_connection)
1797 (detach_inferior)
1798 (mythread_alive)
1799 (fetch_inferior_registers)
1800 (store_inferior_registers)
1801 (join_inferior)
1802 (target_supports_non_stop)
1803 (target_async)
1804 (target_process_qsupported)
1805 (target_supports_catch_syscall)
1806 (target_get_ipa_tdesc_idx)
1807 (target_supports_tracepoints)
1808 (target_supports_fast_tracepoints)
1809 (target_get_min_fast_tracepoint_insn_len)
1810 (target_thread_stopped)
1811 (target_pause_all)
1812 (target_unpause_all)
1813 (target_stabilize_threads)
1814 (target_install_fast_tracepoint_jump_pad)
1815 (target_emit_ops)
1816 (target_supports_disable_randomization)
1817 (target_supports_agent)
1818 (target_enable_btrace)
1819 (target_disable_btrace)
1820 (target_read_btrace)
1821 (target_read_btrace_conf)
1822 (target_supports_range_stepping)
1823 (target_supports_stopped_by_sw_breakpoint)
1824 (target_stopped_by_sw_breakpoint)
1825 (target_supports_stopped_by_hw_breakpoint)
1826 (target_supports_hardware_single_step)
1827 (target_stopped_by_hw_breakpoint)
1828 (target_breakpoint_kind_from_pc)
1829 (target_breakpoint_kind_from_current_state)
1830 (target_supports_software_single_step)
1831 (target_core_of_thread)
1832 (target_thread_name)
1833 (target_thread_handle)
1834 * win32-low.cc (do_initial_child_stuff)
1835
1836 Rename target op default definitions listed below.
1837
1838 * target.cc (process_target::post_create_inferior): Rename as ...
1839 (process_stratum_target::post_create_inferior): ... this.
1840 (process_target::prepare_to_access_memory): Rename as ...
1841 (process_stratum_target::prepare_to_access_memory): ... this.
1842 (process_target::done_accessing_memory): Rename as ...
1843 (process_stratum_target::done_accessing_memory): ... this.
1844 (process_target::look_up_symbols): Rename as ...
1845 (process_stratum_target::look_up_symbols): ... this.
1846 (process_target::supports_read_auxv): Rename as ...
1847 (process_stratum_target::supports_read_auxv): ... this.
1848 (process_target::read_auxv): Rename as ...
1849 (process_stratum_target::read_auxv): ... this.
1850 (process_target::supports_z_point_type): Rename as ...
1851 (process_stratum_target::supports_z_point_type): ... this.
1852 (process_target::insert_point): Rename as ...
1853 (process_stratum_target::insert_point): ... this.
1854 (process_target::remove_point): Rename as ...
1855 (process_stratum_target::remove_point): ... this.
1856 (process_target::stopped_by_sw_breakpoint): Rename as ...
1857 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
1858 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
1859 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
1860 (process_target::stopped_by_hw_breakpoint): Rename as ...
1861 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
1862 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
1863 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
1864 (process_target::supports_hardware_single_step): Rename as ...
1865 (process_stratum_target::supports_hardware_single_step): ... this.
1866 (process_target::stopped_by_watchpoint): Rename as ...
1867 (process_stratum_target::stopped_by_watchpoint): ... this.
1868 (process_target::stopped_data_address): Rename as ...
1869 (process_stratum_target::stopped_data_address): ... this.
1870 (process_target::supports_read_offsets): Rename as ...
1871 (process_stratum_target::supports_read_offsets): ... this.
1872 (process_target::read_offsets): Rename as ...
1873 (process_stratum_target::read_offsets): ... this.
1874 (process_target::supports_get_tls_address): Rename as ...
1875 (process_stratum_target::supports_get_tls_address): ... this.
1876 (process_target::get_tls_address): Rename as ...
1877 (process_stratum_target::get_tls_address): ... this.
1878 (process_target::hostio_last_error): Rename as ...
1879 (process_stratum_target::hostio_last_error): ... this.
1880 (process_target::supports_qxfer_osdata): Rename as ...
1881 (process_stratum_target::supports_qxfer_osdata): ... this.
1882 (process_target::qxfer_osdata): Rename as ...
1883 (process_stratum_target::qxfer_osdata): ... this.
1884 (process_target::supports_qxfer_siginfo): Rename as ...
1885 (process_stratum_target::supports_qxfer_siginfo): ... this.
1886 (process_target::qxfer_siginfo): Rename as ...
1887 (process_stratum_target::qxfer_siginfo): ... this.
1888 (process_target::supports_non_stop): Rename as ...
1889 (process_stratum_target::supports_non_stop): ... this.
1890 (process_target::async): Rename as ...
1891 (process_stratum_target::async): ... this.
1892 (process_target::start_non_stop): Rename as ...
1893 (process_stratum_target::start_non_stop): ... this.
1894 (process_target::supports_multi_process): Rename as ...
1895 (process_stratum_target::supports_multi_process): ... this.
1896 (process_target::supports_fork_events): Rename as ...
1897 (process_stratum_target::supports_fork_events): ... this.
1898 (process_target::supports_vfork_events): Rename as ...
1899 (process_stratum_target::supports_vfork_events): ... this.
1900 (process_target::supports_exec_events): Rename as ...
1901 (process_stratum_target::supports_exec_events): ... this.
1902 (process_target::handle_new_gdb_connection): Rename as ...
1903 (process_stratum_target::handle_new_gdb_connection): ... this.
1904 (process_target::handle_monitor_command): Rename as ...
1905 (process_stratum_target::handle_monitor_command): ... this.
1906 (process_target::core_of_thread): Rename as ...
1907 (process_stratum_target::core_of_thread): ... this.
1908 (process_target::supports_read_loadmap): Rename as ...
1909 (process_stratum_target::supports_read_loadmap): ... this.
1910 (process_target::read_loadmap): Rename as ...
1911 (process_stratum_target::read_loadmap): ... this.
1912 (process_target::process_qsupported): Rename as ...
1913 (process_stratum_target::process_qsupported): ... this.
1914 (process_target::supports_tracepoints): Rename as ...
1915 (process_stratum_target::supports_tracepoints): ... this.
1916 (process_target::read_pc): Rename as ...
1917 (process_stratum_target::read_pc): ... this.
1918 (process_target::write_pc): Rename as ...
1919 (process_stratum_target::write_pc): ... this.
1920 (process_target::supports_thread_stopped): Rename as ...
1921 (process_stratum_target::supports_thread_stopped): ... this.
1922 (process_target::thread_stopped): Rename as ...
1923 (process_stratum_target::thread_stopped): ... this.
1924 (process_target::supports_get_tib_address): Rename as ...
1925 (process_stratum_target::supports_get_tib_address): ... this.
1926 (process_target::get_tib_address): Rename as ...
1927 (process_stratum_target::get_tib_address): ... this.
1928 (process_target::pause_all): Rename as ...
1929 (process_stratum_target::pause_all): ... this.
1930 (process_target::unpause_all): Rename as ...
1931 (process_stratum_target::unpause_all): ... this.
1932 (process_target::stabilize_threads): Rename as ...
1933 (process_stratum_target::stabilize_threads): ... this.
1934 (process_target::supports_fast_tracepoints): Rename as ...
1935 (process_stratum_target::supports_fast_tracepoints): ... this.
1936 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
1937 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
1938 (process_target::emit_ops): Rename as ...
1939 (process_stratum_target::emit_ops): ... this.
1940 (process_target::supports_disable_randomization): Rename as ...
1941 (process_stratum_target::supports_disable_randomization): ... this.
1942 (process_target::supports_qxfer_libraries_svr4): Rename as ...
1943 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
1944 (process_target::qxfer_libraries_svr4): Rename as ...
1945 (process_stratum_target::qxfer_libraries_svr4): ... this.
1946 (process_target::supports_agent): Rename as ...
1947 (process_stratum_target::supports_agent): ... this.
1948 (process_target::enable_btrace): Rename as ...
1949 (process_stratum_target::enable_btrace): ... this.
1950 (process_target::disable_btrace): Rename as ...
1951 (process_stratum_target::disable_btrace): ... this.
1952 (process_target::read_btrace): Rename as ...
1953 (process_stratum_target::read_btrace): ... this.
1954 (process_target::read_btrace_conf): Rename as ...
1955 (process_stratum_target::read_btrace_conf): ... this.
1956 (process_target::supports_range_stepping): Rename as ...
1957 (process_stratum_target::supports_range_stepping): ... this.
1958 (process_target::supports_pid_to_exec_file): Rename as ...
1959 (process_stratum_target::supports_pid_to_exec_file): ... this.
1960 (process_target::pid_to_exec_file): Rename as ...
1961 (process_stratum_target::pid_to_exec_file): ... this.
1962 (process_target::supports_multifs): Rename as ...
1963 (process_stratum_target::supports_multifs): ... this.
1964 (process_target::multifs_open): Rename as ...
1965 (process_stratum_target::multifs_open): ... this.
1966 (process_target::multifs_unlink): Rename as ...
1967 (process_stratum_target::multifs_unlink): ... this.
1968 (process_target::multifs_readlink): Rename as ...
1969 (process_stratum_target::multifs_readlink): ... this.
1970 (process_target::breakpoint_kind_from_pc): Rename as ...
1971 (process_stratum_target::breakpoint_kind_from_pc): ... this.
1972 (process_target::breakpoint_kind_from_current_state): Rename as ...
1973 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
1974 (process_target::thread_name): Rename as ...
1975 (process_stratum_target::thread_name): ... this.
1976 (process_target::thread_handle): Rename as ...
1977 (process_stratum_target::thread_handle): ... this.
1978 (process_target::supports_software_single_step): Rename as ...
1979 (process_stratum_target::supports_software_single_step): ... this.
1980 (process_target::supports_catch_syscall): Rename as ...
1981 (process_stratum_target::supports_catch_syscall): ... this.
1982 (process_target::get_ipa_tdesc_idx): Rename as ...
1983 (process_stratum_target::get_ipa_tdesc_idx): ... this.
1984
478f9adf
PA
19852020-02-20 Pedro Alves <palves@redhat.com>
1986
1987 * target.cc (set_target_ops): Simply copy the given target pointer
1988 instead of creating a copy of the pointed object.
1989
d633e831
TBA
19902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1991
1992 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
1993 of process_target.
1994
1995 * target.h (struct process_stratum_target): Remove the target op.
1996 (class process_target): Add the target op.
1997 (target_get_ipa_tdesc_idx): Update the macro.
1998 * target.cc (process_target::get_ipa_tdesc_idx): Define.
1999
2000 Update the derived classes and callers below.
2001
2002 * linux-low.cc (linux_target_ops): Update.
2003 (linux_get_ipa_tdesc_idx): Turn into ...
2004 (linux_process_target::get_ipa_tdesc_idx): ... this.
2005 * linux-low.h (class linux_process_target): Update.
2006 * lynx-low.cc (lynx_target_ops): Update.
2007 * nto-low.cc (nto_target_ops): Update.
2008 * win32-low.cc (win32_target_ops): Update.
2009
bc8d3ae4
TBA
20102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2011
2012 Turn process_stratum_target's supports_catch_syscall op into a
2013 method of process_target.
2014
2015 * target.h (struct process_stratum_target): Remove the target op.
2016 (class process_target): Add the target op.
2017 (target_supports_catch_syscall): Update the macro.
2018 * target.cc (process_target::supports_catch_syscall): Define.
2019
2020 Update the derived classes and callers below.
2021
2022 * linux-low.cc (linux_target_ops): Update.
2023 (linux_supports_catch_syscall): Turn into ...
2024 (linux_process_target::supports_catch_syscall): ... this.
2025 * linux-low.h (class linux_process_target): Update.
2026 * lynx-low.cc (lynx_target_ops): Update.
2027 * nto-low.cc (nto_target_ops): Update.
2028 * win32-low.cc (win32_target_ops): Update.
2029
5303a34f
TBA
20302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2031
2032 Turn process_stratum_target's supports_software_single_step op
2033 into a method of process_target.
2034
2035 * target.h (struct process_stratum_target): Remove the target op.
2036 (class process_target): Add the target op.
2037 (target_supports_software_single_step): Update the macro.
2038 * target.cc (process_target::supports_software_single_step): Define.
2039
2040 Update the derived classes and callers below.
2041
2042 * linux-low.cc (linux_target_ops): Update.
2043 (linux_supports_software_single_step): Turn into ...
2044 (linux_process_target::supports_software_single_step): ... this.
2045 * linux-low.h (class linux_process_target): Update.
2046 * lynx-low.cc (lynx_target_ops): Update.
2047 * nto-low.cc (nto_target_ops): Update.
2048 * win32-low.cc (win32_target_ops): Update.
2049
7f63b89b
TBA
20502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2051
2052 Turn process_stratum_target's thread_name and thread_handle ops
2053 into methods of process_target.
2054
2055 * target.h (struct process_stratum_target): Remove the target ops.
2056 (class process_target): Add the target ops.
2057 (target_thread_name): Update the macro.
2058 (target_thread_handle): Update the macro.
2059 * target.cc (process_target::thread_name): Define.
2060 (process_target::thread_handle): Define.
2061
2062 Update the derived classes and callers below.
2063
2064 * linux-low.cc (linux_target_ops): Update.
2065 (linux_process_target::thread_name): Define.
2066 (linux_process_target::thread_handle): Define.
2067 * linux-low.h (class linux_process_target): Update.
2068 * lynx-low.cc (lynx_target_ops): Update.
2069 * nto-low.cc (nto_target_ops): Update.
2070 * win32-low.cc (win32_target_ops): Update.
2071
d367006f
TBA
20722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2073
2074 Turn process_stratum_target's breakpoint_kind_from_pc,
2075 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2076 ops into methods of process_target.
2077
2078 * target.h (struct process_stratum_target): Remove the target op.
2079 (class process_target): Add the target op.
2080 (target_breakpoint_kind_from_pc): Update the macro.
2081 (target_breakpoint_kind_from_current_state): Update the macro.
2082 (default_breakpoint_kind_from_pc): Remove declaration.
2083 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2084 (process_target::breakpoint_kind_from_pc): ... this.
2085 (process_target::breakpoint_kind_from_current_state): Define.
2086
2087 Update the derived classes and callers below.
2088
2089 * mem-break.cc (bp_size): Update.
2090 (bp_opcode): Update.
2091 * linux-low.cc (linux_target_ops): Update.
2092 (linux_wait_1): Update.
2093 (linux_breakpoint_kind_from_pc): Turn into ...
2094 (linux_process_target::breakpoint_kind_from_pc): ... this.
2095 (linux_sw_breakpoint_from_kind): Turn into ...
2096 (linux_process_target::sw_breakpoint_from_kind): ... this.
2097 (linux_breakpoint_kind_from_current_state): Turn into ...
2098 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2099 * linux-low.h (class linux_process_target): Update.
2100 * lynx-low.cc (lynx_target_ops): Update.
2101 (lynx_process_target::sw_breakpoint_from_kind): Define.
2102 * lynx-low.h (class lynx_process_target): Update.
2103 * nto-low.cc (nto_target_ops): Update.
2104 (nto_sw_breakpoint_from_kind): Turn into ...
2105 (nto_process_target::sw_breakpoint_from_kind): ... this.
2106 * nto-low.h (class nto_process_target): Update.
2107 * win32-low.cc (win32_target_ops): Update.
2108 (win32_sw_breakpoint_from_kind): Turn into ...
2109 (win32_process_target::sw_breakpoint_from_kind): ... this.
2110 * win32-low.h (class win32_process_target): Update.
2111
c9b7b804
TBA
21122020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2113
2114 Turn process_stratum_target's multifs_open, multifs_readlink,
2115 multifs_unlink ops into methods of process_target.
2116
2117 * target.h (struct process_stratum_target): Remove the target ops.
2118 (class process_target): Add the target ops. Also add
2119 'supports_multifs'.
2120 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2121 "sys/stat.h".
2122 (process_target::supports_multifs): Define.
2123 (process_target::multifs_open): Define.
2124 (process_target::multifs_readlink): Define.
2125 (process_target::multifs_unlink): Define.
2126
2127 Update the derived classes and callers below.
2128
2129 * hostio.cc (handle_setfs): Update.
2130 (handle_open): Update.
2131 (handle_unlink): Update.
2132 (handle_readlink): Update.
2133 * linux-low.cc (linux_target_ops): Update.
2134 (linux_process_target::supports_multifs): Define.
2135 (linux_process_target::multifs_open): Define.
2136 (linux_process_target::multifs_readlink): Define.
2137 (linux_process_target::multifs_unlink): Define.
2138 * linux-low.h (class linux_process_target): Update.
2139 * lynx-low.cc (lynx_target_ops): Update.
2140 * nto-low.cc (nto_target_ops): Update.
2141 * win32-low.cc (win32_target_ops): Update.
2142
8247b823
TBA
21432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2144
2145 Turn process_stratum_target's pid_to_exec_file op into a method
2146 of process_target.
2147
2148 * target.h (struct process_stratum_target): Remove the target op.
2149 (class process_target): Add the target op. Also add
2150 'supports_pid_to_exec_file'.
2151 * target.cc (process_target::pid_to_exec_file): Define.
2152 (process_target::supports_pid_to_exec_file): Define.
2153
2154 Update the derived classes and callers below.
2155
2156 * server.cc (handle_qxfer_exec_file): Update.
2157 (handle_query): Update.
2158 * linux-low.cc (linux_target_ops): Update.
2159 (linux_process_target::supports_pid_to_exec_file): Define.
2160 (linux_process_target::pid_to_exec_file): Define.
2161 * linux-low.h (class linux_process_target): Update.
2162 * lynx-low.cc (lynx_target_ops): Update.
2163 * nto-low.cc (nto_target_ops): Update.
2164 * win32-low.cc (win32_target_ops): Update.
2165
2526e0cd
TBA
21662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2167
2168 Turn process_stratum_target's supports_range_stepping op into a
2169 method of process_target.
2170
2171 * target.h (struct process_stratum_target): Remove the target op.
2172 (class process_target): Add the target op.
2173 (target_supports_range_stepping): Update the macro.
2174 * target.cc (process_target::supports_range_stepping): Define.
2175
2176 Update the derived classes and callers below.
2177
2178 * linux-low.cc (linux_target_ops): Update.
2179 (linux_supports_range_stepping): Turn into ...
2180 (linux_process_target::supports_range_stepping): ... this.
2181 * linux-low.h (class linux_process_target): Update.
2182 * lynx-low.cc (lynx_target_ops): Update.
2183 * nto-low.cc (nto_target_ops): Update.
2184 * win32-low.cc (win32_target_ops): Update.
2185
79597bdd
TBA
21862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2187
2188 Turn process_stratum_target's btrace-related ops (enable_btrace,
2189 disable_btrace, read_btrace, read_btrace_conf) into methods of
2190 process_target.
2191
2192 * target.h (struct process_stratum_target): Remove the target ops.
2193 (class process_target): Add the target ops.
2194 (target_enable_btrace): Update.
2195 (target_disable_btrace): Update.
2196 (target_read_btrace): Update.
2197 (target_read_btrace_conf): Update.
2198 * target.cc (process_target::enable_btrace): Define.
2199 (process_target::disable_btrace): Define.
2200 (process_target::read_btrace): Define.
2201 (process_target::read_btrace_conf): Define.
2202
2203 Update the derived classes and callers below.
2204
2205 * linux-low.cc (linux_target_ops): Update.
2206 (linux_process_target:enable_btrace): Define as a wrapper around
2207 linux_enable_btrace.
2208 (linux_low_disable_btrace): Turn into ...
2209 (linux_process_target::disable_btrace): ... this.
2210 (linux_low_read_btrace): Turn into ...
2211 (linux_process_target::read_btrace): ... this.
2212 (linux_low_btrace_conf): Turn into ...
2213 (linux_process_target::read_btrace_conf): ... this.
2214 * linux-low.h (class linux_process_target): Update.
2215 * lynx-low.cc (lynx_target_ops): Update.
2216 * nto-low.cc (nto_target_ops): Update.
2217 * win32-low.cc (win32_target_ops): Update.
2218
c0245cb9
TBA
22192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2220
2221 Turn process_stratum_target's supports_agent op into a method of
2222 process_target.
2223
2224 * target.h (struct process_stratum_target): Remove the target op.
2225 (class process_target): Add the target op.
2226 (target_supports_agent): Update the macro.
2227 * target.cc (process_target::supports_agent): Define.
2228
2229 Update the derived classes and callers below.
2230
2231 * linux-low.cc (linux_target_ops): Update.
2232 (linux_supports_agent): Turn into ...
2233 (linux_process_target::supports_agent): ... this.
2234 * linux-low.h (class linux_process_target): Update.
2235 * lynx-low.cc (lynx_target_ops): Update.
2236 * nto-low.cc (nto_target_ops): Update.
2237 * win32-low.cc (win32_target_ops): Update.
2238
974387bb
TBA
22392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2240
2241 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2242 method of process_target.
2243
2244 * target.h (struct process_stratum_target): Remove the target op.
2245 (class process_target): Add the target op. Also add
2246 'supports_qxfer_libraries_svr4'.
2247 * target.cc (process_target::qxfer_libraries_svr4): Define.
2248 (process_target::supports_qxfer_libraries_svr4): Define.
2249
2250 Update the derived classes and callers below.
2251
2252 * server.cc (handle_qxfer_libraries_svr4): Update.
2253 (handle_query): Update.
2254 * linux-low.cc (linux_target_ops): Update.
2255 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2256 (linux_qxfer_libraries_svr4): Turn into ...
2257 (linux_process_target::qxfer_libraries_svr4): ... this.
2258 * linux-low.h (class linux_process_target): Update.
2259 * lynx-low.cc (lynx_target_ops): Update.
2260 * nto-low.cc (nto_target_ops): Update.
2261 * win32-low.cc (win32_target_ops): Update.
2262
c756403b
TBA
22632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2264
2265 Turn process_stratum_target's supports_disable_randomization op
2266 into a method of process_target.
2267
2268 * target.h (struct process_stratum_target): Remove the target op.
2269 (class process_target): Add the target op.
2270 (target_supports_disable_randomization): Update the macro.
2271 * target.cc (process_target::supports_disable_randomization): Define.
2272
2273 Update the derived classes and callers below.
2274
2275 * linux-low.cc (linux_target_ops): Update.
2276 (linux_supports_disable_randomization): Turn into ...
2277 (linux_process_target::supports_disable_randomization): ... this.
2278 * linux-low.h (class linux_process_target): Update.
2279 * lynx-low.cc (lynx_target_ops): Update.
2280 * nto-low.cc (nto_target_ops): Update.
2281 * win32-low.cc (win32_target_ops): Update.
2282
345dafad
TBA
22832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2284
2285 Turn process_stratum_target's emit_ops op into a method of
2286 process_target.
2287
2288 * target.h (struct process_stratum_target): Remove the target op.
2289 (class process_target): Add the target op.
2290 (target_emit_ops): Update the macro.
2291 * target.cc (process_target::emit_ops): Define.
2292
2293 Update the derived classes and callers below.
2294
2295 * linux-low.cc (linux_target_ops): Update.
2296 (linux_emit_ops): Turn into ...
2297 (linux_process_target::emit_ops): ... this.
2298 * linux-low.h (class linux_process_target): Update.
2299 * lynx-low.cc (lynx_target_ops): Update.
2300 * nto-low.cc (nto_target_ops): Update.
2301 * win32-low.cc (win32_target_ops): Update.
2302
c23c9391
TBA
23032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2304
2305 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2306 and get_min_fast_tracepoint_insn_len ops into methods of
2307 process_target.
2308
2309 * target.h (struct process_stratum_target): Remove the target ops.
2310 (class process_target): Add the target ops. Also add
2311 'supports_fast_tracepoints'.
2312 (target_supports_fast_tracepoints): Update the macro.
2313 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2314 (install_fast_tracepoint_jump_pad): Update and rename the macro
2315 to ...
2316 (target_install_fast_tracepoint_jump_pad): ... this.
2317 * target.cc (process_target::supports_fast_tracepoints): Define.
2318 (process_target::install_fast_tracepoint_jump_pad): Define.
2319 (process_target::get_min_fast_tracepoint_insn_len): Define.
2320
2321 Update the derived classes and callers below.
2322
2323 * tracepoint.cc (install_fast_tracepoint): Update.
2324 * linux-low.cc (linux_target_ops): Update.
2325 (linux_process_target::supports_fast_tracepoints): Define.
2326 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2327 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2328 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2329 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2330 * linux-low.h (class linux_process_target): Update.
2331 * lynx-low.cc (lynx_target_ops): Update.
2332 * nto-low.cc (nto_target_ops): Update.
2333 * win32-low.cc (win32_target_ops): Update.
2334
5c9eb2f2
TBA
23352020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2336
2337 Turn process_stratum_target's stabilize_threads op into a
2338 method of process_target.
2339
2340 * target.h (struct process_stratum_target): Remove the target op.
2341 (class process_target): Add the target op.
2342 (target_stabilize_threads): Update the macro.
2343 * target.cc (process_target::stabilize_threads): Define.
2344
2345 Update the derived classes and callers below.
2346
2347 * server.cc (handle_status): Update.
2348 * tracepoint.cc (cmd_qtdp): Update.
2349 (cmd_qtstart): Update.
2350 * linux-low.cc (linux_target_ops): Update.
2351 (linux_stabilize_threads): Turn into ...
2352 (linux_process_target::stabilize_threads): ... this.
2353 (linux_wait_1): Update.
2354 * linux-low.h (class linux_process_target): Update.
2355 * lynx-low.cc (lynx_target_ops): Update.
2356 * nto-low.cc (nto_target_ops): Update.
2357 * win32-low.cc (win32_target_ops): Update.
2358
29e8dc09
TBA
23592020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2360
2361 Turn process_stratum_target's pause_all and unpause_all ops
2362 into methods of process_target.
2363
2364 * target.h (struct process_stratum_target): Remove the target ops.
2365 (class process_target): Add the target ops.
2366 (pause_all): Update the macro and rename to...
2367 (target_pause_all): ... this.
2368 (unpause_all): Update the macro and rename to...
2369 (target_unpause_all): ... this.
2370 * target.cc (process_target::pause_all): Define.
2371 (process_target::unpause_all): Define.
2372
2373 Update the derived classes and callers below.
2374
2375 * server.cc (handle_status): Update.
2376 * tracepoint.cc (clear_installed_tracepoints): Update.
2377 (cmd_qtdp): Update.
2378 (cmd_qtstart): Update.
2379 (stop_tracing): Update.
2380 (cmd_qtstatus): Update.
2381 (upload_fast_traceframes): Update.
2382 (run_inferior_command): Update.
2383 * linux-low.cc (linux_target_ops): Update.
2384 (linux_pause_all): Turn into ...
2385 (linux_process_target::pause_all): ... this.
2386 (linux_unpause_all): Turn into ...
2387 (linux_process_target::unpause_all): ... this.
2388 (linux_process_target::prepare_to_access_memory): Update.
2389 (linux_process_target::done_accessing_memory): Update.
2390 * linux-low.h (class linux_process_target): Update.
2391 * lynx-low.cc (lynx_target_ops): Update.
2392 * nto-low.cc (nto_target_ops): Update.
2393 * win32-low.cc (win32_target_ops): Update.
2394
4e2e869c
TBA
23952020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2396
2397 Turn process_stratum_target's get_tib_address op into a method of
2398 process_target.
2399
2400 * target.h (struct process_stratum_target): Remove the target op.
2401 (class process_target): Add the target op. Also add
2402 'supports_get_tib_address'.
2403 * target.cc (process_target::get_tib_address): Define.
2404 (process_target::supports_get_tib_address): Define.
2405
2406 Update the derived classes and callers below.
2407
2408 * server.cc (handle_query): Update.
2409 * linux-low.cc (win32_target_ops): Update.
2410 * lynx-low.cc (lynx_target_ops): Update.
2411 * nto-low.cc (nto_target_ops): Update.
2412 * win32-low.cc (win32_target_ops): Update.
2413 (win32_process_target::supports_get_tib_address): Define.
2414 (win32_get_tib_address): Turn into ...
2415 (win32_process_target::get_tib_address): ... this.
2416 * win32-low.h (class win32_process_target): Update.
2417
68119632
TBA
24182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2419
2420 Turn process_stratum_target's thread_stopped op into a method of
2421 process_target.
2422
2423 * target.h (struct process_stratum_target): Remove the target op.
2424 (class process_target): Add the target op. Also add
2425 'supports_thread_stopped'.
2426 (target_thread_stopped): Update the macro.
2427 * target.cc (process_target::thread_stopped): Define.
2428 (process_target::supports_thread_stopped): Define.
2429 (prepare_to_access_memory): Update.
2430
2431 Update the derived classes and callers below.
2432
2433 * server.cc (queue_stop_reply_callback): Update.
2434 * linux-low.cc (linux_target_ops): Update.
2435 (linux_process_target::supports_thread_stopped): Define.
2436 (linux_thread_stopped): Turn into ...
2437 (linux_process_target::thread_stopped): ... this.
2438 * linux-low.h (class linux_process_target): Update.
2439 * lynx-low.cc (lynx_target_ops): Update.
2440 * nto-low.cc (nto_target_ops): Update.
2441 * win32-low.cc (win32_target_ops): Update.
2442
770d8f6a
TBA
24432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2444
2445 Turn process_stratum_target's read_pc and write_pc ops into
2446 methods of process_target.
2447
2448 * target.h (struct process_stratum_target): Remove the target ops.
2449 (class process_target): Add the target ops.
2450 * target.cc (process_target::read_pc): Define.
2451 (process_target::write_pc): Define.
2452
2453 Update the derived classes and callers below.
2454
2455 * regcache.cc (regcache_read_pc): Update.
2456 (regcache_write_pc): Update.
2457 * linux-low.cc (linux_target_ops): Update.
2458 (linux_read_pc): Turn into ...
2459 (linux_process_target::read_pc): ... this.
2460 (linux_write_pc): Turn into ...
2461 (linux_process_target::write_pc): ... this.
2462 * linux-low.h (class linux_process_target): Update.
2463 * lynx-low.cc (lynx_target_ops): Update.
2464 * nto-low.cc (nto_target_ops): Update.
2465 * win32-low.cc (win32_target_ops): Update.
2466
290732bf
TBA
24672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2468
2469 Turn process_stratum_target's supports_tracepoints op into a
2470 method of process_target.
2471
2472 * target.h (struct process_stratum_target): Remove the target op.
2473 (class process_target): Add the target op.
2474 (target_supports_tracepoints): Update the macro.
2475 * target.cc (process_target::supports_tracepoints): Define.
2476
2477 Update the derived classes and callers below.
2478
2479 * linux-low.cc (linux_target_ops): Update.
2480 (linux_supports_tracepoints): Turn into ...
2481 (linux_process_target::supports_tracepoints): ... this.
2482 * linux-low.h (class linux_process_target): Update.
2483 * lynx-low.cc (lynx_target_ops): Update.
2484 * nto-low.cc (nto_target_ops): Update.
2485 * win32-low.cc (win32_target_ops): Update.
2486
0df28b1b
TBA
24872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2488
2489 Turn process_stratum_target's process_qsupported op into a method
2490 of process_target.
2491
2492 * target.h (struct process_stratum_target): Remove the target op.
2493 (class process_target): Add the target op.
2494 (target_process_qsupported): Update the macro.
2495 * target.cc (process_target::process_qsupported): Define.
2496
2497 Update the derived classes and callers below.
2498
2499 * linux-low.cc (linux_target_ops): Update.
2500 (linux_process_qsupported): Turn into ...
2501 (linux_process_target::process_qsupported): ... this.
2502 * linux-low.h (class linux_process_target): Update.
2503 * lynx-low.cc (lynx_target_ops): Update.
2504 * nto-low.cc (nto_target_ops): Update.
2505 * win32-low.cc (win32_target_ops): Update.
2506
9da41fda
TBA
25072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2508
2509 Turn process_stratum_target's read_loadmap op into a method of
2510 process_target.
2511
2512 * target.h (struct process_stratum_target): Remove the target op.
2513 (class process_target): Add the target op. Also add
2514 'supports_read_loadmap'.
2515 * target.cc (process_target::read_loadmap): Define.
2516 (process_target::supports_read_loadmap): Define.
2517
2518 Update the derived classes and callers below.
2519
2520 * server.cc (handle_qxfer_fdpic): Update.
2521 (handle_query): Update.
2522 * linux-low.cc (linux_target_ops): Update.
2523 (linux_process_target::supports_read_loadmap): Define.
2524 (linux_read_loadmap): Turn into ...
2525 (linux_process_target::read_loadmap): ... this.
2526 * linux-low.h (class linux_process_target): Update.
2527 * lynx-low.cc (lynx_target_ops): Update.
2528 * nto-low.cc (nto_target_ops): Update.
2529 * win32-low.cc (win32_target_ops): Update.
2530
95a45fc1
TBA
25312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2532
2533 Turn process_stratum_target's core_of_thread op into a method of
2534 process_target.
2535
2536 * target.h (struct process_stratum_target): Remove the target op.
2537 (class process_target): Add the target op.
2538 (target_core_of_thread): Update the macro.
2539 * target.cc (process_target::core_of_thread): Define.
2540
2541 Update the derived classes and callers below.
2542
2543 * linux-low.cc (linux_target_ops): Update.
2544 (linux_process_target::core_of_thread): Define.
2545 * linux-low.h (class linux_process_target): Update.
2546 * lynx-low.cc (lynx_target_ops): Update.
2547 * nto-low.cc (nto_target_ops): Update.
2548 * win32-low.cc (win32_target_ops): Update.
2549
55cf3021
TBA
25502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2551
2552 Turn process_stratum_target's handle_monitor_command op into a
2553 method of process_target.
2554
2555 * target.h (struct process_stratum_target): Remove the target op.
2556 (class process_target): Add the target op.
2557 (target_handle_monitor_command): Update the macro.
2558 * target.cc (process_target::handle_monitor_command): Define.
2559
2560 Update the derived classes and callers below.
2561
2562 * server.cc (handle_query): Update.
2563 * linux-low.cc (linux_target_ops): Update.
2564 (linux_process_target::handle_monitor_command): Define.
2565 * linux-low.h (class linux_process_target): Update.
2566 * lynx-low.cc (lynx_target_ops): Update.
2567 * nto-low.cc (nto_target_ops): Update.
2568 * win32-low.cc (win32_target_ops): Update.
2569
fb00dfce
TBA
25702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2571
2572 Turn process_stratum_target's handle_new_gdb_connection op into a
2573 method of process_target.
2574
2575 * target.h (struct process_stratum_target): Remove the target op.
2576 (class process_target): Add the target op.
2577 (target_handle_new_gdb_connection): Update the macro.
2578 * target.cc (process_target::handle_new_gdb_connection): Define.
2579
2580 Update the derived classes and callers below.
2581
2582 * linux-low.cc (linux_target_ops): Update.
2583 (linux_handle_new_gdb_connection): Turn into ...
2584 (linux_process_target::handle_new_gdb_connection): ... this.
2585 * linux-low.h (class linux_process_target): Update.
2586 * lynx-low.cc (lynx_target_ops): Update.
2587 * nto-low.cc (nto_target_ops): Update.
2588 * win32-low.cc (win32_target_ops): Update.
2589
9690a72a
TBA
25902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2591
2592 Turn process_stratum_target's supports_fork_events,
2593 supports_vfork_events, and supports_exec_events ops into methods
2594 of process_target.
2595
2596 * target.h (struct process_stratum_target): Remove the target ops.
2597 (class process_target): Add the target ops.
2598 (target_supports_fork_events): Update the macro.
2599 (target_supports_vfork_events): Update the macro.
2600 (target_supports_exec_events): Update the macro.
2601 * target.cc (process_target::supports_fork_events): Define.
2602 (process_target::supports_vfork_events): Define.
2603 (process_target::supports_exec_events): Define.
2604
2605 Update the derived classes and callers below.
2606
2607 * linux-low.cc (linux_target_ops): Update.
2608 (linux_supports_fork_events): Turn into ...
2609 (linux_process_target::supports_fork_events): ... this.
2610 (linux_supports_vfork_events): Turn into ...
2611 (linux_process_target::supports_vfork_events): ... this.
2612 (linux_supports_exec_events): Turn into ...
2613 (linux_process_target::supports_exec_events): ... this.
2614 * linux-low.h (class linux_process_target): Update.
2615 * lynx-low.cc (lynx_target_ops): Update.
2616 * nto-low.cc (nto_target_ops): Update.
2617 * win32-low.cc (win32_target_ops): Update.
2618
652aef77
TBA
26192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2620
2621 Turn process_stratum_target's supports_multi_process op into a
2622 method of process_target.
2623
2624 * target.h (struct process_stratum_target): Remove the target op.
2625 (class process_target): Add the target op.
2626 * target.cc (process_target::supports_multi_process): Define.
2627 (target_supports_multi_process): Update.
2628
2629 Update the derived classes and callers below.
2630
2631 * linux-low.cc (linux_target_ops): Update.
2632 (linux_supports_multi_process): Turn into ...
2633 (linux_process_target::supports_multi_process): ... this.
2634 * linux-low.h (class linux_process_target): Update.
2635 * lynx-low.cc (lynx_target_ops): Update.
2636 * nto-low.cc (nto_target_ops): Update.
2637 * win32-low.cc (win32_target_ops): Update.
2638
0dc587d4
TBA
26392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2640
2641 Turn process_stratum_target's supports_non_stop, async, and
2642 start_non_stop ops into methods of process_target.
2643
2644 * target.h (struct process_stratum_target): Remove the target ops.
2645 (class process_target): Add the target ops.
2646 (target_supports_non_stop): Update the macro.
2647 (target_async): Update the macro.
2648 (start_non_stop): Remove declaration.
2649 * target.cc (process_target::supports_non_stop): Define.
2650 (process_target::async): Define.
2651 (process_target::start_non_stop): Define.
2652 (start_non_stop): Remove.
2653
2654 Update the derived classes and callers below.
2655
2656 * server.cc (handle_qxfer_siginfo): Update.
2657 (handle_query): Update.
2658 * linux-low.cc (linux_target_ops): Update.
2659 (linux_supports_non_stop): Turn into ...
2660 (linux_process_target::supports_non_stop): ... this.
2661 (linux_async): Turn into ...
2662 (linux_process_target::async): ... this.
2663 (linux_start_non_stop): Turn into ...
2664 (linux_process_target::start_non_stop): ... this.
2665 * linux-low.h (class linux_process_target): Update.
2666 * lynx-low.cc (lynx_target_ops): Update.
2667 * nto-low.cc (nto_target_ops): Update.
2668 (nto_supports_non_stop): Remove; rely on the default behavior
2669 instead.
2670 * win32-low.cc (win32_target_ops): Update.
2671
d7abedf7
TBA
26722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2673
2674 Turn process_stratum_target's qxfer_siginfo op into a method of
2675 process_target.
2676
2677 * target.h (struct process_stratum_target): Remove the target op.
2678 (class process_target): Add the target op. Also add
2679 'supports_qxfer_siginfo'.
2680 * target.cc (process_target::qxfer_siginfo): Define.
2681 (process_target::supports_qxfer_siginfo): Define.
2682
2683 Update the derived classes and callers below.
2684
2685 * server.cc (handle_qxfer_siginfo): Update.
2686 (handle_query): Update.
2687 * linux-low.cc (linux_target_ops): Update.
2688 (linux_process_target::supports_qxfer_siginfo): Define.
2689 (linux_xfer_siginfo): Turn into ...
2690 (linux_process_target::qxfer_siginfo): ... this.
2691 * linux-low.h (class linux_process_target): Update.
2692 * lynx-low.cc (lynx_target_ops): Update.
2693 * nto-low.cc (nto_target_ops): Update.
2694 * win32-low.cc (win32_target_ops): Update.
2695
2d0795ee
TBA
26962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2697
2698 Turn process_stratum_target's qxfer_osdata op into a method of
2699 process_target.
2700
2701 * target.h (struct process_stratum_target): Remove the target op.
2702 (class process_target): Add the target op. Also add
2703 'supports_qxfer_osdata'.
2704 * target.cc (process_target::qxfer_osdata): Define.
2705 (process_target::supports_qxfer_osdata): Define.
2706
2707 Update the derived classes and callers below.
2708
2709 * server.cc (handle_qxfer_osdata): Update.
2710 (handle_query): Update.
2711 * linux-low.cc (linux_target_ops): Update.
2712 (linux_process_target::supports_qxfer_osdata): Define.
2713 (linux_qxfer_osdata): Turn into ...
2714 (linux_process_target::qxfer_osdata): ... this.
2715 * linux-low.h (class linux_process_target): Update.
2716 * lynx-low.cc (lynx_target_ops): Update.
2717 * nto-low.cc (nto_target_ops): Update.
2718 * win32-low.cc (win32_target_ops): Update.
2719
ea06bbaa
TBA
27202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2721
2722 Turn process_stratum_target's hostio_last_error op into a
2723 method of process_target.
2724
2725 * target.h (struct process_stratum_target): Remove the target op.
2726 (class process_target): Add the target op.
2727 * target.cc: Add "hostio.h" to includes.
2728 (process_target::hostio_last_error): Define.
2729
2730 Update the derived classes and callers below.
2731
2732 * hostio.cc (hostio_error): Update.
2733 * linux-low.cc: Remove "hostio.h" from includes.
2734 (linux_target_ops): Update.
2735 * lynx-low.cc (lynx_target_ops): Update.
2736 * nto-low.cc (nto_target_ops): Update.
2737 * win32-low.h (class win32_process_target): Update.
2738 * win32-low.cc (win32_target_ops): Update.
2739 (wince_hostio_last_error): Turn into ...
2740 (win32_process_target::hostio_last_error): ... this.
2741
6e3fd7e9
TBA
27422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2743
2744 Turn process_stratum_target's get_tls_address op into a method of
2745 process_target.
2746
2747 * target.h (struct process_stratum_target): Remove the target op.
2748 (class process_target): Add the target op. Also add
2749 'supports_get_tls_address'.
2750 * target.cc (process_target::get_tls_address): Define.
2751 (process_target::supports_get_tls_address): Define.
2752
2753 Update the derived classes and callers below.
2754
2755 * server.cc (handle_query): Update.
2756 * linux-low.cc (linux_target_ops): Update.
2757 (linux_process_target::supports_get_tls_address): Define.
2758 (linux_process_target::get_tls_address): Define.
2759 * linux-low.h (class linux_process_target): Update.
2760 * lynx-low.cc (lynx_target_ops): Update.
2761 * nto-low.cc (nto_target_ops): Update.
2762 * win32-low.cc (win32_target_ops): Update.
2763
5203ae1e
TBA
27642020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2765
2766 Turn process_stratum_target's read_offsets op into a method of
2767 process_target.
2768
2769 * target.h (struct process_stratum_target): Remove the target op.
2770 (class process_target): Add the target op. Also add
2771 'supports_read_offsets'.
2772 * target.cc (process_target::read_offsets): Define.
2773 (process_target::supports_read_offsets): Define.
2774
2775 Update the derived classes and callers below.
2776
2777 * server.cc (handle_query): Update.
2778 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
2779 (linux_target_ops): Update.
2780 (linux_process_target::supports_read_offsets): Define.
2781 (linux_read_offsets): Turn into ...
2782 (linux_process_target::read_offsets): ... this.
2783 * linux-low.h (class linux_process_target): Update.
2784 * lynx-low.cc (lynx_target_ops): Update.
2785 * nto-low.cc (nto_target_ops): Update.
2786 * win32-low.cc (win32_target_ops): Update.
2787
6eeb5c55
TBA
27882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2789
2790 Turn process_stratum_target's stopped_by_watchpoint and
2791 stopped_data_address ops into methods of process_target.
2792
2793 * target.h (struct process_stratum_target): Remove the target ops.
2794 (class process_target): Add the target ops.
2795 * target.cc (process_target::stopped_by_watchpoint): Define.
2796 (process_target::stopped_data_address): Define.
2797
2798 Update the derived classes and callers below.
2799
2800 * remote-utils.cc (prepare_resume_reply): Update.
2801 * linux-low.cc (linux_target_ops): Update.
2802 (linux_stopped_by_watchpoint): Turn into ...
2803 (linux_process_target::stopped_by_watchpoint): ... this.
2804 (linux_stopped_data_address): Turn into ...
2805 (linux_process_target::stopped_data_address): ... this.
2806 * linux-low.h (class linux_process_target): Update.
2807 * lynx-low.cc (lynx_target_ops): Update.
2808 * nto-low.cc (nto_target_ops): Update.
2809 (nto_stopped_by_watchpoint): Turn into ...
2810 (nto_process_target::stopped_by_watchpoint): ... this.
2811 (nto_stopped_data_address): Turn into ...
2812 (nto_process_target::stopped_data_address): ... this.
2813 * nto-low.h (class nto_process_target): Update.
2814 * win32-low.cc (win32_target_ops): Update.
2815 (win32_stopped_by_watchpoint): Turn into ...
2816 (win32_process_target::stopped_by_watchpoint): ... this.
2817 (win32_stopped_data_address): Turn into ...
2818 (win32_process_target::stopped_data_address): ... this.
2819 * win32-low.h (class win32_process_target): Update.
2820
22aa6223
TBA
28212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2822
2823 Turn process_stratum_target's supports_hardware_single_step op into
2824 a method of process_target.
2825
2826 * target.h (struct process_stratum_target): Remove the target op.
2827 (class process_target): Add the target op.
2828 (target_supports_hardware_single_step): Update the macro.
2829 (target_can_do_hardware_single_step): Remove declaration.
2830 * target.cc (process_target::supports_hardware_single_step): Define.
2831 (target_can_do_hardware_single_step): Remove.
2832
2833 Update the derived classes and callers below.
2834
2835 * linux-low.h (class linux_process_target): Update.
2836 * linux-low.cc (linux_target_ops): Update.
2837 (linux_supports_hardware_single_step): Turn into ...
2838 (linux_process_target::supports_hardware_single_step): ... this.
2839 * lynx-low.h (class lynx_process_target): Update.
2840 * lynx-low.cc (lynx_target_ops): Update.
2841 (lynx_process_target::supports_hardware_single_step): Define.
2842 * nto-low.h (class nto_process_target): Update.
2843 * nto-low.cc (nto_target_ops): Update.
2844 (nto_process_target::supports_hardware_single_step): Define.
2845 * win32-low.h (class win32_process_target): Update.
2846 * win32-low.cc (win32_target_ops): Update.
2847 (win32_process_target::supports_hardware_single_step): Define.
2848
93fe88b2
TBA
28492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2850
2851 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
2852 ops into methods of process_target.
2853
2854 * target.h (struct process_stratum_target): Remove the target ops.
2855 (class process_target): Add the target ops.
2856 (target_stopped_by_hw_breakpoint): Update the macro.
2857 (target_supports_stopped_by_hw_breakpoint): Update the macro.
2858 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
2859 (process_target::supports_stopped_by_hw_breakpoint): Define.
2860
2861 Update the derived classes and callers below.
2862
2863 * linux-low.cc (linux_target_ops): Update.
2864 (linux_stopped_by_hw_breakpoint): Turn into ...
2865 (linux_process_target::stopped_by_hw_breakpoint): ... this.
2866 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
2867 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
2868 * linux-low.h (class linux_process_target): Update.
2869 * lynx-low.cc (lynx_target_ops): Update.
2870 * nto-low.cc (nto_target_ops): Update.
2871 * win32-low.cc (win32_target_ops): Update.
2872
84320c4e
TBA
28732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2874
2875 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
2876 ops into methods of process_target.
2877
2878 * target.h (struct process_stratum_target): Remove the target ops.
2879 (class process_target): Add the target ops.
2880 (target_stopped_by_sw_breakpoint): Update the macro.
2881 (target_supports_stopped_by_sw_breakpoint): Update the macro.
2882 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
2883 (process_target::supports_stopped_by_sw_breakpoint): Define.
2884
2885 Update the derived classes and callers below.
2886
2887 * linux-low.cc (linux_target_ops): Update.
2888 (linux_stopped_by_sw_breakpoint): Turn into ...
2889 (linux_process_target::stopped_by_sw_breakpoint): ... this.
2890 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
2891 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
2892 * linux-low.h (class linux_process_target): Update.
2893 * lynx-low.cc (lynx_target_ops): Update.
2894 * nto-low.cc (nto_target_ops): Update.
2895 * win32-low.cc (win32_target_ops): Update.
2896
7e0bde70
TBA
28972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2898
2899 Turn process_stratum_target's insert_point and remove_point ops
2900 into methods of process_target.
2901
2902 * target.h (struct process_stratum_target): Remove the target ops.
2903 (class process_target): Add the target ops.
2904 * target.cc (process_target::insert_point): Define.
2905 (process_target::remove_point): Define.
2906
2907 Update the derived classes and callers below.
2908
2909 * mem-break.cc (set_raw_breakpoint_at): Update.
2910 (delete_raw_breakpoint): Update.
2911 (uninsert_raw_breakpoint): Update.
2912 (reinsert_raw_breakpoint): Update.
2913 * linux-low.cc (linux_target_ops): Update.
2914 (linux_insert_point): Turn into ...
2915 (linux_process_target::insert_point): ... this.
2916 (linux_remove_point): Turn into ...
2917 (linux_process_target::remove_point): ... this.
2918 * linux-low.h (class linux_process_target): Update.
2919 * lynx-low.cc (lynx_target_ops): Update.
2920 * nto-low.cc (nto_target_ops): Update.
2921 (nto_insert_point): Turn into ...
2922 (nto_process_target::insert_point): ... this.
2923 (nto_remove_point): Turn into ...
2924 (nto_process_target::remove_point): ... this.
2925 * nto-low.h (class nto_process_target): Update.
2926 * win32-low.cc (win32_target_ops): Update.
2927 (win32_insert_point): Turn into ...
2928 (win32_process_target::insert_point): ... this.
2929 (win32_remove_point): Turn into ...
2930 (win32_process_target::remove_point): ... this.
2931 * win32-low.h (class win32_process_target): Update.
2932
a2b2297a
TBA
29332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2934
2935 Turn process_stratum_target's supports_z_point_type op into a
2936 method of process_target.
2937
2938 * target.h (struct process_stratum_target): Remove the target op.
2939 (class process_target): Add the target op.
2940 * target.cc (process_target::supports_z_point_type): Define.
2941
2942 Update the derived classes and callers below.
2943
2944 * mem-break.cc (z_type_supported): Update.
2945 * linux-low.cc (linux_target_ops): Update.
2946 (linux_supports_z_point_type): Turn into ...
2947 (linux_process_target::supports_z_point_type): ... this.
2948 * linux-low.h (class linux_process_target): Update.
2949 * lynx-low.cc (lynx_target_ops): Update.
2950 * nto-low.cc (nto_target_ops): Update.
2951 (nto_supports_z_point_type): Turn into ...
2952 (nto_process_target::supports_z_point_type): ... this.
2953 * nto-low.h (class nto_process_target): Update.
2954 * win32-low.cc (win32_target_ops): Update.
2955 (win32_supports_z_point_type): Turn into ...
2956 (win32_process_target::supports_z_point_type): ... this.
2957 * win32-low.h (class win32_process_target): Update.
2958
eac215cc
TBA
29592020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2960
2961 Turn process_stratum_target's read_auxv op into a method of
2962 process_target.
2963
2964 * target.h (class process_stratum_target): Remove the target op.
2965 (struct process_target): Add the target op. Also add
2966 'supports_read_auxv'.
2967 * target.cc (process_target::read_auxv): Define.
2968 (process_target::supports_read_auxv): Define.
2969
2970 Update the derived classes and callers below.
2971
2972 * server.cc (handle_qxfer_auxv): Update.
2973 (handle_query): Update.
2974 * linux-low.cc (linux_target_ops): Update.
2975 (linux_process_target::supports_read_auxv): Define.
2976 (linux_read_auxv): Turn into ...
2977 (linux_process_target::read_auxv): ... this.
2978 * linux-low.h (class linux_process_target): Update.
2979 * lynx-low.cc (lynx_target_ops): Update.
2980 * nto-low.cc (nto_target_ops): Update.
2981 (nto_process_target::supports_read_auxv): Define.
2982 (nto_read_auxv): Turn into ...
2983 (nto_process_target::read_auxv): ... this.
2984 * nto-low.h (class nto_process_target): Update.
2985 * win32-low.cc (win32_target_ops): Update.
2986
eb497a2a
TBA
29872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2988
2989 Turn process_stratum_target's request_interrupt op into a method of
2990 process_target.
2991
2992 * target.h (struct process_stratum_target): Remove the target op.
2993 (class process_target): Add the target op.
2994
2995 Update the derived classes and callers below.
2996
2997 * remote-utils.cc (putpkt_binary_1): Update.
2998 (input_interrupt): Update.
2999 (getpkt): Update.
3000 * server.cc (handle_v_requests): Update.
3001 * linux-low.cc (linux_target_ops): Update.
3002 (linux_request_interrupt): Turn into ...
3003 (linux_process_target::request_interrupt): ... this.
3004 * linux-low.h (class linux_process_target): Update.
3005 * lynx-low.cc (lynx_target_ops): Update.
3006 (lynx_request_interrupt): Turn into ...
3007 (lynx_process_target::request_interrupt): ... this.
3008 * lynx-low.h (class lynx_process_target): Update.
3009 * nto-low.cc (nto_target_ops): Update.
3010 (nto_request_interrupt): Turn into ...
3011 (nto_process_target::request_interrupt): ... this.
3012 * nto-low.h (class nto_process_target): Update.
3013 * win32-low.cc (win32_target_ops): Update.
3014 (win32_request_interrupt): Turn into ...
3015 (win32_process_target::request_interrupt): ... this.
3016 * win32-low.h (class win32_process_target): Update.
3017
2a31c7aa
TBA
30182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3019
3020 Turn process_stratum_target's look_up_symbols op into a method of
3021 process_target.
3022
3023 * target.h (struct process_stratum_target): Remove the target op.
3024 (class process_target): Add the target op.
3025 * target.cc (process_target::look_up_symbols): Define.
3026
3027 Update the derived classes and callers below.
3028
3029 * server.cc (handle_query): Update.
3030 * linux-low.cc (linux_target_ops): Update.
3031 (linux_look_up_symbols): Turn into ...
3032 (linux_process_target::look_up_symbols): ... this.
3033 * linux-low.h (class linux_process_target): Update.
3034 * lynx-low.cc (lynx_target_ops): Update.
3035 * nto-low.cc (nto_target_ops): Update.
3036 * win32-low.cc (win32_target_ops): Update.
3037
e2558df3
TBA
30382020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3039
3040 Turn process_stratum_target's read_memory and write_memory
3041 ops into methods of process_target.
3042
3043 * target.h (struct process_stratum_target): Remove the target ops.
3044 (class process_target): Add the target ops.
3045
3046 Update the derived classes and callers below.
3047
3048 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3049 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3050 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3051 (arm_get_syscall_trapinfo): Update.
3052 * linux-cris-low.cc (cris_breakpoint_at): Update.
3053 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3054 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3055 * linux-mips-low.cc (mips_breakpoint_at): Update.
3056 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3057 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3058 * linux-sh-low.cc (sh_breakpoint_at): Update.
3059 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3060 (sparc_store_gregset_from_stack): Update.
3061 (sparc_breakpoint_at): Update.
3062 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3063 * linux-tile-low.cc (tile_breakpoint_at): Update.
3064 * linux-x86-low.cc (x86_breakpoint_at): Update.
3065 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3066 * mem-brea.cc (insert_memory_breakpoint): Update.
3067 (validate_inserted_breakpoint): Update.
3068 * target.cc (read_inferior_memory): Update.
3069 (target_write_memory): Update.
3070 * linux-low.cc (linux_target_ops): Update.
3071 (linux_read_memory): Make a wrapper around the read_memory target
3072 op call.
3073 (linux_process_target::read_memory): Rename from linux_read_memory.
3074 (linux_write_memory): Turn into ...
3075 (linux_process_target::write_memory): ... this.
3076 * linux-low.h (class linux_process_target): Update.
3077 * lynx-low.cc (lynx_target_ops): Update.
3078 (lynx_read_memory): Turn into ...
3079 (lynx_process_target::read_memory): ... this.
3080 (lynx_write_memory): Turn into ...
3081 (lynx_process_target::write_memory): ... this.
3082 * lynx-low.h (class lynx_process_target): Update.
3083 * nto-low.cc (nto_target_ops): Update.
3084 (nto_read_memory): Turn into ...
3085 (nto_process_target::read_memory): ... this.
3086 (nto_write_memory): Turn into ...
3087 (nto_process_target::write_memory): ... this.
3088 * nto-low.h (class nto_process_target): Update.
3089 * win32-low.cc (win32_target_ops): Update.
3090 (win32_read_inferior_memory): Turn into ...
3091 (win32_process_target::read_memory): ... this.
3092 (win32_write_inferior_memory): Turn into ...
3093 (win32_process_target::write_memory): ... this.
3094 * win32-low.h (class win32_process_target): Update.
3095
79b44087
TBA
30962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3097
3098 Turn process_stratum_target's prepare_to_access_memory and
3099 done_accessing_memory ops into methods of process_target.
3100
3101 * target.h (struct process_stratum_target): Remove the target ops.
3102 (class process_target): Add the target ops.
3103 * target.cc (process_target::prepare_to_access_memory): Define.
3104 (process_target::done_accessing_memory): Define.
3105 (prepare_to_access_memory): Update.
3106 (done_accessing_memory): Update.
3107
3108 Update the derived classes and callers below.
3109
3110 * linux-low.cc (linux_target_ops): Update.
3111 (linux_prepare_to_access_memory): Turn into ...
3112 (linux_process_target::prepare_to_access_memory): ... this.
3113 (linux_done_accessing_memory): Turn into ...
3114 (linux_process_target::done_accessing_memory): ... this.
3115 * linux-low.h (class linux_process_target): Update.
3116 * lynx-low.cc (lynx_target_ops): Update.
3117 * nto-low.cc (nto_target_ops): Update.
3118 * win32-low.cc (win32_target_ops): Update.
3119
a5a4d4cd
TBA
31202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3121
3122 Turn process_stratum_target's fetch_registers and store_registers
3123 ops into methods of process_target.
3124
3125 * target.h (struct process_stratum_target): Remove the target ops.
3126 (class process_target): Add the target ops.
3127 (fetch_inferior_registers): Update the macro.
3128 (store_inferior_registers): Update the macro.
3129
3130 Update the derived classes and callers below.
3131
3132 * linux-low.cc (linux_target_ops): Update.
3133 (linux_fetch_registers): Turn into ...
3134 (linux_process_target::fetch_registers): ... this.
3135 (linux_store_registers): Turn into ...
3136 (linux_process_target::store_registers): ... this.
3137 * linux-low.h (class linux_process_target): Update.
3138 * lynx-low.cc (lynx_target_ops): Update.
3139 (lynx_fetch_registers): Turn into ...
3140 (lynx_process_target::fetch_registers): ... this.
3141 (lynx_store_registers): Turn into ...
3142 (lynx_process_target::store_registers): ... this.
3143 * lynx-low.h (class lynx_process_target): Update.
3144 * nto-low.cc (nto_target_ops): Update.
3145 (nto_fetch_registers): Turn into ...
3146 (nto_process_target::fetch_registers): ... this.
3147 (nto_store_registers): Turn into ...
3148 (nto_process_target::store_registers): ... this.
3149 * nto-low.h (class nto_process_target): Update.
3150 * win32-low.cc (win32_target_ops): Update.
3151 (win32_fetch_inferior_registers): Turn into ...
3152 (win32_process_target::fetch_registers): ... this.
3153 (win32_store_inferior_registers): Turn into ...
3154 (win32_process_target::store_registers): ... this.
3155 * win32-low.h (class win32_process_target): Update.
3156
6532e7e3
TBA
31572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3158
3159 Turn process_stratum_target's wait op into a method of
3160 process_target.
3161
3162 * target.h (struct process_stratum_target): Remove the target op.
3163 (class process_target): Add the target op.
3164
3165 Update the derived classes and callers below.
3166
3167 * target.cc (target_wait): Update.
3168 * linux-low.cc (linux_target_ops): Update.
3169 (linux_wait): Turn into ...
3170 (linux_process_target::wait): ... this.
3171 * linux-low.h (class linux_process_target): Update.
3172 * lynx-low.cc (lynx_target_ops): Update.
3173 (lynx_wait): Turn into ...
3174 (lynx_process_target::wait): ... this.
3175 * lynx-low.h (class lynx_process_target): Update.
3176 * nto-low.cc (nto_target_ops): Update.
3177 (nto_wait): Turn into ...
3178 (nto_process_target::wait): ... this.
3179 * nto-low.h (class nto_process_target): Update.
3180 * win32-low.cc (win32_target_ops): Update.
3181 (win32_wait): Turn into ...
3182 (win32_process_target::wait): ... this.
3183 (do_initial_child_stuff): Update.
3184 * win32-low.h (class win32_process_target): Update.
3185
0e4d7e35
TBA
31862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3187
3188 Turn process_stratum_target's resume op into a method of
3189 process_target.
3190
3191 * target.h (struct process_stratum_target): Remove the target op.
3192 (class process_target): Add the target op.
3193
3194 Update the derived classes and callers below.
3195
3196 * server.cc (resume): Update.
3197 * target.cc (target_stop_and_wait): Update.
3198 (target_continue_no_signal): Update.
3199 (target_continue): Update.
3200 * linux-low.cc (linux_target_ops): Update.
3201 (linux_resume): Turn into ...
3202 (linux_process_target::resume): ... this.
3203 * linux-low.h (class linux_process_target): Update.
3204 * lynx-low.cc (lynx_target_ops): Update.
3205 (lynx_resume): Turn into ...
3206 (lynx_process_target::resume): ... this.
3207 * lynx-low.h (class lynx_process_target): Update.
3208 * nto-low.cc (nto_target_ops): Update.
3209 (nto_resume): Turn into ...
3210 (nto_process_target::resume): ... this.
3211 * nto-low.h (class nto_process_target): Update.
3212 * win32-low.cc (win32_target_ops): Update.
3213 (win32_resume): Turn into ...
3214 (win32_process_target::resume): ... this.
3215 (win32_process_target::detach): Update.
3216 (do_initial_child_stuff): Update.
3217 * win32-low.h (class win32_process_target): Update.
3218
13d3d99b
TBA
32192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3220
3221 Turn process_stratum_target's thread_alive op into a method of
3222 process_target.
3223
3224 * target.h (struct process_stratum_target): Remove the target op.
3225 (class process_target): Add the target op.
3226 (mythread_alive): Update the macro.
3227
3228 Update the derived classes and callers below.
3229
3230 * linux-low.cc (linux_target_ops): Update.
3231 (linux_thread_alive): Turn into ...
3232 (linux_process_target::thread_alive): ... this.
3233 (wait_for_sigstop): Update.
3234 * linux-low.h (class linux_process_target): Update.
3235 * lynx-low.cc (lynx_target_ops): Update.
3236 (lynx_thread_alive): Turn into ...
3237 (lynx_process_target::thread_alive): ... this.
3238 * lynx-low.h (class lynx_process_target): Update.
3239 * nto-low.cc (nto_target_ops): Update.
3240 (nto_thread_alive): Turn into ...
3241 (nto_process_target::thread_alive): ... this.
3242 * nto-low.h (class nto_process_target): Update.
3243 * win32-low.cc (win32_target_ops): Update.
3244 (win32_thread_alive): Turn into ...
3245 (win32_process_target::thread_alive): ... this.
3246 * win32-low.h (class win32_process_target): Update.
3247
95a49a39
TBA
32482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3249
3250 Turn process_stratum_target's join op into a method of
3251 process_target.
3252
3253 * target.h (struct process_stratum_target): Remove the target op.
3254 (class process_target): Add the target op.
3255 (join_inferior): Update the macro.
3256
3257 Update the derived classes and callers below.
3258
3259 * linux-low.cc (linux_target_ops): Update.
3260 (linux_join): Turn into ...
3261 (linux_process_target::join): ... this.
3262 * linux-low.h (class linux_process_target): Update.
3263 * lynx-low.cc (lynx_target_ops): Update.
3264 (lynx_join): Turn into ...
3265 (lynx_process_target::join): ... this.
3266 * lynx-low.h (class lynx_process_target): Update.
3267 * nto-low.cc (nto_target_ops): Update.
3268 (nto_process_target::join): Define.
3269 * nto-low.h (class nto_process_target): Update.
3270 * win32-low.cc (win32_target_ops): Update.
3271 (win32_join): Turn into ...
3272 (win32_process_target::join): ... this.
3273 * win32-low.h (class win32_process_target): Update.
3274
8adb37b9
TBA
32752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3276
3277 Turn process_stratum_target's mourn op into a method of
3278 process_target.
3279
3280 * target.h (struct process_stratum_target): Remove the target op.
3281 (class process_target): Add the target op.
3282
3283 Update the derived classes and callers below.
3284
3285 * target.cc (target_mourn_inferior): Update.
3286 * linux-low.cc (linux_target_ops): Update.
3287 (linux_mourn): Turn into ...
3288 (linux_process_target::mourn): ... this.
3289 (handle_extended_wait): Update.
3290 (linux_process_target::kill): Update.
3291 (linux_process_target::detach): Update.
3292 * linux-low.h (class linux_process_target): Update.
3293 * lynx-low.cc (lynx_target_ops): Update.
3294 (lynx_mourn): Turn into ...
3295 (lynx_process_target::mourn): ... this.
3296 * lynx-low.h (class lynx_process_target): Update.
3297 * nto-low.cc (nto_target_ops): Update.
3298 (nto_mourn): Turn into ...
3299 (nto_process_target::mourn): ... this.
3300 * nto-low.h (class nto_process_target): Update.
3301 * win32-low.cc (win32_target_ops): Update.
3302 (win32_mourn): Turn into ...
3303 (win32_process_target::mourn): ... this.
3304 * win32-low.h (class win32_process_target): Update.
3305
9061c9cf
TBA
33062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3307
3308 Turn process_stratum_target's detach op into a method of
3309 process_target.
3310
3311 * target.h (struct process_stratum_target): Remove the target op.
3312 (class process_target): Add the target op.
3313 (detach_inferior): Update the macro.
3314
3315 Update the derived classes and callers below.
3316
3317 * linux-low.cc (linux_target_ops): Update.
3318 (linux_detach): Turn into ...
3319 (linux_process_target::detach): ... this.
3320 * linux-low.h (class linux_process_target): Update.
3321 * lynx-low.cc (lynx_target_ops): Update.
3322 (lynx_detach): Turn into ...
3323 (lynx_process_target::detach): ... this.
3324 * lynx-low.h (class lynx_process_target): Update.
3325 * nto-low.cc (nto_target_ops): Update.
3326 (nto_detach): Turn into ...
3327 (nto_process_target::detach): ... this.
3328 * nto-low.h (class nto_process_target): Update.
3329 * win32-low.cc (win32_target_ops): Update.
3330 (win32_detach): Turn into ...
3331 (win32_process_target::detach): ... this.
3332 * win32-low.h (class win32_process_target): Update.
3333
c6885a57
TBA
33342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3335
3336 Turn process_stratum_target's kill op into a method of
3337 process_target.
3338
3339 * target.h (struct process_stratum_target): Remove the target op.
3340 (class process_target): Add the target op.
3341
3342 Update the derived classes and callers below.
3343
3344 * target.cc (kill_inferior): Update.
3345 * linux-low.cc (linux_target_ops): Update.
3346 (linux_kill): Turn into ...
3347 (linux_process_target::kill): ... this.
3348 * linux-low.h (class linux_process_target): Update.
3349 * lynx-low.cc (lynx_target_ops): Update.
3350 (lynx_kill): Turn into ...
3351 (lynx_process_target::kill): ... this.
3352 * lynx-low.h (class lynx_process_target): Update.
3353 * nto-low.cc (nto_target_ops): Update.
3354 (nto_kill): Turn into ...
3355 (nto_process_target::kill): ... this.
3356 * nto-low.h (class nto_process_target): Update.
3357 * win32-low.cc (win32_target_ops): Update.
3358 (win32_kill): Turn into ...
3359 (win32_process_target::kill): ... this.
3360 * win32-low.h (class win32_process_target): Update.
3361
ef03dad8
TBA
33622020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3363
3364 Turn process_stratum_target's attach op into a method of
3365 process_target.
3366
3367 * target.h (struct process_stratum_target): Remove the target op.
3368 (class process_target): Add the target op.
3369 (myattach): Update the macro.
3370
3371 Update the derived classes and callers below.
3372
3373 * linux-low.cc (linux_target_ops): Update.
3374 (linux_attach): Turn into ...
3375 (linux_process_target::attach): ... this.
3376 * linux-low.h (class linux_process_target): Update.
3377 * lynx-low.cc (lynx_target_ops): Update.
3378 (lynx_attach): Turn into ...
3379 (lynx_process_target::attach): ... this.
3380 * lynx-low.h (class lynx_process_target): Update.
3381 * nto-low.cc (nto_target_ops): Update.
3382 (nto_attach): Turn into ...
3383 (nto_process_target::attach): ... this.
3384 * nto-low.h (class nto_process_target): Update.
3385 * win32-low.cc (win32_target_ops): Update.
3386 (win32_attach): Turn into ...
3387 (win32_process_target::attach): ... this.
3388 * win32-low.h (class win32_process_target): Update.
3389
6dee9afb
TBA
33902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3391
3392 Turn process_stratum_target's post_create_inferior op into a method
3393 of process_target.
3394
3395 * target.h (struct process_stratum_target): Remove the target op.
3396 (class process_target): Add the target op.
3397 (target_post_create_inferior): Update the macro.
3398 * target.cc (process_target::post_create_inferior): Define.
3399
3400 Update the derived classes and callers below.
3401
3402 * linux-low.cc (linux_target_ops): Update.
3403 (linux_post_create_inferior): Turn into ...
3404 (linux_process_target::post_create_inferior): ... this.
3405 * linux-low.h (class linux_process_target): Update.
3406 * lynx-low.cc (lynx_target_ops): Update.
3407 * nto-low.cc (nto_target_ops): Update.
3408 * win32-low.cc (win32_target_ops): Update.
3409
15295543
TBA
34102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3411
3412 Turn process_stratum_target's create_inferior op into a method of
3413 process_target.
3414
3415 * target.h (struct process_stratum_target): Remove the target op.
3416 (class process_target): Add the target op.
3417 (create_inferior): Rename the macro to ...
3418 (target_create_inferior): ... this.
3419
3420 Update the derived classes and callers below.
3421
3422 * server.cc (handle_v_run): Update.
3423 (captured_main): Update.
3424 (process_serial_event): Update.
3425 * linux-low.cc (linux_target_ops): Update.
3426 (linux_create_inferior): Turn into ...
3427 (linux_process_target::create_inferior): ... this.
3428 * linux-low.h (class linux_process_target): Update.
3429 * lynx-low.cc (lynx_target_ops): Update.
3430 (lynx_create_inferior): Turn into ...
3431 (lynx_process_target::create_inferior): ... this.
3432 * lynx-low.h (class lynx_process_target): Update.
3433 * nto-low.cc (nto_target_ops): Update.
3434 (nto_create_inferior): Turn into ...
3435 (nto_process_target::create_inferior): ... this.
3436 * nto-low.h (class nto_process_target): Update.
3437 * win32-low.cc (win32_target_ops): Update.
3438 (win32_create_inferior): Turn into ...
3439 (win32_process_target::create_inferior): ... this.
3440 * win32-low.h (class win32_process_target): Update.
3441
5ef9273d
TBA
34422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3443
3444 * target.h (class process_target): New class definition.
3445 (struct process_stratum_target) <pt>: New field with type
3446 'process_target*'.
3447 * linux-low.h (class linux_process_target): Define as a derived
3448 class of 'process_target'.
3449 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3450 as the 'pt' field.
3451 * lynx-low.h (class lynx_process_target): Define as a derived
3452 class of 'process_target'.
3453 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3454 as the 'pt' field.
3455 * nto-low.h (class nto_process_target): Define as a derived
3456 class of 'process_target'.
3457 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3458 as the 'pt' field.
3459 * win32-low.h (class win32_process_target): Define as a derived
3460 class of 'process_target'.
3461 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3462 as the 'pt' field.
3463
9f1528a1
AB
34642020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3465
3466 * configure: Regenerate.
3467
bf84f706
MR
34682020-02-19 Maciej W. Rozycki <macro@wdc.com>
3469 Andrew Burgess <andrew.burgess@embecosm.com>
3470
3471 * linux-riscv-low.cc: New file.
3472 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3473 and nat/riscv-linux-tdesc.c.
3474 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3475 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3476 Define.
3477
1a627e7e
TT
34782020-02-14 Tom Tromey <tom@tromey.com>
3479
3480 * acinclude.m4: Don't include acx_configure_dir.m4.
3481 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3482 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3483 (all, install-only, uninstall, clean-info, clean)
3484 (maintainer-clean): Don't recurse.
3485 (subdir_do, all-lib): Remove.
3486 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3487 (GNULIB_H): Remove.
3488 (generated_files): Update.
3489 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3490 * configure: Rebuild.
3491 * configure.ac: Don't configure gnulib or libiberty.
3492 (GNULIB): Update.
3493
a9b34532
EZ
34942020-02-14 Eli Zaretskii <eliz@gnu.org>
3495
3496 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
3497 preparing the command line for CreateProcess.
3498 (win32_create_inferior): Reflect the program name in debugging
3499 output that shows the process and its command line.
3500
feacfcac
SM
35012020-02-13 Simon Marchi <simon.marchi@efficios.com>
3502
3503 * Makefile.in: Rename source files from .c to .cc.
3504 * %.c: Rename to %.cc.
3505 * configure.ac: Rename server.c to server.cc.
3506 * configure: Re-generate.
3507
06b3c5bd
SM
35082020-02-13 Simon Marchi <simon.marchi@efficios.com>
3509
3510 * Makefile.in: Rename gdbsupport source files from .c to .cc.
3511
052793ad
HD
35122020-02-12 Hannes Domani <ssbssa@yahoo.de>
3513
3514 * win32-low.c (win32_create_inferior): Set signal_pid.
3515
f20e3e82
MR
35162020-02-12 Maciej W. Rozycki <macro@wdc.com>
3517 Pedro Alves <palves@redhat.com>
3518
3519 Skip building gdbserver in a cross-configuration.
3520 * configure.srv: Set $gdbserver_host depending on whether $target
3521 is $host. Use $gdbserver_host instead of $host.
3522
8ddd8e0e
SM
35232020-02-11 Simon Marchi <simon.marchi@efficios.com>
3524
3525 * configure: Re-generate.
3526
898e7f60
SM
35272020-02-11 Simon Marchi <simon.marchi@efficios.com>
3528
3529 * configure: Re-generate.
3530
58df732b
SM
35312020-02-11 Simon Marchi <simon.marchi@efficios.com>
3532
3533 * acinclude.m4: Update warning.m4 path.
3534
7928d571
HD
35352020-02-09 Hannes Domani <ssbssa@yahoo.de>
3536
3537 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
3538 (handle_exception): Set siginfo_er.
3539 (win32_xfer_siginfo): New function.
3540
919adfe8
TT
35412020-02-07 Tom Tromey <tom@tromey.com>
3542 Pedro Alves <palves@redhat.com>
3543
3544 * README: Update build documentation.
3545 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
3546 host, not target.
3547 * configure.ac: Update paths.
3548 * configure: Rebuild.
3549 * acinclude.m4: Update paths.
3550 * Makefile.in: Update include paths.
3551 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
3552 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
3553 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
3554 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
3555 (%-generated.c): Update paths.
3556 * Move entire directory from ../gdb/gdbserver.
3557
287c844a
MR
35582020-01-29 Maciej W. Rozycki <macro@wdc.com>
3559
3560 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
3561
548a204f
PFC
35622020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3563
3564 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
3565 assignment instead of srv_linux_obj.
3566
a2236a08
HD
35672020-01-28 Hannes Domani <ssbssa@yahoo.de>
3568
3569 * server.c (handle_qxfer_libraries): Write segment-address with
3570 paddress.
3571
bdaed379
HD
35722020-01-24 Hannes Domani <ssbssa@yahoo.de>
3573
3574 * Makefile.in (install-strip): New target.
3575 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
3576 * aclocal.m4: Regenerate.
3577 * configure: Regenerate.
3578 * configure.ac: Add AM_PROG_INSTALL_STRIP.
3579
42cd72aa
MR
35802020-01-24 Maciej W. Rozycki <macro@wdc.com>
3581
3582 * Makefile.in (SFILES): Adjust paths to point to real files.
3583 (OBS): Move waitstatus.o to target/waitstatus.o.
3584 (TAGS): Transform paths appropriately.
3585 (%.o): Rename to...
3586 (nat/%.o): ... this pattern rule.
3587 (%.o): Rename to...
3588 (target/%.o): ... this pattern rule.
3589 * configure.srv: Adjust paths throughout to include nat/ prefix
3590 with the revant files.
3591 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
3592 * configure: Regenerate.
3593
42ba50ec
MR
35942020-01-24 Maciej W. Rozycki <macro@wdc.com>
3595
3596 * Makefile.in (TAGS): Remove config files from the recipe.
3597
05ea2a05
TT
35982020-01-14 Tom Tromey <tom@tromey.com>
3599
3600 * configure: Rebuild.
3601 * configure.ac: Remove any checks that were added to common.m4.
3602 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
3603 lib-link.m4.
3604
01027315
TT
36052020-01-14 Tom Tromey <tom@tromey.com>
3606
3607 * server.h: Include config.h.
3608 * gdbreplay.c: Include config.h.
3609 * configure: Rebuild.
3610 * configure.ac: Don't source common.host.
3611 * acinclude.m4: Update path.
3612 * Makefile.in (INCSUPPORT): New variable.
3613 (INCLUDE_CFLAGS): Add INCSUPPORT.
3614 (SFILES): Update paths.
3615 (version-generated.c): Update path to create-version.sh.
3616 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
3617
b2ceabe8
TT
36182020-01-14 Tom Tromey <tom@tromey.com>
3619
3620 * configure.ac (LIBS): Use WIN32APILIBS.
3621 (USE_WIN32API): Don't define.
3622 * configure: Rebuild.
3623
25c51f71
TT
36242020-01-14 Tom Tromey <tom@tromey.com>
3625
3626 * configure: Rebuild.
3627
c0bd321d
SM
36282020-01-13 Simon Marchi <simon.marchi@efficios.com>
3629
3630 * Makefile.in (%-generated.c): Remove rule for files from
3631 regformats/i386.
3632
bb564c58
SM
36332020-01-13 Simon Marchi <simon.marchi@efficios.com>
3634
3635 * configure: Re-generate.
3636
6e37c371
SM
36372020-01-13 Simon Marchi <simon.marchi@efficios.com>
3638
3639 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
3640 Define to static.
3641 * tracepoint.c (stop_tracing, flush_trace_buffer,
3642 about_to_request_buffer_space, get_trace_state_variable_value,
3643 set_trace_state_variable_value, gdb_collect): Add declaration.
3644
df4a0200
SM
36452020-01-13 Simon Marchi <simon.marchi@efficios.com>
3646
3647 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
3648 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
3649 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
3650 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
3651 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
3652 static.
3653
89e94ec9
SM
36542020-01-13 Simon Marchi <simon.marchi@efficios.com>
3655
3656 * inferiors.c: Include gdbsupport/common-inferior.h.
3657
2552728a
SM
36582020-01-13 Simon Marchi <simon.marchi@efficios.com>
3659
3660 * hostio-errno.c: Include hostio.h.
3661
4025fa09
SM
36622020-01-13 Simon Marchi <simon.marchi@efficios.com>
3663
3664 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
3665 prerequisite.
3666
c0b0a142
SM
36672020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3668
3669 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
3670 * linux-arm-tdesc.h: Include arch/arm.h.
3671
bb1183e2
SM
36722020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3673
3674 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
3675
f5df0b5f
SM
36762020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3677
3678 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
3679 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
3680
5b6d1e4f
PA
36812020-01-10 Pedro Alves <palves@redhat.com>
3682
3683 * fork-child.c (post_fork_inferior): Pass target down to
3684 startup_inferior.
3685 * inferiors.c (switch_to_thread): Add process_stratum_target
3686 parameter.
3687 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
3688 * nto-low.c (nto_target_ops): Now a process_stratum_target.
3689 * linux-low.c (linux_target_ops): Now a process_stratum_target.
3690 * remote-utils.c (prepare_resume_reply): Pass the target to
3691 switch_to_thread.
3692 * target.c (the_target): Now a process_stratum_target.
3693 (done_accessing_memory): Pass the target to switch_to_thread.
3694 (set_target_ops): Ajust to use process_stratum_target.
3695 * target.h (struct target_ops): Rename to ...
3696 (struct process_stratum_target): ... this.
3697 (the_target, set_target_ops): Adjust.
3698 (prepare_to_access_memory): Adjust comment.
3699 * win32-low.c (child_xfer_memory): Adjust to use
3700 process_stratum_target.
3701 (win32_target_ops): Now a process_stratum_target.
3702
559e7e50
EZ
37032020-01-06 Eli Zaretskii <eliz@gnu.org>
3704 Pedro Alves <palves@redhat.com>
3705
3706 * win32-low.c (get_child_debug_event): Extract the fatal exception
3707 from the exit status and convert to the equivalent Posix signal
3708 number.
3709 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
3710 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
3711
48189bec
HD
37122020-01-01 Hannes Domani <ssbssa@yahoo.de>
3713
3714 * Makefile.in: Use INSTALL_PROGRAM_ENV.
3715
5dd8bf88
JB
37162020-01-01 Joel Brobecker <brobecker@adacore.com>
3717
3718 * server.c (gdbserver_version): Change copyright year to 2020.
3719 * gdbreplay.c (gdbreplay_version): Likewise.
3720
0ad6b8ee
CB
37212019-12-19 Christian Biesinger <cbiesinger@google.com>
3722
3723 * configure: Regenerate.
3724 * configure.ac: Quote variable arguments of test.
3725
1ee7b812
BE
37262019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
3727
3728 * Makefile.in: Fix build with GNU Make 3.81
3729
d9fa87f4
TT
37302019-12-16 Tom Tromey <tromey@adacore.com>
3731
3732 * server.c (get_exec_file): Constify result.
3733
ab7d13f0
CB
37342019-12-10 Christian Biesinger <cbiesinger@google.com>
3735
3736 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
3737 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
3738 * config.in: Regenerate.
3739 * configure: Regenerate.
3740 * configure.ac: Don't check for strerror.
3741 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
3742 Call safe_strerror instead of strerror.
3743 * server.h (strerror): Remove this now-unnecessary declaration.
3744 * tracepoint.c (init_named_socket): Call safe_strerror instead of
3745 strerror.
3746 (gdb_agent_helper_thread): Likewise.
3747 * utils.c (perror_with_name): Likewise.
3748
4da8c3a8
TT
37492019-11-26 Tom Tromey <tom@tromey.com>
3750
3751 * configure, config.in: Rebuild.
3752
21987b9c
TT
37532019-11-26 Tom Tromey <tom@tromey.com>
3754
3755 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
3756 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
3757 gdb_sigmask.
3758 * configure, config.in: Rebuild.
3759
5e030278
TT
37602019-11-26 Tom Tromey <tom@tromey.com>
3761
3762 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
3763 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
3764 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
3765 * acinclude.m4: Include ax_pthread.m4.
3766 * config.in, configure: Rebuild.
3767
6d91ce9a
CB
37682019-11-26 Christian Biesinger <cbiesinger@google.com>
3769
3770 * debug.c (debug_set_output): Call safe_strerror instead of
3771 strerror.
3772 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
3773 (linux_kill_one_lwp): Likewise.
3774 (linux_detach_one_lwp): Likewise.
3775 (linux_wait_for_event_filtered): Likewise.
3776 (store_register): Likewise.
3777 * lynx-low.c (lynx_attach): Likewise.
3778 * mem-break.c (insert_memory_breakpoint): Likewise.
3779 (remove_memory_breakpoint): Likewise.
3780 (delete_fast_tracepoint_jump): Likewise.
3781 (set_fast_tracepoint_jump): Likewise.
3782 (uninsert_fast_tracepoint_jumps_at): Likewise.
3783 (reinsert_fast_tracepoint_jumps_at): Likewise.
3784 * nto-low.c (nto_xfer_memory): Likewise.
3785 (nto_resume): Likewise.
3786
6cdd651f
LM
37872019-11-20 Luis Machado <luis.machado@linaro.org>
3788
3789 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
3790 instead of register count.
3791 * tdesc.c (tdesc_contains_feature): New function.
3792 * tdesc.h (tdesc_contains_feature): New prototype.
3793
cd850b40
CB
37942019-11-15 Christian Biesinger <cbiesinger@google.com>
3795
3796 * Makefile.in: Add safe-strerror.c.
3797 * configure: Regenerate.
3798 * configure.ac: Don't source common.host.
3799
5abebf3c
CB
38002019-11-15 Christian Biesinger <cbiesinger@google.com>
3801
3802 * config.in: Regenerate.
3803 * configure: Regenerate.
3804
e06f3d6e
AB
38052019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
3806
3807 * ax.c (ax_printf): Handle size_t_arg.
3808
ca3a04f6
CB
38092019-11-06 Christian Biesinger <cbiesinger@google.com>
3810
3811 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
3812 * mi/mi-main.c (output_cores): Likewise.
3813 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
3814 (linux_xfer_osdata_modules): Likewise.
3815 * remote.c (register_remote_support_xml): Likewise.
3816 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
3817 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
3818
e48f6033
CB
38192019-11-01 Christian Biesinger <cbiesinger@google.com>
3820
3821 * configure: Regenerate.
3822 * configure.ac: Remove check for strerror_r.
3823
e7e97a2e
CB
38242019-10-31 Christian Biesinger <cbiesinger@google.com>
3825
3826 * config.in: Regenerate.
3827 * configure: Regenerate.
3828 * configure.ac: Also check for strerror_r.
3829
75cafaa6
CB
38302019-10-31 Christian Biesinger <cbiesinger@google.com>
3831
3832 * ax.h (debug_agent): Remove duplicate declaration.
3833
30baf67b
TV
38342019-10-26 Tom de Vries <tdevries@suse.de>
3835
3836 * linux-aarch64-low.c: Fix typos in comments.
3837 * linux-arm-low.c: Same.
3838 * linux-low.c: Same.
3839 * linux-ppc-low.c: Same.
3840 * proc-service.c: Same.
3841 * regcache.h: Same.
3842 * server.c: Same.
3843 * tracepoint.c: Same.
3844 * win32-low.c: Same.
3845
52c64cf7
TT
38462019-10-25 Tom Tromey <tromey@adacore.com>
3847
3848 * utils.c (xstrdup): Remove.
3849
c12d372d
TT
38502019-10-23 Tom Tromey <tom@tromey.com>
3851
3852 * configure, config.in: Rebuild.
3853
4d0b984b
TT
38542019-10-23 Tom Tromey <tom@tromey.com>
3855
3856 * configure: Rebuild.
3857 * acinclude.m4: Use m4_include, not sinclude.
3858
c5adaa19
TT
38592019-10-17 Tom Tromey <tromey@adacore.com>
3860
3861 * configure: Rebuild.
3862 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
3863 in AC_CONFIG_FILES invocation.
3864 * Makefile.in (stamp-h, Makefile): Use new-style config.status
3865 invocation.
3866
fec4e896
CB
38672019-10-16 Christian Biesinger <cbiesinger@google.com>
3868
3869 * server.c: Include xml-builtin.h.
3870 (get_xml_features): Don't declare xml_builtins here.
3871
00975ff6
AB
38722019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3873
3874 * Makefile.in: Remove references to vec-ipa.o.
3875
0dc32745
AB
38762019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3877
3878 * Makefile.in: Remove references to vec.c.
3879
3e6ec53a
CB
38802019-10-02 Christian Biesinger <cbiesinger@google.com>
3881
3882 * server.c (server_waiting): Change to bool.
3883 (extended_protocol): Likewise.
3884 (response_needed): Likewise.
3885 (exit_requested): Likewise.
3886 (run_once): Likewise.
3887 (report_no_resumed): Likewise.
3888 (non_stop): Likewise.
3889 (disable_packet_vCont): Likewise.
3890 (disable_packet_Tthread): Likewise.
3891 (disable_packet_qC): Likewise.
3892 (disable_packet_qfThreadInfo): Likewise.
3893 (handle_general_set): Update.
3894 (handle_detach): Update.
3895 (handle_monitor_command): Update.
3896 (handle_query): Update.
3897 (captured_main): Update.
3898 (process_serial_event): Update.
3899 * server.h (server_waiting): Change to bool.
3900 (disable_packet_vCont): Likewise.
3901 (disable_packet_Tthread): Likewise.
3902 (disable_packet_qC): Likewise.
3903 (disable_packet_qfThreadInfo): Likewise.
3904 (run_once): Likewise.
3905 (non_stop): Likewise.
3906 * target.c (target_stop_and_wait): Update.
3907
80fd2826
TT
39082019-10-02 Tom Tromey <tromey@adacore.com>
3909
3910 * Makefile.in (SFILES): Add common-inferior.c.
3911 (OBS): Add common-inferior.o.
3912 * server.c (startup_with_shell): Don't define.
3913
46f29a9a
AB
39142019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3915
3916 * linux-low.c (linux_low_read_btrace): Update for change to
3917 std::vector.
3918
f9d949fb
CB
39192019-09-20 Christian Biesinger <cbiesinger@google.com>
3920
3921 * debug.c (debug_threads): Remove comment in favor of the header.
3922 * debug.h (using_threads): Add declaration.
3923 (debug_threads): Add comment.
3924 * linux-aarch64-low.c: Include debug.h and remove declaration of
3925 debug_threads.
3926 * nto-low.c: Likewise.
3927 * remote-utils.c: Likewise.
3928 * thread-db.c: Likewise.
3929
abf516c6
UW
39302019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3931
3932 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
3933 and powerpc-cell64l-ipa.o.
3934 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
3935 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
3936 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
3937 (spu*-*-*): Remove.
3938
3939 * spu-low.c: Remove file.
3940
3941 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
3942 (parse_spufs_run): Remove.
3943 (ppc_get_pc): Remove Cell/B.E. support.
3944 (ppc_set_pc): Likewise.
3945 (ppc_breakpoint_at): Likewise.
3946 (ppc_arch_setup): Likewise.
3947 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
3948 tdesc_powerpc_cell32l.
3949 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
3950 or init_registers_powerpc_cell32l.
3951 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
3952 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
3953 or init_registers_powerpc_cell32l.
3954 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
3955 (init_registers_powerpc_cell32l): Remove prototype.
3956 (init_registers_powerpc_cell64l): Likewise.
3957
3958 * target.h (struct target_ops): Remove qxfer_spu member.
3959 * server.c (handle_qxfer_spu): Remove.
3960 (qxfer_packets): Remove entry for "spu".
3961 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
3962 * linux-low.c (SPUFS_MAGIC): Remove.
3963 (spu_enumerate_spu_ids): Remove.
3964 (linux_qxfer_spu): Remove.
3965 (linux_target_ops): Remove qxfer_spu member.
3966 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
3967 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
3968 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
3969
2d41fa11
SDJ
39702019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3971
3972 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
3973 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
3974 * config.in: Regenerate.
3975 * configure: Regenerate.
3976
d59b55f0
TT
39772019-08-15 Tom Tromey <tromey@adacore.com>
3978
3979 * target.c (target_write_memory): Use gdb::byte_vector.
3980
4196ab2a
TT
39812019-08-15 Tom Tromey <tromey@adacore.com>
3982
3983 * tracepoint.c (write_inferior_data_pointer)
3984 (write_inferior_integer, write_inferior_int8)
3985 (write_inferior_uinteger, m_tracepoint_action_download)
3986 (r_tracepoint_action_download, x_tracepoint_action_download)
3987 (l_tracepoint_action_download, clear_inferior_trace_buffer)
3988 (download_agent_expr, download_tracepoint_1)
3989 (download_trace_state_variables, upload_fast_traceframes): Update.
3990 * server.c (gdb_write_memory): Update.
3991 * remote-utils.c (relocate_instruction): Update.
3992 * proc-service.c (ps_pdwrite): Update.
3993 * mem-break.c (remove_memory_breakpoint)
3994 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
3995 (uninsert_fast_tracepoint_jumps_at)
3996 (reinsert_fast_tracepoint_jumps_at): Update.
3997 * linux-x86-low.c (append_insns)
3998 (i386_install_fast_tracepoint_jump_pad)
3999 (amd64_write_goto_address, i386_write_goto_address): Update.
4000 * linux-s390-low.c (append_insns, s390_write_goto_address):
4001 Update.
4002 * linux-ppc-low.c (ppc_relocate_instruction)
4003 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4004 (ppc_write_goto_address): Update.
4005 * linux-aarch64-low.c (append_insns): Update.
4006 * target.h (struct target_ops): Update.
4007 (write_inferior_memory): Don't declare.
4008 * target.c (target_write_memory): Rename from
4009 write_inferior_memory. Remove old target_write_memory.
4010
c6778d00
TT
40112019-08-15 Tom Tromey <tromey@adacore.com>
4012
4013 * target.c (write_inferior_memory): Use std::vector.
4014
404f2902
FCE
40152019-08-06 Frank Ch. Eigler <fche@redhat.com>
4016
4017 PR build/24886
4018 * configure.ac: Drop enable-libmcheck support.
4019 * configure, config.in: Rebuild.
4020 * acinclude.m4: Don't include it.
4021
4c5aa8e0
AH
40222019-07-19 Alan Hayward <alan.hayward@arm.com>
4023
4024 * configure.srv: Remove Arm xml files.
4025
7cc17433
AH
40262019-07-19 Alan Hayward <alan.hayward@arm.com>
4027
4028 * configure.srv: Add new files. Remove xml generated files.
4029 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4030 registers.
4031 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4032 * linux-aarch32-tdesc.c: New file.
4033 * linux-aarch32-tdesc.h: New file.
4034 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4035 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4036 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4037 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4038 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4039 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4040 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4041 (arm_read_description): Call arm_linux_read_description.
4042 (initialize_low_arch): Don't init registers.
4043 * linux-arm-tdesc.c: New file.
4044 * linux-arm-tdesc.h: New file.
4045
166a82be
AH
40462019-07-10 Alan Hayward <alan.hayward@arm.com>
4047
4048 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4049 Move counter inside for.
4050 (arm_read_description): Check ptrace earlier.
4051 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4052
268a13a5
TT
40532019-07-09 Tom Tromey <tom@tromey.com>
4054
4055 * configure: Rebuild.
4056 * configure.ac: Change common to gdbsupport.
4057 * acinclude.m4: Change common to gdbsupport.
4058 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4059 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4060 common to gdbsupport.
4061 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4062 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4063 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4064 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4065 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4066 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4067 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4068 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4069 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4070 common to gdbsupport.
4071
350fab54
AH
40722019-07-04 Alan Hayward <alan.hayward@arm.com>
4073
4074 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4075 defines.
4076 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4077
2b40fda7
AH
40782019-07-04 Alan Hayward <alan.hayward@arm.com>
4079
4080 * configure.srv: Remove legacy xml.
4081 * linux-aarch64-low.c (initialize_low_arch): Remove
4082 initialize_low_tdesc call.
4083 * linux-aarch64-tdesc-selftest.c: Remove file.
4084 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4085 * linux-x86-low.c (initialize_low_arch): Remove
4086 initialize_low_tdesc call.
4087 * linux-x86-tdesc-selftest.c: Remove file.
4088 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4089
7d10623d
TV
40902019-06-20 Tom de Vries <tdevries@suse.de>
4091
4092 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4093 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4094
8d6a48df
TV
40952019-06-19 Tom de Vries <tdevries@suse.de>
4096
4097 * debug.h (debug_write): Change return type to ssize_t.
4098 * debug.c (debug_write): Same.
4099
73cc7272
TT
41002019-06-14 Tom Tromey <tom@tromey.com>
4101
4102 * configure.ac: Use new path to gnulib.
4103 * configure: Rebuild.
4104 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4105 to gnulib.
4106
08f10e02
TT
41072019-06-11 Tom Tromey <tom@tromey.com>
4108
4109 * Makefile.in (SFILES): Add alloc.c.
4110 (OBS): Add alloc.o.
4111 (IPA_OBJS): Add alloc-ipa.o.
4112 (alloc-ipa.o): New target.
4113 (%.o: ../%.c): New pattern rule.
4114
422186a9
TT
41152019-06-10 Tom Tromey <tromey@adacore.com>
4116
4117 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4118 end warning with a newline.
4119 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4120 newline.
4121 * thread-db.c (attach_thread): Don't end warning with a newline.
4122 (thread_db_notice_clone): Likewise.
4123 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4124 newline.
4125 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4126 end warning with a newline.
4127
b02f78f9
PA
41282019-06-04 Pedro Alves <palves@redhat.com>
4129
4130 * server.c (captured_main): Use make_unique_xstrdup.
4131
88ed7edb
TT
41322019-06-02 Tom Tromey <tom@tromey.com>
4133
4134 * gdbreplay.c (fromhex): Remove.
4135 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4136
33a6bc35
TT
41372019-05-29 Tom Tromey <tromey@adacore.com>
4138
4139 * configure: Rebuild.
4140
e90a813d
KB
41412019-05-06 Kevin Buettner <kevinb@redhat.com>
4142
4143 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4144 sign extension code on 32-bit builds.
4145
353ea2d1
EZ
41462019-05-03 Eli Zaretskii <eliz@gnu.org>
4147
4148 * remote-utils.c:
4149 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4150
b494cdff
TT
41512019-04-19 Tom Tromey <tom@tromey.com>
4152
4153 * server.c (struct vstop_notif): Derive from notif_event.
4154 <base>: Remove.
4155 (queue_stop_reply): Update.
4156 (remove_all_on_match_ptid): Change type. Rewrite.
4157 (discard_queued_stop_replies): Rewrite.
4158 (in_queued_stop_replies_ptid): Change type.
4159 (in_queued_stop_replies): Rewrite.
4160 (notif_stop): Update.
4161 (queue_stop_reply_callback): Update.
4162 (captured_main): Don't call initialize_notif.
4163 (push_stop_notification): Update.
4164 * notif.c (notif_write_event, handle_notif_ack)
4165 (notif_event_enque, notif_push): Update.
4166 (notif_event_xfree, initialize_notif): Remove.
4167 * notif.h (struct notif_event): Include <list>, not
4168 "common/queue.h".
4169 (struct notif_server) <queue>: Now a std::list.
4170 (notif_event_p): Remove typedef.
4171 (initialize_notif): Don't declare.
4172 (struct notif_event): Add virtual destructor.
4173
a7e559cc
AH
41742019-04-17 Alan Hayward <alan.hayward@arm.com>
4175
4176 * ax.c (ax_vdebug): Call debug_printf.
4177 * debug.c (debug_write): New function.
4178 * debug.h (debug_write): New declaration.
4179 * linux-low.c (sigchld_handler): Call debug_write.
4180
aeb2e706
AH
41812019-04-17 Alan Hayward <alan.hayward@arm.com>
4182
4183 * debug.c (debug_set_output): New function.
4184 (debug_vprintf): Send output to debug_file.
4185 (debug_flush): Likewise.
4186 * debug.h (debug_set_output): New declaration.
4187 * server.c (handle_monitor_command): Add debug-file option.
4188 (captured_main): Likewise.
4189
c1bc0935
AH
41902019-04-17 Alan Hayward <alan.hayward@arm.com>
4191
4192 * debug.c (remote_debug): Add definition.
4193 * debug.h (remote_debug): Add declaration.
4194 * hostio.c (remote_debug): Remove declaration.
4195 * remote-utils.c (struct ui_file): Likewise.
4196 (remote_debug): Likewise.
4197 * remote-utils.h (remote_debug): Likewise,
4198 * server.c (remote_debug): Remove definition.
4199
3f52fdbc
KB
42002019-04-10 Kevin Buettner <kevinb@redhat.com>
4201
4202 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4203 when using a 64-bit gdbserver.
4204
b0319eaa
TT
42052019-04-09 Tom Tromey <tromey@adacore.com>
4206
4207 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4208
eedc3f4f
TT
42092019-04-08 Tom Tromey <tom@tromey.com>
4210
4211 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4212 throw.
4213 (linux_resume_one_lwp): Likewise.
4214
230d2906
TT
42152019-04-08 Tom Tromey <tom@tromey.com>
4216
4217 * gdbreplay.c: Update.
4218 * linux-low.c: Update.
4219 * server.c: Update.
4220
a70b8144
TT
42212019-04-08 Tom Tromey <tom@tromey.com>
4222
4223 * server.c: Use C++ exception handling.
4224 * linux-low.c: Use C++ exception handling.
4225 * gdbreplay.c: Use C++ exception handling.
4226
3d6e9d23
TT
42272019-04-08 Tom Tromey <tom@tromey.com>
4228
4229 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4230 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4231 (captured_main, main): Update.
4232 * gdbreplay.c (main): Update.
4233
0570503d
PFC
42342019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4235
4236 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4237 value in argument pointer, return 1 if the entry is found and 0
4238 otherwise. Move comment.
4239 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4240 * linux-low.h (linux_get_auxv): Declare.
4241 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4242
227a9e65
TT
42432019-04-05 Tom Tromey <tromey@adacore.com>
4244
4245 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4246 variables.
4247
69f4c9cc
AH
42482019-03-28 Alan Hayward <alan.hayward@arm.com>
4249
4250 * linux-low.c (AT_HWCAP2): Add define if not already included.
4251
974c89e0
AH
42522019-03-26 Alan Hayward <alan.hayward@arm.com>
4253
4254 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4255 (aarch64_arch_setup): Call linux_get_hwcap.
4256 * linux-arm-low.c (arm_get_hwcap): Remove function.
4257 (arm_read_description): Call linux_get_hwcap.
4258 * linux-low.c (linux_get_auxv): New function.
4259 (linux_get_hwcap): Likewise.
4260 (linux_get_hwcap2): Likewise.
4261 * linux-low.h (linux_get_hwcap): New declaration.
4262 (linux_get_hwcap2): Likewise.
4263 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4264 (ppc_arch_setup): Call linux_get_hwcap.
4265 * linux-s390-low.c (s390_get_hwcap): Remove function.
4266 (s390_arch_setup): Call linux_get_hwcap.
4267
1ef53e6b
AH
42682019-03-22 Alan Hayward <alan.hayward@arm.com>
4269 Jiong Wang <jiong.wang@arm.com>
4270
4271 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4272 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4273 to fail.
4274 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4275
ee4fbcfa
AH
42762019-03-22 Alan Hayward <alan.hayward@arm.com>
4277 Jiong Wang <jiong.wang@arm.com>
4278
4279 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4280 (aarch64_get_hwcap): New function.
4281 (aarch64_arch_setup): Read APIA hwcap.
4282
6dc0ebde
AH
42832019-03-22 Alan Hayward <alan.hayward@arm.com>
4284 Jiong Wang <jiong.wang@arm.com>
4285
4286 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4287 (initialize_low_tracepoint): Likewise.
4288 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4289 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4290 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4291 (aarch64_linux_read_description): Likewise.
4292 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4293
1163a4b7
JB
42942019-03-12 John Baldwin <jhb@FreeBSD.org>
4295
4296 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4297 i386_create_target_description for 'segments' parameter.
4298 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4299 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4300 * win32-i386-low.c (i386_arch_setup): Likewise.
4301
d3a70e03
TT
43022019-03-12 Tom Tromey <tromey@adacore.com>
4303
4304 * linux-low.c (iterate_over_lwps): Update.
4305
37991b4f
TT
43062019-03-06 Tom Tromey <tom@tromey.com>
4307
4308 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4309 (captured_main): Use SCOPE_EXIT.
4310
45950eb6
SDJ
43112019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4312
4313 * configure.srv: Use '$enable_unittest' instead of '$development'
4314 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4315 case.
4316
43ac54fc
TT
43172019-02-27 Tom Tromey <tromey@adacore.com>
4318
4319 * gdbreplay.c (logchar): Handle \r\n.
4320
df0da8a2
AH
43212019-02-07 Alan Hayward <alan.hayward@arm.com>
4322
4323 * linux-low.c (linux_attach): Add process before lwp.
4324 * server.c (attach_inferior): Check if already attached.
4325
1a5c2598
TT
43262019-02-07 Tom Tromey <tom@tromey.com>
4327
4328 * x86-tdesc.h: Rename include guard.
4329 * x86-low.h: Add include guard.
4330 * wincecompat.h: Rename include guard.
4331 * win32-low.h: Add include guard.
4332 * utils.h: Rename include guard.
4333 * tracepoint.h: Rename include guard.
4334 * tdesc.h: Rename include guard.
4335 * target.h: Rename include guard.
4336 * server.h: Rename include guard.
4337 * remote-utils.h: Rename include guard.
4338 * regcache.h: Rename include guard.
4339 * nto-low.h: Rename include guard.
4340 * notif.h: Add include guard.
4341 * mem-break.h: Rename include guard.
4342 * lynx-low.h: Add include guard.
4343 * linux-x86-tdesc.h: Add include guard.
4344 * linux-s390-tdesc.h: Add include guard.
4345 * linux-ppc-tdesc-init.h: Add include guard.
4346 * linux-low.h: Add include guard.
4347 * linux-aarch64-tdesc.h: Add include guard.
4348 * linux-aarch32-low.h: Add include guard.
4349 * inferiors.h: Rename include guard.
4350 * i387-fp.h: Rename include guard.
4351 * hostio.h: Rename include guard.
4352 * gdbthread.h: Rename include guard.
4353 * gdb_proc_service.h: Rename include guard.
4354 * event-loop.h: Rename include guard.
4355 * dll.h: Rename include guard.
4356 * debug.h: Rename include guard.
4357 * ax.h: Rename include guard.
4358
956cc47c
SN
43592018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4360
4361 PR gdb/23985
4362 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4363 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4364
a0707f3c
TT
43652019-01-25 Tom Tromey <tom@tromey.com>
4366
4367 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4368
0747795c
TT
43692019-01-25 Tom Tromey <tom@tromey.com>
4370
4371 * win32-low.c: Fix common/ includes.
4372 * win32-i386-low.c: Fix common/ includes.
4373 * tracepoint.c: Fix common/ includes.
4374 * thread-db.c: Fix common/ includes.
4375 * target.h: Fix common/ includes.
4376 * symbol.c: Fix common/ includes.
4377 * spu-low.c: Fix common/ includes.
4378 * server.h: Fix common/ includes.
4379 * server.c: Fix common/ includes.
4380 * remote-utils.c: Fix common/ includes.
4381 * regcache.h: Fix common/ includes.
4382 * regcache.c: Fix common/ includes.
4383 * nto-x86-low.c: Fix common/ includes.
4384 * notif.h: Fix common/ includes.
4385 * mem-break.h: Fix common/ includes.
4386 * lynx-low.c: Fix common/ includes.
4387 * lynx-i386-low.c: Fix common/ includes.
4388 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4389 * linux-x86-low.c: Fix common/ includes.
4390 * linux-low.c: Fix common/ includes.
4391 * inferiors.h: Fix common/ includes.
4392 * i387-fp.c: Fix common/ includes.
4393 * hostio.c: Fix common/ includes.
4394 * hostio-errno.c: Fix common/ includes.
4395 * gdbthread.h: Fix common/ includes.
4396 * gdbreplay.c: Fix common/ includes.
4397 * fork-child.c: Fix common/ includes.
4398 * event-loop.c: Fix common/ includes.
4399 * ax.c:
4400 (enum gdb_agent_op): Fix common/ includes.
4401
be6d4f74
TT
44022019-01-21 Tom Tromey <tom@tromey.com>
4403
4404 * tracepoint.c: Fix includes.
4405 * remote-utils.c: Fix includes.
4406 * linux-x86-low.c: Fix includes.
4407
66d91b39
JB
44082019-01-01 Joel Brobecker <brobecker@adacore.com>
4409
4410 * gdbreplay.c (gdbreplay_version): Update copyright year in
4411 version message.
4412 * server.c (gdbserver_version): Likewise.
4413
754e3168
AH
44142018-12-05 Alan Hayward <alan.hayward@arm.com>
4415
4416 * linux-low.c (add_lwp): Switch ordering.
4417
d105de22
TT
44182018-11-29 Tom Tromey <tom@tromey.com>
4419
4420 * win32-low.c (win32_join): Take pid, not process.
4421 * target.h (struct target_ops) <join>: Change argument type.
4422 (join_inferior): Change argument name.
4423 * spu-low.c (spu_join): Take pid, not process.
4424 * server.c (handle_detach): Preserve pid before destroying
4425 process.
4426 * lynx-low.c (lynx_join): Take pid, not process.
4427 * linux-low.c (linux_join): Take pid, not process.
4428
50138245
AH
44292018-11-23 Alan Hayward <alan.hayward@arm.com>
4430
4431 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4432 (aarch64_cannot_fetch_register): Likewise.
4433 (struct linux_target_ops): Update references.
4434
64f57f3d
PFC
44352018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4436
4437 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4438
8d619c01
EBM
44392018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4440
4441 * configure.srv (ipa_ppc_linux_regobj): Add
4442 powerpc-isa207-htm-vsx32l-ipa.o and
4443 powerpc-isa207-htm-vsx64l-ipa.o.
4444 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4445 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4446 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4447 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4448 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4449 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4450 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4451 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4452 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4453 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4454 (init_registers_powerpc_isa207_htm_vsx32l)
4455 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4456 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4457 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4458 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4459 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4460 (ppc_store_tm_ctarregset): New functions.
4461 (ppc_regsets): Add entries for HTM regsets.
4462 (ppc_arch_setup): Set htm in features struct when needed. Set
4463 sizes for the HTM regsets.
4464 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4465 (initialize_low_arch): Call
4466 init_registers_powerpc_isa207_htm_vsx32l and
4467 init_registers_powerpc_isa207_htm_vsx64l.
4468 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4469 PPC_TDESC_ISA207_HTM_VSX.
4470 (initialize_low_tracepoint): Call
4471 init_registers_powerpc_isa207_htm_vsx32l and
4472 init_registers_powerpc_isa207_htm_vsx64l.
4473
232bfb86
EBM
44742018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4475
4476 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4477 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4478 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4479 (ppc_store_pmuregset): New functions.
4480 (ppc_regsets): Add entries for ebb and pmu regsets.
4481 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4482 pmu regsets are available. Set sizes for these regsets.
4483
f2cf6173
EBM
44842018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4485
4486 * configure.srv (ipa_ppc_linux_regobj): Add
4487 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4488 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4489 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4490 rs6000/powerpc-isa207-vsx32l.xml, and
4491 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
4492 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4493 <PPC_TDESC_ISA207_VSX>: New enum value.
4494 (init_registers_powerpc_isa207_vsx32l): Declare.
4495 (init_registers_powerpc_isa207_vsx64l): Declare.
4496 * linux-ppc-low.c (ppc_fill_tarregset): New function.
4497 (ppc_store_tarregset): New function.
4498 (ppc_regsets): Add entry for the TAR regset.
4499 (ppc_arch_setup): Set isa207 in features struct when needed. Set
4500 size for the TAR regsets.
4501 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
4502 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
4503 and init_registers_powerpc_isa207_vsx64l.
4504 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
4505 (initialize_low_tracepoint): Call
4506 init_registers_powerpc_isa207_vsx32l and
4507 init_registers_powerpc_isa207_vsx64l.
4508
7ca18ed6
EBM
45092018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4510 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4511
4512 * configure.srv (ipa_ppc_linux_regobj): Add
4513 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
4514 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
4515 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
4516 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
4517 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
4518 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
4519 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
4520 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4521 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
4522 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
4523 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
4524 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
4525 (ppc_hwcap): Add comment.
4526 (ppc_hwcap2): New global.
4527 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
4528 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
4529 (ppc_regsets): Add entries for the DSCR and PPR regsets.
4530 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
4531 when needed. Set sizes for the the DSCR and PPR regsets.
4532 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
4533 (initialize_low_arch): Call
4534 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4535 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4536 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4537 PPC_TDESC_ISA205_PPR_DSCR_VSX.
4538 (initialize_low_tracepoint): Call
4539 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4540 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4541
5c849b22
PFC
45422018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4543
4544 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
4545
8ecfd7bd
SDJ
45462018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
4547 Simon Marchi <simark@simark.ca>
4548
4549 * acinclude.m4: Include "../selftest.m4".
4550 * configure: Regenerate.
4551 * configure.ac: Use "GDB_AC_SELFTEST".
4552 * configure.srv: Use "$enable_unittests" instead of
4553 "$development" when checking whether unit tests have been
4554 enabled.
4555 * server.c (captured_main): Update message informing that
4556 selftests have been disabled.
4557
96643e35
TT
45582018-10-04 Tom Tromey <tom@tromey.com>
4559
4560 * configure: Rebuild.
4561
da4ae14a
TT
45622018-10-04 Tom Tromey <tom@tromey.com>
4563
4564 * server.c (handle_status): Rename inner "thread".
4565 (process_serial_event): Declare "res" in 'm' case.
4566 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
4567 (iterate_over_lwps): Rename inner "thread".
4568 (linux_qxfer_libraries_svr4): Rename inner "len".
4569 * gdbthread.h (find_thread_in_random): Rename inner "thread".
4570
7c619dbd
GB
45712018-10-01 Gary Benson <gbenson@redhat.com>
4572
4573 * gdb_proc_service.h: Moved common code to
4574 common/gdb_proc_service.h.
4575
3795e814
GB
45762018-10-01 Gary Benson <gbenson@redhat.com>
4577
4578 * gdb_proc_service.h: Synchronize comments and whitespace with
4579 GDB's version of this file.
4580
49b036f1
TT
45812018-09-25 Tom Tromey <tom@tromey.com>
4582
4583 * configure: Rebuild.
4584 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
4585
8ff03f0b
SM
45862018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4587
4588 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
4589 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
4590 ($(IPA_LIB)): Sort IPA_OBJS.
4591
a1cd91dc
SM
45922018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4593
4594 * Makefile.in: Remove references to $(ADD_DEPS).
4595
752312ba
TT
45962018-09-16 Tom Tromey <tom@tromey.com>
4597
4598 * remote-utils.c (remote_open): Use GNU style for metasyntactic
4599 variables.
4600 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
4601 variables.
4602
f1628857
TT
46032018-09-05 Tom Tromey <tom@tromey.com>
4604
4605 * configure: Rebuild.
4606
ad202fcc
SM
46072018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
4608
4609 PR build/23399
4610 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
4611
d3d8724a
TT
46122018-08-27 Tom Tromey <tom@tromey.com>
4613
4614 PR build/23087:
4615 * configure: Rebuild.
4616
b4f183d2
TT
46172018-08-27 Tom Tromey <tom@tromey.com>
4618
4619 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
4620 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
4621 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
4622 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
4623 (s390x_emit_stack_adjust): Add casts to unsigned char.
4624
4e2aa472
SM
46252018-08-22 Simon Marchi <simon.marchi@ericsson.com>
4626
4627 PR gdb/23374
4628 PR gdb/23375
4629 * server.h (struct client_state) <disable_randomization>:
4630 Initialize to 1.
4631
cf4088a9
SM
46322018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4633
4634 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
4635 variable.
4636 (mips_supply_ptrace_register): Likewise.
4637
a0de763e
TT
46382018-07-22 Tom Tromey <tom@tromey.com>
4639
4640 * configure: Rebuild.
4641
b0a7723d
TT
46422018-07-22 Tom Tromey <tom@tromey.com>
4643
4644 * win32-low.c (win32_create_inferior): Remove unused variables.
4645 * gdbreplay.c (remote_open): Remove unused variable.
4646 * remote-utils.c (remote_prepare): Remove unused variable.
4647 * x86-tdesc.h (X86_TDESC_H): Define.
4648 (amd64_expedite_regs): Define conditionally.
4649 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
4650 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
4651 * remote-utils.c (readchar): Remove unused variable.
4652
a780ef4f
PA
46532018-07-13 Pedro Alves <palves@redhat.com>
4654
4655 * linux-low.c (linux_kill): Change parameter to process_info
4656 pointer instead of pid. Adjust.
4657 * lynx-low.c (lynx_kill): Likewise.
4658 * nto-low.c (nto_kill): Likewise.
4659 * spu-low.c (spu_kill): Likewise.
4660 * win32-low.c (win32_kill): Likewise.
4661 * server.c (handle_v_kill, kill_inferior_callback)
4662 (detach_or_kill_for_exit): Adjust.
4663 * target.c (kill_inferior): Change parameter to process_info
4664 pointer instead of pid. Adjust.
4665 * target.h (struct target_ops) <kill>: Change parameter to
4666 process_info pointer instead of pid. Adjust all implementations
4667 and callers.
4668 (kill_inferior): Likewise.
4669
ef2ddb33
PA
46702018-07-13 Pedro Alves <palves@redhat.com>
4671
4672 * linux-low.c (linux_detach, linux_join): Change parameter to
4673 process_info pointer instead of pid. Adjust.
4674 * lynx-low.c (lynx_detach, lynx_join): Likewise.
4675 * nto-low.c (nto_detach): Likewise.
4676 * spu-low.c (spu_detach, spu_join): Likewise.
4677 * win32-low.c (win32_detach, win32_join): Likewise.
4678 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
4679 * target.h (struct target_ops) <detach, join>: Change parameter to
4680 process_info pointer instead of pid. Adjust all implementations
4681 and callers.
4682 (detach_inferior, join_inferior): Rename 'pid' parameter to
4683 'proc'.
4684
c7ab0aef
SDJ
46852018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4686 Jan Kratochvil <jan.kratochvil@redhat.com>
4687 Paul Fertser <fercerpav@gmail.com>
4688 Tsutomu Seki <sekiriki@gmail.com>
4689
4690 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
4691 (OBS): Add 'common/netstuff.o'.
4692 (GDBREPLAY_OBS): Likewise.
4693 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
4694 (remote_open): Implement support for IPv6
4695 connections.
4696 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
4697 and 'wspiapi.h'.
4698 (handle_accept_event): Accept connections from IPv6 sources.
4699 (remote_prepare): Handle IPv6-style hostnames; implement
4700 support for IPv6 connections.
4701 (remote_open): Implement support for printing connections from
4702 IPv6 sources.
4703
31445d10
PA
47042018-07-11 Pedro Alves <palves@redhat.com>
4705
4706 PR gdb/23377
4707 * mem-break.c (any_persistent_commands): Add process_info
4708 parameter and use it instead of relying on the current process.
4709 Change return type to bool.
4710 * mem-break.h (any_persistent_commands): Add process_info
4711 parameter and change return type to bool.
4712 * server.c (handle_detach): Remove require_running_or_return call.
4713 Look up the process_info for the process we're about to detach.
4714 If not found, return back error to GDB. Adjust
4715 any_persistent_commands call to pass down a process pointer.
4716
cb197132
PA
47172018-07-11 Pedro Alves <palves@redhat.com>
4718
4719 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
4720 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
4721 instead of collect_register_by_name.
4722 * regcache.c (regcache_raw_get_unsigned_by_name): New.
4723 * regcache.h (regcache_raw_get_unsigned_by_name): New.
4724
1b919490
VB
47252018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4726 Pedro Alves <palves@redhat.com>
4727
4728 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
4729
d7e15655
TT
47302018-07-03 Tom Tromey <tom@tromey.com>
4731
4732 * linux-low.c: Update.
4733 * lynx-low.c: Update.
4734 * mem-break.c: Update.
4735 * nto-low.c: Update.
4736 * remote-utils.c: Update.
4737 * server.c: Update.
4738 * spu-low.c: Update.
4739 * target.c: Update.
4740 * win32-low.c: Update.
4741
26a57c92
TT
47422018-07-03 Tom Tromey <tom@tromey.com>
4743
4744 * server.c: Update.
4745
0e998d96
TT
47462018-07-03 Tom Tromey <tom@tromey.com>
4747
4748 * linux-low.c: Update.
4749
cc6bcb54
TT
47502018-07-03 Tom Tromey <tom@tromey.com>
4751
4752 * target.c: Update.
4753
e38504b3
TT
47542018-07-03 Tom Tromey <tom@tromey.com>
4755
4756 * linux-low.c: Update.
4757 * linux-mips-low.c: Update.
4758 * lynx-low.c: Update.
4759 * nto-low.c: Update.
4760 * remote-utils.c: Update.
4761 * server.c: Update.
4762 * spu-low.c: Update.
4763 * target.c: Update.
4764 * thread-db.c: Update.
4765
e99b03dc
TT
47662018-07-03 Tom Tromey <tom@tromey.com>
4767
4768 * linux-low.c: Update.
4769 * linux-mips-low.c: Update.
4770 * lynx-low.c: Update.
4771 * mem-break.c: Update.
4772 * nto-low.c: Update.
4773 * remote-utils.c: Update.
4774 * server.c: Update.
4775 * spu-low.c: Update.
4776 * target.c: Update.
4777 * tracepoint.c: Update.
4778
f2907e49
TT
47792018-07-03 Tom Tromey <tom@tromey.com>
4780
4781 * linux-low.c: Update.
4782 * linux-ppc-low.c: Update.
4783 * linux-x86-low.c: Update.
4784 * proc-service.c: Update.
4785 * server.c: Update.
4786 * spu-low.c: Update.
4787 * thread-db.c: Update.
4788 * win32-low.c: Update.
4789
fd79271b
TT
47902018-07-03 Tom Tromey <tom@tromey.com>
4791
4792 * linux-low.c: Update.
4793 * lynx-low.c: Update.
4794 * nto-low.c: Update.
4795 * remote-utils.c: Update.
4796 * spu-low.c: Update.
4797 * thread-db.c: Update.
4798 * win32-low.c: Update.
4799
c0867626
SDJ
48002018-06-29 Joel Brobecker <brobecker@adacore.com>
4801
4802 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
4803 parameter in call to 'amd64_create_target_description'.
4804
2512d7ef
JK
48052018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4806
4807 * x86-tdesc.h: Remove executable permission flag.
4808
d0ac1c44
SM
48092018-06-19 Simon Marchi <simon.marchi@ericsson.com>
4810
4811 * configure.ac: Remove AC_PREREQ, add missing quoting.
4812 * configure: Re-generate.
4813 * config.in: Re-generate.
4814 * aclocal.m4: Re-generate.
4815
c4eb05ff
SM
48162018-06-18 Simon Marchi <simon.marchi@ericsson.com>
4817
4818 * tracepoint.h (current_traceframe): Remove declaration.
4819
02895270
AH
48202018-06-18 Alan Hayward <alan.hayward@arm.com>
4821
4822 * linux-aarch64-low.c (is_sve_tdesc): New function.
4823 (aarch64_sve_regs_copy_to_regcache): Likewise.
4824 (aarch64_sve_regs_copy_from_regcache): Likewise.
4825 (aarch64_regs_info): Add SVE checks.
4826 (initialize_low_arch): Initialize SVE.
4827
e9902bfc
AH
48282018-06-18 Alan Hayward <alan.hayward@arm.com>
4829
4830 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
4831
fefa175e
AH
48322018-06-11 Alan Hayward <alan.hayward@arm.com>
4833
4834 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
4835 (initialize_low_tracepoint): Likewise
4836 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
4837 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
4838 param.
4839 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
4840 checks.
4841 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
4842
b91ad3ff
AH
48432018-06-11 Alan Hayward <alan.hayward@arm.com>
4844
4845 * server.h (PBUFSIZ): Increase size
4846
f868386e
AH
48472018-06-11 Alan Hayward <alan.hayward@arm.com>
4848
4849 * regcache.c (regcache::raw_compare): New function.
4850 * regcache.h (regcache::raw_compare): New declaration.
4851
9c861883
AH
48522018-06-11 Alan Hayward <alan.hayward@arm.com>
4853
4854 * regcache.c (new_register_cache): Use new.
4855 (free_register_cache): Use delete.
4856 (register_data): Use const.
4857 (supply_register): Move body inside regcache.
4858 (regcache::raw_supply): New override function.
4859 (collect_register): Move body inside regcache.
4860 (regcache::raw_collect): New override function.
4861 (regcache::get_register_status): New override function.
4862 * regcache.h (struct regcache): Inherit from reg_buffer_common.
4863
40591844
TT
48642018-06-09 Tom Tromey <tom@tromey.com>
4865
4866 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
4867 declare queue.
4868 (event_queue): Use std::queue.
4869 (gdb_event_xfree): Remove.
4870 (initialize_event_loop, process_event, wait_for_event): Update.
4871
6341380d
SC
48722018-06-08 Stan Cox <scox@redhat.com>
4873
4874 * win32-low.c (win32_create_inferior): last_ptid and last_status
4875 moved to client_state.
4876
03349c93
PA
48772018-06-08 Pedro Alves <palves@redhat.com>
4878
4879 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
4880 common/common-exceptions.o, common/common-utils.o,
4881 common/errors.o, common/print-utils.o and utils.o.
4882 * gdbreplay.c: Include "common-defs.h" instead of the two
4883 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
4884 string.h or alloca.h.
4885 (perror_with_name): Delete.
4886 (remote_open): Use xstrdup instead of strdup.
4887 (main): Rename to ...
4888 (captured_main): ... this.
4889 (main): New.
4890
8dcc53b3
TT
48912018-06-08 Tom Tromey <tom@tromey.com>
4892
4893 * linux-low.c (linux_low_read_btrace): Update.
4894
c12a5089
SC
48952018-06-04 Stan Cox <scox@redhat.com>
4896
4897 * server.h (struct client_state): New.
4898 * server.c (cont_thread, general_thread, multi_process)
4899 (report_fork_events, report_vfork_events, report_exec_events)
4900 (report_thread_events, swbreak_feature, hwbreak_feature)
4901 (vCont_supported, disable_randomization, pass_signals)
4902 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
4903 Moved to client_state.
4904 * remote-utils.c (remote_debug, noack_mode)
4905 (transport_is_reliable): Moved to client_state.
4906 * tracepoint.c (current_traceframe): Moved to client_state.
4907
4908 Update all callers.
4909 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
4910 linux-low.c, remote-utils.h, target.c: Use client_state.
4911
122394f1
AH
49122018-05-31 Alan Hayward <alan.hayward@arm.com>
4913
4914 * configure.srv: Add new c/h file.
4915
95228a0d
AH
49162018-05-31 Alan Hayward <alan.hayward@arm.com>
4917
4918 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
4919 null VQ.
4920
d8dab6c3
MR
49212018-05-25 Maciej W. Rozycki <macro@mips.com>
4922
4923 * gdb.arch/mips-fpregset-core.exp: New test.
4924 * gdb.arch/mips-fpregset-core.c: New test source.
4925
81e25b7c
EK
49262018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
4927
4928 PR server/23198
4929 * hostio.c (require_int): Do not report overflow for integers
4930 between 0xfffffff and 0x7fffffff.
4931
7e947ad3
MR
49322018-05-22 Maciej W. Rozycki <macro@mips.com>
4933
4934 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
4935 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
4936 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
4937 functions.
4938 (the_low_target): Wire them.
4939
1d75a658
PFC
49402018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4941
4942 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
4943 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
4944 mode. Call collect_register_by_name with vscr using
4945 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
4946 (ppc_store_vrregset): Add and set vscr_offset variable as in
4947 ppc_fill_vrregset. Call supply_register_by_name with vscr using
4948 vscr_offset.
4949
d078308a
PFC
49502018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4951
4952 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
4953 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
4954 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
4955
7273b5fc
PFC
49562018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4957
4958 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
4959 (ppc_store_vsxregset): Likewise.
4960 (ppc_fill_vrregset): Likewise.
4961 (ppc_store_vrregset): Likewise.
4962 (ppc_fill_evrregset): Likewise.
4963 (ppc_store_evrregset): Likewise.
4964 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
4965 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
4966 needed.
4967
2e077f5e
PFC
49682018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4969
4970 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
4971 wordsize of the inferior. Call ppc_linux_target_wordsize.
4972
bd64614e
PFC
49732018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4974
4975 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
4976 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
4977 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
4978 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
4979 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
4980 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
4981 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
4982 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
4983 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
4984 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
4985 (tdesc_powerpc_e500l): Remove.
4986 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
4987 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
4988 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
4989 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
4990 linux-ppc-tdesc.h.
4991 (ppc_arch_setup): Remove target description matching code. Fill a
4992 ppc_linux_features struct and call ppc_linux_match_description
4993 with it.
4994
75d74cca
MR
49952018-05-22 Maciej W. Rozycki <macro@mips.com>
4996
4997 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
4998 width of the requested register exceeds the width of the
4999 `ptrace' data type.
5000 (mips_cannot_store_register): Likewise.
5001
e4439e43
MR
50022018-05-21 Maciej W. Rozycki <macro@mips.com>
5003
5004 * linux-mips-low.c (mips_fetch_register): New function. Update
5005 preceding comment.
5006 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5007 (the_low_target): Wire `mips_fetch_register'.
5008
55271bf9
JB
50092018-05-10 Joel Brobecker <brobecker@adacore.com>
5010
5011 * lynx-i386-low.c (LYNXOS_178): New macro.
5012 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5013 the layout on LynxOS-178.
5014 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5015 handle floating point registers that are not supported by
5016 LynxOS-178.
5017
1a34f210
TT
50182018-05-10 Tom Tromey <tom@tromey.com>
5019
5020 * configure: Rebuild.
5021
190852c8
JB
50222018-05-10 Joel Brobecker <brobecker@adacore.com>
5023
5024 PR server/23158:
5025 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5026 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5027 Use it to set the expedite_regs field in the given tdesc.
5028 * x86-tdesc.h: New file.
5029 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5030 Adjust following the addition of the new expedite_regs parameter
5031 to init_target_desc.
5032 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5033 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5034 (i386_linux_read_description, amd64_linux_read_description):
5035 Adjust following the addition of the new expedite_regs parameter
5036 to init_target_desc.
5037 * lynx-i386-low.c: #include "x86-tdesc.h".
5038 (lynx_i386_arch_setup): Adjust following the addition of the new
5039 expedite_regs parameter to init_target_desc.
5040 * nto-x86-low.c: #include "x86-tdesc.h".
5041 (nto_x86_arch_setup): Adjust following the addition of the new
5042 expedite_regs parameter to init_target_desc.
5043 * win32-i386-low.c: #include "x86-tdesc.h".
5044 (i386_arch_setup): Adjust following the addition of the new
5045 expedite_regs parameter to init_target_desc.
5046
7dbac825
JB
50472018-05-10 Joel Brobecker <brobecker@adacore.com>
5048
5049 PR server/23158:
5050 * win32-low.c (win32_create_inferior): Add call to my_wait
5051 setting last_status global.
5052
906994d9
JB
50532018-05-10 Joel Brobecker <brobecker@adacore.com>
5054
5055 PR server/23158:
5056 * win32-low.c (create_process): Only call gdb_tilde_expand if
5057 inferior_cwd is not NULL.
5058
8ee22052
AB
50592018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5060
5061 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5062 registers to the cache if their values have changed.
5063 (i387_xsave_to_cache): Provide default values for x87 control
5064 registers when these features are available, but disabled.
5065 * regcache.c (supply_register_by_name_zeroed): New function.
5066 * regcache.h (supply_register_by_name_zeroed): Declare new
5067 function.
5068
aff689d3
TT
50692018-05-07 Tom Tromey <tom@tromey.com>
5070
5071 * configure: Rebuild.
5072
85e26832
TT
50732018-05-04 Tom Tromey <tom@tromey.com>
5074
5075 * configure: Rebuild.
5076
a3b60e45
JK
50772018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5078 Pedro Alves <palves@redhat.com>
5079
5080 * linux-aarch64-low.c (aarch64_stopped_data_address):
5081 Likewise.
5082
632e107b
TT
50832018-04-27 Tom Tromey <tom@tromey.com>
5084
5085 * configure: Rebuild.
5086
458412c3
TT
50872018-04-23 Tom Tromey <tom@tromey.com>
5088
5089 * configure: Rebuild.
5090
f31c089e
SM
50912018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5092
5093 * Makefile.in (depcomp): Add "..".
5094 (all_deps_files): New and use it.
5095
b319b098
AH
50962018-04-18 Alan Hayward <alan.hayward@arm.com>
5097
5098 * configure.srv (aarch64*-*-linux*): Don't include xml.
5099 (i[34567]86-*-cygwin*): Likewise.
5100 (i[34567]86-*-linux*): Likewise.
5101 (i[34567]86-*-lynxos*): Likewise.
5102 (i[34567]86-*-mingw32ce*): Likewise.
5103 (i[34567]86-*-mingw*): Likewise.
5104 (i[34567]86-*-nto*): Likewise.
5105 (tic6x-*-uclinux): Likewise.
5106 (x86_64-*-linux*): Likewise.
5107 (x86_64-*-mingw*): Likewise.
5108 (x86_64-*-cygwin*): Likewise.
5109
3b74854b
AH
51102018-04-18 Alan Hayward <alan.hayward@arm.com>
5111
5112 * tdesc.c: Remove xml parameter.
5113
e98577a9
AH
51142018-04-18 Alan Hayward <alan.hayward@arm.com>
5115
5116 * server.c (get_features_xml): Remove cast.
5117 * tdesc.c (void target_desc::accept): Fill in function.
5118 (tdesc_get_features_xml): Remove old xml creation.
5119 (print_xml_feature::visit_pre): Add xml vistor.
5120 * tdesc.h (struct target_desc): Make xmltarget mutable.
5121 (tdesc_get_features_xml): Remove declaration.
5122
d278f585
AH
51232018-04-18 Alan Hayward <alan.hayward@arm.com>
5124
5125 * tdesc.c (tdesc_architecture_name): Add new function.
5126 (tdesc_osabi_name): Likewise.
5127 (tdesc_get_features_xml): Use new functions.
5128
eee8a18d
AH
51292018-04-18 Alan Hayward <alan.hayward@arm.com>
5130
5131 * tdesc.c (tdesc_create_flags): Remove.
5132 (tdesc_add_flag): Likewise.
5133 (tdesc_named_type): Likewise.
5134 (tdesc_create_union): Likewise.
5135 (tdesc_create_struct): Likewise.
5136 (tdesc_create_vector): Likewise.
5137 (tdesc_add_bitfield): Likewise.
5138 (tdesc_add_field): Likewise.
5139 (tdesc_set_struct_size): Likewise.
5140
82ec9bc7
AH
51412018-04-18 Alan Hayward <alan.hayward@arm.com>
5142
5143 * tdesc.c (~target_desc): Remove implictly deleted items.
5144 (init_target_desc): Iterate all features.
5145 (tdesc_get_features_xml): Use vector.
5146 (tdesc_create_feature): Create feature.
5147 * tdesc.h (tdesc_feature) Remove
5148 (target_desc): Add features.
5149
ea3e7d71
AH
51502018-04-18 Alan Hayward <alan.hayward@arm.com>
5151
5152 * Makefile.in: Add common/tdesc.c
5153 * tdesc.c (init_target_desc): init all reg_defs from register
5154 vector.
5155 (tdesc_create_reg): Create tdesc_reg.
5156 * tdesc.h (tdesc_feature): Add register vector.
5157
17d08cd4
SM
51582018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5159
5160 * tdesc.h (struct target_desc) <features>: Change type to
5161 std::vector<std::string>.
5162 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5163 changes.
5164 (tdesc_get_features_xml): Likewise.
5165 (tdesc_create_feature): Likewise.
5166
5cd3e386
AH
51672018-03-26 Alan Hayward <alan.hayward@arm.com>
5168
5169 * regcache.c (find_register_by_number): Return a ref.
5170 (find_regno): Use references.
5171 (register_size): Likewise.
5172 (register_data): Likewise.
5173 * tdesc.c (target_desc::~target_desc): Remove free calls.
5174 (target_desc::operator==): Use std::vector compare.
5175 (init_target_desc): Use reference.
5176 (tdesc_create_reg): Use reg constructors.
5177 * tdesc.h (struct target_desc): Replace pointer with object.
5178
dff7492c
AH
51792018-03-23 Alan Hayward <alan.hayward@arm.com>
5180
5181 * regcache.c (find_register_by_number): Make static.
5182 (find_regno): Use find_register_by_number
5183 * regcache.h (struct reg): Remove declaration.
5184
d80e5242
AH
51852018-03-23 Alan Hayward <alan.hayward@arm.com>
5186
5187 * tdesc.c (target_desc::~target_desc): Move to here.
5188 (target_desc::operator==): Likewise.
5189 * tdesc.h (target_desc::~target_desc): Move from here.
5190 (target_desc::operator==): Likewise.
5191
f69c5afb
AA
51922018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5193
5194 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5195
ce29f843
AA
51962018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5197
5198 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5199 S390_TDESC_GS.
5200 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5201 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5202 and init_registers_s390_gs_linux64.
5203
c49bd90b
AA
52042018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5205
5206 * linux-s390-low.c (s390_fill_gs): Remove function.
5207 (s390_fill_gsbc): Remove function.
5208 (s390_regsets): Set fill functions for the guarded storage regsets
5209 to NULL.
5210
7edb9bd3
AA
52112018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5212
5213 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5214 the word size. Add comment.
5215 (s390_get_wordsize): New function.
5216 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5217 pswm with it. Instead, use s390_get_wordsize to determine the
5218 word size first and derive the correct tdesc from that directly.
5219
39be3c7e
SM
52202018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5221
5222 * Makefile.in: Include silent-rules.mk.
5223 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5224 (COMPILE): Add ECHO_CXX.
5225 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5226 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5227 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5228 (version-generated.c): Add ECHO_GEN.
5229 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5230 (IPAGENT_COMPILE): Add ECHO_CXX.
5231 (%-generated.c): Add ECHO_REGDAT.
5232
3ae9ce5d
TT
52332018-03-14 Tom Tromey <tom@tromey.com>
5234
5235 PR cli/14977:
5236 * ax.c (ax_printf): Special case for NULL.
5237
e6a58aa8
SM
52382018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5239
5240 * linux-low.c (linux_qxfer_libraries_svr4): Use
5241 xml_escape_text_append.
5242
f6e8a41e
SM
52432018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5244
5245 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5246
b9671caf
SM
52472018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5248
5249 * server.c (handle_general_set): Remove unnecessary xstrdup.
5250
e80aaf61
SM
52512018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5252
5253 * server.c (parse_debug_format_options): Adjust to
5254 delim_string_to_char_ptr_vec changes.
5255 * thread-db.c (thread_db_load_search): Adjust to
5256 dirnames_to_char_ptr_vec changes.
5257
b1223e78
MM
52582018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5259
5260 * target.h (target_enable_btrace, target_disable_btrace)
5261 (target_read_btrace, target_read_btrace_conf): Turn macro into
5262 inline function. Throw error if target method is not defined.
5263 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5264 check for btrace target method. Be prepared to handle exceptions
5265 from btrace target methods.
5266
81561546
SDJ
52672018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5268
5269 * server.c (captured_main): Change order of error message printed
5270 when the current working directory cannot be found.
5271
25e3c82c
SDJ
52722018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5273
5274 * server.c: Include "filenames.h" and "pathstuff.h".
5275 (program_name): Delete variable.
5276 (program_path): New anonymous class.
5277 (get_exec_wrapper): Use "program_path" instead of
5278 "program_name".
5279 (handle_v_run): Likewise.
5280 (captured_main): Likewise.
5281 (process_serial_event): Likewise.
5282
b4987c95
SDJ
52832018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5284
5285 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5286 (OBJS): Add "pathstuff.o".
5287 * server.c (current_directory): New global variable.
5288 (captured_main): Initialize "current_directory".
5289
f46cd62a
AH
52902018-02-26 Alan Hayward <alan.hayward@arm.com>
5291
5292 * tdesc.c: Use common/tdesc.h.
5293 * tdesc.h: Likewise.
5294
a543c5ca
AH
52952018-02-20 Alan Hayward <alan.hayward@arm.com>
5296 Simon Marchi <simon.marchi@ericsson.com>
5297
5298 * Makefile.in: Switch order of make rules.
5299
b5884fa7
AH
53002018-02-19 Alan Hayward <alan.hayward@arm.com>
5301
5302 * Makefile.in: Add common directory in build.
5303 * configure.ac: Add common reference.
5304 * configure: Regenerate.
5305
de6242d3
MM
53062018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5307
5308 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5309 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5310 * spu-low.c (spu_target_ops): Likewise.
5311 * win32-low.c (win32_target_ops): Likewise.
5312 * server.c (supported_btrace_packets): Report packets unconditionally.
5313 * target.h (target_ops) <supports_btrace>: Remove.
5314 (target_supports_btrace): Remove.
5315
9ee23a85
MM
53162018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5317
5318 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5319 (handle_btrace_disable): Change return type to void. Use exceptions
5320 to report errors.
5321 (handle_btrace_general_set): Catch exception and copy message to
5322 return message.
5323
8ce47547
TT
53242018-02-08 Tom Tromey <tom@tromey.com>
5325
5326 * linux-low.c (install_software_single_step_breakpoints): Use
5327 make_scoped_restore.
5328 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5329 (do_restore_current_thread_cleanup): Remove.
5330 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5331 declare.
5332
45dd3607
TT
53332018-02-08 Tom Tromey <tom@tromey.com>
5334
5335 * mem-break.c (set_raw_breakpoint_at): Use
5336 gdb::unique_xmalloc_ptr.
5337
e671cd59
PA
53382018-01-30 Pedro Alves <palves@redhat.com>
5339
5340 PR gdb/13211
5341 * target.c (target_terminal::terminal_state): Rename to ...
5342 (target_terminal::m_terminal_state): ... this.
5343
a0aad537
JC
53442018-01-19 James Clarke <jrtc27@jrtc27.com>
5345
5346 * linux-low.c (handle_extended_wait): Surround call to
5347 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5348
4d9b86e1
SM
53492018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5350
5351 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5352 linux_ptrace_attach_fail_reason_string now returning an
5353 std::string.
5354 (linux_attach): Likewise.
5355 * thread-db.c (attach_thread): Likewise.
5356
f517c180
EA
53572018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5358
5359 PR gdb/21559
5360 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5361 checking for fs_base/gs_base fields in struct user_regs_struct.
5362 * configure: Regenerate.
5363
9a70f35c
YQ
53642018-01-16 Yao Qi <yao.qi@linaro.org>
5365
5366 PR gdb/18749
5367 * linux-low.c (fetch_register): Call supply_register instead of
5368 error.
5369
605fd3c6
YQ
53702018-01-08 Yao Qi <yao.qi@linaro.org>
5371 Simon Marchi <simon.marchi@ericsson.com>
5372
5373 * Makefile.in (OBS): Remove selftest.o.
5374 * configure.ac: Set srv_selftest_objs if $development is true.
5375 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5376 * configure: Re-generated.
5377 * server.c (captured_main): Wrap variable selftest_filter with
5378 GDB_SELF_TEST.
5379
2cc05030
SM
53802018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5381
5382 * server.c (parse_debug_format_options): Return std::string.
5383 (handle_monitor_command, captured_main): Adjust.
5384
e379cee6
PA
53852018-01-05 Pedro Alves <palves@redhat.com>
5386
5387 PR gdb/18653
5388 * server.c (captured_main): Pass quiet=false to
5389 save_original_signals_state.
5390
82e1e79a
JB
53912018-01-01 Joel Brobecker <brobecker@adacore.com>
5392
5393 * gdbreplay.c (gdbreplay_version): Update copyright year in
5394 version message.
5395 * server.c (gdbserver_version): Likewise.
5396
8e481c3b
TT
53972017-12-08 Tom Tromey <tom@tromey.com>
5398
5399 * ax.c (ax_printf): Update.
5400
a8806230
YQ
54012017-12-07 Yao Qi <yao.qi@linaro.org>
5402
5403 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5404 aarch64_linux_read_description.
5405 * linux-amd64-ipa.c (idx2mask): New array.
5406 (get_ipa_tdesc): Move idx2mask out.
5407 (initialize_low_tracepoint): Initialize target descriptions.
5408 * linux-i386-ipa.c (idx2mask): New array.
5409 (get_ipa_tdesc): Move idx2mask out.
5410 (initialize_low_tracepoint): Initialize target descriptions.
5411
d4a0e8b5
SM
54122017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5413
5414 * tdesc.c (struct tdesc_type): Change return type.
5415 (tdesc_add_flag): Change parameter type.
5416 (tdesc_add_bitfield): Likewise.
5417 (tdesc_add_field): Likewise.
5418 (tdesc_set_struct_size): Likewise.
5419
798a7429
SM
54202017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5421
5422 * regcache.c (registers_to_string): Remove unused variable.
5423
c0e15c9b
SM
54242017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5425
5426 * inferiors.c (for_each_inferior_with_data): Remove.
5427 * inferiors.h (for_each_inferior_with_data): Remove.
5428 * server.c (handle_qxfer_threads_worker): Change parameter type.
5429 (handle_qxfer_threads_proper): Use for_each_thread.
5430
f0045347
SM
54312017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5432
5433 * inferiors.c (for_each_inferior): Remove.
5434 (clear_inferiors): Use for_each_thread.
5435 * inferiors.h (for_each_inferior): Remove.
5436 * linux-low.c (linux_wait_for_event_filtered): Use
5437 for_each_thread.
5438 (linux_stabilize_threads): Likewise.
5439 * regcache.c (regcache_release): Likewise.
5440 * server.c (gdb_wants_all_threads_stopped): Likewise.
5441 (clear_pending_status_callback): Remove.
5442 (handle_status): Use for_each_thread.
5443 (captured_main): Likewise.
5444 * win32-low.c (child_init_thread_list): Likewise.
5445 (win32_clear_inferiors): Likewise.
5446 (fake_breakpoint_event): Likewise.
5447
9521758b
SM
54482017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5449
5450 * inferiors.h (find_inferior): Remove.
5451 * inferiors.c (find_inferior): Remove.
5452
8f86d7aa
SM
54532017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5454
5455 * linux-low.c (resume_status_pending_p): Update comment.
5456 (need_step_over_p): Update comment.
5457
e2b44075
SM
54582017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5459
5460 * linux-low.c (proceed_one_lwp): Return void, change parameter
5461 type.
5462 (unsuspend_and_proceed_one_lwp): Likewise.
5463 (proceed_all_lwps): Use for_each_thread.
5464 (unstop_all_lwps): Likewise.
5465
c80825ff
SM
54662017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5467
5468 * linux-low.c (linux_resume_one_thread): Return void, take
5469 parameter directly.
5470 (linux_resume): Use for_each_thread.
5471
df3e4dbe
SM
54722017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5473
5474 * linux-low.c (send_sigstop_callback): Return void, change
5475 parameter type. Rename to...
5476 (send_sigstop): ... this.
5477 (suspend_and_send_sigstop_callback): Return void, change parameter
5478 type. Rename to...
5479 (suspend_and_send_sigstop): ... this.
5480 (stop_all_lwps): Use for_each_thread.
5481
5a6b0a41
SM
54822017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5483
5484 * linux-low.c (lwp_running): Return bool, remove unused
5485 argument.
5486 (linux_stabilize_threads): Use find_thread.
5487
39a64da5
SM
54882017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5489
5490 * linux-low.c (select_singlestep_lwp_callback): Remove.
5491 (count_events_callback): Remove.
5492 (select_event_lwp_callback): Remove.
5493 (select_event_lwp): Use find_thread/for_each_thread.
5494
a1385b7b
SM
54952017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5496
5497 * linux-low.c (not_stopped_callback): Return bool, take filter
5498 argument directly.
5499 (linux_wait_for_event_filtered): Use find_thread.
5500 (linux_wait_1): Likewise.
5501
454296a2
SM
55022017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5503
5504 * linux-low.c (same_lwp): Remove.
5505 (find_lwp_pid): Use find_thread.
5506
6b2a85da
SM
55072017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5508
5509 * linux-low.c (delete_lwp_callback): Remove.
5510 (linux_mourn): Use for_each_thread.
5511
798a38e8
SM
55122017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5513
5514 * linux-low.c (linux_detach_lwp_callback): Return void, remove
5515 args parameter, don't check for pid.
5516 (linux_detach): Use for_each_thread.
5517
e4eb0dec
SM
55182017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5519
5520 * linux-low.c (struct counter): Remove.
5521 (second_thread_of_pid_p): Remove.
5522 (last_thread_of_process_p): Use find_thread.
5523
83e1b6c1
SM
55242017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5525
5526 * inferiors.c (find_inferior_in_random): Remove.
5527 * inferiors.h (find_inferior_in_random): Remove.
5528 * linux-low.c (status_pending_p_callback): Return bool, accept
5529 parameter ptid directly.
5530 (linux_wait_for_event_filtered): Use find_thread_in_random.
5531 (linux_wait_1): Likewise.
5532
8dc7b443
SM
55332017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5534
5535 * inferiors.c (find_inferior_id): Remove.
5536 (find_thread_ptid): Move implemention from find_inferior_id to
5537 here.
5538 * inferiors.h (find_inferior_id): Remove.
5539 * server.c (handle_status): Use find_thread_ptid.
5540 (process_serial_event): Likewise.
5541 * thread-db.c (find_one_thread): Likewise.
5542 (thread_db_thread_handle): Likewise.
5543 * win32-low.c (thread_rec): Likewise.
5544 (child_delete_thread): Likewise.
5545 (win32_thread_alive): Likewise.
5546 (get_child_debug_event): Likewise.
5547
da25033c
SM
55482017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5549
5550 * linux-mips-low.c (update_watch_registers_callback): Return
5551 void, remove pid_p parameter, don't check for pid.
5552 (mips_insert_point, mips_remove_point): Use for_each_thread.
5553
c91bb56b
SM
55542017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5555
5556 * lynx.low (lynx_delete_thread_callback): Remove.
5557 (lynx_mourn): Use for_each_thread.
5558
634a3254
SM
55592017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5560
5561 * regcache.c (regcache_invalidate_one): Remove.
5562 (regcache_invalidate_pid): use for_each_thread.
5563
41272101
TT
55642017-11-26 Tom Tromey <tom@tromey.com>
5565
5566 * linux-low.c (linux_create_inferior): Update.
5567
f5291a6f
UW
55682017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
5569
5570 * spu-low.c (spu_create_inferior): Fix typo in argument name.
5571
6654d750
AH
55722017-11-24 Alan Hayward <alan.hayward@arm.com>
5573
5574 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
5575 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5576 * linux-aarch64-tdesc-selftest.c: New file.
5577 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5578
55792017-11-24 Alan Hayward <alan.hayward@arm.com>
5580
5581 * configure.srv: Add new file.
5582 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5583 * linux-aarch64-tdesc-selftest.c: New file.
5584 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5585
49bdb7ee
AH
55862017-11-24 Alan Hayward <alan.hayward@arm.com>
5587
5588 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
5589 * linux-aarch64-low.c (initialize_low_arch): Remove init.
5590 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
5591
d6d7ce56
AH
55922017-11-24 Alan Hayward <alan.hayward@arm.com>
5593
5594 * configure.srv: Add new files.
5595 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
5596 aarch64_linux_read_description.
5597 * linux-aarch64-low.c (aarch64_linux_read_description):
5598 Merge with aarch64_arch_setup.
5599 (aarch64_arch_setup): Call aarch64_linux_read_description.
5600 * linux-aarch64-tdesc.c: New file.
5601 * linux-aarch64-tdesc.h: New file.
5602
506fe5f4
YQ
56032017-11-24 Yao Qi <yao.qi@linaro.org>
5604
5605 * configure.srv: Set $srv_regobj for tic6x-linux.
5606 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
5607 (tic6x_read_description): Move some code to tic6x_arch_setup.
5608 (tic6x_tdesc_test): New function.
5609 (initialize_low_arch): Call selftests::register_test.
5610
29f9a567
YQ
56112017-11-22 Yao Qi <yao.qi@linaro.org>
5612
5613 * remote-utils.c (prepare_resume_reply): Use memcpy.
5614
578290ec
SM
56152017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5616
5617 * linux-low.c (kill_one_lwp_callback): Return void, take
5618 argument directly, don't filter on pid.
5619 (linux_kill): Use for_each_thread.
5620
eca55aec
SM
56212017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5622
5623 * linux-low.c (need_step_over_p): Return bool, remove dummy
5624 argument.
5625 (linux_resume, proceed_all_lwps): Use find_thread.
5626
25c28b4d
SM
56272017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5628
5629 * linux-low.c (resume_status_pending_p): Return bool, remove
5630 flag_p argument.
5631 (linux_resume): Use find_thread.
5632
5fdda392
SM
56332017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5634
5635 * linux-low.c (struct thread_resume_array): Remove.
5636 (linux_set_resume_request): Return void, take arguments
5637 directly.
5638 (linux_resume): Use for_each_thread.
5639
fcb056a5
SM
56402017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5641
5642 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
5643 return bool, remove data argument.
5644 (linux_stabilize_threads): Use find_thread.
5645
139720c5
SM
56462017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5647
5648 * linux-low.c (unsuspend_one_lwp): Remove.
5649 (unsuspend_all_lwps): Use for_each_thread, inline code from
5650 unsuspend_one_lwp.
5651
6d1e5673
SM
56522017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5653
5654 * gdbthread.h (find_thread): Add overload with ptid_t filter.
5655 * linux-low.c (struct iterate_over_lwps_args): Remove.
5656 (iterate_over_lwps_filter): Remove.
5657 (iterate_over_lwps): Use find_thread.
5658
bbf550d5
SM
56592017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5660
5661 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
5662 (linux_handle_new_gdb_connection): Use for_each_thread, inline
5663 code from reset_lwp_ptrace_options_callback.
5664
00192f77
SM
56652017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5666
5667 * linux-arm-low.c (struct update_registers_data): Remove.
5668 (update_registers_callback): Return void, take arguments
5669 directly, don't check thread's pid.
5670 (arm_insert_point, arm_remove_point): Use for_each_thread.
5671
2bee2b6c
SM
56722017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5673
5674 * win32-low.c (continue_one_thread): Return void, take argument
5675 directly.
5676 (child_continue): Use for_each_thread.
5677
0b360f19
SM
56782017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5679
5680 * win32-i386-low.c (update_debug_registers_callback): Rename
5681 to ...
5682 (update_debug_registers): ... this, return void, remove pid_p arg.
5683 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
5684
f27866ba
SM
56852017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5686
5687 * inferiors.h (struct process_info): Add constructor, initialize
5688 fields..
5689 <syscalls_to_catch>: Change type to std::vector<int>.
5690 * inferiors.c (add_process): Allocate process_info with new.
5691 (remove_process): Free process_info with delete.
5692 * linux-low.c (handle_extended_wait): Adjust.
5693 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
5694 * server.c (handle_general_set): Adjust.
5695
e849ea89
PA
56962017-11-16 Pedro Alves <palves@redhat.com>
5697
5698 * remote-utils.c (remote_close): Block SIGIO signals instead of
5699 uninstalling the SIGIO handler.
5700
1d0aa65c
AH
57012017-11-16 Alan Hayward <alan.hayward@arm.com>
5702
5703 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
5704
3491a34c
YQ
57052017-11-16 Yao Qi <yao.qi@linaro.org>
5706
5707 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
5708 (tic6x_store_gregset): Likewise.
5709 (tic6x_usrregs_info): Move it up.
5710
a602f924
AH
57112017-11-15 Alan Hayward <alan.hayward@arm.com>
5712
5713 * Makefile.in: Update arch rules.
5714 * configure.srv: Explicitly mark arch/ files.
5715
5616b6c3
AS
57162017-11-13 Andreas Schwab <schwab@suse.de>
5717
5718 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
5719 function.
5720 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5721
d1928160
PA
57222017-11-06 Pedro Alves <palves@redhat.com>
5723
5724 * config.in, configure: Regenerate.
5725
bac608e7
SM
57262017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5727
5728 * target.c (struct thread_search): Remove.
5729 (thread_search_callback): Remove.
5730 (prepare_to_access_memory): Use for_each_thread instead of
5731 find_inferior. Inline code from thread_search_callback.
5732
eaddb425
SM
57332017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5734
5735 * server.c (struct visit_actioned_threads_data): Remove.
5736 (visit_actioned_threads): Change prototype to take arguments
5737 directly.
5738 (resume): Use find_thread instead of find_inferior.
5739
99078d34
SM
57402017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5741
5742 * server.c (queue_stop_reply_callback): Change prototype, return
5743 void.
5744 (find_status_pending_thread_callback): Remove.
5745 (handle_status): Replace find_inferior with find_thread and
5746 for_each_thread.
5747
cc628f3d
AH
57482017-10-25 Alan Hayward <alan.hayward@arm.com>
5749
5750 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
5751 with REGNO.
5752 (aarch64_store_gregset): Likewise.
5753 (aarch64_fill_fpregset): Likewise.
5754 (aarch64_store_fpregset): Likewise.
5755
4d3bb80e
SM
57562017-10-21 Simon Marchi <simon.marchi@ericsson.com>
5757
5758 * gdbthread.h (find_thread, for_each_thread): New functions.
5759 * inferiors.c (thread_of_pid): Remove.
5760 (find_any_thread_of_pid): Use find_thread.
5761 * linux-low.c (num_lwps): Use for_each_thread.
5762
7a7cdfa0
YQ
57632017-10-17 Yao Qi <yao.qi@linaro.org>
5764
5765 * Makefile.in: Remove one rule.
5766 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
5767
e675d170
YQ
57682017-10-17 Yao Qi <yao.qi@linaro.org>
5769
5770 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
5771 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
5772
7eb4e0f9
YQ
57732017-10-17 Yao Qi <yao.qi@linaro.org>
5774
5775 * configure.srv: Rename arm.o with arch/arm.o.
5776
60d6cfc9
YQ
57772017-10-17 Yao Qi <yao.qi@linaro.org>
5778
5779 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
5780 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
5781 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
5782 (arch-i386.o, arch-amd64.o): Remove rules.
5783 (arch/%.o): New rule.
5784 Update POSTCOMPILE and COMPILE.pre.
5785 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5786 * configure: Re-generated.
5787 * configure.srv: Replace arch-i386.o with arch/i386.o.
5788 Replace arch-amd64.o with arch/amd64.o.
5789
5bfda255
YQ
57902017-10-16 Yao Qi <yao.qi@linaro.org>
5791
5792 * configure: Regenerated.
5793
9c80ecd6
SM
57942017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5795
5796 * inferiors.h: (struct inferior_list): Remove.
5797 (struct inferior_list_entry); Remove.
5798 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
5799 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
5800 get_first_inferior): Remove.
5801 (for_each_inferior, for_each_inferior_with_data, find_inferior,
5802 find_inferior_id, find_inferior_in_random): Change signature.
5803 * inferiors.c (all_threads): Change type to
5804 std::list<thread_info *>.
5805 (get_thread): Remove macro.
5806 (find_inferior, find_inferior_id): Change signature, implement
5807 using find_thread.
5808 (find_inferior_in_random): Change signature, implement using
5809 find_thread_in_random.
5810 (for_each_inferior, for_each_inferior_with_data): Change
5811 signature, implement using for_each_thread.
5812 (add_inferior_to_list, remove_inferior): Remove.
5813 (add_thread, get_first_thread, thread_of_pid,
5814 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
5815 (get_first_inferior, one_inferior_p, clear_inferior_list):
5816 Remove.
5817 (clear_inferiors, get_thread_process): Update.
5818 * gdbthread.h: Include <list>.
5819 (struct thread_info) <entry>: Remove field.
5820 <id>: New field.
5821 (all_threads): Change type to std::list<thread_info *>.
5822 (get_first_inferior): Add doc.
5823 (find_thread, for_each_thread, find_thread_in_random): New
5824 functions.
5825 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
5826 * linux-arm-low.c (update_registers_callback): Update.
5827 * linux-low.c (second_thread_of_pid_p): Update.
5828 (kill_one_lwp_callback, linux_detach_lwp_callback,
5829 delete_lwp_callback, status_pending_p_callback, same_lwp,
5830 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
5831 iterate_over_lwps, not_stopped_callback,
5832 resume_stopped_resumed_lwps, count_events_callback,
5833 select_singlestep_lwp_callback, select_event_lwp_callback,
5834 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
5835 suspend_and_send_sigstop_callback, wait_for_sigstop,
5836 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
5837 lwp_running, linux_set_resume_request, resume_status_pending_p,
5838 need_step_over_p, start_step_over, linux_resume_one_thread,
5839 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
5840 reset_lwp_ptrace_options_callback): Update.
5841 * linux-mips-low.c (update_watch_registers_callback): Update.
5842 * regcache.c (regcache_invalidate_one, regcache_invalidate):
5843 Update.
5844 (free_register_cache_thread_one): Remove.
5845 (regcache_release): Update.
5846 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
5847 handle_qxfer_threads_worker): Update.
5848 (handle_query): Update, use list iterator.
5849 (visit_actioned_threads, handle_pending_status,
5850 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
5851 clear_pending_status_callback, set_pending_status_callback,
5852 find_status_pending_thread_callback, handle_status,
5853 process_serial_event): Update.
5854 * target.c (thread_search_callback): Update.
5855 * thread-db.c (thread_db_get_tls_address): Update.
5856 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
5857 Update.
5858 * win32-i386-low.c (update_debug_registers_callback): Update.
5859 * win32-low.c (delete_thread_info, child_delete_thread,
5860 continue_one_thread, suspend_one_thread,
5861 get_child_debug_event): Adjust.
5862
9179355e
SM
58632017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5864
5865 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
5866 * inferiors.h: Include <list>.
5867 (struct process_info) <entry>: Remove field.
5868 <pid>: New field.
5869 (pid_of): Change macro to function.
5870 (ptid_of, lwpid_of): Remove macro.
5871 (all_processes): Change type to std::list<process_info *>.
5872 (ALL_PROCESSES): Remove macro.
5873 (for_each_process, find_process): New function.
5874 * inferiors.c (all_processes): Change type to
5875 std::list<process_info *>.
5876 (find_thread_process): Adjust.
5877 (add_process): Likewise.
5878 (remove_process): Likewise.
5879 (find_process_pid): Likewise.
5880 (get_first_process): Likewise.
5881 (started_inferior_callback): Remove.
5882 (have_started_inferiors_p): Adjust.
5883 (attached_inferior_callback): Remove.
5884 (have_attached_inferiors_p): Adjust.
5885 * linux-low.c (check_zombie_leaders): Likewise.
5886 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
5887 (x86_linux_update_xmltarget): Adjust.
5888 * server.c (handle_query): Likewise.
5889 (gdb_reattached_process): Remove.
5890 (handle_status): Adjust.
5891 (kill_inferior_callback): Likewise.
5892 (detach_or_kill_inferior): Remove.
5893 (print_started_pid): Likewise.
5894 (print_attached_pid): Likewise.
5895 (detach_or_kill_for_exit): Update.
5896 (process_serial_event): Likewise.
5897 * linux-arm-low.c (arm_new_fork): Likewise.
5898
c9cb8905
SM
58992017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5900
5901 * dll.h: Include <list>.
5902 (struct dll_info): Add constructor.
5903 <entry>: Remove field.
5904 (all_dlls): Change type to std::list<dll_info>.
5905 * dll.c: Include <algorithm>.
5906 (get_dll): Remove macro.
5907 (all_dlls): Change type to std::list<dll_info *>.
5908 (free_one_dll): Remove.
5909 (match_dll): Likewise.
5910 (loaded_dll): Adjust.
5911 (unloaded_dll): Adjust to all_dlls type change, use
5912 std::find_if. Inline code from match_dll.
5913 (clear_dlls): Adjust to all_dlls type change.
5914 * server.c (emit_dll_description): Remove.
5915 (handle_qxfer_libraries): Adjust to all_dlls type change,
5916 integrate emit_dll_description's functionality.
5917
04ec7890
SM
59182017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5919
5920 * linux-low.h (struct linux_target_ops) <delete_process>: New
5921 field.
5922 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
5923 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
5924 (struct linux_target_ops): Add delete_process callback.
5925 * linux-arm-low.c (arm_delete_process): New.
5926 (struct linux_target_ops): Add delete_process callback.
5927 * linux-bfin-low.c (struct linux_target_ops): Likewise.
5928 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
5929 * linux-m32r-low.c (struct linux_target_ops): Likewise.
5930 * linux-mips-low.c (mips_linux_delete_process): New.
5931 (struct linux_target_ops): Add delete_process callback.
5932 * linux-ppc-low.c (struct linux_target_ops): Likewise.
5933 * linux-s390-low.c (struct linux_target_ops): Likewise.
5934 * linux-sh-low.c (struct linux_target_ops): Likewise.
5935 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
5936 * linux-tile-low.c (struct linux_target_ops): Likewise.
5937 * linux-x86-low.c (x86_linux_delete_process): New.
5938 (struct linux_target_ops): Add delete_process callback.
5939 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
5940
466eecee
SM
59412017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5942
5943 * linux-aarch64-low.c (the_low_target): Add thread delete
5944 callback.
5945 * linux-arm-low.c (arm_delete_thread): New function.
5946 (the_low_target): Add thread delete callback.
5947 * linux-bfin-low.c (the_low_target): Likewise.
5948 * linux-crisv32-low.c (the_low_target): Likewise.
5949 * linux-low.c (delete_lwp): Invoke delete_thread callback if
5950 set.
5951 * linux-low.h (struct linux_target_ops) <delete_thread>: New
5952 field.
5953 * linux-m32r-low.c (the_low_target): Add thread delete callback.
5954 * linux-mips-low.c (mips_linux_delete_thread): New function.
5955 (the_low_target): Add thread delete callback.
5956 * linux-ppc-low.c (the_low_target): Likewise.
5957 * linux-s390-low.c (the_low_target): Likewise.
5958 * linux-sh-low.c (the_low_target): Likewise.
5959 * linux-tic6x-low.c (the_low_target): Likewise.
5960 * linux-tile-low.c (the_low_target): Likewise.
5961 * linux-x86-low.c (the_low_target): Likewise.
5962 * linux-xtensa-low.c (the_low_target): Likewise.
5963
b79f7801
YZ
59642017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
5965
5966 * win32-low.c: Include "common-inferior.h".
5967
bc3b087d
SDJ
59682017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5969
5970 * inferiors.c (set_inferior_cwd): New function.
5971 * server.c (handle_general_set): Handle QSetWorkingDir packet.
5972 (handle_query): Inform that QSetWorkingDir is supported.
5973 * win32-low.c (create_process): Pass the inferior's cwd to
5974 CreateProcess.
5975
d092c5a2
SDJ
59762017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5977
5978 * inferiors.c (current_inferior_cwd): New global variable.
5979 (get_inferior_cwd): New function.
5980 * inferiors.h (struct process_info) <cwd>: New field.
5981
7da0a886
SDJ
59822017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5983
5984 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
5985 (OBS): Add gdb_tilde_expand.o.
5986
289a6840
SM
59872017-10-02 Simon Marchi <simon.marchi@ericsson.com>
5988
5989 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
5990 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5991
256642e8
PA
59922017-09-29 Pedro Alves <palves@redhat.com>
5993
5994 * ax.c (gdb_parse_agent_expr): Constify.
5995 * ax.h (gdb_parse_agent_expr): Constify.
5996 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
5997 Constify.
5998 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
5999 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6000 * remote-utils.h (read_ptid): Constify.
6001 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6002 (process_point_options, process_serial_event): Constify.
6003 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6004 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6005 (cmd_qtbuffer): Constify.
6006
5b9ca4d4
PA
60072017-09-29 Pedro Alves <palves@redhat.com>
6008
6009 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6010 fails.
6011
94c207e0
PA
60122017-09-29 Pedro Alves <palves@redhat.com>
6013
6014 * linux-low.c (handle_extended_wait): Pass parent thread instead
6015 of process to thread_db_notice_clone.
6016 * linux-low.h (thread_db_notice_clone): Replace parent process
6017 parameter with parent thread parameter.
6018 * thread-db.c (find_one_thread): Add comment.
6019 (thread_db_notice_clone): Replace parent process parameter with
6020 parent thread parameter. Temporarily switch to the parent thread.
6021
75352e28
SDJ
60222017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6023
6024 * gdbthread.h: Include "common-gdbthread.h".
6025 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6026 "if" when validating the ptid.
6027 * remote-utils.c: Include "gdbthread.h".
6028 (prepare_resume_reply): Use "switch_to_thread".
6029 * target.c (done_accessing_memory): Likewise.
6030
ad339634
AA
60312017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6032
6033 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6034 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6035 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6036 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6037 s390x-gs-linux64-ipa.o to ipa_obj.
6038 * linux-s390-low.c (HWCAP_S390_GS): New define.
6039 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6040 New functions.
6041 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6042 (s390_arch_setup): Check for guarded-storage support and choose
6043 appropriate tdesc.
6044 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6045 init_registers_s390x_gs_linux64.
6046 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6047 enum value.
6048 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6049 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6050
cc4d742f
SM
60512017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6052
6053 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6054
f6327dcb
KB
60552017-09-21 Kevin Buettner <kevinb@redhat.com>
6056
6057 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6058 (thread_db_thread_handle): Declare.
6059 * linux-low.c (linux_target_ops): Initialize thread_handle.
6060 * server.c (handle_qxfer_threads_worker): Add support for
6061 "handle" attribute.
6062 * target.h (struct target_ops): Add new function pointer,
6063 thread_handle.
6064 (target_thread_handle): Define.
6065 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6066 field in lwp.
6067 (thread_db_thread_handle): New function.
6068
86299109
KB
60692017-09-21 Kevin Buettner <kevinb@redhat.com>
6070
6071 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6072 * linux-low.h (thread_db_notice_clone): Declare.
6073 * thread-db.c (thread_db_notice_clone): New function.
6074
f557a88a
PA
60752017-09-21 Pedro Alves <palves@redhat.com>
6076
6077 * server.c (gdb_read_memory, handle_status, process_serial_event)
6078 (handle_serial_event, handle_target_event): Adjust to
6079 set_desired_thread prototype change.
6080 * target.c (set_desired_thread): Remove 'use_general' parameter
6081 and adjust.
6082 * target.h (set_desired_thread): Remove 'use_general' parameter.
6083
223ffa71
TT
60842017-09-20 Tom Tromey <tom@tromey.com>
6085
6086 * target.c (target_terminal::terminal_state): Define.
6087 (target_terminal::init): Rename from target_terminal_init.
6088 (target_terminal::inferior): Rename from
6089 target_terminal_inferior.
6090 (target_terminal::ours): Rename from target_terminal_ours.
6091 (target_terminal::ours_for_output, target_terminal::info): New.
6092
04fd3ba9
SM
60932017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6094
6095 * server.c (accumulate_file_name_length): Remove.
6096 (emit_dll_description): Adjust to std::string change.
6097 (handle_qxfer_libraries): Use std::string to hold document.
6098
5e187554
SM
60992017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6100
6101 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6102 return type of xml_escape_text.
6103 * server.c (emit_dll_description): Likewise.
6104
1526853e
SM
61052017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6106
6107 * server.c (captured_main): Accept argument for --selftest.
6108 Update run_tests call.
6109 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6110 when registering selftests.
6111
c4dfafab
SDJ
61122017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6113
6114 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6115 instead of "VEC" for "target_desc.reg_defs".
6116 (regcache_cpy): Likewise.
6117 (registers_to_string): Likewise.
6118 (registers_from_string): Likewise.
6119 (find_regno): Likewise.
6120 (supply_regblock): Likewise.
6121 (regcache_raw_read_unsigned): Likewise.
6122 * tdesc.c (init_target_desc): Likewise.
6123 (tdesc_create_reg): Likewise.
6124 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6125 (struct target_desc) <reg_defs>: Convert to "std::vector".
6126 (target_desc): Do not initialize "reg_defs".
6127 (~target_desc): Update code to use "std::vector" instead of "VEC"
6128 for "target_desc.reg_defs".
6129 (operator==): Likewise.
6130
124aceb4
SM
61312017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6132
6133 * inferiors.h (thread_to_gdb_id): Remove.
6134 * inferiors.c (thread_to_gdb_id): Remove.
6135 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6136 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6137 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6138 Likewise.
6139 * nto-low.c (nto_fetch_registers, nto_store_registers,
6140 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6141
96cde54f
SM
61422017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6143
6144 * inferiors.h (gdb_id_to_thread_id): Remove.
6145 * inferiors.c (gdb_id_to_thread_id): Remove.
6146 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6147 removal. Move pid declaration closer to where it's used.
6148
e8ca139e
SM
61492017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6150
6151 * server.c (handle_detach): New function.
6152 (process_serial_event): Move code out, call handle_detach.
6153
f8a4e119
SM
61542017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6155
6156 * server.c (require_running): Rename to ...
6157 (require_running_or_return): ... this ...
6158 (require_running_or_break): ... and this.
6159 (handle_query, process_serial_event): Adjust.
6160
0eb0a407
SM
61612017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6162
6163 * linux-low.c (linux_set_resume_request): Remove unused
6164 variables.
6165
785922a5
SM
61662017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6167
6168 * server.c (first_thread_of): Remove.
6169 (process_serial_event): Replace usage of first_thread_of with
6170 find_any_thread_of_pid.
6171 * tracepoint.c (same_process_p): Remove.
6172 (gdb_agent_about_to_close): Replace usage of same_process_p with
6173 find_any_thread_of_pid.
6174 * linux-x86-low.c (same_process_callback): Remove.
6175 (x86_arch_setup_process_callback): Replace usage of
6176 same_process_callback with find_any_thread_of_pid.
6177 * thread-db.c (any_thread_of): Remove.
6178 (switch_to_process): Replace usage of any_thread_of with
6179 find_any_thread_of_pid.
6180 * inferiors.c (thread_pid_matches_callback): Remove.
6181 (find_thread_process): Adjust to use find_any_thread_of_pid.
6182
a059f00c
SDJ
61832017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6184
6185 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6186 with "!VEC_empty".
a059f00c 6187
cc397f3a
SDJ
61882017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6189
6190 * linux-low.c (handle_extended_wait): Use
6191 "allocate_target_description" instead of "XNEW".
6192 * linux-x86-low.c (initialize_low_arch): Likewise.
6193
22916b07
YQ
61942017-09-05 Yao Qi <yao.qi@linaro.org>
6195
6196 * configure.srv (srv_i386_regobj): Remove.
6197 (srv_amd64_regobj): Remove.
6198 (srv_regobj): Set it to "" for x86 non-linux targets.
6199 * linux-x86-tdesc.c (i386_linux_read_description):
6200 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6201 (init_registers_i386): Remove the declaration.
6202 (tdesc_i386): Remove the declaration.
6203 (lynx_i386_arch_setup): Call i386_create_target_description.
6204 * nto-x86-low.c: Likewise.
6205 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6206 [!__x86_64__]: include arch/i386.h.
6207 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6208
38602d55
YQ
62092017-09-05 Yao Qi <yao.qi@linaro.org>
6210
6211 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6212 i386/amd64-XXX-linux from it.
6213
44b886ff
YQ
62142017-09-05 Yao Qi <yao.qi@linaro.org>
6215
6216 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6217 false.
6218 (ipa_amd64_linux_regobj): Remove.
6219 (ipa_x32_linux_regobj): Remove.
6220
b4570e4b
YQ
62212017-09-05 Yao Qi <yao.qi@linaro.org>
6222
6223 * Makefile.in (arch-amd64.o): New rule.
6224 * configure.srv: Append arch-amd64.o.
6225 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6226 (get_ipa_tdesc): Call amd64_linux_read_description.
6227 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6228 and init_registers_amd64_XXX.
6229 * linux-x86-low.c (x86_linux_read_description): Call
6230 amd64_linux_read_description.
6231 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6232 (initialize_low_arch): Don't call init_registers_x32_XXX and
6233 init_registers_amd64_XXX.
6234 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6235 and tdesc_amd64_XXX.
6236 [__x86_64__] (amd64_tdesc_test): New function.
6237 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6238 and init_registers_amd64_XXX.
6239 * linux-x86-tdesc.c: Include arch/amd64.h.
6240 (xcr0_to_tdesc_idx): New function.
6241 (i386_linux_read_description): New function.
6242 (amd64_get_ipa_tdesc_idx): New function.
6243 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6244 (amd64_get_ipa_tdesc): Declare.
6245
d1f28ea2
YQ
62462017-09-05 Yao Qi <yao.qi@linaro.org>
6247
6248 * configure.srv (srv_i386_linux_xmlfiles): Remove
6249 i386/i386-XXX-linux.xml from it.
6250
25a93583
YQ
62512017-09-05 Yao Qi <yao.qi@linaro.org>
6252
6253 * configure.srv: Set srv_i386_linux_regobj empty if $development
6254 is false.
6255 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6256 initialize_low_tdesc.
6257 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6258 with #if initialize_low_tdesc.
6259 * linux-x86-tdesc-selftest.c: New file.
6260 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6261
5f035c07
YQ
62622017-09-05 Yao Qi <yao.qi@linaro.org>
6263
6264 * Makefile.in (arch-i386.o): New rule.
6265 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6266 (x86_64-*-linux*): Likewise.
6267 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6268 include arch/i386.h.
6269 (i386_linux_read_description): Remove code and call
6270 i386_create_target_description.
6271 * tdesc.c (allocate_target_description): New function.
6272 * tdesc.h (set_tdesc_architecture): Remove declaration.
6273 (set_tdesc_osabi): Likewise.
6274
0abe8a89
YQ
62752017-09-05 Yao Qi <yao.qi@linaro.org>
6276
6277 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6278 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6279 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6280 .xmltarget.
6281 * server.c (get_features_xml): Call tdesc_get_features_xml.
6282 * tdesc.c (set_tdesc_architecture): New function.
6283 (set_tdesc_osabi): New function.
6284 (tdesc_get_features_xml): New function.
6285 (tdesc_create_feature): Add an argument.
6286 * tdesc.h (struct target_desc) <features>: New field.
6287 <arch, osabi>: New field.
6288 (~target_desc): xfree features, arch, and osabi.
6289 (target_desc::oerator==): Don't compare .xmltarget.
6290 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6291 (set_tdesc_osabi): Likewise.
6292 (tdesc_get_features_xml): Likewise.
6293
0a188386
YQ
62942017-09-05 Yao Qi <yao.qi@linaro.org>
6295
6296 * linux-x86-tdesc.c: Include selftest.h.
6297 (i386_tdesc_test): New function.
6298 (initialize_low_tdesc): Call selftests::register_test.
6299 * tdesc.h: Include regdef.h.
6300 (target_desc): Override operator == and !=.
6301
f49ff000
YQ
63022017-09-05 Yao Qi <yao.qi@linaro.org>
6303
6304 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6305 (ipa_obj): Likewise.
6306 * linux-i386-ipa.c: Include common/x86-xstate.h
6307 (get_ipa_tdesc): Call i386_linux_read_description.
6308 (initialize_low_tracepoint): Don't call init_registers_XXX
6309 functions, call initialize_low_tdesc instead.
6310 * linux-x86-low.c (x86_linux_read_description): Call
6311 i386_linux_read_description.
6312 (initialize_low_arch): Don't call init_registers_i386_XXX
6313 functions, call initialize_low_tdesc.
6314 * linux-x86-tdesc.c: New file.
6315 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6316 (i386_get_ipa_tdesc_idx): Declare.
6317 (i386_get_ipa_tdesc): Declare.
6318 (initialize_low_tdesc): Declare.
6319
2b68ef2f
YQ
63202017-09-05 Yao Qi <yao.qi@linaro.org>
6321
6322 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6323 instead of 0.
6324
f7000548
YQ
63252017-09-05 Yao Qi <yao.qi@linaro.org>
6326
6327 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6328 * regcache.c (get_thread_regcache): Use VEC_length.
6329 (init_register_cache): Likewise.
6330 (regcache_cpy): Likewise.
6331 (registers_to_string): Iterate reg_defs via VEC_iterate.
6332 (find_regno): Likewise.
6333 (find_register_by_number): Use VEC_index.
6334 (register_size): Call find_register_by_number.
6335 (register_data): Call find_register_by_number.
6336 (supply_regblock): Use VEC_length.
6337 (regcache_raw_read_unsigned): Likewise.
6338 * tdesc.c (init_target_desc): Iterate reg_defs via
6339 VEC_iterate.
6340 (default_description): Update initializer.
6341 (copy_target_description): Don't update field num_registers.
6342 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6343 <num_registers>: Remove.
6344
50a421ac
SM
63452017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6346
6347 * Makefile.in (.SECONDARY): Define target.
6348
23fdd69e
SM
63492017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6350
6351 * linux-low.c (linux_wait_1): Adjust.
6352 * server.c (queue_stop_reply_callback): Adjust.
6353
0a2dde4a
SDJ
63542017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6355
6356 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6357 QEnvironmentUnset and QEnvironmentReset packets.
6358 (handle_query): Inform remote that QEnvironmentHexEncoded,
6359 QEnvironmentUnset and QEnvironmentReset are supported.
6360
6afd337d
SM
63612017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6362
6363 * inferiors.h (inferior_target_data): Rename to ...
6364 (thread_target_data): ... this.
6365 (inferior_regcache_data): Rename to ...
6366 (thread_regcache_data): ... this.
6367 (set_inferior_regcache_data): Rename to ...
6368 (set_thread_regcache_data): ... this.
6369 * inferiors.c (inferior_target_data): Rename to ...
6370 (thread_target_data): ... this.
6371 (inferior_regcache_data): Rename to ...
6372 (thread_regcache_data): ... this.
6373 (set_inferior_regcache_data): Rename to ...
6374 (set_thread_regcache_data): ... this.
6375 (free_one_thread): Update.
6376 * linux-low.h (get_thread_lwp): Update.
6377 * regcache.c (get_thread_regcache): Update.
6378 (regcache_invalidate_thread): Update.
6379 (free_register_cache_thread): Update.
6380 * win32-i386-low.c (update_debug_registers_callback): Update.
6381 (win32_get_current_dr): Update.
6382 * win32-low.c (thread_rec): Update.
6383 (delete_thread_info): Update.
6384 (continue_one_thread): Update.
6385 (suspend_one_thread): Update.
6386
a160cc46
SM
63872017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6388
6389 * inferiors.c (set_inferior_target_data): Remove.
6390 * inferiors.h (set_inferior_target_data): Remove.
6391
6d580b63
YQ
63922017-08-18 Yao Qi <yao.qi@linaro.org>
6393
6394 * Makefile.in (OBS): Add selftest.o.
6395 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6396 * configure, config.in: Re-generated.
6397 * server.c: Include common/sefltest.h.
6398 (captured_main): Handle option --selftest.
6399
f5a29eb0
YQ
64002017-08-09 Yao Qi <yao.qi@linaro.org>
6401
6402 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6403 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6404 i386-avx-mpx.o and i386-mmx.o.
6405 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6406 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6407 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6408 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6409 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6410 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6411 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6412 i386/amd64-avx-mpx.xml.
6413
57757c2f
YQ
64142017-08-09 Yao Qi <yao.qi@linaro.org>
6415
6416 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6417 and x32-avx-avx512.o.
6418 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6419 i386/x32-avx-avx512.xml.
6420
229d26fc
SM
64212017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6422
6423 * tracepoint.h (enum class fast_tpoint_collect_result): New
6424 enumeration.
6425 (fast_tracepoint_collecting): Change return type to
6426 fast_tpoint_collect_result.
6427 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6428 * linux-low.h: Include tracepoint.h.
6429 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6430 fast_tpoint_collect_result.
6431 * linux-low.c (handle_tracepoints): Adjust.
6432 (linux_fast_tracepoint_collecting): Change return type to
6433 fast_tpoint_collect_result.
6434 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6435 linux_wait_1, stuck_in_jump_pad_callback,
6436 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6437 proceed_one_lwp): Adjust to type change.
6438
2e1e43e1
YQ
64392017-07-10 Yao Qi <yao.qi@linaro.org>
6440
6441 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6442
adc764e7
YQ
64432017-06-29 Yao Qi <yao.qi@linaro.org>
6444
6445 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6446 Remove.
6447 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6448
a206891a
SM
64492017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6450
6451 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6452
9a6c7d9c
SDJ
64532017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6454
6455 * linux-low.c (linux_create_inferior): Adjust code to access the
6456 environment information via 'gdb_environ' class.
6457 * lynx-low.c (lynx_create_inferior): Likewise.
6458 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6459 (get_environ): Return a pointer to 'our_environ'.
6460 (captured_main): Initialize 'our_environ'.
6461 * server.h (get_environ): Adjust prototype.
6462 * spu-low.c (spu_create_inferior): Adjust code to access the
6463 environment information via 'gdb_environ' class.
6464
ae3e2ccf
SM
64652017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6466
6467 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6468 usage of "register" keyword.
6469
3e019bdc
SM
64702017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6471
6472 * configure: Re-generate.
6473
8465943a
SM
64742017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6475
6476 * configure: Re-generate.
6477
cf0dd6f0
SM
64782017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6479
6480 * Makefile.in (COMPILE.pre): Add "-x c++".
6481
9845682b
SDJ
64822017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6483
6484 * fork-child.c: Conditionally include <signal.h>.
6485
aefd8b33
SDJ
64862017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6487
6488 * server.c (handle_general_set): Handle new packet
6489 "QStartupWithShell".
6490 (handle_query): Add "QStartupWithShell" to the list of supported
6491 packets.
6492 (gdbserver_usage): Add help text explaining the
6493 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6494 options.
6495 (captured_main): Recognize and act upon the presence of the new
6496 CLI options.
6497
2090129c
SDJ
64982017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6499 Pedro Alves <palves@redhat.com>
6500
6501 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
6502 * configure: Regenerate.
6503 * configure.srv (srv_linux_obj): Add "fork-child.o" and
6504 "fork-inferior.o".
6505 (i[34567]86-*-lynxos*): Likewise.
6506 (spu*-*-*): Likewise.
6507 * fork-child.c: New file.
6508 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
6509 and "environ.h".
6510 (linux_ptrace_fun): New function.
6511 (linux_create_inferior): Adjust function prototype to reflect
6512 change on "target.h". Adjust function code to use
6513 "fork_inferior".
6514 (linux_request_interrupt): Delete "signal_pid".
6515 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6516 (lynx_ptrace_fun): New function.
6517 (lynx_create_inferior): Adjust function prototype to reflect
6518 change on "target.h". Adjust function code to use
6519 "fork_inferior".
6520 * nto-low.c (nto_create_inferior): Adjust function prototype and
6521 code to reflect change on "target.h". Update comments.
6522 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
6523 "common-terminal.h" and "environ.h".
6524 (terminal_fd): Moved to fork-child.c.
6525 (old_foreground_pgrp): Likewise.
6526 (restore_old_foreground_pgrp): Likewise.
6527 (last_status): Make it global.
6528 (last_ptid): Likewise.
6529 (our_environ): New variable.
6530 (startup_with_shell): Likewise.
6531 (program_name): Likewise.
6532 (program_argv): Rename to...
6533 (program_args): ...this.
6534 (wrapper_argv): New variable.
6535 (start_inferior): Delete function.
6536 (get_exec_wrapper): New function.
6537 (get_exec_file): Likewise.
6538 (get_environ): Likewise.
6539 (prefork_hook): Likewise.
6540 (post_fork_inferior): Likewise.
6541 (postfork_hook): Likewise.
6542 (postfork_child_hook): Likewise.
6543 (handle_v_run): Update code to deal with arguments coming from the
6544 remote host. Update calls from "start_inferior" to
6545 "create_inferior".
6546 (captured_main): Likewise. Initialize environment variable. Call
6547 "have_job_control".
6548 * server.h (post_fork_inferior): New prototype.
6549 (get_environ): Likewise.
6550 (last_status): Declare.
6551 (last_ptid): Likewise.
6552 (signal_pid): Likewise.
6553 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6554 (spu_ptrace_fun): New function.
6555 (spu_create_inferior): Adjust function prototype to reflect change
6556 on "target.h". Adjust function code to use "fork_inferior".
6557 * target.c (target_terminal_init): New function.
6558 (target_terminal_inferior): Likewise.
6559 (target_terminal_ours): Likewise.
6560 * target.h: Include <vector>.
6561 (struct target_ops) <create_inferior>: Update prototype.
6562 (create_inferior): Update macro.
6563 * utils.c (gdb_flush_out_err): New function.
6564 * win32-low.c (win32_create_inferior): Adjust function prototype
6565 and code to reflect change on "target.h".
6566
043a4934
SDJ
65672017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6568
6569 * inferiors.c (switch_to_thread): New function.
6570
15652511
SDJ
65712017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6572
6573 * Makefile.in (SFILE): Add "common/job-control.c".
6574 (OBS): Add "job-control.o".
6575
21ea5acd
SDJ
65762017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6577
6578 * Makefile: Remove "@host_makefile_frag@".
6579
e13cb306
PA
65802017-05-05 Pedro Alves <palves@redhat.com>
6581
6582 * configure: Regenerate.
6583
c94fee56
SDJ
65842017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6585
6586 * configure: Regenerate.
6587
a0ff9e1a
SM
65882017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6589
6590 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
6591 software_single_step change of return type to
6592 std::vector<CORE_ADDR>.
6593 * linux-low.c (install_software_single_step_breakpoints):
6594 Likewise.
6595 * linux-low.h (install_software_single_step_breakpoints):
6596 Likewise.
6597
be628ab8
SDJ
65982017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6599
6600 * remote-utils.c: Include "gdb_termios.h" instead of
6601 "terminal.h".
6602 * terminal.h: Delete file.
6603
7c5ded6a
SDJ
66042017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6605
6606 * server.c: Include <vector>.
6607 <program_argv, wrapper_argv>: Convert to std::vector.
6608 (start_inferior): Rewrite function to use C++.
6609 (handle_v_run): Likewise. Update code that calculates the argv
6610 based on the vRun packet; use C++.
6611 (captured_main): Likewise.
6612
436252de
SM
66132017-04-06 Simon Marchi <simon.marchi@ericsson.com>
6614
6615 * server.c (handle_v_cont): Initialize thread_resume::thread
6616 with null_ptid.
6617
9bf2a700
PA
66182017-04-05 Pedro Alves <palves@redhat.com>
6619
6620 * configure: Regenerate.
6621
a121b7c1
PA
66222017-04-05 Pedro Alves <palves@redhat.com>
6623
6624 * gdbreplay.c (sync_error): Constify.
6625 * linux-x86-low.c (push_opcode): Constify.
6626
21c8a587
PA
66272017-04-05 Pedro Alves <palves@redhat.com>
6628
6629 * win32-low.c (get_child_debug_event)
6630 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
6631 Report TARGET_WAITKIND_SPURIOUS instead.
6632
fb32b4f7
PA
66332017-04-05 Pedro Alves <palves@redhat.com>
6634
e79be6e5
SM
6635 * remote-utils.c (remote_prepare, remote_open): Constify.
6636 * remote-utils.h (remote_prepare, remote_open): Constify.
6637 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 6638
65dd1e59
SM
66392017-04-04 Simon Marchi <simon.marchi@ericsson.com>
6640
6641 * Makefile.in (clean): Clear .deps.
6642
8fa5b777
SM
66432017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
6644
6645 * .gitignore: Remove generated files, replace with wildcard.
6646 * (clean): Replace removal of generated files with wildcard.
6647 (version.c): Replace with...
6648 (version-generated.c): ...this.
6649 (xml-builtin.c): Replace with...
6650 (xml-builtin-generated.c): ...this.
6651 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
6652 (%.c: *regformats*): Replace with...
6653 (%-generated.c: *regformats*): ...this.
6654
a12e714b
MF
66552017-03-27 Max Filippov <jcmvbkbc@gmail.com>
6656
6657 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
6658 (xtensa_fill_gregset): Call collect_register_by_name for
6659 threadptr register.
6660 (xtensa_store_gregset): Call supply_register_by_name for
6661 threadptr register.
6662
1a09b50a
MF
66632017-03-27 Max Filippov <jcmvbkbc@gmail.com>
6664
6665 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
6666 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
6667 (xtensa_store_gregset): Call supply_register for all registers in
6668 a0_regnum..a0_regnum + C0_NREGS range.
6669
1a01e7c6
SM
66702017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6671
6672 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
6673 (ax-ipa.o: ax.c): Remove.
6674 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
6675 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
6676 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
6677 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
6678 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
6679
36bc18a8
SM
66802017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6681
6682 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
6683 (print-utils-ipa.o: ../common/print-utils.c): Remove.
6684 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
6685 (errors-ipa.o: ../common/errors.c): Remove.
6686 (format-ipa.o: ../common/format.c): Remove.
6687 (common-utils-ipa.o: ../common/common-utils.c): Remove.
6688
a8ebe3d5
SM
66892017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6690
6691 * Makefile.in (%-ipa.o: %.c): New rule.
6692 (tracepoint-ipa.o: tracepoint.c): Remove.
6693 (utils-ipa.o: utils.c): Remove.
6694 (remote-utils-ipa.o: remote-utils.c): Remove.
6695 (regcache-ipa.o: regcache.c): Remove.
6696 (i386-linux-ipa.o: i386-linux.c): Remove.
6697 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
6698 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
6699 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
6700 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
6701 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
6702 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
6703 (amd64-linux-ipa.o: amd64-linux.c): Remove.
6704 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
6705 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
6706 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
6707 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
6708 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
6709 (aarch64-ipa.o: aarch64.c): Remove.
6710 (s390-linux32-ipa.o: s390-linux32.c): Remove.
6711 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
6712 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
6713 (s390-linux64-ipa.o: s390-linux64.c): Remove.
6714 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
6715 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
6716 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
6717 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
6718 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
6719 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
6720 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
6721 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
6722 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
6723 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
6724 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
6725 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
6726 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
6727 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
6728 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
6729 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
6730 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
6731 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
6732 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
6733 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
6734 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
6735 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
6736 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
6737 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
6738 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
6739 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
6740 (tdesc-ipa.o: tdesc.c): Remove.
6741 (x32-linux-ipa.o: x32-linux.c): Remove.
6742 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
6743 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
6744
50cfacb7
SM
67452017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6746
6747 * Makefile.in (%.o: ../arch/%.c): New rule.
6748 (arm.o: ../arch/arm.c): Remove.
6749 (arm-linux.o: ../arch/arm-linux.c): Remove.
6750 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
6751 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
6752
c5a22423
SM
67532017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6754
6755 * Makefile.in (%.o: ../nat/%.c): New rule.
6756 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
6757 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
6758 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
6759 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
6760 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
6761 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
6762 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
6763 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
6764 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
6765 (linux-personality.o: ../nat/linux-personality.c): Remove.
6766 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
6767 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
6768 (x86-linux.o: ../nat/x86-linux.c): Remove.
6769 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
6770 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
6771
6bda016b
SM
67722017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6773
6774 * Makefile.in (%.o: ../common/%.c): New rule.
6775 (signals.o: ../common/signals.c): Remove.
6776 (print-utils.o: ../common/print-utils.c): Remove.
6777 (rsp-low.o: ../common/rsp-low.c): Remove.
6778 (common-utils.o: ../common/common-utils.c): Remove.
6779 (posix-strerror.o: ../common/posix-strerror.c): Remove.
6780 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
6781 (vec.o: ../common/vec.c): Remove.
6782 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
6783 (xml-utils.o: ../common/xml-utils.c): Remove.
6784 (ptid.o: ../common/ptid.c): Remove.
6785 (buffer.o: ../common/buffer.c): Remove.
6786 (format.o: ../common/format.c): Remove.
6787 (filestuff.o: ../common/filestuff.c): Remove.
6788 (agent.o: ../common/agent.c): Remove.
6789 (errors.o: ../common/errors.c): Remove.
6790 (environ.o: ../common/environ.c): Remove.
6791 (common-debug.o: ../common/common-debug.c): Remove.
6792 (cleanups.o: ../common/cleanups.c): Remove.
6793 (common-exceptions.o: ../common/common-exceptions.c): Remove.
6794 (fileio.o: ../common/fileio.c): Remove.
6795 (common-regcache.o: ../common/common-regcache.c): Remove.
6796 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
6797 (new-op.o: ../common/new-op.c): Remove.
6798 (btrace-common.o: ../common/btrace-common.c): Remove.
6799
21122961
SM
68002017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6801
6802 * Makefile.in (%.o: ../target/%.c): New rule.
6803 (waitstatus.o: ../target/waitstatus.c): Remove.
6804
c362e621
SM
68052017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6806
6807 * Makefile.in
6808 (%.c: ../regformats/%.dat,
6809 (%.c: ../regformats/arm/%.dat,
6810 (%.c: ../regformats/i386/%.dat,
6811 (%.c: ../regformats/rs6000/%.dat): New rules.
6812 (aarch64.c): Remove.
6813 (reg-arm.c): Remove.
6814 (arm-with-iwmmxt.c): Remove.
6815 (arm-with-vfpv2.c): Remove.
6816 (arm-with-vfpv3.c): Remove.
6817 (arm-with-neon.c): Remove.
6818 (reg-bfin.c): Remove.
6819 (reg-cris.c): Remove.
6820 (reg-crisv32.c): Remove.
6821 (i386.c): Remove.
6822 (i386-linux.c): Remove.
6823 (i386-avx.c): Remove.
6824 (i386-avx-linux.c): Remove.
6825 (i386-avx-avx512.c): Remove.
6826 (i386-avx-avx512-linux.c): Remove.
6827 (i386-mpx.c): Remove.
6828 (i386-mpx-linux.c): Remove.
6829 (i386-avx-mpx-avx512-pku.c): Remove.
6830 (i386-avx-mpx-avx512-pku-linux.c): Remove.
6831 (i386-avx-mpx.c): Remove.
6832 (i386-avx-mpx-linux.c): Remove.
6833 (i386-mmx.c): Remove.
6834 (i386-mmx-linux.c): Remove.
6835 (reg-ia64.c): Remove.
6836 (reg-m32r.c): Remove.
6837 (reg-m68k.c): Remove.
6838 (reg-cf.c): Remove.
6839 (mips-linux.c): Remove.
6840 (mips-dsp-linux.c): Remove.
6841 (mips64-linux.c): Remove.
6842 (mips64-dsp-linux.c): Remove.
6843 (nios2-linux.c): Remove.
6844 (powerpc-32.c): Remove.
6845 (powerpc-32l.c): Remove.
6846 (powerpc-altivec32l.c): Remove.
6847 (powerpc-cell32l.c): Remove.
6848 (powerpc-vsx32l.c): Remove.
6849 (powerpc-isa205-32l.c): Remove.
6850 (powerpc-isa205-altivec32l.c): Remove.
6851 (powerpc-isa205-vsx32l.c): Remove.
6852 (powerpc-e500l.c): Remove.
6853 (powerpc-64l.c): Remove.
6854 (powerpc-altivec64l.c): Remove.
6855 (powerpc-cell64l.c): Remove.
6856 (powerpc-vsx64l.c): Remove.
6857 (powerpc-isa205-64l.c): Remove.
6858 (powerpc-isa205-altivec64l.c): Remove.
6859 (powerpc-isa205-vsx64l.c): Remove.
6860 (s390-linux32.c): Remove.
6861 (s390-linux32v1.c): Remove.
6862 (s390-linux32v2.c): Remove.
6863 (s390-linux64.c): Remove.
6864 (s390-linux64v1.c): Remove.
6865 (s390-linux64v2.c): Remove.
6866 (s390-te-linux64.c): Remove.
6867 (s390-vx-linux64.c): Remove.
6868 (s390-tevx-linux64.c): Remove.
6869 (s390x-linux64.c): Remove.
6870 (s390x-linux64v1.c): Remove.
6871 (s390x-linux64v2.c): Remove.
6872 (s390x-te-linux64.c): Remove.
6873 (s390x-vx-linux64.c): Remove.
6874 (s390x-tevx-linux64.c): Remove.
6875 (tic6x-c64xp-linux.c): Remove.
6876 (tic6x-c64x-linux.c): Remove.
6877 (tic6x-c62x-linux.c): Remove.
6878 (reg-sh.c): Remove.
6879 (reg-sparc64.c): Remove.
6880 (reg-spu.c): Remove.
6881 (amd64.c): Remove.
6882 (amd64-linux.c): Remove.
6883 (amd64-avx.c): Remove.
6884 (amd64-avx-linux.c): Remove.
6885 (amd64-avx-avx512.c): Remove.
6886 (amd64-avx-avx512-linux.c): Remove.
6887 (amd64-mpx.c): Remove.
6888 (amd64-mpx-linux.c): Remove.
6889 (amd64-avx-mpx-avx512-pku.c): Remove.
6890 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
6891 (amd64-avx-mpx.c): Remove.
6892 (amd64-avx-mpx-linux.c): Remove.
6893 (x32.c): Remove.
6894 (x32-linux.c): Remove.
6895 (x32-avx.c): Remove.
6896 (x32-avx-linux.c): Remove.
6897 (x32-avx-avx512.c): Remove.
6898 (x32-avx-avx512-linux.c): Remove.
6899 (reg-xtensa.c): Remove.
6900 (reg-tilegx.c): Remove.
6901 (reg-tilegx32.c): Remove.
6902
1672e0d9
SDJ
69032017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
6904
6905 * Makefile.in (SFILES): Add "common/environ.c".
6906 (OBJS): Add "common/environ.h".
6907
239b6d10
WT
69082017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6909
6910 * configure.ac: Check if the fs_base and gs_base members of
6911 `struct user_regs_struct' exist.
6912 * config.in: Regenerated.
6913 * configure: Likewise.
6914
694b382c
AT
69152017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
6916
6917 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
6918 target_read_memory.
6919 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
6920 (get_next_pcs_syscall_next_pc): Likewise.
6921
7dc53023
LM
69222016-12-23 Luis Machado <lgustavo@codesourcery.com>
6923
6924 * win32-i386-low.c: Fix incorrect reference to a couple source files.
6925 * nto-x86-low.c: Likewise.
6926
ad02e4fe
SM
69272016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
6928
6929 * Makefile.in: Include disable-implicit-rules.mk.
6930
dcb07cfa
PA
69312016-11-23 Pedro Alves <palves@redhat.com>
6932
6933 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
6934 (debug_vprintf): Use std::chrono::steady_clock instead of
6935 gettimeofday. Use '.' instead of ':'.
6936 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
6937 (get_timestamp): Use std::chrono::steady_clock instead of
6938 gettimeofday.
6939
8629c02c
SM
69402016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
6941
6942 * Makefile.in: Fix whitespace formatting.
6943
b593ecca
SM
69442016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
6945
6946 * Makefile.in (SFILES, OBS): Flatten list and order
6947 alphabetically.
6948
9986ba08
PA
69492016-11-23 Pedro Alves <palves@redhat.com>
6950
6951 * event-loop.c (handle_file_event): Use warning.
6952 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
6953 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6954 Use warning.
6955
4eefa7bc
PA
69562016-11-23 Pedro Alves <palves@redhat.com>
6957
6958 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
6959 output.
6960 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
6961 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
6962 debug_printf and debug_flush for debug output.
6963 * server.c (handle_general_set): Likewise.
6964 * thread-db.c (try_thread_db_load): Use debug_printf for debug
6965 output.
6966
5443506e
SM
69672016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6968
6969 * Makefile.in (.c.o): Replace rule with ...
6970 (%.o: %.c): ... this one.
6971
3b165252
SM
69722016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6973
6974 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
6975 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
6976 make.
6977 * configure.ac: Remove checks for the make program.
6978 * configure: Re-generate.
6979
0bcda685
PA
69802016-10-28 Pedro Alves <palves@redhat.com>
6981
6982 * Makefile.in (CXX_DIALECT): Get from configure.
6983 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
6984 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
6985 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
6986 * config.in: Regenerate.
6987 * configure: Regenerate.
6988
c3805894
YQ
69892016-10-27 Yao Qi <yao.qi@linaro.org>
6990
6991 * linux-low.c (linux_supports_range_stepping): Return true if
6992 can_software_single_step return true.
6993
89342618
YQ
69942016-10-27 Yao Qi <yao.qi@linaro.org>
6995
6996 * inferiors.c (find_inferior_in_random): New function.
6997 * inferiors.h (find_inferior_in_random): Declare.
6998 * linux-low.c (linux_wait_for_event_filtered): Call
6999 find_inferior_in_random instead of find_inferior.
7000
e3652c84
YQ
70012016-10-27 Yao Qi <yao.qi@linaro.org>
7002
7003 * linux-low.c (linux_wait_1): If single-step breakpoints are
7004 inserted, remove them.
7005
5a04c4cf
PA
70062016-10-26 Pedro Alves <palves@redhat.com>
7007
7008 * linux-low.c (handle_extended_wait): Link parent/child fork
7009 threads.
7010 (linux_wait_1): Unlink them.
7011 (linux_set_resume_request): Ignore resume requests for
7012 already-resumed and unhandled fork child threads.
7013 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7014 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7015 New functions.
7016 (handle_v_requests) <vCont>: Don't call require_running.
7017 * server.h (in_queued_stop_replies): New declaration.
7018
cb93dc7f
YQ
70192016-10-24 Yao Qi <yao.qi@linaro.org>
7020
7021 PR server/20733
7022 * linux-aarch64-low.c (append_insns): Cast the return value to
7023 'uint32_t *'.
7024
a1078bea
YQ
70252016-10-10 Yao Qi <yao.qi@linaro.org>
7026
7027 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7028
1fb77080
SDJ
70292016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7030
7031 * target.c (target_supports_multi_process): New function, moved
7032 from...
7033 * target.h (target_supports_multi_process): ... here. Remove
7034 macro.
7035
39b5a3b9
TT
70362016-10-05 Tom Tromey <tom@tromey.com>
7037
7038 PR remote/20655:
7039 * tracepoint.c (handle_tracepoint_bkpts): Check
7040 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7041
c1d0b70a
YQ
70422016-10-05 Yao Qi <yao.qi@linaro.org>
7043
7044 * configure.srv: Update the path of arm-*.xml files.
7045
0a69eedb
YQ
70462016-10-05 Terry Guo <terry.guo@arm.com>
7047 Yao Qi <yao.qi@linaro.org>
7048
7049 * Makefile.in: Adjust the path of rules.
7050 * configure.srv: Update the path of xml files.
7051 * regformats/arm-with-iwmmxt.dat: Regenerated.
7052 * regformats/arm-with-neon.dat: Likewise.
7053 * regformats/arm-with-vfpv2.dat: Likewise.
7054 * regformats/arm-with-vfpv3.dat Likewise.
7055
17e16485
YQ
70562016-09-30 Yao Qi <yao.qi@linaro.org>
7057
7058 PR gdbserver/20627
7059 * target.c (target_stop_and_wait): Don't call
7060 target_continue_no_signal, use resume_stop instead.
7061
edeeb602
YQ
70622016-09-26 Yao Qi <yao.qi@linaro.org>
7063
7064 * linux-low.c (linux_wait_1): Call debug_exit.
7065
503b1c39
PA
70662016-09-23 Pedro Alves <palves@redhat.com>
7067
7068 * Makefile.in (SFILES): Add common/new-op.c.
7069 (OBS): Add common/new-op.o.
7070 (new-op.o): New rule.
7071
74172ecf
SM
70722016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7073
7074 * .gitinore: Ignore more files.
7075
fc6cda2e
YQ
70762016-09-21 Yao Qi <yao.qi@linaro.org>
7077
7078 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7079 23.
7080
bc1e6c81
SDJ
70812016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7082
7083 * server.c (start_inferior): Call target_mourn_inferior instead of
7084 mourn_inferior; pass ptid_t argument to it.
7085 (resume): Likewise.
7086 (handle_target_event): Likewise.
7087 * target.c (target_mourn_inferior): New function.
7088 * target.h (mourn_inferior): Delete macro.
7089
0e00e962
AA
70902016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7091
7092 * linux-low.c (lwp_is_stepping): New function.
7093
1d8cb77d
CL
70942016-09-06 Carl Love <cel@us.ibm.com>
7095
7096 * server.c (start_inferior): Fixed comment, requested comment change
7097 didn't get updated correctly. Removed reference to ptrace () call as
7098 it is only true on Linux systems.
7099
7313bced
CL
71002016-09-06 Carl Love <cel@us.ibm.com>
7101
7102 * server.c (start_inferior): Do not call
7103 function target_post_create_inferior () if the
7104 inferior process has already exited.
7105
cf6de44d
PA
71062016-09-05 Pedro Alves <palves@redhat.com>
7107
7108 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7109 (COMPILE.pre, CC_LD): Use CXX directly.
7110 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7111 * acinclude.m4: Don't include build-with-cxx.m4.
7112 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7113 * configure: Regenerate.
7114
c1da6748
AT
71152016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7116
7117 PR gdb/19495
7118 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7119 call writing data to own_buf.
7120
f2b9e3df
SDJ
71212016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7122
7123 * target.c (mywait): Call target_wait instead of
7124 the_target->wait.
7125 (target_wait): New function.
7126
049a8570
SDJ
71272016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7128
7129 * server.c (start_inferior): New variable 'ptid'. Replace calls
7130 to the_target->resume by target_continue{,_no_signal}, depending
7131 on the case.
7132 * target.c (target_stop_and_wait): Call target_continue_no_signal
7133 instead of the_target->resume.
7134 (target_continue): New function.
7135
3aa5cfa0
AT
71362016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7137
7138 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7139
754653a7
AZ
71402016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7141
7142 PR server/20491
7143 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7144 ps_prochandle.
7145 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7146 * linux-arm-low.c (ps_get_thread_area): Likewise.
7147 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7148 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7149 * linux-mips-low.c (ps_get_thread_area): Likewise.
7150 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7151 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7152 * linux-x86-low.c (ps_get_thread_area): Likewise.
7153 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7154
ed036b40
PA
71552016-08-19 Pedro Alves <palves@redhat.com>
7156
7157 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7158
c8ef42ee
PA
71592016-08-19 Pedro Alves <palves@redhat.com>
7160
7161 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7162 comment. Use memcpy instead of casting through unsigned long.
7163
9c235a72
PA
71642016-08-19 Pedro Alves <palves@redhat.com>
7165
7166 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7167 allocating around 0x80000000.
7168
201506da
PA
71692016-08-19 Pedro Alves <palves@redhat.com>
7170
7171 PR gdb/20415
7172 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7173 (x32-avx512-linux-ipa.o): New rules.
7174 * configure.ac (x86_64-*-linux*): New x32 check.
7175 * configure.srv (ipa_x32_linux_regobj): New.
7176 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7177 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7178 descriptions.
7179 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7180 descriptions.
7181 * configure: Regenerate.
7182
f348d89a
PA
71832016-08-09 Pedro Alves <palves@redhat.com>
7184
7185 PR gdb/18653
7186 * Makefile.in (OBS): Add signals-state-save-restore.o.
7187 (signals-state-save-restore.o): New rule.
7188 * config.in: Regenerate.
7189 * configure: Regenerate.
7190 * linux-low.c: Include "signals-state-save-restore.h".
7191 (linux_create_inferior): Call
7192 restore_original_signals_state.
7193 * server.c: Include "dispositions-save-restore.h".
7194 (captured_main): Call save_original_signals_state.
7195
1baf5149
PA
71962016-08-05 Pedro Alves <palves@redhat.com>
7197
7198 * configure: Regenerate.
7199
fcd4a73d
YQ
72002016-08-04 Yao Qi <yao.qi@linaro.org>
7201
7202 * linux-low.c (regsets_fetch_inferior_registers): Check
7203 errno is ESRCH or not.
7204
979659d0
YQ
72052016-08-02 Yao Qi <yao.qi@linaro.org>
7206
7207 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7208 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7209 (thread_db_load_search): Update.
7210 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7211 td_ta_set_event and td_ta_event_getmsg.
7212
6598661d
PA
72132016-07-26 Pedro Alves <palves@redhat.com>
7214
7215 PR server/20414
7216 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7217 of unsigned long for 64-bit registers and use uint32_t instead of
7218 unsigned int for 32-bit registers.
7219
9cf12d57
PA
72202016-07-26 Pedro Alves <palves@redhat.com>
7221
7222 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7223 to 'ptrace'.
7224
305450ed
TT
72252016-07-21 Tom Tromey <tom@tromey.com>
7226
7227 * configure: Rebuild.
7228
2583da7c
YQ
72292016-07-21 Yao Qi <yao.qi@linaro.org>
7230
7231 * mem-break.c (find_gdb_breakpoint): Cast bp to
7232 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7233
21536b36
YQ
72342016-07-21 Yao Qi <yao.qi@linaro.org>
7235
7236 * server.c (handle_v_requests): Support s and S actions
7237 if target_supports_software_single_step return true.
7238
8901d193
YQ
72392016-07-21 Yao Qi <yao.qi@linaro.org>
7240
7241 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7242 is resume_step, call maybe_hw_step.
7243 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7244 and unstop them.
7245 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7246 breakpoints or not.
7247 (proceed_one_lwp): If resume request is resume_step, install
7248 reinsert breakpoints and call maybe_hw_step.
7249
0e9a339e
YQ
72502016-07-21 Yao Qi <yao.qi@linaro.org>
7251
7252 * linux-low.c (proceed_one_lwp): Declare.
7253 (linux_resume_one_thread): Remove local variable 'step'.
7254 Lift code enqueue signal. Call proceed_one_lwp instead of
7255 linux_resume_one_lwp.
7256
4281b351
YQ
72572016-07-21 Yao Qi <yao.qi@linaro.org>
7258
7259 * linux-low.c (linux_resume_one_thread): Call
7260 enqueue_pending_signal.
7261
984a2c04
YQ
72622016-07-21 Yao Qi <yao.qi@linaro.org>
7263
7264 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7265 * inferiors.c (do_restore_current_thread_cleanup): New function.
7266 (make_cleanup_restore_current_thread): Likewise.
7267 * linux-low.c (install_software_single_step_breakpoints): Call
7268 make_cleanup_restore_current_thread. Switch current_thread to
7269 thread.
7270
bec903c9
YQ
72712016-07-21 Yao Qi <yao.qi@linaro.org>
7272
7273 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7274 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7275 (clone_one_breakpoint): Likewise.
7276 (delete_reinsert_breakpoints): Change parameter to thread.
7277 Callers updated.
7278 (has_reinsert_breakpoints): Likewise.
7279 (uninsert_reinsert_breakpoints): Likewise.
7280 (reinsert_reinsert_breakpoints): Likewise.
7281 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7282 (delete_reinsert_breakpoints): Likewise.
7283 (reinsert_reinsert_breakpoints): Likewise.
7284 (uninsert_reinsert_breakpoints): Likewise.
7285 (has_reinsert_breakpoints): Likewise.
7286
63c40ec7
YQ
72872016-07-21 Yao Qi <yao.qi@linaro.org>
7288
7289 * inferiors.c (get_thread_process): Make parameter const.
7290 * inferiors.h (get_thread_process): Update declaration.
7291 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7292 Add new parameters child_thread and parent_thread. Callers
7293 updated.
7294 * mem-break.h (clone_all_breakpoints): Update declaration.
7295
9aa76cd0
YQ
72962016-07-21 Yao Qi <yao.qi@linaro.org>
7297
7298 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7299 <command_list, handler>: Remove.
7300 (struct gdb_breakpoint): New.
7301 (struct other_breakpoint): New.
7302 (struct reinsert_breakpoint): New.
7303 (is_gdb_breakpoint): New function.
7304 (any_persistent_commands): Update command_list if
7305 is_gdb_breakpoint returns true.
7306 (set_breakpoint): Create breakpoints according to their types.
7307 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7308 (set_gdb_breakpoint_1): Likewise.
7309 (set_gdb_breakpoint): Likewise.
7310 (clear_breakpoint_conditions): Change parameter type to
7311 'struct gdb_breakpoint *'.
7312 (clear_breakpoint_commands): Likewise.
7313 (clear_breakpoint_conditions_and_commands): Likewise.
7314 (add_condition_to_breakpoint): Likewise.
7315 (add_breakpoint_condition): Likewise.
7316 (add_commands_to_breakpoint): Likewise.
7317 (check_breakpoints): Check other_breakpoint.
7318 (clone_one_breakpoint): Clone breakpopint according to its type.
7319 * mem-break.h (struct gdb_breakpoint): Declare.
7320 (set_gdb_breakpoint): Update declaration.
7321 (clear_breakpoint_conditions_and_commands): Likewise.
7322 (add_breakpoint_condition): Likewise.
7323 (add_breakpoint_commands): Likewise.
7324 * server.c (process_point_options): Change parameter type to
7325 'struct gdb_breakpoint *'.
7326
811f8301
YQ
73272016-07-21 Yao Qi <yao.qi@linaro.org>
7328
7329 * mem-break.c (set_breakpoint_at): Rename it to ...
7330 (set_breakpoint_type_at): ... it.
7331 (set_breakpoint_at): Call set_breakpoint_type_at.
7332 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7333 * mem-break.h (set_breakpoint_at): Update comments.
7334
b1c51e36
CLT
73352016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7336
7337 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7338 to buf parameter.
7339 (nios2_store_gregset): Likewise.
7340
ced2dffb
PA
73412016-07-01 Pedro Alves <palves@redhat.com>
7342 Antoine Tremblay <antoine.tremblay@ericsson.com>
7343
7344 * linux-low.c: Change interface to take the target lwp_info
7345 pointer directly and return void. Handle detaching from a zombie
7346 thread.
7347 (linux_detach_lwp_callback): New function.
7348 (linux_detach): Detach from the leader thread after detaching from
7349 the clone threads.
7350
2ac09a5b
YQ
73512016-06-28 Yao Qi <yao.qi@linaro.org>
7352
7353 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7354 for variable new_offset.
7355 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7356 (aarch64_ftrace_insn_reloc_cb): Likewise.
7357 (aarch64_ftrace_insn_reloc_tb): Likewise.
7358 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7359 PRIx64 instead of PRIx32.
7360
79e7fd4f
YQ
73612016-06-28 Yao Qi <yao.qi@linaro.org>
7362
7363 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7364 (the_low_target): Install arm_get_syscall_trapinfo.
7365
061fc021
YQ
73662016-06-28 Yao Qi <yao.qi@linaro.org>
7367
7368 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7369 function.
7370 (the_low_target): Install aarch64_get_syscall_trapinfo.
7371
4cc32bec
YQ
73722016-06-28 Yao Qi <yao.qi@linaro.org>
7373
7374 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7375 Callers updated.
7376 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7377 Remove parameter sysno.
7378 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7379 sysret.
7380
782c1122
AA
73812016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7382
7383 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7384 (s390_emit_ne_goto): Likewise.
7385 (s390_emit_lt_goto): Likewise.
7386 (s390_emit_le_goto): Likewise.
7387 (s390_emit_gt_goto): Likewise.
7388 (s390_emit_ge_goto): Likewise.
7389 (s390x_emit_eq_goto): Likewise.
7390 (s390x_emit_ne_goto): Likewise.
7391 (s390x_emit_lt_goto): Likewise.
7392 (s390x_emit_le_goto): Likewise.
7393 (s390x_emit_gt_goto): Likewise.
7394 (s390x_emit_ge_goto): Likewise.
7395 (s390_emit_ops_impl): Mark variable static.
7396 (s390x_emit_ops): Likewise.
7397
2e7b624b
YQ
73982016-06-17 Yao Qi <yao.qi@linaro.org>
7399
7400 * linux-low.c (handle_extended_wait): Call
7401 uninsert_reinsert_breakpoints for the parent process. Remove
7402 reinsert breakpoints from the child process. Reinsert them to
7403 the parent process when vfork is done.
7404 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7405 (reinsert_reinsert_breakpoints): New function.
7406 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7407 (reinsert_reinsert_breakpoints): Declare.
7408
8a81c5d7
YQ
74092016-06-17 Yao Qi <yao.qi@linaro.org>
7410
7411 * linux-low.c (handle_extended_wait): If the parent is doing
7412 step-over, remove the reinsert breakpoints from the forked child.
7413
f50bf8e5
YQ
74142016-06-17 Yao Qi <yao.qi@linaro.org>
7415
7416 * linux-low.c (unsuspend_all_lwps): Declare.
7417 (linux_low_filter_event): If thread exited, call finish_step_over.
7418 If step-over is finished, unsuspend other threads.
7419
8376a3cb
YQ
74202016-06-17 Yao Qi <yao.qi@linaro.org>
7421
7422 * linux-low.c (linux_resume_one_lwp_throw): Assert
7423 has_reinsert_breakpoints returns false.
7424 * mem-break.c (delete_disabled_breakpoints): Assert
7425 bp type isn't reinsert_breakpoint.
7426
f79b145d
YQ
74272016-06-17 Yao Qi <yao.qi@linaro.org>
7428
7429 * linux-low.c (maybe_hw_step): New function.
7430 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7431 (finish_step_over): Switch current_thread to lwp temporarily,
7432 and assert has_reinsert_breakpoints returns true.
7433 (proceed_one_lwp): Call maybe_hw_step.
7434 * mem-break.c (has_reinsert_breakpoints): New function.
7435 * mem-break.h (has_reinsert_breakpoints): Declare.
7436
0ae534d2
JT
74372016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7438
7439 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7440
fcdad592
YQ
74412016-05-17 Yao Qi <yao.qi@linaro.org>
7442
7443 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7444 instead of find_inferior.
7445
9e784964
YQ
74462016-05-05 Yao Qi <yao.qi@linaro.org>
7447
7448 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7449 Initialize res to zero.
7450
cf2ebb6e
YQ
74512016-05-05 Yao Qi <yao.qi@linaro.org>
7452
7453 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7454 to uint32_t.
7455
c1aebf87
UW
74562016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7457
7458 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7459 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7460 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7461
35fd2deb 74622016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 7463 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
7464
7465 * tracepoint.c (write_inferior_int8): New function.
7466 (cmd_qtenable_disable): Write enable flag using
7467 write_inferior_int8.
7468
484b3c32
YQ
74692016-04-25 Yao Qi <yao.qi@linaro.org>
7470
7471 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7472 (need_step_over_p): Return zero if the LWP has pending signals
7473 can be delivered on software single step target.
7474
85ba7d86
YQ
74752016-04-25 Yao Qi <yao.qi@linaro.org>
7476
7477 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7478 return instead of error.
7479
3539aa13
YQ
74802016-04-22 Yao Qi <yao.qi@linaro.org>
7481
7482 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7483 to 23.
7484
5b061e98
YQ
74852016-04-22 Yao Qi <yao.qi@linaro.org>
7486
7487 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7488 signal when stepping over breakpoint with software single
7489 step.
7490
3451269c
PA
74912016-04-21 Pedro Alves <palves@redhat.com>
7492
7493 * linux-s390-low.c (s390_collect_ptrace_register)
7494 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7495 add casts.
7496 (s390_check_regset): Use void * instead of gdb_byte *.
7497
a2358508
PA
74982016-04-20 Pedro Alves <palves@redhat.com>
7499
7500 * configure: Renegerate.
7501
6885166d
YQ
75022016-04-20 Yao Qi <yao.qi@linaro.org>
7503
7504 * linux-aarch32-low.c: Include "arch/arm-linux.h".
7505 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
7506 number 16.
7507 (arm_store_gregset): Likewise.
7508
2b863f51
WT
75092016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
7510
7511 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
7512 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
7513 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
7514 (amd64-avx-mpx-linux.c): New rules.
7515 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
7516 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
7517 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
7518 (srv_amd64_regobj): Add amd64-avx-mpx.o.
7519 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
7520 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
7521 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
7522 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
7523 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
7524 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
7525 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
7526 * linux-x86-low.c (x86_linux_read_description): Add case for
7527 X86_XSTATE_AVX_MPX_MASK.
7528 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
7529 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
7530 init_registers_i386_avx_mpx_linux.
7531 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7532 (initialize_low_tracepoint): Call
7533 init_registers_i386_avx_mpx_linux.
7534 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7535 (initialize_low_tracepoint): Call
7536 init_registers_amd64_avx_mpx_linux.
7537 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
7538 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
7539 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
7540 declarations.
7541
9b30624b
PA
75422016-04-18 Pedro Alves <palves@redhat.com>
7543
7544 * configure: Regenerate.
7545
45e3745e
AT
75462016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
7547
7548 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
7549 (aarch64_emit_sub): Likewise.
7550
2afc13ff
PA
75512016-04-12 Pedro Alves <palves@redhat.com>
7552
7553 * utils.c (prepare_to_throw_exception): Delete.
7554
6e774b13
SM
75552016-04-05 Simon Marchi <simon.marchi@ericsson.com>
7556
7557 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
7558
4dca19f8
MK
75592016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
7560
7561 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
7562
d0a9981f
MK
75632016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
7564
7565 * linux-aarch64-ipa.c: Add <elf.h> include.
7566 * linux-ppc-ipa.c: Add <elf.h> include.
7567 * linux-s390-ipa.c: Add <elf.h> include.
7568
252db07e
MK
75692016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7570
7571 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
7572 (get_raw_reg_ptr): Likewise.
7573 (get_trace_state_variable_value_ptr): Likewise.
7574 (set_trace_state_variable_value_ptr): Likewise.
7575 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
7576 char *.
7577
14e2b6d9
MK
75782016-03-31 Wei-cheng Wang <cole945@gmail.com>
7579 Marcin Kościelnicki <koriakin@0x04.net>
7580
7581 PR/17221
7582 * linux-ppc-low.c (emit_insns): New function.
7583 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
7584 (ppc_emit_prologue): New function.
7585 (ppc_emit_epilogue): New function.
7586 (ppc_emit_add): New function.
7587 (ppc_emit_sub): New function.
7588 (ppc_emit_mul): New function.
7589 (ppc_emit_lsh): New function.
7590 (ppc_emit_rsh_signed): New function.
7591 (ppc_emit_rsh_unsigned): New function.
7592 (ppc_emit_ext): New function.
7593 (ppc_emit_zero_ext): New function.
7594 (ppc_emit_log_not): New function.
7595 (ppc_emit_bit_and): New function.
7596 (ppc_emit_bit_or): New function.
7597 (ppc_emit_bit_xor): New function.
7598 (ppc_emit_bit_not): New function.
7599 (ppc_emit_equal): New function.
7600 (ppc_emit_less_signed): New function.
7601 (ppc_emit_less_unsigned): New function.
7602 (ppc_emit_ref): New function.
7603 (ppc_emit_const): New function.
7604 (ppc_emit_reg): New function.
7605 (ppc_emit_pop): New function.
7606 (ppc_emit_stack_flush): New function.
7607 (ppc_emit_swap): New function.
7608 (ppc_emit_stack_adjust): New function.
7609 (ppc_emit_call): New function.
7610 (ppc_emit_int_call_1): New function.
7611 (ppc_emit_void_call_2): New function.
7612 (ppc_emit_if_goto): New function.
7613 (ppc_emit_goto): New function.
7614 (ppc_emit_eq_goto): New function.
7615 (ppc_emit_ne_goto): New function.
7616 (ppc_emit_lt_goto): New function.
7617 (ppc_emit_le_goto): New function.
7618 (ppc_emit_gt_goto): New function.
7619 (ppc_emit_ge_goto): New function.
7620 (ppc_write_goto_address): New function.
7621 (ppc_emit_ops_impl): New static variable.
7622 (ppc64v1_emit_prologue): New function.
7623 (ppc64v2_emit_prologue): New function.
7624 (ppc64_emit_epilogue): New function.
7625 (ppc64_emit_add): New function.
7626 (ppc64_emit_sub): New function.
7627 (ppc64_emit_mul): New function.
7628 (ppc64_emit_lsh): New function.
7629 (ppc64_emit_rsh_signed): New function.
7630 (ppc64_emit_rsh_unsigned): New function.
7631 (ppc64_emit_ext): New function.
7632 (ppc64_emit_zero_ext): New function.
7633 (ppc64_emit_log_not): New function.
7634 (ppc64_emit_bit_and): New function.
7635 (ppc64_emit_bit_or): New function.
7636 (ppc64_emit_bit_xor): New function.
7637 (ppc64_emit_bit_not): New function.
7638 (ppc64_emit_equal): New function.
7639 (ppc64_emit_less_signed): New function.
7640 (ppc64_emit_less_unsigned): New function.
7641 (ppc64_emit_ref): New function.
7642 (ppc64_emit_const): New function.
7643 (ppc64v1_emit_reg): New function.
7644 (ppc64v2_emit_reg): New function.
7645 (ppc64_emit_pop): New function.
7646 (ppc64_emit_stack_flush): New function.
7647 (ppc64_emit_swap): New function.
7648 (ppc64v1_emit_call): New function.
7649 (ppc64v2_emit_call): New function.
7650 (ppc64v1_emit_int_call_1): New function.
7651 (ppc64v2_emit_int_call_1): New function.
7652 (ppc64v1_emit_void_call_2): New function.
7653 (ppc64v2_emit_void_call_2): New function.
7654 (ppc64_emit_if_goto): New function.
7655 (ppc64_emit_eq_goto): New function.
7656 (ppc64_emit_ne_goto): New function.
7657 (ppc64_emit_lt_goto): New function.
7658 (ppc64_emit_le_goto): New function.
7659 (ppc64_emit_gt_goto): New function.
7660 (ppc64_emit_ge_goto): New function.
7661 (ppc64v1_emit_ops_impl): New static variable.
7662 (ppc64v2_emit_ops_impl): New static variable.
7663 (ppc_emit_ops): New function.
7664 (linux_low_target): Wire in ppc_emit_ops.
7665
a2174ba4
MK
76662016-03-31 Wei-cheng Wang <cole945@gmail.com>
7667 Marcin Kościelnicki <koriakin@0x04.net>
7668
7669 PR/17221
7670 * Makefile.in: Add powerpc-*-ipa.o
7671 * configure.srv: Add ipa_obj for powerpc*-linux.
7672 * linux-ppc-ipa.c: New file.
7673 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
7674 includes.
7675 (PPC_FIELD): New macro.
7676 (PPC_SEXT): New macro.
7677 (PPC_OP6): New macro.
7678 (PPC_BO): New macro.
7679 (PPC_LI): New macro.
7680 (PPC_BD): New macro.
7681 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
7682 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
7683 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
7684 (ppc_get_thread_area): New function.
7685 (is_elfv2_inferior): New function.
7686 (gen_ds_form): New function.
7687 (GEN_STD): New macro.
7688 (GEN_STDU): New macro.
7689 (GEN_LD): New macro.
7690 (GEN_LDU): New macro.
7691 (gen_d_form): New function.
7692 (GEN_ADDI): New macro.
7693 (GEN_ADDIS): New macro.
7694 (GEN_LI): New macro.
7695 (GEN_LIS): New macro.
7696 (GEN_ORI): New macro.
7697 (GEN_ORIS): New macro.
7698 (GEN_LWZ): New macro.
7699 (GEN_STW): New macro.
7700 (GEN_STWU): New macro.
7701 (gen_xfx_form): New function.
7702 (GEN_MFSPR): New macro.
7703 (GEN_MTSPR): New macro.
7704 (GEN_MFCR): New macro.
7705 (GEN_MTCR): New macro.
7706 (GEN_SYNC): New macro.
7707 (GEN_LWSYNC): New macro.
7708 (gen_x_form): New function.
7709 (GEN_OR): New macro.
7710 (GEN_MR): New macro.
7711 (GEN_LWARX): New macro.
7712 (GEN_STWCX): New macro.
7713 (GEN_CMPW): New macro.
7714 (gen_md_form): New function.
7715 (GEN_RLDICL): New macro.
7716 (GEN_RLDICR): New macro.
7717 (gen_i_form): New function.
7718 (GEN_B): New macro.
7719 (GEN_BL): New macro.
7720 (gen_b_form): New function.
7721 (GEN_BNE): New macro.
7722 (GEN_LOAD): New macro.
7723 (GEN_STORE): New macro.
7724 (gen_limm): New function.
7725 (gen_atomic_xchg): New function.
7726 (gen_call): New function.
7727 (ppc_relocate_instruction): New function.
7728 (ppc_install_fast_tracepoint_jump_pad): New function.
7729 (ppc_get_min_fast_tracepoint_insn_len): New function.
7730 (ppc_get_ipa_tdesc_idx): New function.
7731 (the_low_target): Wire in the new functions.
7732 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
7733 tdescs.
7734 * linux-ppc-tdesc.h: New file.
7735
a13c4696
MK
77362016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7737
7738 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
7739 (alloc_jump_pad_buffer): New function.
7740 * linux-amd64-ipa.c: Add <sys/mman.h> include.
7741 (alloc_jump_pad_buffer): New function.
7742 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
7743 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
7744 (alloc_jump_pad_buffer): New function.
7745 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
7746 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
7747 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
7748 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
7749
1cda1512
MK
77502016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
7751
7752 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
7753 * linux-amd64-ipa.c: Likewise.
7754 * linux-i386-ipa.c: Likewise.
7755 * linux-s390-ipa.c: Likewise.
7756 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
7757 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
7758 set_trace_state_variable_value_ptr.
7759 (struct ipa_sym_addresses): Likewise.
7760 (symbol_list): Likewise.
7761 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
7762 accessing gdb_collect directly.
7763 (gdb_collect_ptr_type): New typedef.
7764 (get_raw_reg_ptr_type): New typedef.
7765 (get_trace_state_variable_value_ptr_type): New typedef.
7766 (set_trace_state_variable_value_ptr_type): New typedef.
7767 (gdb_collect_ptr): New global.
7768 (get_raw_reg_ptr): New global.
7769 (get_trace_state_variable_value_ptr): New global.
7770 (set_trace_state_variable_value_ptr): New global.
7771 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
7772 accessing get_raw_reg directly.
7773 (get_get_tsv_func_addr): Likewise for
7774 get_trace_state_variable_value_ptr.
7775 (get_set_tsv_func_addr): Likewise for
7776 set_trace_state_variable_value_ptr.
7777 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
7778
72fb5488
SM
77792016-03-30 Simon Marchi <simon.marchi@ericsson.com>
7780
7781 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
7782
28170b88
MK
77832016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
7784
7785 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
7786 packets.
7787 (relocate_instruction): Remove own_buf.
7788 * server.c (own_buf): Make global.
7789 (handle_v_requests): Make global.
7790 * server.h (own_buf): New declaration.
7791 (handle_v_requests): New prototype.
7792
f39e8743
MK
77932016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7794
7795 PR 18377
7796 * linux-s390-low.c (add_insns): New function.
7797 (s390_emit_prologue): New function.
7798 (s390_emit_epilogue): New function.
7799 (s390_emit_add): New function.
7800 (s390_emit_sub): New function.
7801 (s390_emit_mul): New function.
7802 (s390_emit_lsh): New function.
7803 (s390_emit_rsh_signed): New function.
7804 (s390_emit_rsh_unsigned): New function.
7805 (s390_emit_ext): New function.
7806 (s390_emit_log_not): New function.
7807 (s390_emit_bit_and): New function.
7808 (s390_emit_bit_or): New function.
7809 (s390_emit_bit_xor): New function.
7810 (s390_emit_bit_not): New function.
7811 (s390_emit_equal): New function.
7812 (s390_emit_less_signed): New function.
7813 (s390_emit_less_unsigned): New function.
7814 (s390_emit_ref): New function.
7815 (s390_emit_if_goto): New function.
7816 (s390_emit_goto): New function.
7817 (s390_write_goto_address): New function.
7818 (s390_emit_litpool): New function.
7819 (s390_emit_const): New function.
7820 (s390_emit_call): New function.
7821 (s390_emit_reg): New function.
7822 (s390_emit_pop): New function.
7823 (s390_emit_stack_flush): New function.
7824 (s390_emit_zero_ext): New function.
7825 (s390_emit_swap): New function.
7826 (s390_emit_stack_adjust): New function.
7827 (s390_emit_set_r2): New function.
7828 (s390_emit_int_call_1): New function.
7829 (s390_emit_void_call_2): New function.
7830 (s390_emit_eq_goto): New function.
7831 (s390_emit_ne_goto): New function.
7832 (s390_emit_lt_goto): New function.
7833 (s390_emit_le_goto): New function.
7834 (s390_emit_gt_goto): New function.
7835 (s390_emit_ge_goto): New function.
7836 (s390x_emit_prologue): New function.
7837 (s390x_emit_epilogue): New function.
7838 (s390x_emit_add): New function.
7839 (s390x_emit_sub): New function.
7840 (s390x_emit_mul): New function.
7841 (s390x_emit_lsh): New function.
7842 (s390x_emit_rsh_signed): New function.
7843 (s390x_emit_rsh_unsigned): New function.
7844 (s390x_emit_ext): New function.
7845 (s390x_emit_log_not): New function.
7846 (s390x_emit_bit_and): New function.
7847 (s390x_emit_bit_or): New function.
7848 (s390x_emit_bit_xor): New function.
7849 (s390x_emit_bit_not): New function.
7850 (s390x_emit_equal): New function.
7851 (s390x_emit_less_signed): New function.
7852 (s390x_emit_less_unsigned): New function.
7853 (s390x_emit_ref): New function.
7854 (s390x_emit_if_goto): New function.
7855 (s390x_emit_const): New function.
7856 (s390x_emit_call): New function.
7857 (s390x_emit_reg): New function.
7858 (s390x_emit_pop): New function.
7859 (s390x_emit_stack_flush): New function.
7860 (s390x_emit_zero_ext): New function.
7861 (s390x_emit_swap): New function.
7862 (s390x_emit_stack_adjust): New function.
7863 (s390x_emit_int_call_1): New function.
7864 (s390x_emit_void_call_2): New function.
7865 (s390x_emit_eq_goto): New function.
7866 (s390x_emit_ne_goto): New function.
7867 (s390x_emit_lt_goto): New function.
7868 (s390x_emit_le_goto): New function.
7869 (s390x_emit_gt_goto): New function.
7870 (s390x_emit_ge_goto): New function.
7871 (s390_emit_ops): New function.
7872 (struct linux_target_ops): Fill in emit_ops hook.
7873
abd9baf9
MK
78742016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7875
7876 PR 18377
7877 * Makefile.in: Add s390 IPA files.
7878 * configure.srv: Build IPA for s390.
7879 * linux-s390-ipa.c: New file.
7880 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
7881 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
7882 (tdesc_s390_linux32): Likewise.
7883 (init_registers_s390_linux32v1): Likewise.
7884 (tdesc_s390_linux32v1): Likewise.
7885 (init_registers_s390_linux32v2): Likewise.
7886 (tdesc_s390_linux32v2): Likewise.
7887 (init_registers_s390_linux64): Likewise.
7888 (tdesc_s390_linux64): Likewise.
7889 (init_registers_s390_linux64v1): Likewise.
7890 (tdesc_s390_linux64v1): Likewise.
7891 (init_registers_s390_linux64v2): Likewise.
7892 (tdesc_s390_linux64v2): Likewise.
7893 (init_registers_s390_te_linux64): Likewise.
7894 (tdesc_s390_te_linux64): Likewise.
7895 (init_registers_s390_vx_linux64): Likewise.
7896 (tdesc_s390_vx_linux64): Likewise.
7897 (init_registers_s390_tevx_linux64): Likewise.
7898 (tdesc_s390_tevx_linux64): Likewise.
7899 (init_registers_s390x_linux64): Likewise.
7900 (tdesc_s390x_linux64): Likewise.
7901 (init_registers_s390x_linux64v1): Likewise.
7902 (tdesc_s390x_linux64v1): Likewise.
7903 (init_registers_s390x_linux64v2): Likewise.
7904 (tdesc_s390x_linux64v2): Likewise.
7905 (init_registers_s390x_te_linux64): Likewise.
7906 (tdesc_s390x_te_linux64): Likewise.
7907 (init_registers_s390x_vx_linux64): Likewise.
7908 (tdesc_s390x_vx_linux64): Likewise.
7909 (init_registers_s390x_tevx_linux64): Likewise.
7910 (tdesc_s390x_tevx_linux64): Likewise.
7911 (have_hwcap_s390_vx): New static variable.
7912 (s390_arch_setup): Fill have_hwcap_s390_vx.
7913 (s390_get_thread_area): New function.
7914 (s390_ft_entry_gpr_esa): New const.
7915 (s390_ft_entry_gpr_zarch): New const.
7916 (s390_ft_entry_misc): New const.
7917 (s390_ft_entry_fr): New const.
7918 (s390_ft_entry_vr): New const.
7919 (s390_ft_main_31): New const.
7920 (s390_ft_main_64): New const.
7921 (s390_ft_exit_fr): New const.
7922 (s390_ft_exit_vr): New const.
7923 (s390_ft_exit_misc): New const.
7924 (s390_ft_exit_gpr_esa): New const.
7925 (s390_ft_exit_gpr_zarch): New const.
7926 (append_insns): New function.
7927 (s390_relocate_instruction): New function.
7928 (s390_install_fast_tracepoint_jump_pad): New function.
7929 (s390_get_min_fast_tracepoint_insn_len): New function.
7930 (s390_get_ipa_tdesc_idx): New function.
7931 (struct linux_target_ops): Wire in the above functions.
7932 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
7933 * linux-s390-tdesc.h: New file.
7934
a4105d04
MK
79352016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7936
7937 * linux-s390-low.c (s390_supports_tracepoints): New function.
7938 (struct linux_target_ops): Fill supports_tracepoints hook.
7939
35ac8b3e
YQ
79402016-03-18 Yao Qi <yao.qi@linaro.org>
7941
7942 * linux-low.c (lwp_signal_can_be_delivered): New function.
7943 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
7944
94610ec4
YQ
79452016-03-18 Yao Qi <yao.qi@linaro.org>
7946
7947 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
7948 0 if signal is enqueued. Remove 'signal' from one debugging
7949 message. Move one debugging message to some lines below.
7950 Remove code setting 'signal' to 0.
7951
80aea927
YQ
79522016-03-18 Yao Qi <yao.qi@linaro.org>
7953
7954 * linux-low.c (linux_low_filter_event): Remove redundant
7955 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
7956
b04fd3be
MK
79572016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
7958
7959 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
7960 (struct linux_target_ops): Wire in the above.
7961
c40c8d4b
YQ
79622016-03-03 Yao Qi <yao.qi@linaro.org>
7963
7964 * linux-low.c: Update comments to start_step_over.
7965
0f8288ae
YQ
79662016-03-03 Yao Qi <yao.qi@linaro.org>
7967
7968 PR server/19736
7969 * linux-low.c (handle_extended_wait): Set child suspended
7970 if event_lwp->bp_reinsert isn't zero.
7971
fdbd04a8
YQ
79722016-03-02 Yao Qi <yao.qi@linaro.org>
7973
7974 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
7975 enqueue_pending_signal.
7976
6896a8fa
MK
79772016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
7978
7979 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
7980 is actually loaded.
7981
ab503087
MK
79822016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
7983
7984 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
7985 (s390_regmap_3264) [!__s390x__]: New global.
7986 (s390_collect_ptrace_register): Skip map entries containing -1.
7987 (s390_supply_ptrace_register): Ditto.
7988 (s390_fill_gprs_high): New function.
7989 (s390_store_gprs_high): New function.
7990 (s390_regsets): Add NT_S390_HIGH_GPRS.
7991 (s390_get_hwcap): Enable on 31-bit.
7992 (have_hwcap_s390_high_gprs): Enable on 31-bit.
7993 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
7994 Detect NT_S390_HIGH_GPRS.
7995 (s390_usrregs_info_3264): Enable on 31-bit.
7996 (s390_regs_info): Enable regs_info_3264 on 31-bit.
7997 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
7998
ae91f625
MK
79992016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8000
8001 PR gdb/13808
8002 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8003 * configure.srv: Ditto.
8004 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8005 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8006 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8007 (init_registers_amd64_linux): Remove prototype.
8008 (tdesc_amd64_linux): Remove declaration.
8009 (get_ipa_tdesc): New function.
8010 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8011 initialize remaining tdescs.
8012 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8013 (init_registers_i386_linux): Remove prototype.
8014 (tdesc_i386_linux): Remove declaration.
8015 (get_ipa_tdesc): New function.
8016 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8017 initialize remaining tdescs.
8018 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8019 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8020 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8021 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8022 (x86_get_ipa_tdesc_idx): New function.
8023 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8024 * linux-x86-tdesc.h: New file.
8025 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8026 (target_get_ipa_tdesc_idx): New macro.
8027 * tracepoint.c (ipa_tdesc_idx): New macro.
8028 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8029 (symbol_list): Add ipa_tdesc_idx.
8030 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8031 (ipa_tdesc): Remove.
8032 (ipa_tdesc_idx): New variable.
8033 (get_context_regcache): Use get_ipa_tdesc.
8034 (gdb_collect): Ditto.
8035 (gdb_probe): Ditto.
8036 * tracepoint.h (get_ipa_tdesc): New prototype.
8037 (ipa_tdesc): Remove.
8038
e7ad2f14
PA
80392016-02-24 Pedro Alves <palves@redhat.com>
8040
8041 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8042 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8043 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8044 Factor out common code between the USE_SIGTRAP_SIGINFO and
8045 !USE_SIGTRAP_SIGINFO blocks.
8046 (linux_low_filter_event): Call save_stop_reason instead of
8047 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8048 Update comments.
8049 (linux_wait_1): Update comments.
8050
657f9cde
WW
80512016-02-24 Wei-cheng Wang <cole945@gmail.com>
8052
8053 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8054 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8055 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8056 ppc_insert_point, ppc_remove_point.
8057
b00b61e1
MK
80582016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8059
8060 * linux-s390-low.c (s390_supports_z_point_type): New function.
8061 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8062
553cb527
YQ
80632016-02-16 Yao Qi <yao.qi@linaro.org>
8064
8065 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8066 PC. Get pc from regcache_read_pc.
8067
a5652c21
YQ
80682016-02-12 Yao Qi <yao.qi@linaro.org>
8069
8070 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8071 or linux_get_pc_32bit.
8072 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8073
ed443b61
YQ
80742016-02-12 Yao Qi <yao.qi@linaro.org>
8075
8076 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8077 arm_linux_get_next_pcs_fixup.
8078
020ecd38
MK
80792016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8080
8081 * tracepoint.c (x_tracepoint_action_download): Change
8082 write_inferior_data_ptr to write_inferior_data_pointer.
8083 (cmd_qtstart): Likewise.
8084 (write_inferior_data_ptr): Remove.
8085 (download_agent_expr): Change write_inferior_data_ptr to
8086 write_inferior_data_pointer.
8087 (download_tracepoint_1): Likewise.
8088 (download_tracepoint): Likewise.
8089 (download_trace_state_variables): Likewise.
8090
7cae9051
WW
80912016-02-11 Wei-cheng Wang <cole945@gmail.com>
8092 Marcin Kościelnicki <koriakin@0x04.net>
8093
8094 * tracepoint.c (struct tracepoint_action_ops): Remove.
8095 (struct tracepoint_action): Remove ops.
8096 (m_tracepoint_action_download, r_tracepoint_action_download)
8097 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8098 size and offset accordingly.
8099 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8100 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8101 (tracepoint_action_send, tracepoint_action_download): New functions.
8102 Helpers for trace action handlers.
8103 (add_tracepoint_action): Remove setup actions ops.
8104 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8105
9f6a71b4
YQ
81062016-02-10 Yao Qi <yao.qi@linaro.org>
8107
8108 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8109
1e94266c
SM
81102016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8111
8112 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8113 to AC_OUTPUT.
8114 * configure: Regenerate.
8115
8adce034
SM
81162016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8117
8118 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8119 void * to gdb_byte *.
8120 * linux-low.c (siginfo_fixup): Likewise.
8121 (linux_xfer_siginfo): Likewise.
8122 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8123 Likewise.
8124 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8125
93813b37
WT
81262016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8127
8128 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8129 to srv_tgtobj.
8130 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8131 to srv_tgtobj.
8132 * linux-x86-low.c [__x86_64__]: Include
8133 "nat/amd64-linux-siginfo.h".
8134 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8135 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8136 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8137 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8138 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8139 (cpt_si_fd, si_timerid, si_overrun): Move from
8140 nat/amd64-linux-siginfo.c.
8141 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8142
8424cc97
SM
81432016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8144
8145 * server.c (skip_to_semicolon): Remove.
8146 (process_point_options): Use strchrnul instead of
8147 skip_to_semicolon.
8148
4d18591b
YQ
81492016-01-26 Yao Qi <yao.qi@linaro.org>
8150
8151 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8152 * linux-low.c (install_software_single_step_breakpoints): Don't
8153 call regcache_read_pc.
8154 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8155 argument pc.
8156
d8020970
YQ
81572016-01-26 Yao Qi <yao.qi@linaro.org>
8158
8159 * linux-low.c (install_software_single_step_breakpoints): Call
8160 regcache_read_pc instead of get_pc.
8161
8b207339
YQ
81622016-01-26 Yao Qi <yao.qi@linaro.org>
8163
8164 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8165 (unblock_async_io): Rename to ...
8166 (block_unblock_async_io): ... it. New function.
8167 (enable_async_io): Don't install SIGIO handler. Unblock it
8168 instead.
8169 (disable_async_io): Don't ignore SIGIO. Block it instead.
8170 (initialize_async_io): Install SIGIO handler. Don't call
8171 unblock_async_io.
8172
18879fef
YQ
81732016-01-26 Yao Qi <yao.qi@linaro.org>
8174
8175 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8176 first character is '\003', call *the_target->request_interrupt.
8177
a0f8e08a
YQ
81782016-01-25 Yao Qi <yao.qi@linaro.org>
8179
8180 * remote-utils.c (new_thread_notify): Remove.
8181 (dead_thread_notify): Likewise.
8182 * remote-utils.h (new_thread_notify): Remove declaration.
8183 (dead_thread_notify): Likewise.
8184
cc5fd9ab
MK
81852016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8186
8187 * gdb.trace/pending.exp: Fix expected message on continue.
8188
99e8eb11
MK
81892016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8190
8191 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8192 it works properly on big-endian machines where sizeof (CORE_ADDR)
8193 != sizeof (void *).
8194
a994041d
PA
81952016-01-21 Pedro Alves <palves@redhat.com>
8196
8197 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8198 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8199 * configure: Regenerate.
8200
f7a6a40d
YQ
82012016-01-21 Yao Qi <yao.qi@linaro.org>
8202
8203 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8204 is_thumb and set it according to CPSR saved on the stack.
8205 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8206 arm_sigreturn_next_pc.
8207
6f69e520
YQ
82082016-01-18 Yao Qi <yao.qi@linaro.org>
8209
8210 * linux-low.c (linux_set_pc_64bit): New function.
8211 (linux_get_pc_64bit): New function.
8212 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8213 Declare.
8214 * linux-sparc-low.c (debug_threads): Remove declaration.
8215 (sparc_get_pc): Remove.
8216 (the_low_target): Use linux_get_pc_64bit instead of
8217 sparc_get_pc.
8218 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8219 (the_low_target): Use linux_get_pc_64bit and
8220 linux_set_pc_64bit.
8221
276d4552
YQ
82222016-01-18 Yao Qi <yao.qi@linaro.org>
8223
8224 * linux-arm-low.c (debug_threads): Remove declaration.
8225 (arm_get_pc, arm_set_pc): Remove.
8226 (the_low_target): Use linux_get_pc_32bit and
8227 linux_set_pc_32bit.
8228 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8229 (the_low_target): Use linux_get_pc_32bit and
8230 linux_set_pc_32bit.
8231 * linux-cris-low.c (debug_threads): Remove declaration.
8232 (cris_get_pc, cris_set_pc,): Remove.
8233 (the_low_target): Use linux_get_pc_32bit and
8234 linux_set_pc_32bit.
8235 * linux-crisv32-low.c (debug_threads): Remove declaration.
8236 (cris_get_pc, cris_set_pc): Remove.
8237 (the_low_target): Use linux_get_pc_32bit and
8238 linux_set_pc_32bit.
8239 * linux-low.c: Include inttypes.h.
8240 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8241 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8242 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8243 (the_low_target): Use linux_get_pc_32bit and
8244 linux_set_pc_32bit.
8245 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8246 (the_low_target): Use linux_get_pc_32bit and
8247 linux_set_pc_32bit.
8248 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8249 (the_low_target): Use linux_get_pc_32bit and
8250 linux_set_pc_32bit.
8251 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8252 (the_low_target): Use linux_get_pc_32bit and
8253 linux_set_pc_32bit.
8254 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8255 (the_low_target): Use linux_get_pc_32bit and
8256 linux_set_pc_32bit.
8257
eb0edac8
GB
82582016-01-18 Gary Benson <gbenson@redhat.com>
8259
8260 * configure.ac (AC_FUNC_FORK): New check.
8261 * config.in: Regenerate.
8262 * configure: Likewise.
8263
1b451dda
YQ
82642016-01-14 Yao Qi <yao.qi@linaro.org>
8265
8266 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8267 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8268 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8269 arm_get_next_pcs_ctor.
8270
82075af2
JS
82712016-01-12 Josh Stone <jistone@redhat.com>
8272 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8273
8274 * inferiors.h: Include "gdb_vecs.h".
8275 (struct process_info): Add syscalls_to_catch.
8276 * inferiors.c (remove_process): Free syscalls_to_catch.
8277 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8278 syscall_return stops.
8279 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8280 * server.c (handle_general_set): Handle QCatchSyscalls.
8281 (handle_query): Report support for QCatchSyscalls.
8282 * target.h (struct target_ops): Add supports_catch_syscall.
8283 (target_supports_catch_syscall): New macro.
8284 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8285 (struct lwp_info): Add syscall_state.
8286 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8287 Maintain syscall_state and syscalls_to_catch across exec.
8288 (get_syscall_trapinfo): New function, proxy to the_low_target.
8289 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8290 (linux_low_filter_event): Toggle syscall_state entry/return for
8291 syscall traps, and set it ignored for all others.
8292 (gdb_catching_syscalls_p): New function.
8293 (gdb_catch_this_syscall_p): New function.
8294 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8295 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8296 (linux_supports_catch_syscall): New function.
8297 (linux_target_ops): Install it.
8298 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8299 (the_low_target): Install it.
8300
8f13a3ce
MF
83012016-01-12 Mike Frysinger <vapier@gentoo.org>
8302
8303 * acinclude.m4: Include new ../warning.m4 file.
8304 * configure: Regenerated.
8305 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8306
5b3da067
MF
83072016-01-12 Mike Frysinger <vapier@gentoo.org>
8308
8309 * ax.c (is_goto_target): Mark static.
8310 * linux-low.c (register_addr): Likewise.
8311 (linux_fetch_registers, linux_store_registers): Likewise.
8312 * mem-break.c (any_persistent_commands): Fix old prototype.
8313 (add_commands_to_breakpoint): Mark static.
8314 * regcache.c (find_register_by_name): Delete unused func.
8315 * remote-utils.c (hex_or_minus_one): Mark static.
8316 * server.c (monitor_show_help): Mark static.
8317 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8318 handle_v_requests): Likewise.
8319
bc504a31
PA
83202016-01-12 Pedro Alves <palves@redhat.com>
8321
8322 Remove use of the registered trademark symbol throughout.
8323
5a0dd67a
YQ
83242016-01-08 Yao Qi <yao.qi@linaro.org>
8325
8326 * remote-utils.c (getpkt): If c is '\003', call target hook
8327 request_interrupt.
8328
b2ca446f
YQ
83292016-01-06 Yao Qi <yao.qi@linaro.org>
8330
8331 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8332 linux-aarch32-low.c.
8333 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8334 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8335 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8336 (thumb2_breakpoint): Declare.
8337 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8338 linux-aarch32-low.h.
8339 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8340 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8341 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8342
edd88788
JB
83432016-01-01 Joel Brobecker <brobecker@adacore.com>
8344
8345 * gdbreplay.c (gdbreplay_version): Change copyright year in
8346 version message.
8347 * server.c (gdbserver_version): Likewise.
8348
65da7f14
PP
83492015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8350
8351 * server.c (crc32_table): Delete.
8352 (crc32): Use libiberty's xcrc32 function.
8353
4abd5ed2
JB
83542015-12-22 Joel Brobecker <brobecker@adacore.com>
8355
8356 * lynx-low.c (lynx_delete_thread_callback): New function.
8357 (lynx_mourn): Properly delete our process and all of its
8358 threads. Remove call to clear_inferiors.
8359
0e50fe5c
JB
83602015-12-22 Joel Brobecker <brobecker@adacore.com>
8361
8362 * target.c (thread_search_callback): Add check that
8363 the thread_stopped target callback is not NULL before
8364 calling it.
8365
35adc03f
YQ
83662015-12-21 Yao Qi <yao.qi@linaro.org>
8367
8368 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8369 arm breakpoint.
8370
bd2b2909
AT
83712015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8372
8373 * server.c (handle_query): Call target_supports_software_single_step.
8374
7fe5e27e
AT
83752015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8376
8377 * linux-low.c (single_step): New function.
8378 (linux_resume_one_lwp_throw): Call single_step.
8379 (start_step_over): Likewise.
8380
d9311bfa
AT
83812015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8382
8383 * Makefile.in (SFILES): Append arch/arm-linux.c,
8384 arch/arm-get-next-pcs.c.
8385 (arm-linux.o): New rule.
8386 (arm-get-next-pcs.o): New rule.
8387 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8388 arm-linux.o.
8389 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8390 to linux-aarch32-low.c.
8391 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8392 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8393 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8394 (thumb2_breakpoint_len): Likewise.
8395 (arm_is_thumb_mode): Make non-static.
8396 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8397 from linux-aarch32-low.c.
8398 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8399 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8400 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8401 (thumb2_breakpoint_len): Likewise.
8402 (arm_is_thumb_mode): New declaration.
8403 * linux-arm-low.c: Include arch/arm-linux.h
8404 aarch/arm-get-next-pcs.h, sys/syscall.h.
8405 (get_next_pcs_ops): New struct.
8406 (get_next_pcs_addr_bits_remove): New function.
8407 (get_next_pcs_is_thumb): New function.
8408 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8409 (arm_sigreturn_next_pc): Likewise.
8410 (get_next_pcs_syscall_next_pc): Likewise.
8411 (arm_gdbserver_get_next_pcs): Likewise.
8412 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8413 Initialize.
8414 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8415 * server.h: Include gdb_vecs.h.
8416
68ce2059
AT
84172015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8418
8419 * Makefile.in (SFILES): Append common/common-regcache.c.
8420 (OBS): Append common-regcache.o.
8421 (common-regcache.o): New rule.
8422 * regcache.c (init_register_cache): Initialize cache to
8423 REG_UNAVAILABLE.
8424 (regcache_raw_read_unsigned): New function.
8425 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8426 register_status enum.
8427
fa5308bd
AT
84282015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8429
8430 * linux-aarch64-low.c (the_low_targets): Rename
8431 breakpoint_reinsert_addr to get_next_pcs.
8432 * linux-arm-low.c (the_low_targets): Likewise.
8433 * linux-bfin-low.c (the_low_targets): Likewise.
8434 * linux-cris-low.c (the_low_targets): Likewise.
8435 * linux-crisv32-low.c (the_low_targets): Likewise.
8436 * linux-low.c (can_software_single_step): Likewise.
8437 (install_software_single_step_breakpoints): New function.
8438 (start_step_over): Use install_software_single_step_breakpoints.
8439 * linux-low.h: New CORE_ADDR vector.
8440 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8441 get_next_pcs.
8442 * linux-mips-low.c (the_low_targets): Likewise.
8443 * linux-nios2-low.c (the_low_targets): Likewise.
8444 * linux-sparc-low.c (the_low_targets): Likewise.
8445
4a6ed09b
PA
84462015-12-17 Pedro Alves <palves@redhat.com>
8447
8448 * linux-low.c (linux_kill_one_lwp): Remove references to
8449 LinuxThreads.
8450 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8451 to 'kill'.
8452 (linux_init_signals): Delete.
8453 (initialize_low): Adjust.
8454 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8455
7544db95
PA
84562015-12-16 Pedro Alves <palves@redhat.com>
8457
8458 * configure.ac (compiler warning flags): When testing a
8459 -Wno-foo option, check whether -Wfoo works instead.
8460 * configure: Regenerate.
8461
8020350c
DB
84622015-12-11 Don Breazeal <donb@codesourcery.com>
8463
8464 * server.c (process_serial_event): Don't exit from gdbserver
8465 in remote mode if there are still active inferiors.
8466
db91f502
YQ
84672015-12-11 Yao Qi <yao.qi@linaro.org>
8468
8469 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8470 arm_breakpoint_at if the process is 32-bit.
8471
b37a6290
YQ
84722015-12-11 Yao Qi <yao.qi@linaro.org>
8473
8474 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8475 arm breakpoint.
8476
17b1509a
YQ
84772015-12-07 Yao Qi <yao.qi@linaro.org>
8478
8479 * configure.srv: Append arm.o to srv_tgtobj for
8480 aarch64*-*-linux* target.
8481 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8482 from linux-arm-low.c.
8483 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8484 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8485 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8486 (thumb2_breakpoint_len): Likewise.
8487 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8488 (arm_breakpoint_kinds): Likewise.
8489 (arm_breakpoint_kind_from_pc): Likewise.
8490 (arm_sw_breakpoint_from_kind): Likewise.
8491 (arm_breakpoint_kind_from_current_state): Likewise.
8492 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
8493 (arm_sw_breakpoint_from_kind): Declare.
8494 (arm_breakpoint_kind_from_current_state): Declare.
8495 (arm_breakpoint_at): Declare.
8496 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
8497 arm_sw_breakpoint_from_kind if process is 32-bit.
8498 (aarch64_breakpoint_kind_from_pc): New function.
8499 (aarch64_breakpoint_kind_from_current_state): New function.
8500 (the_low_target): Initialize fields breakpoint_kind_from_pc
8501 and breakpoint_kind_from_current_state.
8502 * linux-arm-low.c (arm_breakpoint_kinds): Move to
8503 linux-aarch32-low.c.
8504 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
8505 (arm_breakpoint, arm_breakpoint_len): Likewise.
8506 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
8507 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8508 (arm_is_thumb_mode): Likewise.
8509 (arm_breakpoint_at): Likewise.
8510 (arm_breakpoint_kind_from_pc): Likewise.
8511 (arm_sw_breakpoint_from_kind): Likewise.
8512 (arm_breakpoint_kind_from_current_state): Likewise.
8513
8514 Revert:
8515 2015-08-04 Yao Qi <yao.qi@linaro.org>
8516
8517 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8518 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8519 * server.c (extended_protocol): Remove "static".
8520 * server.h (extended_protocol): Declare it.
8521
ece66d65
JS
85222015-12-04 Josh Stone <jistone@redhat.com>
8523
8524 * target.h (struct target_ops) <arch_setup>: Rename to ...
8525 (struct target_ops) <post_create_inferior>: ... this.
8526 (target_arch_setup): Rename to ...
8527 (target_post_create_inferior): ... this, calling post_create_inferior.
8528 * server.c (start_inferior): Update target_arch_setup calls to
8529 target_post_create_inferior.
8530 * linux-low.c (linux_low_ptrace_options): Forward declare.
8531 (linux_arch_setup): Update its comment for general use.
8532 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
8533 (struct linux_target_ops): Use linux_post_create_inferior.
8534 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
8535 to post_create_inferior.
8536 * nto-low.c (struct nto_target_ops): Likewise.
8537 * spu-low.c (struct spu_target_ops): Likewise.
8538 * win32-low.c (struct win32_target_ops): Likewise.
8539
e58c48b4
AT
85402015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
8541
8542 * linux-arm-low.c: Remove duplicate arch/arm.h include.
8543
fbec8956
AT
85442015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8545
8546 * linux-arm-low.c (arm_reinsert_addr): Remove function.
8547 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
8548 * linux-cris-low.c (cris_reinsert_addr> Remove function.
8549 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8550 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
8551 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8552 * linux-mips-low.c (mips_reinsert_addr): Remove function.
8553 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8554 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
8555 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8556 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
8557 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8558
9b4c5f87
AT
85592015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8560
8561 * linux-low.c (linux_look_up_symbols): Don't call
8562 linux_supports_traceclone.
8563 * linux-low.h (thread_db_init): Remove use_events argument.
8564 * thread-db.c (thread_db_use_event): Remove global variable.
8565 (struct thread_db) <td_thr_event_enable_p>: Remove field.
8566 (struct thread_db) <td_create_bp>: Remove field.
8567 (thread_db_create_event): Remove function.
8568 (thread_db_enable_reporting): Likewise.
8569 (find_one_thread): Don't check for thread_db_use_events.
8570 (attach_thread): Likewise.
8571 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
8572 (try_thread_db_load_1): Don't check for thread_db_use_events.
8573 (thread_db_init): Remove use_events argument and thread events
8574 handling.
8575 (remove_thread_event_breakpoints): Remove function.
8576 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
8577
7d00775e
AT
85782015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8579
8580 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
8581 New function.
8582 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8583 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
8584 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8585 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
8586 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
8587 Initialize.
8588 * linux-crisv32-low.c (cris_supports_hardware_single_step):
8589 New function.
8590 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8591 * linux-low.c (can_hardware_single_step): Use
8592 supports_hardware_single_step.
8593 (can_software_single_step): New function.
8594 (start_step_over): Call can_software_single_step.
8595 (linux_supports_hardware_single_step): New function.
8596 (struct target_ops) <supports_software_single_step>: Initialize.
8597 * linux-low.h (struct linux_target_ops)
8598 <supports_hardware_single_step>: Initialize.
8599 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
8600 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8601 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
8602 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
8603 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
8604 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8605 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
8606 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8607 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
8608 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
8609 Initialize.
8610 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
8611 (struct linux_target_ops) <tile_supports_hardware_single_step>:
8612 Initialize.
8613 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
8614 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8615 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
8616 New function.
8617 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8618 * target.h (struct target_ops): <supports_software_single_step>:
8619 New field.
8620 (target_supports_software_single_step): New macro.
8621
2d97cd35
AT
86222015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8623
8624 * linux-low.c (linux_wait_1): Fix pc advance condition.
8625 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
8626 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
8627
769ef81f
AT
86282015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8629
8630 * linux-arm-low.c (arm_is_thumb_mode): New function.
8631 (arm_breakpoint_at): Use arm_is_thumb_mode.
8632 (arm_breakpoint_kind_from_current_state): New function.
8633 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
8634 Initialize.
8635 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
8636 (linux_breakpoint_kind_from_current_state): New function.
8637 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
8638 * linux-low.h (struct linux_target_ops)
8639 <breakpoint_kind_from_current_state>: New field.
8640 * target.h (struct target_ops): Likewise.
8641 (target_breakpoint_kind_from_current_state): New macro.
8642
1bebeeca
PA
86432015-11-30 Pedro Alves <palves@redhat.com>
8644
8645 * linux-low.c (linux_resume): Wake up the event loop before
8646 returning.
8647
a67a9fae
PA
86482015-11-30 Pedro Alves <palves@redhat.com>
8649
8650 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
8651 check.
8652 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
8653 to -1.
8654 * target.c (struct thread_search): New structure.
8655 (thread_search_callback): New function.
8656 (prev_general_thread): New global.
8657 (prepare_to_access_memory, done_accessing_memory): New functions.
8658 * target.h (prepare_to_access_memory, done_accessing_memory):
8659 Replace macros with function declarations.
8660
f2faf941
PA
86612015-11-30 Pedro Alves <palves@redhat.com>
8662
8663 PR 14618
8664 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
8665 report TARGET_WAITKIND_NO_RESUMED.
8666 * remote-utils.c (prepare_resume_reply): Handle
8667 TARGET_WAITKIND_NO_RESUMED.
8668 * server.c (report_no_resumed): New global.
8669 (handle_query) <qSupported>: Handle "no-resumed+". Report
8670 "no-resumed+" support.
8671 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
8672 return error if the client doesn't support no-resumed events.
8673 (push_stop_notification): New function.
8674 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
8675 events if the client supports them.
8676
a681f9c9
PA
86772015-11-30 Pedro Alves <palves@redhat.com>
8678
8679 * linux-low.c (thread_still_has_status_pending_p): Don't check
8680 vCont;t here.
8681 (lwp_resumed): New function.
8682 (status_pending_p_callback): Return early if the LWP is not
8683 supposed to be resumed.
8684
65706a29
PA
86852015-11-30 Pedro Alves <palves@redhat.com>
8686
8687 * linux-low.c (handle_extended_wait): Assert that the LWP's
8688 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
8689 thread create events, leave the new child's status pending.
8690 (linux_low_filter_event): If GDB wants to hear about thread exit
8691 events, leave the LWP marked dead and don't delete it.
8692 (linux_wait_for_event_filtered): Don't check for thread exit.
8693 (filter_exit_event): New function.
8694 (linux_wait_1): Use it, when returning an exit event.
8695 (linux_resume_one_lwp_throw): Assert that the LWP's
8696 waitstatus is TARGET_WAITKIND_IGNORE.
8697 * remote-utils.c (prepare_resume_reply): Handle
8698 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
8699 * server.c (report_thread_events): New global.
8700 (handle_general_set): Handle QThreadEvents.
8701 (handle_query) <qSupported>: Handle and report QThreadEvents+;
8702 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
8703 TARGET_WAITKIND_THREAD_EXITED.
8704 * server.h (report_thread_events): Declare.
8705
56cf4bed
PA
87062015-11-30 Pedro Alves <palves@redhat.com>
8707
8708 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
8709 the thread's last_resume_kind was resume_stop.
8710
500c1d85
PA
87112015-11-30 Pedro Alves <palves@redhat.com>
8712
8713 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
8714 before returning.
8715
de979965
PA
87162015-11-30 Pedro Alves <palves@redhat.com>
8717
8718 * server.c (handle_v_requests): Handle vCtrlC.
8719
34c65914
PA
87202015-11-30 Pedro Alves <palves@redhat.com>
8721
8722 * gdbthread.h (find_any_thread_of_pid): Declare.
8723 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
8724 functions.
8725 * server.c (handle_query): If current_thread is NULL, look for
8726 another thread of the selected process.
8727
79efa585 87282015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 8729 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
8730
8731 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
8732 * server.c (handle_qxfer_threads_worker): Refactor to include thread
8733 name in reply.
8734 * target.h (struct target_ops) <thread_name>: New field.
8735 (target_thread_name): New macro.
8736
80d82c19
JB
87372015-11-23 Joel Brobecker <brobecker@adacore.com>
8738
8739 * regcache.h (regcache_invalidate_pid): Add declaration.
8740 * regcache.c (regcache_invalidate_pid): New function, extracted
8741 from regcache_invalidate.
8742 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
8743 Add trivial documentation comment.
8744 * lynx-low.c: Use regcache_invalidate_pid instead of
8745 regcache_invalidate.
8746
64da5dd5
JB
87472015-11-23 Joel Brobecker <brobecker@adacore.com>
8748
8749 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
8750 and Elf64_auxv_t if the target is Android.
8751
37ce4055
DE
87522015-11-22 Doug Evans <xdje42@gmail.com>
8753
8754 * target.h: #include <sys/types.h>.
8755
06e03fff
PA
87562015-11-19 Pedro Alves <palves@redhat.com>
8757
8758 * linux-low.c (linux_process_qsupported): Change prototype.
8759 Adjust.
8760 * linux-low.h (struct linux_target_ops) <process_qsupported>:
8761 Change prototype.
8762 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
8763 and adjust to loop over all features.
8764 * server.c (handle_query) <qSupported>: Adjust to call
8765 target_process_qsupported once, passing it a vector of unprocessed
8766 features.
8767 * target.h (struct target_ops) <process_qsupported>: Change
8768 prototype.
8769 (target_process_qsupported): Adjust.
8770
9a084706
PA
87712015-11-19 Pedro Alves <palves@redhat.com>
8772
8773 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
8774 mode.
8775 * configure: Regenerate.
8776
dad44a1f
PA
87772015-11-19 Pedro Alves <palves@redhat.com>
8778
8779 * configure: Regenerate.
8780
231c0592
YQ
87812015-11-19 Yao Qi <yao.qi@linaro.org>
8782
8783 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
8784 type to uint32_t.
8785
6c1c9a8b
YQ
87862015-11-19 Yao Qi <yao.qi@linaro.org>
8787
8788 * linux-aarch64-low.c (enum aarch64_operand_type): New.
8789 (struct aarch64_operand): Move enum out.
8790
9caa3311
YQ
87912015-11-19 Yao Qi <yao.qi@linaro.org>
8792
8793 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
8794 struct user_fpsimd_state *.
8795 (aarch64_store_fpregset): Likewise.
8796
6a69a054
YQ
87972015-11-19 Yao Qi <yao.qi@linaro.org>
8798
8799 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
8800 struct user_pt_regs *.
8801 (aarch64_store_gregset): Likewise.
8802
1798301e
PA
88032015-11-18 Pedro Alves <palves@redhat.com>
8804
8805 * Makefile.in (all_object_files): Add $IPA_OBJS.
8806
ce7715e2
PA
88072015-11-17 Pedro Alves <palves@redhat.com>
8808
8809 * win32-low.c (win32_resume): Use gdb_signal_from_host,
8810 GDB_SIGNAL_0 and gdb_signal_to_string.
8811
c0879059
PA
88122015-11-17 Pedro Alves <palves@redhat.com>
8813
8814 * win32-low.c (handle_output_debug_string): Remove parameter.
8815 (win32_kill): Remove our_status local and adjust call to
8816 handle_output_debug_string.
8817 (get_child_debug_event): Adjust call to
8818 handle_output_debug_string.
8819
1996e237
SM
88202015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8821
8822 * linux-mips-low.c (mips_fill_gregset): Add cast.
8823 (mips_store_gregset): Likewise.
8824 (mips_fill_fpregset): Likewise.
8825 (mips_store_fpregset): Likewise.
8826
cbec665b
SM
88272015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8828
8829 * linux-mips-low.c (mips_add_watchpoint): Rename private to
8830 priv.
8831
eb3e3c67
SM
88322015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8833
8834 * linux-mips-low.c (mips_linux_new_thread): Change type of
8835 watch_type to enum target_hw_bp_type.
8836
171de4b8
SM
88372015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8838
8839 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
8840 Change return type to arm_hwbp_type.
8841
04248ead
SM
88422015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8843
8844 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
8845 (arm_store_gregset): Likewise.
8846 * linux-arm-low.c (arm_get_hwcap): Likewise.
8847 (arm_read_description): Likewise.
8848
04b3479c
SM
88492015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8850
8851 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
8852
2bc84e8a
SM
88532015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8854
8855 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
8856 (ppc_fill_vsxregset): Likewise.
8857 (ppc_store_vsxregset): Likewise.
8858 (ppc_fill_vrregset): Likewise.
8859 (ppc_store_vrregset): Likewise.
8860 (ppc_fill_evrregset): Likewise.
8861 (ppc_store_evrregset): Likewise.
8862
e6c5bb05
SM
88632015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8864
8865 * linux-ppc-low.c (ppc_usrregs_info): Remove
8866 forward-declaration.
8867 (ppc_arch_setup): Move lower in file.
8868
7ea45d72
SM
88692015-10-30 Simon Marchi <simon.marchi@ericsson.com>
8870
8871 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
8872 (ps_pdwrite): Likewise.
8873
69291610
HW
88742015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
8875
8876 * linux-arm-low.c (arm_new_thread): Move pointer dereference
8877 to after assert checks.
8878
b42945fd
SM
88792015-10-29 Simon Marchi <simon.marchi@ericsson.com>
8880
8881 * proc-service.c (ps_pdread): Add/adjust casts.
8882 (ps_pdwrite): Add/adjust casts.
8883
d6f85c84
SM
88842015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
8885
8886 * server.c (handle_search_memory_1): Cast return value of
8887 memmem.
8888
f98cd059
SM
88892015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
8890
8891 * server.c (write_qxfer_response): Change type of data to
8892 gdb_byte *.
8893
d2412fa5
PA
88942015-10-29 Pedro Alves <palves@redhat.com>
8895
8896 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
8897
c17414a2
PA
88982015-10-29 Pedro Alves <palves@redhat.com>
8899
8900 * tracepoint.c (clear_installed_tracepoints): Add casts.
8901
e053fbc4
PA
89022015-10-29 Pedro Alves <palves@redhat.com>
8903
8904 * server.c (handle_v_cont, process_serial_event): Add enum
8905 gdb_signal casts to signal parsing code.
8906
add67df8
PA
89072015-10-29 Pedro Alves <palves@redhat.com>
8908
8909 * linux-low.h (NULL_REGSET): Define.
8910 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
8911 * linux-arm-low.c (arm_regsets): Likewise.
8912 * linux-crisv32-low.c (cris_regsets): Likewise.
8913 * linux-m68k-low.c (m68k_regsets): Likewise.
8914 * linux-mips-low.c (mips_regsets): Likewise.
8915 * linux-nios2-low.c (nios2_regsets): Likewise.
8916 * linux-ppc-low.c (ppc_regsets): Likewise.
8917 * linux-s390-low.c (s390_regsets): Likewise.
8918 * linux-sh-low.c (sh_regsets): Likewise.
8919 * linux-sparc-low.c (sparc_regsets): Likewise.
8920 * linux-tic6x-low.c (tic6x_regsets): Likewise.
8921 * linux-tile-low.c (tile_regsets): Likewise.
8922 * linux-x86-low.c (x86_regsets): Likewise.
8923 * linux-xtensa-low.c (xtensa_regsets): Likewise.
8924
50bc912a
PA
89252015-10-29 Pedro Alves <palves@redhat.com>
8926
8927 * linux-low.h (NULL_REGSET): Define.
8928 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
8929 * linux-arm-low.c (arm_regsets): Likewise.
8930 * linux-crisv32-low.c (cris_regsets): Likewise.
8931 * linux-m68k-low.c (m68k_regsets): Likewise.
8932 * linux-mips-low.c (mips_regsets): Likewise.
8933 * linux-nios2-low.c (nios2_regsets): Likewise.
8934 * linux-ppc-low.c (ppc_regsets): Likewise.
8935 * linux-s390-low.c (s390_regsets): Likewise.
8936 * linux-sh-low.c (sh_regsets): Likewise.
8937 * linux-sparc-low.c (sparc_regsets): Likewise.
8938 * linux-tic6x-low.c (tic6x_regsets): Likewise.
8939 * linux-tile-low.c (tile_regsets): Likewise.
8940 * linux-x86-low.c (x86_regsets): Likewise.
8941 * linux-xtensa-low.c (xtensa_regsets): Likewise.
8942
682b2546
DE
89432015-10-26 Doug Evans <dje@google.com>
8944
8945 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
8946
963843d4
DE
89472015-10-26 Doug Evans <dje@google.com>
8948
8949 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
8950
d41401ac
DE
89512015-10-26 Doug Evans <dje@google.com>
8952
8953 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
8954 for debug_printf.
8955 (attach_thread, find_new_threads_callback): Ditto.
8956
3db28855
AT
89572015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
8958
8959 * mem-break.h (set_breakpoint_data): Remove.
8960
fb78e89c
AT
89612015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
8962
8963 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
8964 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
8965 (initialize_low): Remove set_breakpoint_data call.
8966 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
8967 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
8968 (initialize_low): Remove set_breakpoint_data call.
8969 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
8970 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
8971 (initialize_low): Remove set_breakpoint_data call.
8972
2e6ee069
AT
89732015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
8974
8975 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
8976 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
8977 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
8978 * target.h (target_breakpoint_kind_from_pc): New macro.
8979
1652a986
AT
89802015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
8981
8982 * linux-low.c (default_breakpoint_kind_from_pc): New function.
8983 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
8984 the default breakpoint kind.
8985
abeead09
AT
89862015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8987
8988 * linux-arm-low.c (arm_supports_z_point_type): Add software
8989 breakpoint support.
8990
b0b4b501
AT
89912015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8992
8993 * linux-arm-low.c: Refactor breakpoint definitions.
8994 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
8995 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
8996
8689682c
AT
89972015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8998
8999 * Makefile.in: Add arm.c/o.
9000 * configure.srv: Likewise.
9001 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9002 (arm_breakpoint_kind_from_pc): New function.
9003 (arm_sw_breakpoint_from_kind): Return proper kind.
9004 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9005
27165294
AT
90062015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9007
9008 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9009 removal.
9010 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9011 (struct raw_breakpoint) <size>: Remove.
9012 (struct raw_breakpoint) <kind>: Add.
9013 (bp_size): New function.
9014 (bp_opcode): Likewise.
9015 (find_raw_breakpoint_at): Adjust for kind.
9016 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9017 (remove_memory_breakpoint): Adjust for kind call bp_size.
9018 (set_raw_breakpoint_at): Adjust for kind.
9019 (set_breakpoint): Likewise.
9020 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9021 (delete_raw_breakpoint): Adjust for kind.
9022 (delete_breakpoint): Likewise.
9023 (find_gdb_breakpoint): Likewise.
9024 (set_gdb_breakpoint_1): Likewise.
9025 (set_gdb_breakpoint): Likewise.
9026 (delete_gdb_breakpoint_1): Likewise.
9027 (delete_gdb_breakpoint): Likewise.
9028 (uninsert_raw_breakpoint): Likewise.
9029 (reinsert_raw_breakpoint): Likewise.
9030 (set_breakpoint_data): Remove.
9031 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9032 (check_mem_read): Adjust for kind call bp_size.
9033 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9034 (clone_one_breakpoint): Adjust for kind.
9035 * mem-break.h (set_gdb_breakpoint): Likewise.
9036 (delete_gdb_breakpoint): Likewise.
9037 * server.c (process_serial_event): Likewise.
9038
dd373349
AT
90392015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9040
9041 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9042 (struct linux_target_ops) <breakpoint>: Remove.
9043 (struct linux_target_ops) <breakpoint_len>: Remove.
9044 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9045 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9046 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9047 (arm_sw_breakpoint_from_kind): New function.
9048 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9049 (struct linux_target_ops) <breakpoint>: Remove.
9050 (struct linux_target_ops) <breakpoint_len>: Remove.
9051 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9052 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9053 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9054 (struct linux_target_ops) <breakpoint>: Remove.
9055 (struct linux_target_ops) <breakpoint_len>: Remove.
9056 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9057 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9058 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9059 (struct linux_target_ops) <breakpoint>: Remove.
9060 (struct linux_target_ops) <breakpoint_len>: Remove.
9061 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9062 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9063 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9064 and sw_breakpoint_from_kind to increment the pc.
9065 (linux_breakpoint_kind_from_pc): New function.
9066 (linux_sw_breakpoint_from_kind): New function.
9067 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9068 (initialize_low): Call breakpoint_kind_from_pc and
9069 sw_breakpoint_from_kind to replace breakpoint_data/len.
9070 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9071 New field.
9072 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9073 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9074 (struct linux_target_ops) <breakpoint>: Remove.
9075 (struct linux_target_ops) <breakpoint_len>: Remove.
9076 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9077 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9078 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9079 (struct linux_target_ops) <breakpoint>: Remove.
9080 (struct linux_target_ops) <breakpoint_len>: Remove.
9081 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9082 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9083 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9084 (struct linux_target_ops) <breakpoint>: Remove.
9085 (struct linux_target_ops) <breakpoint_len>: Remove.
9086 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9087 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9088 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9089 (struct linux_target_ops) <breakpoint>: Remove.
9090 (struct linux_target_ops) <breakpoint_len>: Remove.
9091 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9092 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9093 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9094 (struct linux_target_ops) <breakpoint>: Remove.
9095 (struct linux_target_ops) <breakpoint_len>: Remove.
9096 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9097 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9098 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9099 (struct linux_target_ops) <breakpoint>: Remove.
9100 (struct linux_target_ops) <breakpoint_len>: Remove.
9101 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9102 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9103 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9104 (struct linux_target_ops) <breakpoint>: Remove.
9105 (struct linux_target_ops) <breakpoint_len>: Remove.
9106 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9107 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9108 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9109 (struct linux_target_ops) <breakpoint>: Remove.
9110 (struct linux_target_ops) <breakpoint_len>: Remove.
9111 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9112 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9113 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9114 (struct linux_target_ops) <breakpoint>: Remove.
9115 (struct linux_target_ops) <breakpoint_len>: Remove.
9116 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9117 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9118 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9119 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9120 (struct linux_target_ops) <breakpoint>: Remove.
9121 (struct linux_target_ops) <breakpoint_len>: Remove.
9122 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9123 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9124 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9125 (struct linux_target_ops) <breakpoint>: Remove.
9126 (struct linux_target_ops) <breakpoint_len>: Remove.
9127 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9128 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9129
4cd98a19
AT
91302015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9131
9132 * linux-cris-low.c (cris_get_pc): Remove void arg.
9133
774ee6d2
AR
91342015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9135
9136 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9137 variable name.
9138
833dcd29
AR
91392015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9140
9141 * inferiors.c (thread_pid_matches_callback): New function.
9142 (find_thread_process): New function.
9143 (remove_thread): Reset current_thread.
9144 (remove_process): Assert threads have been removed first.
9145
8d689ee5
YQ
91462015-10-15 Yao Qi <yao.qi@linaro.org>
9147
9148 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9149 if it is 3.
9150 (aarch64_remove_point): Likewise.
9151 * regcache.c (regcache_register_size): New function.
9152
1c2e1515
YQ
91532015-10-12 Yao Qi <yao.qi@linaro.org>
9154
9155 * linux-aarch64-low.c: Update all callers as emit_load_store
9156 is renamed to aarch64_emit_load_store.
9157
e1c587c3
YQ
91582015-10-12 Yao Qi <yao.qi@linaro.org>
9159
9160 * linux-aarch64-low.c: Update all callers of function renaming
9161 from emit_insn to aarch64_emit_insn.
9162
b6542f81
YQ
91632015-10-12 Yao Qi <yao.qi@linaro.org>
9164
9165 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9166 arch/aarch64-insn.h.
9167 (struct aarch64_memory_operand): Likewise.
9168 (ENCODE): Likewise.
9169 (emit_insn): Move to arch/aarch64-insn.c.
9170 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9171 (emit_load_store): Move to arch/aarch64-insn.c.
9172 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9173 (can_encode_int32): Remove.
9174
246994ce
YQ
91752015-10-12 Yao Qi <yao.qi@linaro.org>
9176
9177 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9178 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9179 (aarch64_relocate_instruction): Likewise.
9180 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9181 (struct aarch64_insn_visitor): Likewise.
9182
0badd99f
YQ
91832015-10-12 Yao Qi <yao.qi@linaro.org>
9184
9185 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9186 (struct aarch64_insn_visitor): New.
9187 (struct aarch64_insn_relocation_data): New.
9188 (aarch64_ftrace_insn_reloc_b): New function.
9189 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9190 (aarch64_ftrace_insn_reloc_cb): Likewise.
9191 (aarch64_ftrace_insn_reloc_tb): Likewise.
9192 (aarch64_ftrace_insn_reloc_adr): Likewise.
9193 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9194 (aarch64_ftrace_insn_reloc_others): Likewise.
9195 (visitor): New.
9196 (aarch64_relocate_instruction): Use visitor.
9197
dfaffe9d
YQ
91982015-10-12 Yao Qi <yao.qi@linaro.org>
9199
9200 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9201 int. Add argument buf.
9202 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9203 aarch64_relocate_instruction.
9204
70b439f0
YQ
92052015-10-12 Yao Qi <yao.qi@linaro.org>
9206
9207 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9208 argument insn. Remove local variable insn. Don't call
9209 target_read_uint32.
9210 (aarch64_install_fast_tracepoint_jump_pad): Call
9211 target_read_uint32.
9212
7781c06f
YQ
92132015-09-30 Yao Qi <yao.qi@linaro.org>
9214
9215 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9216 (emit_load_store_pair): Likewise.
9217
9a3c8263
SM
92182015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9219
9220 * dll.c (match_dll): Add cast(s).
9221 (unloaded_dll): Likewise.
9222 * linux-low.c (second_thread_of_pid_p): Likewise.
9223 (delete_lwp_callback): Likewise.
9224 (count_events_callback): Likewise.
9225 (select_event_lwp_callback): Likewise.
9226 (linux_set_resume_request): Likewise.
9227 * server.c (accumulate_file_name_length): Likewise.
9228 (emit_dll_description): Likewise.
9229 (handle_qxfer_threads_worker): Likewise.
9230 (visit_actioned_threads): Likewise.
9231 * thread-db.c (any_thread_of): Likewise.
9232 * tracepoint.c (same_process_p): Likewise.
9233 (match_blocktype): Likewise.
9234 (build_traceframe_info_xml): Likewise.
9235
224c3ddb
SM
92362015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9237
9238 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9239 assignment.
9240 (gdb_unparse_agent_expr): Likewise.
9241 * hostio.c (require_data): Likewise.
9242 (handle_pread): Likewise.
9243 * linux-low.c (disable_regset): Likewise.
9244 (fetch_register): Likewise.
9245 (store_register): Likewise.
9246 (get_dynamic): Likewise.
9247 (linux_qxfer_libraries_svr4): Likewise.
9248 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9249 (set_fast_tracepoint_jump): Likewise.
9250 (uninsert_fast_tracepoint_jumps_at): Likewise.
9251 (reinsert_fast_tracepoint_jumps_at): Likewise.
9252 (validate_inserted_breakpoint): Likewise.
9253 (clone_agent_expr): Likewise.
9254 * regcache.c (init_register_cache): Likewise.
9255 * remote-utils.c (putpkt_binary_1): Likewise.
9256 (decode_M_packet): Likewise.
9257 (decode_X_packet): Likewise.
9258 (look_up_one_symbol): Likewise.
9259 (relocate_instruction): Likewise.
9260 (monitor_output): Likewise.
9261 * server.c (handle_search_memory): Likewise.
9262 (handle_qxfer_exec_file): Likewise.
9263 (handle_qxfer_libraries): Likewise.
9264 (handle_qxfer): Likewise.
9265 (handle_query): Likewise.
9266 (handle_v_cont): Likewise.
9267 (handle_v_run): Likewise.
9268 (captured_main): Likewise.
9269 * target.c (write_inferior_memory): Likewise.
9270 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9271 * tracepoint.c (init_trace_buffer): Likewise.
9272 (add_tracepoint_action): Likewise.
9273 (add_traceframe): Likewise.
9274 (add_traceframe_block): Likewise.
9275 (cmd_qtdpsrc): Likewise.
9276 (cmd_qtdv): Likewise.
9277 (cmd_qtstatus): Likewise.
9278 (response_source): Likewise.
9279 (response_tsv): Likewise.
9280 (cmd_qtnotes): Likewise.
9281 (gdb_collect): Likewise.
9282 (initialize_tracepoint): Likewise.
9283
afbe19f8
PL
92842015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9285
9286 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9287 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9288 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9289 <NOP>: New.
9290 (enum aarch64_condition_codes): New enum.
9291 (w0): New static global.
9292 (fp): Likewise.
9293 (lr): Likewise.
9294 (struct aarch64_memory_operand) <type>: New
9295 MEMORY_OPERAND_POSTINDEX type.
9296 (postindex_memory_operand): New helper function.
9297 (emit_ret): New function.
9298 (emit_load_store_pair): New function, factored out of emit_stp
9299 with support for MEMORY_OPERAND_POSTINDEX.
9300 (emit_stp): Rewrite using emit_load_store_pair.
9301 (emit_ldp): New function.
9302 (emit_load_store): Likewise.
9303 (emit_ldr): Mention post-index instruction in comment.
9304 (emit_ldrh): New function.
9305 (emit_ldrb): New function.
9306 (emit_ldrsw): Mention post-index instruction in comment.
9307 (emit_str): Likewise.
9308 (emit_subs): New function.
9309 (emit_cmp): Likewise.
9310 (emit_and): Likewise.
9311 (emit_orr): Likewise.
9312 (emit_orn): Likewise.
9313 (emit_eor): Likewise.
9314 (emit_mvn): Likewise.
9315 (emit_lslv): Likewise.
9316 (emit_lsrv): Likewise.
9317 (emit_asrv): Likewise.
9318 (emit_mul): Likewise.
9319 (emit_sbfm): Likewise.
9320 (emit_sbfx): Likewise.
9321 (emit_ubfm): Likewise.
9322 (emit_ubfx): Likewise.
9323 (emit_csinc): Likewise.
9324 (emit_cset): Likewise.
9325 (emit_nop): Likewise.
9326 (emit_ops_insns): New helper function.
9327 (emit_pop): Likewise.
9328 (emit_push): Likewise.
9329 (aarch64_emit_prologue): New function.
9330 (aarch64_emit_epilogue): Likewise.
9331 (aarch64_emit_add): Likewise.
9332 (aarch64_emit_sub): Likewise.
9333 (aarch64_emit_mul): Likewise.
9334 (aarch64_emit_lsh): Likewise.
9335 (aarch64_emit_rsh_signed): Likewise.
9336 (aarch64_emit_rsh_unsigned): Likewise.
9337 (aarch64_emit_ext): Likewise.
9338 (aarch64_emit_log_not): Likewise.
9339 (aarch64_emit_bit_and): Likewise.
9340 (aarch64_emit_bit_or): Likewise.
9341 (aarch64_emit_bit_xor): Likewise.
9342 (aarch64_emit_bit_not): Likewise.
9343 (aarch64_emit_equal): Likewise.
9344 (aarch64_emit_less_signed): Likewise.
9345 (aarch64_emit_less_unsigned): Likewise.
9346 (aarch64_emit_ref): Likewise.
9347 (aarch64_emit_if_goto): Likewise.
9348 (aarch64_emit_goto): Likewise.
9349 (aarch64_write_goto_address): Likewise.
9350 (aarch64_emit_const): Likewise.
9351 (aarch64_emit_call): Likewise.
9352 (aarch64_emit_reg): Likewise.
9353 (aarch64_emit_pop): Likewise.
9354 (aarch64_emit_stack_flush): Likewise.
9355 (aarch64_emit_zero_ext): Likewise.
9356 (aarch64_emit_swap): Likewise.
9357 (aarch64_emit_stack_adjust): Likewise.
9358 (aarch64_emit_int_call_1): Likewise.
9359 (aarch64_emit_void_call_2): Likewise.
9360 (aarch64_emit_eq_goto): Likewise.
9361 (aarch64_emit_ne_goto): Likewise.
9362 (aarch64_emit_lt_goto): Likewise.
9363 (aarch64_emit_le_goto): Likewise.
9364 (aarch64_emit_gt_goto): Likewise.
9365 (aarch64_emit_ge_got): Likewise.
9366 (aarch64_emit_ops_impl): New static global variable.
9367 (aarch64_emit_ops): New target function, return
9368 &aarch64_emit_ops_impl.
9369 (struct linux_target_ops): Install it.
9370
bb903df0
PL
93712015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9372
9373 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9374 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9375 aarch64-ipa.o.
9376 * linux-aarch64-ipa.c: New file.
9377 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9378 and endian.h.
9379 (aarch64_get_thread_area): New target method.
9380 (extract_signed_bitfield): New helper function.
9381 (aarch64_decode_ldr_literal): New function.
9382 (enum aarch64_opcodes): New enum.
9383 (struct aarch64_register): New struct.
9384 (struct aarch64_operand): New struct.
9385 (x0): New static global.
9386 (x1): Likewise.
9387 (x2): Likewise.
9388 (x3): Likewise.
9389 (x4): Likewise.
9390 (w2): Likewise.
9391 (ip0): Likewise.
9392 (sp): Likewise.
9393 (xzr): Likewise.
9394 (aarch64_register): New helper function.
9395 (register_operand): Likewise.
9396 (immediate_operand): Likewise.
9397 (struct aarch64_memory_operand): New struct.
9398 (offset_memory_operand): New helper function.
9399 (preindex_memory_operand): Likewise.
9400 (enum aarch64_system_control_registers): New enum.
9401 (ENCODE): New macro.
9402 (emit_insn): New helper function.
9403 (emit_b): New function.
9404 (emit_bcond): Likewise.
9405 (emit_cb): Likewise.
9406 (emit_tb): Likewise.
9407 (emit_blr): Likewise.
9408 (emit_stp): Likewise.
9409 (emit_ldp_q_offset): Likewise.
9410 (emit_stp_q_offset): Likewise.
9411 (emit_load_store): Likewise.
9412 (emit_ldr): Likewise.
9413 (emit_ldrsw): Likewise.
9414 (emit_str): Likewise.
9415 (emit_ldaxr): Likewise.
9416 (emit_stxr): Likewise.
9417 (emit_stlr): Likewise.
9418 (emit_data_processing_reg): Likewise.
9419 (emit_data_processing): Likewise.
9420 (emit_add): Likewise.
9421 (emit_sub): Likewise.
9422 (emit_mov): Likewise.
9423 (emit_movk): Likewise.
9424 (emit_mov_addr): Likewise.
9425 (emit_mrs): Likewise.
9426 (emit_msr): Likewise.
9427 (emit_sevl): Likewise.
9428 (emit_wfe): Likewise.
9429 (append_insns): Likewise.
9430 (can_encode_int32_in): New helper function.
9431 (aarch64_relocate_instruction): New function.
9432 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9433 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9434 (struct linux_target_ops): Install aarch64_get_thread_area,
9435 aarch64_install_fast_tracepoint_jump_pad and
9436 aarch64_get_min_fast_tracepoint_insn_len.
9437
787749ea
PL
94382015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9439
9440 * Makefile.in (aarch64-insn.o): New rule.
9441 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9442
9812b2e6
YQ
94432015-09-21 Yao Qi <yao.qi@linaro.org>
9444
9445 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9446
18fe412b
YQ
94472015-09-21 Yao Qi <yao.qi@linaro.org>
9448
9449 * tracepoint.c (max_jump_pad_size): Remove.
9450
a0cc84cd
YQ
94512015-09-18 Yao Qi <yao.qi@linaro.org>
9452
9453 * linux-aarch64-low.c: Don't include sys/uio.h.
9454 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9455
d78908cf
WW
94562015-09-16 Wei-cheng Wang <cole945@gmail.com>
9457
9458 * tracepoint.c (eval_result_type): Change prototype.
9459 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9460
d57e0d50
PA
94612015-09-15 Pedro Alves <palves@redhat.com>
9462
9463 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9464 Check whether to report exec events instead of checking whether
9465 multiprocess is enabled.
9466
5a676acc
PA
94672015-09-15 Pedro Alves <palves@redhat.com>
9468
9469 PR remote/18965
9470 * remote-utils.c (prepare_resume_reply): Merge
9471 TARGET_WAITKIND_VFORK_DONE switch case with the
9472 TARGET_WAITKIND_FORKED case.
9473
7c5d0fad
YQ
94742015-09-15 Yao Qi <yao.qi@linaro.org>
9475
9476 * server.c (handle_query): Check string comparison using
9477 "else if" instead of "if".
9478
750ce8d1
YQ
94792015-09-15 Yao Qi <yao.qi@linaro.org>
9480
9481 * server.c (vCont_supported): New global variable.
9482 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9483 matches. Append ";vContSupported+" to own_buf.
9484 (handle_v_requests): Append ";s;S" to own_buf if target supports
9485 hardware single step or vCont_supported is false.
9486 (capture_main): Set vCont_supported to zero.
9487
70b90b91
YQ
94882015-09-15 Yao Qi <yao.qi@linaro.org>
9489
9490 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9491 it to ...
9492 (linux_supports_hardware_single_step): ... New function.
9493 (linux_target_ops): Update.
9494 * lynx-low.c (lynx_target_ops): Set field
9495 supports_hardware_single_step to target_can_do_hardware_single_step.
9496 * nto-low.c (nto_target_ops): Likewise.
9497 * spu-low.c (spu_target_ops): Likewise.
9498 * win32-low.c (win32_target_ops): Likewise.
9499 * target.c (target_can_do_hardware_single_step): New function.
9500 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9501 Remove. <supports_hardware_single_step>: New field.
9502 (target_supports_conditional_breakpoints): Remove.
9503 (target_supports_hardware_single_step): New macro.
9504 (target_can_do_hardware_single_step): Declare.
9505 * server.c (handle_query): Use target_supports_hardware_single_step
9506 instead of target_supports_conditional_breakpoints.
9507
ade90bde
YQ
95082015-09-15 Yao Qi <yao.qi@linaro.org>
9509
9510 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
9511 function.
9512 (struct linux_target_ops the_low_target): Install
9513 aarch64_linux_siginfo_fixup.
9514
94585166
DB
95152015-09-11 Don Breazeal <donb@codesourcery.com>
9516 Luis Machado <lgustavo@codesourcery.com>
9517
9518 * linux-low.c (linux_mourn): Static declaration.
9519 (linux_arch_setup): Move in front of
9520 handle_extended_wait.
9521 (linux_arch_setup_thread): New function.
9522 (handle_extended_wait): Handle exec events. Call
9523 linux_arch_setup_thread. Make event_lwp argument a
9524 pointer-to-a-pointer.
9525 (check_zombie_leaders): Do not check stopped threads.
9526 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
9527 (linux_low_filter_event): Add lwp and thread for exec'ing
9528 non-leader thread if leader thread has been deleted.
9529 Refactor code into linux_arch_setup_thread and call it.
9530 Pass child lwp pointer by reference to handle_extended_wait.
9531 (linux_wait_for_event_filtered): Update comment.
9532 (linux_wait_1): Prevent clobbering exec event status.
9533 (linux_supports_exec_events): New function.
9534 (linux_target_ops) <supports_exec_events>: Initialize new member.
9535 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
9536 new member.
9537 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
9538 * server.c (report_exec_events): New global variable.
9539 (handle_query): Handle qSupported query for exec-events feature.
9540 (captured_main): Initialize report_exec_events.
9541 * server.h (report_exec_events): Declare new global variable.
9542 * target.h (struct target_ops) <supports_exec_events>: New
9543 member.
9544 (target_supports_exec_events): New macro.
9545 * win32-low.c (win32_target_ops) <supports_exec_events>:
9546 Initialize new member.
9547
0568462b
MM
95482015-09-09 Markus Metzger <markus.t.metzger@intel.com>
9549
9550 * linux-low.c (linux_low_enable_btrace): Remove.
9551 (linux_target_ops): Replace linux_low_enable_btrace with
9552 linux_enable_btrace.
9553
39edd165
YQ
95542015-09-03 Yao Qi <yao.qi@linaro.org>
9555
9556 * linux-aarch64-low.c (aarch64_insert_point): Call
9557 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
9558 returns true.
9559
1db33b5a
UW
95602015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9561
9562 * linux-low.c (check_stopped_by_breakpoint): Use
9563 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
9564
ab290430
PA
95652015-08-27 Pedro Alves <palves@redhat.com>
9566
9567 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
9568
8d749320
SM
95692015-08-26 Simon Marchi <simon.marchi@ericsson.com>
9570
6711b7f8
SM
9571 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
9572 the XNEW-family equivalent.
8d749320
SM
9573 (compile_bytecodes): Likewise.
9574 * dll.c (loaded_dll): Likewise.
9575 * event-loop.c (append_callback_event): Likewise.
9576 (create_file_handler): Likewise.
9577 (create_file_event): Likewise.
9578 * hostio.c (handle_open): Likewise.
9579 * inferiors.c (add_thread): Likewise.
9580 (add_process): Likewise.
9581 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
9582 * linux-arm-low.c (arm_new_process): Likewise.
9583 (arm_new_thread): Likewise.
9584 * linux-low.c (add_to_pid_list): Likewise.
9585 (linux_add_process): Likewise.
9586 (handle_extended_wait): Likewise.
9587 (add_lwp): Likewise.
9588 (enqueue_one_deferred_signal): Likewise.
9589 (enqueue_pending_signal): Likewise.
9590 (linux_resume_one_lwp_throw): Likewise.
9591 (linux_resume_one_thread): Likewise.
9592 (linux_read_memory): Likewise.
9593 (linux_write_memory): Likewise.
9594 * linux-mips-low.c (mips_linux_new_process): Likewise.
9595 (mips_linux_new_thread): Likewise.
9596 (mips_add_watchpoint): Likewise.
9597 * linux-x86-low.c (initialize_low_arch): Likewise.
9598 * lynx-low.c (lynx_add_process): Likewise.
9599 * mem-break.c (set_raw_breakpoint_at): Likewise.
9600 (set_breakpoint): Likewise.
9601 (add_condition_to_breakpoint): Likewise.
9602 (add_commands_to_breakpoint): Likewise.
9603 (clone_agent_expr): Likewise.
9604 (clone_one_breakpoint): Likewise.
9605 * regcache.c (new_register_cache): Likewise.
9606 * remote-utils.c (look_up_one_symbol): Likewise.
9607 * server.c (queue_stop_reply): Likewise.
9608 (start_inferior): Likewise.
9609 (queue_stop_reply_callback): Likewise.
9610 (handle_target_event): Likewise.
9611 * spu-low.c (fetch_ppc_memory): Likewise.
9612 (store_ppc_memory): Likewise.
9613 * target.c (set_target_ops): Likewise.
9614 * thread-db.c (thread_db_load_search): Likewise.
9615 (try_thread_db_load_1): Likewise.
9616 * tracepoint.c (add_tracepoint): Likewise.
9617 (add_tracepoint_action): Likewise.
9618 (create_trace_state_variable): Likewise.
9619 (cmd_qtdpsrc): Likewise.
9620 (cmd_qtro): Likewise.
9621 (add_while_stepping_state): Likewise.
9622 * win32-low.c (child_add_thread): Likewise.
9623 (get_image_name): Likewise.
9624
ed8b7b42
YQ
96252015-08-25 Yao Qi <yao.qi@linaro.org>
9626
9627 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
9628
db3cb7cb
YQ
96292015-08-25 Yao Qi <yao.qi@linaro.org>
9630
9631 * Makefile.in (aarch64-linux.o): New rule.
9632 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
9633 srv_tgtobj.
9634 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
9635 (aarch64_init_debug_reg_state): Make it extern.
9636 (aarch64_linux_prepare_to_resume): Remove.
9637
f6011a1c
YQ
96382015-08-25 Yao Qi <yao.qi@linaro.org>
9639
9640 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
9641 lwp_arch_private_info and ptid_of_lwp.
9642
88e2cf7e
YQ
96432015-08-25 Yao Qi <yao.qi@linaro.org>
9644
9645 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
9646 Find proc_info by find_process_pid. All callers updated.
9647
5e35436e
YQ
96482015-08-25 Yao Qi <yao.qi@linaro.org>
9649
9650 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
9651 Remove.
9652 (debug_reg_change_callback): Remove.
9653 (aarch64_notify_debug_reg_change): Remove.
9654
4a8a7965
YQ
96552015-08-25 Yao Qi <yao.qi@linaro.org>
9656
9657 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
9658 Call current_lwp_ptid.
9659
32a271ee
YQ
96602015-08-25 Yao Qi <yao.qi@linaro.org>
9661
9662 * linux-aarch64-low.c (debug_reg_change_callback): Use
9663 debug_printf.
9664
0d51c8d7
YQ
96652015-08-25 Yao Qi <yao.qi@linaro.org>
9666
9667 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
9668
31a43dd5
YQ
96692015-08-25 Yao Qi <yao.qi@linaro.org>
9670
9671 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
9672
8ee52567
YQ
96732015-08-25 Yao Qi <yao.qi@linaro.org>
9674
9675 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
9676 the code.
9677
ff3f0f45
YQ
96782015-08-25 Yao Qi <yao.qi@linaro.org>
9679
9680 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
9681 Remove.
9682 (debug_reg_change_callback): Remove argument entry and add argument
9683 lwp. Remove local variable thread. Don't print thread id in the
9684 debugging output. Don't check whether pid of thread equals to pid.
9685 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
9686 iterate_over_lwps instead find_inferior.
9687
3d40fbb5
PA
96882015-08-24 Pedro Alves <palves@redhat.com>
9689
9690 * inferiors.c (get_first_process): New function.
9691 * inferiors.h (get_first_process): New declaration.
9692 * remote-utils.c (read_ptid): Default to the first process in the
9693 list, instead of to the current thread's process.
9694
438e1e42
PA
96952015-08-24 Pedro Alves <palves@redhat.com>
9696
9697 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
9698 * event-loop.c: Likewise.
9699 * remote-utils.c: Likewise.
9700 * tracepoint.c: Likewise.
9701
a8c6d4fc
PA
97022015-08-24 Pedro Alves <palves@redhat.com>
9703
9704 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
9705 ptid_get_lwp.
9706
99b0bb12
PA
97072015-08-21 Pedro Alves <palves@redhat.com>
9708
9709 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
9710 instead of literal 1.
9711
f8904751
PA
97122015-08-21 Pedro Alves <palves@redhat.com>
9713
9714 * tdesc.c (default_description): Explicitly zero-initialize.
9715
465a859e
PA
97162015-08-21 Pedro Alves <palves@redhat.com>
9717
9718 PR gdb/18749
9719 * inferiors.c (remove_thread): Discard any pending stop reply for
9720 this thread.
9721 * server.c (remove_all_on_match_pid): Rename to ...
9722 (remove_all_on_match_ptid): ... this. Work with a filter ptid
9723 instead of a pid.
9724 (discard_queued_stop_replies): Change parameter to a ptid. Now
9725 extern.
9726 (handle_v_kill, kill_inferior_callback, captured_main)
9727 (process_serial_event): Adjust.
9728 * server.h (discard_queued_stop_replies): Declare.
9729
f0db101d
PA
97302015-08-21 Pedro Alves <palves@redhat.com>
9731
9732 * linux-low.c (wait_for_sigstop): Always switch to no thread
9733 selected if the previously current thread dies.
9734 * lynx-low.c (lynx_request_interrupt): Use the first thread's
9735 process instead of the current thread's.
9736 * remote-utils.c (input_interrupt): Don't check if there's no
9737 current thread.
9738 * server.c (gdb_read_memory, gdb_write_memory): If setting the
9739 current thread to the general thread fails, error out.
9740 (handle_qxfer_auxv, handle_qxfer_libraries)
9741 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
9742 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
9743 (handle_query): Check if there's a thread selected instead of
9744 checking whether there's any thread in the thread list.
9745 (handle_qxfer_threads, handle_qxfer_btrace)
9746 (handle_qxfer_btrace_conf): Don't error out early if there's no
9747 thread in the thread list.
9748 (handle_v_cont, myresume): Don't set the current thread to the
9749 continue thread.
9750 (process_serial_event) <Hg handling>: Also set thread_id if the
9751 previous general thread is still alive.
9752 (process_serial_event) <g/G handling>: If setting the current
9753 thread to the general thread fails, error out.
9754 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
9755 thread's lwp instead of the current thread's.
9756 * target.c (set_desired_thread): If the desired thread was not
9757 found, leave the current thread pointing to NULL. Return an int
9758 (boolean) indicating success.
9759 * target.h (set_desired_thread): Change return type to int.
9760
40045d91
MF
97612015-08-20 Max Filippov <jcmvbkbc@gmail.com>
9762
9763 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
9764 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
9765 #includes.
9766 (ps_get_thread_area): New function.
9767
45face3b
GB
97682015-08-19 Gary Benson <gbenson@redhat.com>
9769
9770 * hostio.c (handle_pread): Do not attempt to read more data
9771 than hostio_reply_with_data can fit in a packet.
9772
16d5f642
JB
97732015-08-18 Joel Brobecker <brobecker@adacore.com>
9774
9775 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
9776
a738da3a
MF
97772015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
9778
9779 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
9780
33ebda9d
PA
97812015-08-06 Pedro Alves <palves@redhat.com>
9782
9783 * tracepoint.c (expr_eval_result): Now an int.
9784
a44892be
PA
97852015-08-06 Pedro Alves <palves@redhat.com>
9786
9787 * gdbthread.h (struct regcache): Forward declare.
9788 (struct thread_info) <regcache_data>: Now a struct regcache
9789 pointer.
9790 * inferiors.c (inferior_regcache_data)
9791 (set_inferior_regcache_data): Now work with struct regcache
9792 pointers.
9793 * inferiors.h (struct regcache): Forward declare.
9794 (inferior_regcache_data, set_inferior_regcache_data): Now work
9795 with struct regcache pointers.
9796 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
9797 (free_register_cache_thread): Remove struct regcache pointer
9798 casts.
9799
608a1e46
PA
98002015-08-06 Pedro Alves <palves@redhat.com>
9801
9802 * server.c (captured_main): On error, print the exception message
9803 to stderr, and if run_once is set, throw a quit.
9804
f0ce0d3a
PA
98052015-08-06 Pedro Alves <palves@redhat.com>
9806
9807 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
9808 the current thread.
9809
bf47e248
PA
98102015-08-06 Pedro Alves <palves@redhat.com>
9811
9812 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
9813 reading beyond the passed in buffer length.
9814
b6b9ffcc
PL
98152015-08-06 Pierre Langlois <pierre.langlois@arm.com>
9816
9817 * tracepoint.c (symbol_list) <required>: Remove.
9818
863d01bd
PA
98192015-08-06 Pedro Alves <palves@redhat.com>
9820
9821 * linux-low.c (handle_extended_wait): Set the fork child's suspend
9822 count if stopping and suspending threads.
9823 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
9824 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
9825 (linux_detach): Complete an ongoing step-over.
9826 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
9827 throughout.
9828 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
9829 (linux_wait_1): If passing a signal to the inferior after
9830 finishing a step-over, unsuspend and re-resume all lwps. If we
9831 see a single-step event but the thread should be continuing, don't
9832 pass the trap to gdb.
9833 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
9834 internal_error instead of gdb_assert.
9835 (enqueue_pending_signal): New function.
9836 (check_ptrace_stopped_lwp_gone): Add debug output.
9837 (start_step_over): Use internal_error instead of gdb_assert.
9838 (complete_ongoing_step_over): New function.
9839 (linux_resume_one_thread): Don't resume a suspended thread.
9840 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
9841 it stepping.
9842
00db26fa
PA
98432015-08-06 Pedro Alves <palves@redhat.com>
9844
9845 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
9846 (linux_thread_alive): Use lwp_is_marked_dead.
9847 (extended_event_reported): Delete.
9848 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
9849 instead of extended_event_reported.
9850 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
9851 as well.
9852 (lwp_is_marked_dead): New function.
9853 (lwp_running): Use lwp_is_marked_dead.
9854 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
9855 comment.
9856
ad071a30
PA
98572015-08-06 Pedro Alves <palves@redhat.com>
9858
9859 * linux-low.c (linux_wait_1): Move fork event output out of the
9860 !report_to_gdb check. Pass event_child->waitstatus to
9861 target_waitstatus_to_string instead of ourstatus.
9862
524b57e6
YQ
98632015-08-04 Yao Qi <yao.qi@linaro.org>
9864
9865 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
9866 if current_thread is 32 bit.
9867
6085d6f6
YQ
98682015-08-04 Yao Qi <yao.qi@linaro.org>
9869
9870 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9871 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9872 * server.c (extended_protocol): Remove "static".
9873 * server.h (extended_protocol): Declare it.
9874
8a7e4587
YQ
98752015-08-04 Yao Qi <yao.qi@linaro.org>
9876
9877 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
9878 both aarch64 and aarch32.
9879 (aarch64_set_pc): Likewise.
9880
3b53ae99
YQ
98812015-08-04 Yao Qi <yao.qi@linaro.org>
9882
9883 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
9884 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
9885 arm-with-neon.xml to srv_xmlfiles.
9886 * linux-aarch64-low.c: Include linux-aarch32-low.h.
9887 (is_64bit_tdesc): New function.
9888 (aarch64_linux_read_description): New function.
9889 (aarch64_arch_setup): Call aarch64_linux_read_description.
9890 (regs_info): Rename to regs_info_aarch64.
9891 (aarch64_regs_info): Return right regs_info.
9892 (initialize_low_arch): Call initialize_low_arch_aarch32.
9893
bd9e6534
YQ
98942015-08-04 Yao Qi <yao.qi@linaro.org>
9895
9896 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
9897 * linux-aarch32-low.c: New file.
9898 * linux-aarch32-low.h: New file.
9899 * linux-arm-low.c (arm_fill_gregset): Move it to
9900 linux-aarch32-low.c.
9901 (arm_store_gregset): Likewise.
9902 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
9903 (arm_store_vfpregset): Call arm_store_vfpregset_num.
9904 (arm_arch_setup): Check if PTRACE_GETREGSET works.
9905 (regs_info): Rename to regs_info_arm.
9906 (arm_regs_info): Return regs_info_aarch32 if
9907 have_ptrace_getregset is 1 and target description is
9908 arm_with_neon or arm_with_vfpv3.
9909 (initialize_low_arch): Don't call init_registers_arm_with_neon.
9910 Call initialize_low_arch_aarch32 instead.
9911
ded48a5e
YQ
99122015-08-04 Yao Qi <yao.qi@linaro.org>
9913
9914 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
9915 * linux-low.c: ... here.
9916 * linux-low.h (have_ptrace_getregset): Declare it.
9917
96e9210f
PA
99182015-08-04 Pedro Alves <palves@redhat.com>
9919
9920 * thread-db.c (struct thread_db): Use new typedefs.
9921 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
9922 CHK calls.
9923 (disable_thread_event_reporting): Cast result of dlsym to
9924 destination function pointer type.
9925 (thread_db_mourn): Use td_ta_delete_ftype.
9926
af60a1ef
SL
99272015-08-03 Sandra Loosemore <sandra@codesourcery.com>
9928
9929 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
9930 arch variant.
9931 (CDX_BREAKPOINT): Define for R2.
9932 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
9933 (the_low_target): Add comments.
9934
e8b41681
YQ
99352015-07-30 Yao Qi <yao.qi@linaro.org>
9936
9937 * linux-arm-low.c (arm_hwcap): Remove it.
9938 (arm_read_description): New local variable arm_hwcap. Don't
9939 set arm_hwcap to zero.
9940
89abb039
YQ
99412015-07-30 Yao Qi <yao.qi@linaro.org>
9942
9943 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
9944 Use regcache->tdesc instead.
9945 (arm_store_wmmxregset): Likewise.
9946 (arm_fill_vfpregset): Likewise.
9947 (arm_store_vfpregset): Likewise.
9948
deca266c
YQ
99492015-07-30 Yao Qi <yao.qi@linaro.org>
9950
9951 * linux-arm-low.c: Include arch/arm.h.
9952 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
9953 (arm_store_gregset): Likewise.
9954
aa58a496
SM
99552015-07-29 Simon Marchi <simon.marchi@ericsson.com>
9956
9957 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
9958 ptrace's 4th parameter.
9959
50904b25
YQ
99602015-07-27 Yao Qi <yao.qi@linaro.org>
9961
9962 * configure.srv (case aarch64*-*-linux*): Don't set
9963 srv_linux_usrregs.
9964
5826e159
PA
99652015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
9966
9967 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
9968 sys/ptrace.h.
9969 * linux-arm-low.c: Likewise.
9970 * linux-cris-low.c: Likewise.
9971 * linux-crisv32-low.c: Likewise.
9972 * linux-low.c: Likewise.
9973 * linux-m68k-low.c: Likewise.
9974 * linux-mips-low.c: Likewise.
9975 * linux-nios2-low.c: Likewise.
9976 * linux-s390-low.c: Likewise.
9977 * linux-sparc-low.c: Likewise.
9978 * linux-tic6x-low.c: Likewise.
9979 * linux-tile-low.c: Likewise.
9980 * linux-x86-low.c: Likewise.
9981
54019719
PA
99822015-07-24 Pedro Alves <palves@redhat.com>
9983
9984 * config.in: Regenerate.
9985 * configure: Regenerate.
9986
eb7aa561
PA
99872015-07-24 Pedro Alves <palves@redhat.com>
9988
9989 * acinclude.m4: Include ../ptrace.m4.
9990 * configure.ac: Call GDB_AC_PTRACE.
9991 * config.in, configure: Regenerate.
9992
55d7b841
YQ
99932015-07-24 Yao Qi <yao.qi@linaro.org>
9994
9995 * linux-low.c (linux_create_inferior): Remove setting to
9996 proc->priv->new_inferior.
9997 (linux_attach): Likewise.
9998 (linux_low_filter_event): Likewise.
9999 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10000
c06cbd92
YQ
100012015-07-24 Yao Qi <yao.qi@linaro.org>
10002
10003 * linux-low.c (linux_arch_setup): New function.
10004 (linux_low_filter_event): If proc->tdesc is NULL and
10005 proc->attached is true, call the_low_target.arch_setup.
10006 Otherwise, keep status pending, and return.
10007 (linux_resume_one_lwp_throw): Don't call get_pc if
10008 thread->while_stepping isn't NULL. Don't call
10009 get_thread_regcache if proc->tdesc is NULL.
10010 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10011 (linux_target_ops): Install arch_setup.
10012 * server.c (start_inferior): Call the_target->arch_setup.
10013 * target.h (struct target_ops) <arch_setup>: New field.
10014 (target_arch_setup): New marco.
10015 * lynx-low.c (lynx_target_ops): Update.
10016 * nto-low.c (nto_target_ops): Update.
10017 * spu-low.c (spu_target_ops): Update.
10018 * win32-low.c (win32_target_ops): Update.
10019
5ae3ebba
YQ
100202015-07-24 Yao Qi <yao.qi@linaro.org>
10021
10022 * linux-low.c (linux_add_process): Don't set
10023 proc->priv->new_inferior.
10024 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10025 (linux_attach): Likewise.
10026
eb97750b
YQ
100272015-07-24 Yao Qi <yao.qi@linaro.org>
10028
10029 * server.c (start_inferior): Code refactor.
10030
51aee833
YQ
100312015-07-24 Yao Qi <yao.qi@linaro.org>
10032
10033 * server.c (process_serial_event): Set general_thread.
10034
af1b22f3
YQ
100352015-07-21 Yao Qi <yao.qi@linaro.org>
10036
10037 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10038 aarch64_linux_get_debug_reg_capacity.
10039
554717a3
YQ
100402015-07-17 Yao Qi <yao.qi@linaro.org>
10041
10042 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10043 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10044 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10045 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10046 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10047 (AARCH64_HWP_ALIGNMENT): Likewise.
10048 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10049 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10050 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10051 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10052 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10053 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10054 (struct aarch64_debug_reg_state): Likewise.
10055 (struct arch_lwp_info): Likewise.
10056 (aarch64_align_watchpoint): Likewise.
10057 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10058 (aarch64_watchpoint_length): Likewise.
10059 (aarch64_point_encode_ctrl_reg): Likewise
10060 (aarch64_point_is_aligned): Likewise.
10061 (aarch64_align_watchpoint): Likewise.
10062 (aarch64_linux_set_debug_regs):
10063 (aarch64_dr_state_insert_one_point): Likewise.
10064 (aarch64_dr_state_remove_one_point): Likewise.
10065 (aarch64_handle_breakpoint): Likewise.
10066 (aarch64_handle_aligned_watchpoint): Likewise.
10067 (aarch64_handle_unaligned_watchpoint): Likewise.
10068 (aarch64_handle_watchpoint): Likewise.
10069
c67ca4de
YQ
100702015-07-17 Yao Qi <yao.qi@linaro.org>
10071
10072 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10073 and don't aarch64_get_debug_reg_state. All callers update.
10074 (aarch64_handle_aligned_watchpoint): Likewise.
10075 (aarch64_handle_unaligned_watchpoint): Likewise.
10076 (aarch64_handle_watchpoint): Likewise.
10077 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10078 (aarch64_remove_point): Likewise.
10079
25abf979
YQ
100802015-07-17 Yao Qi <yao.qi@linaro.org>
10081
10082 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10083 debug_printf.
10084 (aarch64_handle_unaligned_watchpoint): Likewise.
10085
db1ff28b
JK
100862015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10087
10088 Revert the previous 3 commits:
10089 Move gdb_regex* to common/
10090 Move linux_find_memory_regions_full & co.
10091 gdbserver build-id attribute generator
10092
700ca40f
JK
100932015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10094 Jan Kratochvil <jan.kratochvil@redhat.com>
10095
10096 gdbserver build-id attribute generator.
10097 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10098 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10099 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10100 (find_phdr): New.
10101 (get_dynamic): Use find_pdhr to traverse program headers.
10102 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10103 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10104 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10105 (get_hex_build_id): New.
10106 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10107 to reply XML document.
10108
9904185c
JK
101092015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10110 Jan Kratochvil <jan.kratochvil@redhat.com>
10111
10112 * target.c: Include target/target-utils.h and fcntl.h.
10113 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10114 (target_fileio_read_stralloc): New functions.
10115
6e5b4429
JK
101162015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10117
10118 * Makefile.in (OBS): Add gdb_regex.o.
10119 (gdb_regex.o): New.
10120 * config.in: Rebuilt.
10121 * configure: Rebuilt.
10122
ddc98fbf
JK
101232015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10124 Jan Kratochvil <jan.kratochvil@redhat.com>
10125
10126 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10127 * Makefile.in (OBS): Add target-utils.o.
10128 (linux-maps.o, target-utils.o): New.
10129 * configure.srv (srv_linux_obj): Add linux-maps.o.
10130
e57bb7a0
PL
101312015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10132
10133 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10134 function, return 1.
10135 (the_low_target): Install it.
10136
586b02a9
PA
101372015-07-14 Pedro Alves <palves@redhat.com>
10138
10139 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10140 Instead, ignore ECHILD, and throw an error for other errnos.
10141
58c1b36c
PA
101422015-07-10 Pedro Alves <palves@redhat.com>
10143
10144 * event-loop.c (struct callback_event) <data>: Change type to
10145 gdb_client_data instance instead of gdb_client_data pointer.
10146 (append_callback_event): Adjust.
10147
421530db
PL
101482015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10149
10150 * linux-aarch64-low.c: Add comments for each linux_target_ops
10151 method. Remove comments already covered in target_ops and
10152 linux_target_ops definitions.
10153 (the_low_target): Add comments for each unimplemented method.
10154
c2d65f38
YQ
101552015-07-09 Yao Qi <yao.qi@linaro.org>
10156
10157 * linux-aarch64-low.c (aarch64_regmap): Remove.
10158 (aarch64_usrregs_info): Remove.
10159 (regs_info): Set field usrregs to NULL.
10160
b20a6524
MM
101612015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10162
10163 * linux-low.c: Include "rsp-low.h"
10164 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10165 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10166 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10167 (handle_btrace_enable_pt): New.
10168 (handle_btrace_general_set): Support "pt".
10169 (handle_btrace_conf_general_set): Support "pt:size".
10170
96c97461
PL
101712015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10172
10173 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10174 Z_PACKET_SW_BP.
10175
37d66942
PL
101762015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10177
10178 * linux-aarch64-low.c: Remove comment about endianness.
10179 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10180 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10181 memcmp.
10182
dc06243f
GB
101832015-06-24 Gary Benson <gbenson@redhat.com>
10184
10185 * linux-i386-ipa.c (stdint.h): Do not include.
10186 * lynx-i386-low.c (stdint.h): Likewise.
10187 * lynx-ppc-low.c (stdint.h): Likewise.
10188 * mem-break.c (stdint.h): Likewise.
10189 * thread-db.c (stdint.h): Likewise.
10190 * tracepoint.c (stdint.h): Likewise.
10191 * win32-low.c (stdint.h): Likewise.
10192
124e13d9
SM
101932015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10194
10195 * server.c (write_qxfer_response): Update call to
10196 remote_escape_output.
10197
909c2cda
JK
101982015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10199 Jan Kratochvil <jan.kratochvil@redhat.com>
10200
10201 Merge multiple hex conversions.
10202 * gdbreplay.c (tohex): Rename to 'fromhex'.
10203 (logchar): Use fromhex.
10204
24c05f46
JK
102052015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10206
10207 * server.c (handle_qxfer_libraries): Set `version' attribute for
10208 <library-list>.
10209
14d2069a
GB
102102015-06-10 Gary Benson <gbenson@redhat.com>
10211
10212 * target.h (struct target_ops) <multifs_open>: New field.
10213 <multifs_unlink>: Likewise.
10214 <multifs_readlink>: Likewise.
10215 * linux-low.c (nat/linux-namespaces.h): New include.
10216 (linux_target_ops): Initialize the_target->multifs_open,
10217 the_target->multifs_unlink and the_target->multifs_readlink.
10218 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10219 * hostio.c (hostio_fs_pid): New static variable.
10220 (hostio_handle_new_gdb_connection): New function.
10221 (handle_setfs): Likewise.
10222 (handle_open): Use the_target->multifs_open as appropriate.
10223 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10224 (handle_readlink): Use the_target->multifs_readlink as
10225 appropriate.
10226 (handle_vFile): Handle vFile:setfs packets.
10227 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10228 after target_handle_new_gdb_connection.
10229
4b8b5e72
GB
102302015-06-10 Gary Benson <gbenson@redhat.com>
10231
10232 * configure.ac (AC_CHECK_FUNCS): Add setns.
10233 * config.in: Regenerate.
10234 * configure: Likewise.
10235 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10236 (linux-namespaces.o): New rule.
10237 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10238
3ac2e371
GB
102392015-06-09 Gary Benson <gbenson@redhat.com>
10240
10241 * hostio.c (handle_open): Process mode argument with
10242 fileio_to_host_mode.
10243
ca9b78ce
YQ
102442015-06-01 Yao Qi <yao.qi@linaro.org>
10245
10246 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10247 * linux-x86-low.c: Likewise.
10248
bfacd19d
DB
102492015-05-28 Don Breazeal <donb@codesourcery.com>
10250
10251 * linux-low.c (handle_extended_wait): Initialize
10252 thread_info.last_resume_kind for new fork children.
10253
452003ef
PA
102542015-05-15 Pedro Alves <palves@redhat.com>
10255
10256 * target.h (target_handle_new_gdb_connection): Rewrite using if
10257 wrapped in do/while.
10258
1041a03c
JB
102592015-05-14 Joel Brobecker <brobecker@adacore.com>
10260
10261 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10262 * configure, config.in: Regenerate.
10263 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10264 Declare typedef.
10265
c269dbdb
DB
102662015-05-12 Don Breazeal <donb@codesourcery.com>
10267
10268 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10269 PTRACE_EVENT_VFORK_DONE.
10270 (linux_low_ptrace_options, extended_event_reported): Add vfork
10271 events.
10272 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10273 and "vforkdone" for RSP 'T' Stop Reply Packet.
10274 * server.h (report_vfork_events): Declare
10275 global variable.
10276
3a8a0396
DB
102772015-05-12 Don Breazeal <donb@codesourcery.com>
10278
10279 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10280 (the_low_target) <new_fork>: Initialize new member.
10281 * linux-arm-low.c (arm_new_fork): New function.
10282 (the_low_target) <new_fork>: Initialize new member.
10283 * linux-low.c (handle_extended_wait): Call new target function
10284 new_fork.
10285 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10286 * linux-mips-low.c (mips_add_watchpoint): New function
10287 extracted from mips_insert_point.
10288 (the_low_target) <new_fork>: Initialize new member.
10289 (mips_linux_new_fork): New function.
10290 (mips_insert_point): Call mips_add_watchpoint.
10291 * linux-x86-low.c (x86_linux_new_fork): New function.
10292 (the_low_target) <new_fork>: Initialize new member.
10293
de0d863e
DB
102942015-05-12 Don Breazeal <donb@codesourcery.com>
10295
10296 * linux-low.c (handle_extended_wait): Implement return value,
10297 rename argument 'event_child' to 'event_lwp', handle
10298 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10299 (linux_low_ptrace_options): New function.
10300 (linux_low_filter_event): Call linux_low_ptrace_options,
10301 use different argument fo linux_enable_event_reporting,
10302 use return value from handle_extended_wait.
10303 (extended_event_reported): New function.
10304 (linux_wait_1): Call extended_event_reported and set
10305 status to report fork events.
10306 (linux_write_memory): Add pid to debug message.
10307 (reset_lwp_ptrace_options_callback): New function.
10308 (linux_handle_new_gdb_connection): New function.
10309 (linux_target_ops): Initialize new structure member.
10310 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10311 * lynx-low.c: Initialize new structure member.
10312 * remote-utils.c (prepare_resume_reply): Implement stop reason
10313 "fork" for "T" stop message.
10314 * server.c (handle_query): Call handle_new_gdb_connection.
10315 * server.h (report_fork_events): Declare global flag.
10316 * target.h (struct target_ops) <handle_new_gdb_connection>:
10317 New member.
10318 (target_handle_new_gdb_connection): New macro.
10319 * win32-low.c: Initialize new structure member.
10320
ddcbc397
DB
103212015-05-12 Don Breazeal <donb@codesourcery.com>
10322
10323 * mem-break.c (APPEND_TO_LIST): Define macro.
10324 (clone_agent_expr): New function.
10325 (clone_one_breakpoint): New function.
10326 (clone_all_breakpoints): New function.
10327 * mem-break.h: Declare new functions.
10328
89245bc0
DB
103292015-05-12 Don Breazeal <donb@codesourcery.com>
10330
10331 * linux-low.c (linux_supports_fork_events): New function.
10332 (linux_supports_vfork_events): New function.
10333 (linux_target_ops): Initialize new structure members.
10334 (initialize_low): Call linux_check_ptrace_features.
10335 * lynx-low.c (lynx_target_ops): Initialize new structure
10336 members.
10337 * server.c (report_fork_events, report_vfork_events):
10338 New global flags.
10339 (handle_query): Add new features to qSupported packet and
10340 response.
10341 (captured_main): Initialize new global variables.
10342 * target.h (struct target_ops) <supports_fork_events>:
10343 New member.
10344 <supports_vfork_events>: New member.
10345 (target_supports_fork_events): New macro.
10346 (target_supports_vfork_events): New macro.
10347 * win32-low.c (win32_target_ops): Initialize new structure
10348 members.
10349
835205d0
GB
103502015-05-12 Gary Benson <gbenson@redhat.com>
10351
10352 * server.c (handle_qxfer_exec_file): Use current process
10353 if annex is empty.
10354
21e94bd9
SL
103552015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10356
10357 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10358 Remove HAVE_PTRACE_GETREGS conditionals.
10359 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10360 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10361
45614f15
YQ
103622015-05-08 Yao Qi <yao.qi@linaro.org>
10363
10364 * linux-low.c (linux_supports_conditional_breakpoints): New
10365 function.
10366 (linux_target_ops): Install new target method.
10367 * lynx-low.c (lynx_target_ops): Install NULL hook for
10368 supports_conditional_breakpoints.
10369 * nto-low.c (nto_target_ops): Likewise.
10370 * spu-low.c (spu_target_ops): Likewise.
10371 * win32-low.c (win32_target_ops): Likewise.
10372 * server.c (handle_query): Check
10373 target_supports_conditional_breakpoints.
10374 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10375 New field.
10376 (target_supports_conditional_breakpoints): New macro.
10377
80ad801e
PA
103782015-05-06 Pedro Alves <palves@redhat.com>
10379
10380 PR server/18081
10381 * server.c (start_inferior): If the process exits, mourn it.
10382
819843c7
GB
103832015-04-21 Gary Benson <gbenson@redhat.com>
10384
10385 * hostio.c (fileio_open_flags_to_host): Factored out to
10386 fileio_to_host_openflags in common/fileio.c. Single use
10387 updated.
10388
a2d5a9d7
MF
103892015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10390
10391 * linux-xtensa-low.c (xtensa_fill_gregset)
10392 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10393 XCHAL_HAVE_LOOP.
10394
deb44829
MF
103952015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10396
10397 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10398 (regs_info): Replace usrregs pointer with NULL.
10399
e57f1de3
GB
104002015-04-17 Gary Benson <gbenson@redhat.com>
10401
10402 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10403 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10404 * server.c (handle_qxfer_exec_file): New function.
10405 (qxfer_packets): Add exec-file entry.
10406 (handle_query): Report qXfer:exec-file:read as supported packet.
10407
62828379
RN
104082015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10409
10410 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10411
b88bb450
GB
104122015-04-09 Gary Benson <gbenson@redhat.com>
10413
10414 * hostio-errno.c (errno_to_fileio_error): Remove function.
10415 Update caller to use remote_fileio_to_fio_error.
10416
c8f4bfdd
YQ
104172015-04-09 Yao Qi <yao.qi@linaro.org>
10418
10419 * linux-low.c (linux_insert_point): Call
10420 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10421 (linux_remove_point): Call remove_memory_breakpoint if type is
10422 raw_bkpt_type_sw.
10423 * linux-x86-low.c (x86_insert_point): Don't call
10424 insert_memory_breakpoint.
10425 (x86_remove_point): Don't call remove_memory_breakpoint.
10426
41f98f02
PA
104272015-04-01 Pedro Alves <palves@redhat.com>
10428 Cleber Rosa <crosa@redhat.com>
10429
10430 * server.c (gdbserver_usage): Reorganize and extend the usage
10431 message.
10432
2bf6fb9d
PA
104332015-03-24 Pedro Alves <palves@redhat.com>
10434
10435 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10436 output. Also dump TRAP_TRACE.
10437 (linux_low_filter_event): In debug output, distinguish a
10438 resume_stop SIGSTOP from a delayed SIGSTOP.
10439
369f6daa
GB
104402015-03-24 Gary Benson <gbenson@redhat.com>
10441
10442 * linux-x86-low.c (x86_linux_new_thread): Moved to
10443 nat/x86-linux.c.
10444 (x86_linux_prepare_to_resume): Likewise.
10445
8e5d4070
GB
104462015-03-24 Gary Benson <gbenson@redhat.com>
10447
10448 * Makefile.in (x86-linux-dregs.o): New rule.
10449 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10450 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10451 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10452 (x86_linux_dr_get): Likewise.
10453 (x86_linux_dr_set): Likewise.
10454 (update_debug_registers_callback): Likewise.
10455 (x86_linux_dr_set_addr): Likewise.
10456 (x86_linux_dr_get_addr): Likewise.
10457 (x86_linux_dr_set_control): Likewise.
10458 (x86_linux_dr_get_control): Likewise.
10459 (x86_linux_dr_get_status): Likewise.
10460 (x86_linux_update_debug_registers): Likewise.
10461
2b95d440
GB
104622015-03-24 Gary Benson <gbenson@redhat.com>
10463
10464 * linux-x86-low.c (x86_linux_update_debug_registers):
10465 New function, factored out from...
10466 (x86_linux_prepare_to_resume): ...this.
10467
14b0bc68
GB
104682015-03-24 Gary Benson <gbenson@redhat.com>
10469
10470 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10471 (x86_linux_dr_set): Likewise.
10472 (update_debug_registers_callback): Likewise.
10473 (x86_linux_dr_set_addr): Likewise.
10474 (x86_linux_dr_get_addr): Likewise.
10475 (x86_linux_dr_set_control): Likewise.
10476 (x86_linux_dr_get_control): Likewise.
10477 (x86_linux_dr_get_status): Likewise.
10478 (x86_linux_prepare_to_resume): Likewise.
10479
5dfe6ca8
GB
104802015-03-24 Gary Benson <gbenson@redhat.com>
10481
10482 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10483 Use perror_with_name. Pass string through gettext.
10484 (x86_linux_dr_set): Likewise.
10485
d33472ad
GB
104862015-03-24 Gary Benson <gbenson@redhat.com>
10487
10488 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10489 (x86_linux_dr_set_addr): ...this.
10490 (x86_dr_low_get_addr): Rename to...
10491 (x86_linux_dr_get_addr): ...this.
10492 (x86_dr_low_set_control): Rename to...
10493 (x86_linux_dr_set_control): ...this.
10494 (x86_dr_low_get_control): Rename to...
10495 (x86_linux_dr_get_control): ...this.
10496 (x86_dr_low_get_status): Rename to...
10497 (x86_linux_dr_get_status): ...this.
10498 (x86_dr_low): Update with new function names.
10499
4b134ca1
GB
105002015-03-24 Gary Benson <gbenson@redhat.com>
10501
10502 * Makefile.in (x86-linux.o): New rule.
10503 * configure.srv: Add x86-linux.o to relevant targets.
10504 * linux-low.c (lwp_set_arch_private_info): New function.
10505 (lwp_arch_private_info): Likewise.
10506 * linux-x86-low.c: Include nat/x86-linux.h.
10507 (arch_lwp_info): Removed structure.
10508 (update_debug_registers_callback):
10509 Use lwp_set_debug_registers_changed.
10510 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10511 and lwp_set_debug_registers_changed.
10512 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10513
34c703da
GB
105142015-03-24 Gary Benson <gbenson@redhat.com>
10515
10516 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
10517 * linux-arm-low.c (arm_new_thread): Likewise.
10518 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
10519 * linux-mips-low.c (mips_linux_new_thread): Likewise.
10520 * linux-x86-low.c (x86_linux_new_thread): Likewise.
10521 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
10522
cff068da
GB
105232015-03-24 Gary Benson <gbenson@redhat.com>
10524
10525 * linux-low.c (ptid_of_lwp): New function.
10526 (lwp_is_stopped): Likewise.
10527 (lwp_stop_reason): Likewise.
10528 * linux-x86-low.c (update_debug_registers_callback):
10529 Use lwp_is_stopped.
10530 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10531 lwp_stop_reason.
10532
b2f7c7e8
GB
105332015-03-24 Gary Benson <gbenson@redhat.com>
10534
10535 * linux-low.h (linux_stop_lwp): Remove declaration.
10536
6d4ee8c6
GB
105372015-03-24 Gary Benson <gbenson@redhat.com>
10538
10539 * linux-low.h: Include nat/linux-nat.h.
10540 * linux-low.c (iterate_over_lwps_args): New structure.
10541 (iterate_over_lwps_filter): New function.
10542 (iterate_over_lwps): Likewise.
10543 * linux-x86-low.c (update_debug_registers_callback):
10544 Update signature to what iterate_over_lwps expects.
10545 Remove PID check that iterate_over_lwps now performs.
10546 (x86_dr_low_set_addr): Use iterate_over_lwps.
10547 (x86_dr_low_set_control): Likewise.
10548
70a0bb6b
GB
105492015-03-24 Gary Benson <gbenson@redhat.com>
10550
10551 * linux-x86-low.c (x86_debug_reg_state): New function.
10552 (x86_linux_prepare_to_resume): Use the above.
10553
7b669087
GB
105542015-03-24 Gary Benson <gbenson@redhat.com>
10555
10556 * linux-low.c (current_lwp_ptid): New function.
10557 * linux-x86-low.c: Include nat/linux-nat.h.
10558 (x86_dr_low_get_addr): Use current_lwp_ptid.
10559 (x86_dr_low_get_control): Likewise.
10560 (x86_dr_low_get_status): Likewise.
10561
eef49a3d
PA
105622015-03-20 Pedro Alves <palves@redhat.com>
10563
10564 * tracepoint.c (cmd_qtstatus): Make "str" const.
10565
b2333d22
PA
105662015-03-20 Pedro Alves <palves@redhat.com>
10567
10568 * server.c (handle_general_set): Make "req_str" const.
10569
23f238d3
PA
105702015-03-19 Pedro Alves <palves@redhat.com>
10571
10572 * linux-low.c (linux_resume_one_lwp): Rename to ...
10573 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10574 instead call perror_with_name.
10575 (check_ptrace_stopped_lwp_gone): New function.
10576 (linux_resume_one_lwp): Reimplement as wrapper around
10577 linux_resume_one_lwp_throw that swallows errors if the LWP is
10578 gone.
10579
91baf43f
PA
105802015-03-19 Pedro Alves <palves@redhat.com>
10581
10582 * linux-low.c (count_events_callback, select_event_lwp_callback):
10583 No longer check whether the thread has resume_stop as last resume
10584 kind.
10585
8bf3b159
PA
105862015-03-19 Pedro Alves <palves@redhat.com>
10587
10588 * linux-low.c (count_events_callback, select_event_lwp_callback):
10589 Use the lwp's status_pending_p field, not the thread's.
10590
b90fc188
PA
105912015-03-19 Pedro Alves <palves@redhat.com>
10592
10593 * linux-low.c (select_event_lwp_callback): Update comments to
10594 no longer mention SIGTRAP.
10595
464b0089
GB
105962015-03-18 Gary Benson <gbenson@redhat.com>
10597
10598 * server.c (handle_query): Do not report vFile:fstat as supported.
10599
aa9e327f
GB
106002015-03-11 Gary Benson <gbenson@redhat.com>
10601
10602 * hostio.c (sys/types.h): New include.
10603 (sys/stat.h): Likewise.
10604 (common-remote-fileio.h): Likewise.
10605 (handle_fstat): New function.
10606 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 10607
791c0056
GB
106082015-03-11 Gary Benson <gbenson@redhat.com>
10609
10610 * configure.ac (AC_CHECK_MEMBERS): Add checks for
10611 struct stat.st_blocks and struct stat.st_blksize.
10612 * configure: Regenerate.
10613 * config.in: Likewise.
10614 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10615 (OBS): Add common-remote-fileio.o.
10616 (common-remote-fileio.o): New rule.
10617
9a9df970
PA
106182015-03-09 Pedro Alves <palves@redhat.com>
10619
10620 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
10621 'struct sockaddr' pointer in 'accept' call.
10622
9eb1356e
PA
106232015-03-09 Pedro Alves <palves@redhat.com>
10624
10625 Revert:
10626 2015-03-07 Pedro Alves <palves@redhat.com>
10627 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
10628 or <winsock2.h> here. Instead include "gdb_socket.h".
10629 (remote_open): Use union gdb_sockaddr_u.
10630 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
10631 or <winsock2.h> here. Instead include "gdb_socket.h".
10632 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
10633 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
10634 or <sys/un.h>.
10635 (init_named_socket, gdb_agent_helper_thread): Use union
10636 gdb_sockaddr_u.
10637
aac331e4
PA
106382015-03-07 Pedro Alves <palves@redhat.com>
10639
10640 * configure.ac (build_warnings): Move
10641 -Wdeclaration-after-statement to the C-specific set.
10642 * configure: Regenerate.
10643
366c75fc
PA
106442015-03-07 Pedro Alves <palves@redhat.com>
10645
10646 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
10647 or <winsock2.h> here. Instead include "gdb_socket.h".
10648 (remote_open): Use union gdb_sockaddr_u.
10649 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
10650 or <winsock2.h> here. Instead include "gdb_socket.h".
10651 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
10652 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
10653 or <sys/un.h>.
10654 (init_named_socket, gdb_agent_helper_thread): Use union
10655 gdb_sockaddr_u.
10656
492d29ea
PA
106572015-03-07 Pedro Alves <palves@redhat.com>
10658
10659 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
10660 instead.
10661
60a191ed
YQ
106622015-03-06 Yao Qi <yao.qi@linaro.org>
10663
10664 * linux-aarch64-low.c (aarch64_insert_point): Use
10665 show_debug_regs as a boolean.
10666 (aarch64_remove_point): Likewise.
10667
f5771b1d
PA
106682015-03-05 Pedro Alves <palves@redhat.com>
10669
10670 * lynx-low.c (lynx_target_ops): Install NULL hooks for
10671 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
10672 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
10673 * nto-low.c (nto_target_ops): Likewise.
10674 * spu-low.c (spu_target_ops): Likewise.
10675 * win32-low.c (win32_target_ops): Likewise.
10676
3e572f71
PA
106772015-03-04 Pedro Alves <palves@redhat.com>
10678
72f4393d 10679 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
10680 Decide whether a breakpoint triggered based on the SIGTRAP's
10681 siginfo.si_code.
72f4393d
L
10682 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10683 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
10684 (linux_low_filter_event): Check for breakpoints before checking
10685 watchpoints.
10686 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
10687 siginfo.si_code.
72f4393d
L
10688 (linux_stopped_by_sw_breakpoint)
10689 (linux_supports_stopped_by_sw_breakpoint)
10690 (linux_stopped_by_hw_breakpoint)
10691 (linux_supports_stopped_by_hw_breakpoint): New functions.
10692 (linux_target_ops): Install new target methods.
3e572f71 10693
1ec68e26
PA
106942015-03-04 Pedro Alves <palves@redhat.com>
10695
10696 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
10697 * server.c (swbreak_feature, hwbreak_feature): New globals.
10698 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
10699 (captured_main): Clear swbreak_feature and hwbreak_feature.
10700 * server.h (swbreak_feature, hwbreak_feature): Declare.
10701 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
10702 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
10703 supports_stopped_by_hw_breakpoint>: New fields.
10704 (target_supports_stopped_by_sw_breakpoint)
10705 (target_stopped_by_sw_breakpoint)
10706 (target_supports_stopped_by_hw_breakpoint)
10707 (target_stopped_by_hw_breakpoint): Declare.
10708
15c66dd6
PA
107092015-03-04 Pedro Alves <palves@redhat.com>
10710
10711 enum lwp_stop_reason -> enum target_stop_reason
10712 * linux-low.c (check_stopped_by_breakpoint): Adjust.
10713 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
10714 (linux_wait_1, stuck_in_jump_pad_callback)
10715 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
10716 (linux_stopped_by_watchpoint):
10717 * linux-low.h (enum lwp_stop_reason): Delete.
10718 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10719 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
10720
98fc70d6
YQ
107212015-03-04 Yao Qi <yao.qi@linaro.org>
10722
10723 * Makefile.in (SFILES): Add linux-aarch64-low.c.
10724
dd2ac174
GB
107252015-03-03 Gary Benson <gbenson@redhat.com>
10726
10727 * hostio.c (handle_vFile): Fix prefix lengths.
10728
d68e53f4
MM
107292015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10730
10731 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
10732 ptr_bits.
10733
bf2d68ab
AA
107342015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10735
10736 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
10737 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
10738 (clean): Add "rm -f" for above C files.
10739 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
10740 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
10741 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
10742 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
10743 * linux-s390-low.c (HWCAP_S390_VX): New macro.
10744 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
10745 (init_registers_s390x_vx_linux64)
10746 (init_registers_s390x_tevx_linux64)
10747 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10748 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
10749 declarations.
10750 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
10751 (s390_store_vxrs_high): New functions.
10752 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
10753 NT_S390_VXRS_HIGH.
10754 (s390_arch_setup): Add logic for selecting one of the new target
10755 descriptions. Activate the new vector regsets if applicable.
10756 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
10757 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
10758 and init_registers_s390x_tevx_linux64.
10759
c966a859
PA
107602015-03-01 Pedro Alves <palves@redhat.com>
10761
10762 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
10763 parameter.
10764
4180215b
PA
107652015-02-27 Pedro Alves <palves@redhat.com>
10766
10767 * linux-x86-low.c (u_debugreg_offset): New function.
10768 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10769
749bab01
PA
107702015-02-27 Pedro Alves <palves@redhat.com>
10771
10772 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10773 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
10774 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10775 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10776 (ps_lsetfpregs, ps_getpid)
10777 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
10778 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
10779 (ps_lsetxregs, ps_plog): Declare.
10780
3c14e5a3
PA
107812015-02-27 Pedro Alves <palves@redhat.com>
10782
10783 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
10784 IP_AGENT_EXPORT_FUNC.
10785 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
10786 IP_AGENT_EXPORT_FUNC.
10787 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
10788 (IP_AGENT_EXPORT): Delete.
10789 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
10790 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
10791 (gdb_trampoline_buffer_error, collecting, gdb_collect)
10792 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
10793 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
10794 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
10795 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
10796 (traceframe_read_count, traceframe_write_count)
10797 (traceframes_created, trace_state_variables, get_raw_reg)
10798 (get_trace_state_variable_value, set_trace_state_variable_value)
10799 (ust_loaded, helper_thread_id, cmd_buf): Use
10800 IPA_SYM_EXPORTED_NAME.
10801 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
10802 (tracepoints) Use IP_AGENT_EXPORT_VAR.
10803 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
10804 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10805 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
10806 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
10807 EXTERN_C_PUSH/EXTERN_C_POP.
10808 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
10809 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
10810 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10811 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
10812 (traceframe_write_count, traceframe_read_count)
10813 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
10814 (about_to_request_buffer_space, get_trace_state_variable_value)
10815 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
10816 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
10817 EXTERN_C_PUSH/EXTERN_C_POP.
10818 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
10819 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
10820 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
10821 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10822 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
10823 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
10824 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
10825 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
10826 Define.
10827 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
10828 (IP_AGENT_EXPORT_VAR_DECL): Define.
10829 (tracing): Declare.
10830 (gdb_agent_get_raw_reg): Declare.
10831
fe978cb0
PA
108322015-02-27 Tom Tromey <tromey@redhat.com>
10833 Pedro Alves <palves@redhat.com>
10834
10835 Rename symbols whose names are reserved C++ keywords throughout.
10836
3bc3d82a
PA
108372015-02-27 Pedro Alves <palves@redhat.com>
10838
10839 * Makefile.in (COMPILER): New, get it from autoconf.
10840 (CXX): Get from autoconf instead.
10841 (COMPILE.pre): Use COMPILER.
10842 (CC-LD): Rename to ...
10843 (CC_LD): ... this. Use COMPILER.
10844 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
10845 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10846 * acinclude.m4: Include build-with-cxx.m4.
10847 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10848 Disable -Werror by default if building in C++ mode.
10849 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10850 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
10851 the C++ compiler. Save/restore CXXFLAGS too.
10852 * configure: Regenerate.
10853
07697489
PA
108542015-02-27 Pedro Alves <palves@redhat.com>
10855
10856 * acinclude.m4: Include libiberty.m4.
10857 * configure.ac: Call libiberty_INIT.
10858 * config.in, configure: Regenerate.
10859
9beb7c4e
PA
108602015-02-26 Pedro Alves <palves@redhat.com>
10861
10862 * linux-low.c (linux_wait_1): When incrementing the PC past a
10863 program breakpoint always use the_low_target.breakpoint_len as
10864 increment, rather than the maximum between that and
10865 the_low_target.decr_pc_after_break.
10866
8090aef2
PA
108672015-02-23 Pedro Alves <palves@redhat.com>
10868
10869 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
10870 thread was doing a step-over; always adjust the PC if
10871 we stepped over a permanent breakpoint.
10872 (linux_wait_1): If we stepped over breakpoint that was on top of a
10873 permanent breakpoint, manually advance the PC past it.
10874
bc9540e8
PA
108752015-02-23 Pedro Alves <palves@redhat.com>
10876
10877 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
10878 modes.
10879 (x86_fill_gregset, x86_store_gregset): Use it when handling
10880 $orig_eax.
10881
2db9a427
PA
108822015-02-20 Pedro Alves <palves@redhat.com>
10883
10884 * thread-db.c: Include "nat/linux-procfs.h".
10885 (thread_db_init): Skip listing new threads if the kernel supports
10886 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
10887
afa8d396
PA
108882015-02-20 Pedro Alves <palves@redhat.com>
10889
10890 * linux-low.c (status_pending_p_callback): Use ptid_match.
10891
c9587f88
AT
108922015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10893
10894 PR breakpoints/16812
10895 * linux-low.c (wstatus_maybe_breakpoint): Remove.
10896 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
10897 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
10898
b05ec7a5
AT
108992015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
10900
10901 PR breakpoints/15956
10902 * tracepoint.c (cmd_qtinit): Add check for current_thread.
10903
d33501a5
MM
109042015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10905
10906 * linux-low.c (linux_low_btrace_conf): Print size.
10907 * server.c (handle_btrace_conf_general_set): New.
10908 (hanle_general_set): Call handle_btrace_conf_general_set.
10909 (handle_query): Report Qbtrace-conf:bts:size as supported.
10910
f4abbc16
MM
109112015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10912
10913 * linux-low.c (linux_low_enable_btrace): Update parameters.
10914 (linux_low_btrace_conf): New.
10915 (linux_target_ops)<to_btrace_conf>: Initialize.
10916 * server.c (current_btrace_conf): New.
10917 (handle_btrace_enable): Rename to ...
10918 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
10919 to target_enable_btrace. Update comment. Update users.
10920 (handle_qxfer_btrace_conf): New.
10921 (qxfer_packets): Add btrace-conf entry.
10922 (handle_query): Report qXfer:btrace-conf:read as supported packet.
10923 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
10924 (target_ops)<read_btrace_conf>: New.
10925 (target_enable_btrace): Update parameters.
10926 (target_read_btrace_conf): New.
10927
043c3577
MM
109282015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10929
10930 * server.c (handle_btrace_general_set): Remove call to
10931 target_supports_btrace.
10932 (supported_btrace_packets): New.
10933 (handle_query): Call supported_btrace_packets.
10934 * target.h: include btrace-common.h.
10935 (btrace_target_info): Removed.
10936 (supports_btrace, target_supports_btrace): Update parameters.
10937
734b0e4b
MM
109382015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10939
10940 * Makefile.in (SFILES): Add common/btrace-common.c.
10941 (OBS): Add common/btrace-common.o.
10942 (btrace-common.o): Add build rules.
10943 * linux-low: Include btrace-common.h.
10944 (linux_low_read_btrace): Use struct btrace_data. Call
10945 btrace_data_init and btrace_data_fini.
10946
d6c146e9
PA
109472015-02-06 Pedro Alves <palves@redhat.com>
10948
10949 * thread-db.c (find_new_threads_callback): Add debug output.
10950
20ba1ce6
PA
109512015-02-04 Pedro Alves <palves@redhat.com>
10952
10953 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
10954 (resume_stopped_resumed_lwps): New function.
10955 (linux_wait_for_event_filtered): Use it.
10956
8cc73a39
SDJ
109572015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
10958
10959 * Makefile.in (SFILES): Add linux-personality.c.
10960 (linux-personality.o): New rule.
10961 * configure.srv (srv_linux_obj): Add linux-personality.o to the
10962 list of objects to be built.
10963 * linux-low.c: Include nat/linux-personality.h.
10964 (linux_create_inferior): Remove code to disable address space
10965 randomization (moved to ../nat/linux-personality.c). Create
10966 cleanup to disable address space randomization.
10967
fb23d554
SDJ
109682015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
10969
10970 * Makefile.in (posix-strerror.o): New rule.
10971 (mingw-strerror.o): Likewise.
10972 * configure: Regenerated.
10973 * configure.ac: Source file ../common/common.host. Initialize new
10974 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
10975
cdf43629
YQ
109762015-01-14 Yao Qi <yao@codesourcery.com>
10977
10978 * Makefile.in (SFILES): Add nat/ppc-linux.c.
10979 (ppc-linux.o): New rule.
10980 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
10981 * configure.ac: AC_CHECK_FUNCS(getauxval).
10982 * config.in: Re-generated.
10983 * configure: Re-generated.
10984 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
10985 ppc64_64bit_inferior_p
10986
514c5338
YQ
109872015-01-14 Yao Qi <yao@codesourcery.com>
10988
10989 * linux-ppc-low.c: Include "nat/ppc-linux.h".
10990 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
10991 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
10992 (PT_ORIG_R3, PT_TRAP): Likewise.
10993 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
10994 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
10995 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
10996
3368c1e5
JB
109972015-01-10 Joel Brobecker <brobecker@adacore.com>
10998
10999 * i387-fp.c (i387_cache_to_xsave): In look over
11000 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11001 zmmh_low_space field by use of zmmh_high_space.
11002
582511be
PA
110032015-01-09 Pedro Alves <palves@redhat.com>
11004
11005 * linux-low.c (step_over_bkpt): Move higher up in the file.
11006 (handle_extended_wait): Don't store the stop_pc here.
11007 (get_stop_pc): Adjust comments and rename to ...
11008 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11009 stopped for a software breakpoint or hardware breakpoint.
11010 (thread_still_has_status_pending_p): New function.
11011 (status_pending_p_callback): Use
11012 thread_still_has_status_pending_p. If the event is no longer
11013 interesting, resume the LWP.
11014 (handle_tracepoints): Add assert.
11015 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11016 (wstatus_maybe_breakpoint): New function.
11017 (cancel_breakpoint): Delete function.
11018 (check_stopped_by_watchpoint): New function, factored out from
11019 linux_low_filter_event.
11020 (lp_status_maybe_breakpoint): Delete function.
11021 (linux_low_filter_event): Remove filter_ptid argument.
11022 Leave thread group exits pending here. Store the LWP's stop PC.
11023 Always leave events pending.
11024 (linux_wait_for_event_filtered): Pull all events out of the
11025 kernel, and leave them all pending.
11026 (count_events_callback, select_event_lwp_callback): Consider all
11027 events.
11028 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11029 (select_event_lwp): Only give preference to the stepping LWP in
11030 all-stop mode. Adjust comments.
11031 (ignore_event): New function.
11032 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11033 references to cancel_breakpoints. Adjust to renames. Also give
11034 equal priority to all LWPs that have had events in non-stop mode.
11035 If reporting a software breakpoint event, unadjust the LWP's PC.
11036 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11037 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11038 Adjust.
11039 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11040 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11041 (linux_stopped_by_watchpoint): Adjust.
11042 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11043 * linux-low.h (enum lwp_stop_reason): New.
11044 (struct lwp_info) <stop_pc>: Adjust comment.
11045 <stopped_by_watchpoint>: Delete field.
11046 <stop_reason>: New field.
11047 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11048 * mem-break.c (software_breakpoint_inserted_here)
11049 (hardware_breakpoint_inserted_here): New function.
11050 * mem-break.h (software_breakpoint_inserted_here)
11051 (hardware_breakpoint_inserted_here): Declare.
11052 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11053 (cancel_breakpoints): Delete.
11054 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11055 (upload_fast_traceframes): Remove references to
11056 cancel_breakpoints.
11057
a33e3959
PA
110582015-01-09 Pedro Alves <palves@redhat.com>
11059
11060 * thread-db.c (find_new_threads_callback): Ignore thread if the
11061 kernel thread ID is -1.
11062
8784d563
PA
110632015-01-09 Pedro Alves <palves@redhat.com>
11064
11065 * linux-low.c (linux_attach_fail_reason_string): Move to
11066 nat/linux-ptrace.c, and rename.
11067 (linux_attach_lwp): Update comment.
11068 (attach_proc_task_lwp_callback): New function.
11069 (linux_attach): Adjust to rename and use
11070 linux_proc_attach_tgid_threads.
11071 (linux_attach_fail_reason_string): Delete declaration.
11072
76f2b779
JB
110732015-01-01 Joel Brobecker <brobecker@adacore.com>
11074
11075 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11076 * server.c (gdbserver_version): Likewise.
11077
fafcc06a
SDJ
110782014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11079
11080 * remote-utils.c: Include ctype.h.
11081 (input_interrupt): Explicitly handle the case when the char
11082 received is the NUL byte. Improve the printing of non-ASCII
11083 characters.
11084
beed38b8
JB
110852014-12-16 Joel Brobecker <brobecker@adacore.com>
11086
11087 * linux-low.c (linux_low_filter_event): Update call to
11088 linux_enable_event_reporting following the addition of
11089 a new parameter to that function.
11090
bf330350
CU
110912014-12-16 Catalin Udma <catalin.udma@freescale.com>
11092
11093 PR server/17457
11094 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11095 (AARCH64_FPCR_REGNO): Likewise.
11096 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11097 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11098 (aarch64_store_fpregset): Likewise.
11099
5227d625
JB
111002014-12-15 Joel Brobecker <brobecker@adacore.com>
11101
11102 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11103 Remove FIXME comment about assumption about N.
11104
f93b65a0
JB
111052014-12-13 Joel Brobecker <brobecker@adacore.com>
11106
11107 * configure.ac: If large-file support is disabled in GDBserver,
11108 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11109 * configure: Regenerate.
11110
e5a9158d
AA
111112014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11112
11113 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11114 warning upon ENODATA from ptrace.
11115 * linux-s390-low.c (s390_store_tdb): New.
11116 (s390_regsets): Add regset for NT_S390_TDB.
11117
feea5f36
AA
111182014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11119
11120 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11121 without a fill_function.
11122 * linux-s390-low.c (s390_fill_last_break): Remove.
11123 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11124 (s390_arch_setup): Use regset's size instead of fill_function for
11125 loop end condition.
11126
098dbe61
AA
111272014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11128
11129 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11130 the regset's store function when ptrace returned an error.
11131 * regcache.c (get_thread_regcache): Invalidate register cache
11132 before fetching inferior's registers.
11133
28eef672
AA
111342014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11135
11136 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11137 while-loop as for-loop.
11138 (regsets_store_inferior_registers): Likewise.
11139
bdca27a2
YQ
111402014-11-28 Yao Qi <yao@codesourcery.com>
11141
11142 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11143 * config.in, configure: Re-generate.
11144 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11145 is defined.
11146
9c232dda
YQ
111472014-11-21 Yao Qi <yao@codesourcery.com>
11148
11149 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11150 (AC_CHECK_HEADERS): Remove malloc.h.
11151 * configure: Re-generated.
11152 * config.in: Re-generated.
11153 * server.h: Don't include alloca.h and malloc.h.
11154 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11155 Don't include malloc.h.
11156
43968415
JB
111572014-11-17 Joel Brobecker <brobecker@adacore.com>
11158
11159 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11160 corresponding ERRNO check in same block.
11161
40e91bc7
PA
111622014-11-12 Pedro Alves <palves@redhat.com>
11163
11164 * server.c (cont_thread): Update comment.
11165 (start_inferior, attach_inferior): No longer clear cont_thread.
11166 (handle_v_cont): No longer set cont_thread.
11167 (captured_main): Clear cont_thread each time a GDB connects.
11168
c2c118cf
PA
111692014-11-12 Pedro Alves <palves@redhat.com>
11170
11171 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11172 thread, and don't resume all threads if the Hc thread has exited.
11173
78708b7c
PA
111742014-11-12 Pedro Alves <palves@redhat.com>
11175
11176 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11177 the process group instead of to a specific LWP.
11178
a2abc7de
PA
111792014-10-15 Pedro Alves <palves@redhat.com>
11180
11181 PR server/17487
11182 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11183 parameter.
11184 (arm_set_thread_context): Delete.
11185 (the_low_target): Adjust.
11186 * win32-i386-low.c (debug_registers_changed)
11187 (debug_registers_used): Delete.
11188 (update_debug_registers_callback): New function.
11189 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11190 needing to update their debug registers.
11191 (win32_get_current_dr): New function.
11192 (x86_dr_low_get_addr, x86_dr_low_get_control)
11193 (x86_dr_low_get_status): Fetch the debug register from the thread
11194 record's context.
11195 (i386_initial_stuff): Adjust.
11196 (i386_get_thread_context): Remove current_event parameter. Don't
11197 clear debug_registers_changed nor copy DR values to
11198 debug_reg_state.
11199 (i386_set_thread_context): Delete.
11200 (i386_prepare_to_resume): New function.
11201 (i386_thread_added): Mark the thread as needing to update irs
11202 debug registers.
11203 (the_low_target): Remove i386_set_thread_context and install
11204 i386_prepare_to_resume.
11205 * win32-low.c (win32_get_thread_context): Adjust.
11206 (win32_set_thread_context): Use SetThreadContext
11207 directly.
11208 (win32_prepare_to_resume): New function.
11209 (win32_require_context): New function, factored out from ...
11210 (thread_rec): ... this.
11211 (continue_one_thread): Call win32_prepare_to_resume on each thread
11212 we're about to continue.
11213 (win32_resume): Call win32_prepare_to_resume on the event thread.
11214 * win32-low.h (struct win32_thread_info)
11215 <debug_registers_changed>: New field.
11216 (struct win32_target_ops): Change prototype of set_thread_context,
11217 delete set_thread_context and add prepare_to_resume.
11218 (win32_require_context): New declaration.
11219
a442d071
GB
112202014-10-08 Gary Benson <gbenson@redhat.com>
11221
11222 * server.h: Do not include common-exceptions.h.
11223
6f1947e8
GB
112242014-10-08 Gary Benson <gbenson@redhat.com>
11225
11226 * server.h: Do not include cleanups.h.
11227
63b434a4
JH
112282014-09-30 James Hogan <james.hogan@imgtec.com>
11229
11230 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11231 mips64-dsp-linux.c.
11232
c4d9ceb6
YQ
112332014-09-23 Yao Qi <yao@codesourcery.com>
11234
11235 * linux-low.c (lp_status_maybe_breakpoint): New function.
11236 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11237 (count_events_callback): Likewise.
11238 (select_event_lwp_callback): Likewise.
11239 (cancel_breakpoints_callback): Likewise.
11240
89a5711c
DB
112412014-09-19 Don Breazeal <donb@codesourcery.com>
11242
11243 * linux-low.c (handle_extended_wait): Call
11244 linux_ptrace_get_extended_event.
11245 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11246 linux_is_extended_waitstatus.
11247
bffc0964
JB
112482014-09-16 Joel Brobecker <brobecker@adacore.com>
11249
11250 * Makefile.in (CPPFLAGS): Define.
11251 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11252 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11253
0bfdf32f
GB
112542014-09-16 Gary Benson <gbenson@redhat.com>
11255
11256 * inferiors.h (current_inferior): Renamed as...
11257 (current_thread): New variable. All uses updated.
11258 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11259 (maybe_move_out_of_jump_pad): Likewise.
11260 (cancel_breakpoint): Likewise.
11261 (linux_low_filter_event): Likewise.
11262 (wait_for_sigstop): Likewise.
11263 (linux_resume_one_lwp): Likewise.
11264 (need_step_over_p): Likewise.
11265 (start_step_over): Likewise.
11266 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11267 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11268 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11269 and save_inferior as saved_thread.
11270 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11271 saved_thread.
11272 (regcache_invalidate_thread): Likewise.
11273 * remote-utils.c (prepare_resume_reply): Likewise.
11274 * thread-db.c (thread_db_get_tls_address): Likewise.
11275 (disable_thread_event_reporting): Likewise.
11276 (remove_thread_event_breakpoints): Likewise.
11277 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11278 as saved_thread.
11279 * target.h (set_desired_inferior): Renamed as...
11280 (set_desired_thread): New declaration. All uses updated.
11281 * server.c (myresume): Updated comment to reference thread instead
11282 of inferior.
11283 (handle_serial_event): Likewise.
11284 (handle_target_event): Likewise.
11285
361c8ade
GB
112862014-09-12 Tom Tromey <tromey@redhat.com>
11287 Gary Benson <gbenson@redhat.com>
11288
11289 * regcache.h: Include common-regcache.h.
11290 (regcache_read_pc): Don't declare.
11291 * regcache.c (get_thread_regcache_for_ptid): New function.
11292
bd9269f7
GB
112932014-09-11 Tom Tromey <tromey@redhat.com>
11294 Gary Benson <gbenson@redhat.com>
11295
11296 * symbol.c: New file.
11297 * Makefile.in (SFILES): Add symbol.c.
11298 (OBS): Add symbol.o.
11299
f8c1d06b
GB
113002014-09-11 Gary Benson <gbenson@redhat.com>
11301
11302 * target.c (target_stop_ptid, target_continue_ptid): New
11303 functions.
11304
721ec300
GB
113052014-09-11 Tom Tromey <tromey@redhat.com>
11306 Gary Benson <gbenson@redhat.com>
11307
11308 * target.h: Include target/target.h.
11309 * target.c (target_read_memory, target_read_uint32)
11310 (target_write_memory): New functions.
11311
c5e92cca
GB
113122014-09-11 Gary Benson <gbenson@redhat.com>
11313
11314 * server.h (debug_hw_points): Don't declare.
11315 * server.c (debug_hw_points): Don't define. Replace all uses
11316 with show_debug_regs.
11317 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11318 all uses with show_debug_regs.
11319
2e4bb98a
EBM
113202014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11321
11322 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11323 endianness into account.
11324 (ppc_supply_ptrace_register): Likewise.
11325
ac740bc7
JH
113262014-09-03 James Hogan <james.hogan@imgtec.com>
11327
11328 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11329 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11330
97ea6506
GB
113312014-09-03 Gary Benson <gbenson@redhat.com>
11332
11333 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11334 ALL_DEBUG_ADDRESS_REGISTERS.
11335
df7e5265
GB
113362014-09-02 Gary Benson <gbenson@redhat.com>
11337
11338 * i386-low.h: Renamed as...
11339 * x86-low.h: New file. All type, function and variable name
11340 prefixes changed from "i386_" to "x86_". All references updated.
11341 * i386-low.c: Renamed as...
11342 * x86-low.c: New file. All type, function and variable name
11343 prefixes changed from "i386_" to "x86_". All references updated.
11344
ed859da7
GB
113452014-09-02 Gary Benson <gbenson@redhat.com>
11346
11347 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11348 (x86_linux_new_thread): Likewise.
11349
860789c7
GB
113502014-08-29 Gary Benson <gbenson@redhat.com>
11351
11352 * server.h (setjmp.h): Do not include.
11353 (toplevel): Do not declare.
11354 (common-exceptions.h): Include.
11355 (cleanups.h): Likewise.
11356 * server.c (toplevel): Do not define.
11357 (exit_code): New static global.
11358 (detach_or_kill_for_exit_cleanup): New function.
11359 (main): New function. Original main renamed to...
11360 (captured_main): New function.
11361 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11362
ff55e1b5
GB
113632014-08-29 Gary Benson <gbenson@redhat.com>
11364
11365 * Makefile.in (SFILES): Add common/common-exceptions.c.
11366 (OBS): Add common-exceptions.o.
11367 (common-exceptions.o): New rule.
11368 * utils.c (prepare_to_throw_exception): New function.
11369
e9bcb658
GB
113702014-08-29 Gary Benson <gbenson@redhat.com>
11371
11372 * config.in: Regenerate.
11373 * configure: Likewise.
11374
e3180625
GB
113752014-08-29 Gary Benson <gbenson@redhat.com>
11376
11377 * Makefile.in (SFILES): Add common/cleanups.c.
11378 (OBS): cleanups.o.
11379 (cleanups.o): New rule.
11380
e3d6ba5d
GB
113812014-08-29 Gary Benson <gbenson@redhat.com>
11382
11383 * utils.c (internal_vwarning): New function.
11384
7096e886
GB
113852014-08-28 Gary Benson <gbenson@redhat.com>
11386
11387 * utils.h (fatal): Remove declaration.
11388 * utils.c (fatal): Remove function.
11389
14ce3192
GB
113902014-08-28 Gary Benson <gbenson@redhat.com>
11391
11392 * tracepoint.c (gdb_agent_init): Replace fatal with
11393 perror_with_name.
11394 (initialize_tracepoint): Likewise.
11395
50278d59
GB
113962014-08-28 Gary Benson <gbenson@redhat.com>
11397
11398 * remote-utils.c (remote_prepare): Replace fatal with error.
11399
aa96c426
GB
114002014-08-28 Gary Benson <gbenson@redhat.com>
11401
11402 * linux-low.c (linux_async): Replace fatal with warning.
11403 Tidy up and return.
11404 (linux_start_non_stop): Return -1 if linux_async failed.
11405
f7160e97
GB
114062014-08-28 Gary Benson <gbenson@redhat.com>
11407
11408 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11409 gdb_assert.
11410 (i386_dr_low_get_addr): Remove vague comment.
11411 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11412 gdb_assert.
11413
38e08fca
GB
114142014-08-28 Gary Benson <gbenson@redhat.com>
11415
11416 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11417 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11418 internal_error.
11419 (linux_resume_one_lwp): Likewise.
11420 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11421 gdb_assert.
11422 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11423 with internal_error.
11424 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11425 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11426 (find_register_by_name): Replace fatal with internal_error.
11427 (find_regno): Likewise.
11428 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11429 * thread-db.c (thread_db_create_event): Likewise.
11430 (thread_db_load_search): Likewise.
11431 (try_thread_db_load_1): Likewise.
11432 * tracepoint.c (get_jump_space_head): Replace fatal with
11433 internal_error.
11434 (claim_trampoline_space): Likewise.
11435 (have_fast_tracepoint_trampoline_buffer): Likewise.
11436 (cmd_qtstart): Likewise.
11437 (stop_tracing): Likewise.
11438 (fast_tracepoint_collecting): Likewise.
11439 (target_malloc): Likewise.
11440 (download_tracepoint): Likewise.
11441 (download_trace_state_variables): Replace check with gdb_assert.
11442 (upload_fast_traceframes): Replace fatal with internal_error.
11443
34abf635
GB
114442014-08-19 Tom Tromey <tromey@redhat.com>
11445 Gary Benson <gbenson@redhat.com>
11446
11447 * Makefile.in (SFILES): Add common/common-debug.c.
11448 (OBS): Add common-debug.o.
11449 (common-debug.o): New rule.
11450 * debug.h (debug_printf): Don't declare.
11451 * debug.c (debug_printf): Renamed and rewritten as...
11452 (debug_vprintf): New function.
11453
f6e94d78
GB
114542014-08-19 Gary Benson <gbenson@redhat.com>
11455
11456 * utils.h: Do not include print-utils.h.
11457
9239eeab
GB
114582014-08-19 Tom Tromey <tromey@redhat.com>
11459 Gary Benson <gbenson@redhat.com>
11460
11461 * server.h: Add static assertion.
11462 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11463
ef87c8bb
GB
114642014-08-19 Tom Tromey <tromey@redhat.com>
11465 Gary Benson <gbenson@redhat.com>
11466
11467 * Makefile.in (SFILES): Add common/errors.c.
11468 (OBS): Add errors.o.
11469 (IPA_OBS): Add errors-ipa.o.
11470 (errors.o): New rule.
11471 (errors-ipa.o): Likewise.
11472 * utils.h (perror_with_name, error, warning): Don't declare.
11473 * utils.c (warning): Renamed and rewritten as...
11474 (vwarning): New function.
11475 (error): Renamed and rewritten as...
11476 (verror): New function.
11477 (internal_error): Renamed and rewritten as...
11478 (internal_verror): New function.
11479
bb974a24
GB
114802014-08-07 Gary Benson <gbenson@redhat.com>
11481
11482 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11483 * configure: Regenerate.
11484 * config.in: Likewise.
11485 * server.h: Do not include errno.h.
11486 * event-loop.c: Likewise.
11487 * hostio-errno.c: Likewise.
11488 * linux-low.c: Likewise.
11489 * remote-utils.c: Likewise.
11490 * spu-low.c: Likewise.
11491 * utils.c: Likewise.
11492 * gdbreplay.c: Unconditionally include errno.h.
11493
6d3d12eb
GB
114942014-08-07 Gary Benson <gbenson@redhat.com>
11495
11496 * server.h: Do not include string.h.
11497 * event-loop.c: Likewise.
11498 * linux-low.c: Likewise.
11499 * regcache.c: Likewise.
11500 * remote-utils.c: Likewise.
11501 * spu-low.c: Likewise.
11502 * utils.c: Likewise.
11503
dccbb609
GB
115042014-08-07 Gary Benson <gbenson@redhat.com>
11505
11506 * server.h: Do not include gdb_assert.h.
11507
e76df0d0
GB
115082014-08-07 Gary Benson <gbenson@redhat.com>
11509
11510 * server.h: Do not include common-utils.h.
11511
4cb9c816
GB
115122014-08-07 Gary Benson <gbenson@redhat.com>
11513
11514 * server.h: Do not include ptid.h.
11515 * notif.h: Likewise.
11516
3995eeee
GB
115172014-08-07 Gary Benson <gbenson@redhat.com>
11518
11519 * server.h: Do not include gdb_locale.h.
11520
cb9f1a9b
GB
115212014-08-07 Gary Benson <gbenson@redhat.com>
11522
11523 * server.h: Do not include gdb/signals.h.
11524 * win32-low.c: Likewise.
11525
a5fceff8
GB
115262014-08-07 Gary Benson <gbenson@redhat.com>
11527
11528 * server.h: Do not include pathmax.h.
11529
b9391142
GB
115302014-08-07 Gary Benson <gbenson@redhat.com>
11531
11532 * server.h: Do not include libiberty.h.
11533 * linux-bfin-low.c: Likewise.
11534
0e443c87
GB
115352014-08-07 Gary Benson <gbenson@redhat.com>
11536
11537 * server.h: Do not include ansidecl.h.
11538
8ebb3f56
GB
115392014-08-07 Gary Benson <gbenson@redhat.com>
11540
11541 * linux-x86-low.c: Do not include stddef.h.
11542 * lynx-ppc-low.c: Likewise.
11543 * tracepoint.c: Likewise.
11544
8980bdf6
GB
115452014-08-07 Gary Benson <gbenson@redhat.com>
11546
11547 * server.h: Do not include stdarg.h.
11548 * nto-low.c: Likewise.
11549
d7096f71
GB
115502014-08-07 Gary Benson <gbenson@redhat.com>
11551
11552 * server.h: Do not include stdlib.h.
11553 * inferiors.c: Likewise.
11554 * linux-low.c: Likewise.
11555 * regcache.c: Likewise.
11556 * spu-low.c: Likewise.
11557 * tracepoint.c: Likewise.
11558 * utils.c: Likewise.
11559
d02f550d
GB
115602014-08-07 Gary Benson <gbenson@redhat.com>
11561
11562 * server.h: Do not include stdio.h.
11563 * linux-low.c: Likewise.
11564 * remote-utils.c: Likewise.
11565 * spu-low.c: Likewise.
11566 * utils.c: Likewise.
11567 * wincecompat.c: Likewise.
11568
87f6c4e3
GB
115692014-08-06 Gary Benson <gbenson@redhat.com>
11570
11571 * regcache.c (init_register_cache): Move conditionals inside if.
11572
7089dca4
GB
115732014-08-06 Gary Benson <gbenson@redhat.com>
11574
11575 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
11576
462f517e
GB
115772014-07-31 Gary Benson <gbenson@redhat.com>
11578
11579 * ax.h: Do not include server.h.
11580 * gdbthread.h: Likewise.
11581 * lynx-low.h: Likewise.
11582 * notif.h: Likewise.
11583
976411d6
GB
115842014-07-30 Gary Benson <gbenson@redhat.com>
11585
11586 * server.h: Include common-defs.h.
11587 Do not include config.h or build-gnulib-gdbserver/config.h.
11588
d41f6d8e
GB
115892014-07-30 Gary Benson <gbenson@redhat.com>
11590
11591 * hostio-errno.c: Move server.h to top of includes list.
11592 * inferiors.c: Likewise.
11593 * linux-x86-low.c: Likewise.
11594 * notif.c: Include server.h.
11595
314c6a35
TT
115962014-07-24 Tom Tromey <tromey@redhat.com>
11597 Gary Benson <gbenson@redhat.com>
11598
11599 * server.h (CORE_ADDR): Now unsigned.
11600
69ff6be5
PA
116012014-07-16 Pedro Alves <palves@redhat.com>
11602
11603 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
11604
ce9e3fe7
PA
116052014-07-15 Pedro Alves <palves@redhat.com>
11606
11607 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
11608 copy.
11609
e76126e8
PA
116102014-07-11 Pedro Alves <palves@redhat.com>
11611
11612 * linux-low.c (kill_wait_lwp): New function, based on
11613 kill_one_lwp_callback, but use my_waitpid directly.
11614 (kill_one_lwp_callback, linux_kill): Use it.
11615
8e9db26e
PA
116162014-06-23 Pedro Alves <palves@redhat.com>
11617
11618 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
11619 before setting DR0..DR3.
11620
698b3e08
GB
116212014-06-20 Gary Benson <gbenson@redhat.com>
11622
11623 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
11624 * configure: Regenerated.
11625 * config.in: Likewise.
11626
125f8a3d
GB
116272014-06-20 Gary Benson <gbenson@redhat.com>
11628
11629 * Makefile.in (SFILES): Update locations for files moved
11630 from common to nat.
11631 (object file files): Reordered.
11632
42995dbd
GB
116332014-06-20 Gary Benson <gbenson@redhat.com>
11634
11635 * i386-low.h (i386_dr_low_can_set_addr): Removed.
11636 (i386_dr_low_set_addr): Likewise.
11637 (i386_dr_low_get_addr): Likewise.
11638 (i386_dr_low_can_set_control): Likewise.
11639 (i386_dr_low_set_control): Likewise.
11640 (i386_dr_low_get_control): Likewise.
11641 (i386_dr_low_get_status): Likewise.
11642 (i386_get_debug_register_length): Likewise.
11643 * linux-x86-low.c (i386_dr_low_set_addr):
11644 Changed signature. Made static.
11645 (i386_dr_low_get_addr): Likewise.
11646 (i386_dr_low_set_control): Likewise.
11647 (i386_dr_low_get_control): Likewise.
11648 (i386_dr_low_get_status): Likewise.
11649 (i386_dr_low): New global variable.
11650 * win32-i386-low.c (i386_dr_low_set_addr):
11651 Changed signature. Made static.
11652 (i386_dr_low_get_addr): Likewise.
11653 (i386_dr_low_set_control): Likewise.
11654 (i386_dr_low_get_control): Likewise.
11655 (i386_dr_low_get_status): Likewise.
11656 (i386_dr_low): New global variable.
11657
e1d2394b
MS
116582014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
11659
11660 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
11661 * Makefile.in (AR, AR_FLAGS): Define.
11662 * configure: Regenerate.
11663
3a8ee006
GB
116642014-06-19 Gary Benson <gbenson@redhat.com>
11665
11666 * Makefile.in (i386-dregs.o): New rule.
11667 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
11668 * i386-low.c (target.h): Remove include.
11669 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
11670 (DR_CONTROL_SHIFT): Likewise.
11671 (DR_CONTROL_SIZE): Likewise.
11672 (DR_RW_EXECUTE): Likewise.
11673 (DR_RW_WRITE): Likewise.
11674 (DR_RW_READ): Likewise.
11675 (DR_RW_IORW): Likewise.
11676 (DR_LEN_1): Likewise.
11677 (DR_LEN_2): Likewise.
11678 (DR_LEN_4): Likewise.
11679 (DR_LEN_8): Likewise.
11680 (DR_LOCAL_ENABLE_SHIFT): Likewise.
11681 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
11682 (DR_ENABLE_SIZE): Likewise.
11683 (DR_LOCAL_SLOWDOWN): Likewise.
11684 (DR_GLOBAL_SLOWDOWN): Likewise.
11685 (DR_CONTROL_RESERVED): Likewise.
11686 (I386_DR_CONTROL_MASK): Likewise.
11687 (I386_DR_VACANT): Likewise.
11688 (I386_DR_LOCAL_ENABLE): Likewise.
11689 (I386_DR_GLOBAL_ENABLE): Likewise.
11690 (I386_DR_DISABLE): Likewise.
11691 (I386_DR_SET_RW_LEN): Likewise.
11692 (I386_DR_GET_RW_LEN): Likewise.
11693 (I386_DR_WATCH_HIT): Likewise.
11694 (i386_wp_op_t): Likewise.
11695 (i386_show_dr): Likewise.
11696 (i386_length_and_rw_bits): Likewise.
11697 (i386_insert_aligned_watchpoint): Likewise.
11698 (i386_remove_aligned_watchpoint): Likewise.
11699 (i386_handle_nonaligned_watchpoint): Likewise.
11700 i386_update_inferior_debug_regs(): Likewise.
11701 (i386_dr_insert_watchpoint): Likewise.
11702 (i386_dr_remove_watchpoint): Likewise.
11703 (i386_dr_region_ok_for_watchpoint): Likewise.
11704 (i386_dr_stopped_data_address): Likewise.
11705 (i386_dr_stopped_by_watchpoint): Likewise.
11706
8f26655c
GB
117072014-06-19 Gary Benson <gbenson@redhat.com>
11708
11709 * i386-low.c (i386_dr_show): Renamed to
11710 i386_show_dr and made static. All uses updated.
11711 (i386_dr_length_and_rw_bits): Renamed to
11712 i386_length_and_rw_bits and made static.
11713 All uses updated.
11714 (i386_dr_insert_aligned_watchpoint): Renamed to
11715 i386_insert_aligned_watchpoint and made static.
11716 All uses updated.
11717 (i386_dr_remove_aligned_watchpoint): Renamed to
11718 i386_remove_aligned_watchpoint and made static.
11719 All uses updated.
11720 (i386_dr_update_inferior_debug_regs): Renamed to
11721 i386_update_inferior_debug_regs and made static.
11722 All uses updated.
11723
b9228891
GB
117242014-06-18 Gary Benson <gbenson@redhat.com>
11725
5171def3
GB
11726 * i386-low.h (i386_dr_low_can_set_addr): New macro.
11727 (i386_dr_low_can_set_control): Likewise.
11728 (i386_get_debug_register_length): Likewise.
11729 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
11730 (i386_dr_low_can_set_control): Likewise.
11731 (i386_get_debug_register_length): Likewise.
11732
117332014-06-17 Gary Benson <gbenson@redhat.com>
11734
b9228891
GB
11735 * i386-low.h (i386-dregs.h): New include.
11736 (DR_FIRSTADDR): Now in i386-dregs.h.
11737 (DR_LASTADDR): Likewise.
11738 (DR_NADDR): Likewise.
11739 (DR_STATUS): Likewise.
11740 (DR_CONTROL): Likewise.
11741 (i386_debug_reg_state): Likewise.
11742 (i386_dr_insert_watchpoint): Likewise.
11743 (i386_dr_remove_watchpoint): Likewise.
11744 (i386_dr_region_ok_for_watchpoint): Likewise.
11745 (i386_dr_stopped_data_address): Likewise.
11746 (i386_dr_stopped_by_watchpoint): Likewise.
11747 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
11748
4be83cc2
GB
117492014-06-18 Gary Benson <gbenson@redhat.com>
11750
11751 * i386-low.h (i386_low_insert_watchpoint): Renamed to
11752 i386_dr_insert_watchpoint.
11753 (i386_low_remove_watchpoint): Renamed to
11754 i386_dr_remove_watchpoint.
11755 (i386_low_region_ok_for_watchpoint): Renamed to
11756 i386_dr_region_ok_for_watchpoint.
11757 (i386_low_stopped_data_address): Renamed to
11758 i386_dr_stopped_data_address.
11759 (i386_low_stopped_by_watchpoint): Renamed to
11760 i386_dr_stopped_by_watchpoint.
11761 * i386-low.c (i386_show_dr): Renamed to
11762 i386_dr_show and made nonstatic. All uses updated.
11763 (i386_length_and_rw_bits): Renamed to
11764 i386_dr_length_and_rw_bits and made nonstatic.
11765 All uses updated.
11766 (i386_insert_aligned_watchpoint): Renamed to
11767 i386_dr_insert_aligned_watchpoint and made nonstatic.
11768 All uses updated.
11769 (i386_remove_aligned_watchpoint): Renamed to
11770 i386_dr_remove_aligned_watchpoint and made nonstatic.
11771 All uses updated.
11772 (i386_update_inferior_debug_regs): Renamed to
11773 i386_dr_update_inferior_debug_regs and made nonstatic.
11774 All uses updated.
11775 (i386_low_insert_watchpoint): Renamed to
11776 i386_dr_insert_watchpoint. All uses updated.
11777 (i386_low_remove_watchpoint): Renamed to
11778 i386_dr_remove_watchpoint. All uses updated.
11779 (i386_low_region_ok_for_watchpoint): Renamed to
11780 i386_dr_region_ok_for_watchpoint. All uses updated.
11781 (i386_low_stopped_data_address): Renamed to
11782 i386_dr_stopped_data_address. All uses updated.
11783 (i386_low_stopped_by_watchpoint): Renamed to
11784 i386_dr_stopped_by_watchpoint. All uses updated.
11785
131aa0d4
GB
117862014-06-18 Gary Benson <gbenson@redhat.com>
11787
11788 * i386-low.c (i386_dr_low_can_set_addr): New macro.
11789 (i386_dr_low_can_set_control): Likewise.
11790 (i386_insert_aligned_watchpoint): New check.
11791
d9305f7f
GB
117922014-06-18 Gary Benson <gbenson@redhat.com>
11793
11794 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
11795 Renamed to state.
11796
e927c9fc
GB
117972014-06-18 Gary Benson <gbenson@redhat.com>
11798
11799 * i386-low.c (i386_length_and_rw_bits): Use internal_error
11800 instead of fatal and error.
11801 (i386_handle_nonaligned_watchpoint): Likewise.
11802
1b6d4134
GB
118032014-06-18 Gary Benson <gbenson@redhat.com>
11804
11805 * i386-low.c (i386_get_debug_register_length): New macro.
11806 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
11807 (i386_show_dr): Use debug_printf instead of fprintf. Use
11808 phex to format values.
11809
6e62758f
GB
118102014-06-18 Gary Benson <gbenson@redhat.com>
11811
11812 * i386-low.h: Comment changes.
11813 * i386-low.c: Likewise.
11814
fc6e2f03
GB
118152014-06-18 Gary Benson <gbenson@redhat.com>
11816
11817 * i386-low.c: Whitespace changes.
11818
f9d1eeed
TT
118192014-06-12 Tom Tromey <tromey@redhat.com>
11820
11821 * utils.c (freeargv): Remove.
11822
0b04e523
TT
118232014-06-12 Tom Tromey <tromey@redhat.com>
11824
11825 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
11826 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
11827 (parse_debug_format_options): Likewise.
11828 (gdbserver_usage): Likewise.
11829 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
11830 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
11831 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
11832 against libiberty.
11833 ($(LIBGNU)): Depend on libiberty.
11834 (all-lib): Recurse into all subdirs.
11835 (install-only): Invoke "install" target in subdirs.
11836 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
11837 targets.
11838 * configure: Rebuild.
11839 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
11840 for vasprintf, vsnprintf, or gettimeofday.
11841 * configure.srv: Don't add safe-ctype.o or lbasename.o to
11842 srv_tgtobj.
11843
270c9937
JB
118442014-06-05 Joel Brobecker <brobecker@adacore.com>
11845
11846 * development.sh: Delete.
11847 * Makefile.in (config.status): Adjust dependency on development.sh.
11848 * configure.ac: Adjust development.sh source call.
11849 * configure: Regenerate.
11850
0a261ed8
PA
118512014-06-02 Pedro Alves <palves@redhat.com>
11852
11853 * ax.c (gdb_free_agent_expr): New function.
11854 * ax.h (gdb_free_agent_expr): New declaration.
11855 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
11856 list.
11857 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
11858 static.
11859 (clear_breakpoint_conditions_and_commands): New function.
11860 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
11861 (clear_breakpoint_conditions_and_commands): New declaration.
11862
e9dae05e
RR
118632014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11864
11865 * linux-aarch64-low.c (asm/ptrace.h): Include.
11866
5876f503
JK
118672014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11868
11869 Fix TLS access for -static -pthread.
11870 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
11871 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
11872 (thread_db_load_search, try_thread_db_load_1): Initialize it.
11873
802e8e6d
PA
118742014-05-20 Pedro Alves <palves@redhat.com>
11875
11876 * linux-aarch64-low.c (aarch64_insert_point)
11877 (aarch64_remove_point): No longer check whether the type is
11878 supported here. Adjust to new interface.
11879 (the_low_target): Install aarch64_supports_z_point_type as
11880 supports_z_point_type method.
11881 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
11882 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
11883 instead of a Z packet char. Adjust.
11884 (arm_supports_z_point_type): New function.
11885 (arm_insert_point, arm_remove_point): Adjust to new interface.
11886 (the_low_target): Install arm_supports_z_point_type.
11887 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
11888 (cris_insert_point, cris_remove_point): Adjust to new interface.
11889 Don't check whether the type is supported here.
11890 (the_low_target): Install cris_supports_z_point_type.
11891 * linux-low.c (linux_supports_z_point_type): New function.
11892 (linux_insert_point, linux_remove_point): Adjust to new interface.
11893 * linux-low.h (struct linux_target_ops) <insert_point,
11894 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
11895 raw_breakpoint pointer parameter.
11896 <supports_z_point_type>: New method.
11897 * linux-mips-low.c (mips_supports_z_point_type): New function.
11898 (mips_insert_point, mips_remove_point): Adjust to new interface.
11899 Use mips_supports_z_point_type.
11900 (the_low_target): Install mips_supports_z_point_type.
11901 * linux-ppc-low.c (the_low_target): Install NULL as
11902 supports_z_point_type method.
11903 * linux-s390-low.c (the_low_target): Install NULL as
11904 supports_z_point_type method.
11905 * linux-sparc-low.c (the_low_target): Install NULL as
11906 supports_z_point_type method.
11907 * linux-x86-low.c (x86_supports_z_point_type): New function.
11908 (x86_insert_point): Adjust to new insert_point interface. Use
11909 insert_memory_breakpoint. Adjust to new
11910 i386_low_insert_watchpoint interface.
11911 (x86_remove_point): Adjust to remove_point interface. Use
11912 remove_memory_breakpoint. Adjust to new
11913 i386_low_remove_watchpoint interface.
11914 (the_low_target): Install x86_supports_z_point_type.
11915 * lynx-low.c (lynx_target_ops): Install NULL as
11916 supports_z_point_type callback.
11917 * nto-low.c (nto_supports_z_point_type): New.
11918 (nto_insert_point, nto_remove_point): Adjust to new interface.
11919 (nto_target_ops): Install nto_supports_z_point_type.
11920 * mem-break.c: Adjust intro comment.
11921 (struct raw_breakpoint) <raw_type, size>: New fields.
11922 <inserted>: Update comment.
11923 <shlib_disabled>: Delete field.
11924 (enum bkpt_type) <gdb_breakpoint>: Delete value.
11925 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
11926 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
11927 (raw_bkpt_type_to_target_hw_bp_type): New function.
11928 (find_enabled_raw_code_breakpoint_at): New function.
11929 (find_raw_breakpoint_at): New type and size parameters. Use them.
11930 (insert_memory_breakpoint): New function, based off
11931 set_raw_breakpoint_at.
11932 (remove_memory_breakpoint): New function.
11933 (set_raw_breakpoint_at): Reimplement.
11934 (set_breakpoint): New, based on set_breakpoint_at.
11935 (set_breakpoint_at): Reimplement.
11936 (delete_raw_breakpoint): Go through the_target->remove_point
11937 instead of assuming memory breakpoints.
11938 (find_gdb_breakpoint_at): Delete.
11939 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
11940 (find_gdb_breakpoint): New function.
11941 (set_gdb_breakpoint_at): Delete.
11942 (z_type_supported): New function.
11943 (set_gdb_breakpoint_1): New function, loosely based off
11944 set_gdb_breakpoint_at.
11945 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
11946 (delete_gdb_breakpoint_at): Delete.
11947 (delete_gdb_breakpoint_1): New function, loosely based off
11948 delete_gdb_breakpoint_at.
11949 (delete_gdb_breakpoint): New function.
11950 (clear_gdb_breakpoint_conditions): Rename to ...
11951 (clear_breakpoint_conditions): ... this. Don't handle a NULL
11952 breakpoint.
11953 (add_condition_to_breakpoint): Make static.
11954 (add_breakpoint_condition): Take a struct breakpoint pointer
11955 instead of an address. Adjust.
11956 (gdb_condition_true_at_breakpoint): Rename to ...
11957 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
11958 z_type parameter.
11959 (gdb_condition_true_at_breakpoint): Reimplement.
11960 (add_breakpoint_commands): Take a struct breakpoint pointer
11961 instead of an address. Adjust.
11962 (gdb_no_commands_at_breakpoint): Rename to ...
11963 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
11964 parameter. Return true if no breakpoint was found. Change debug
11965 output.
11966 (gdb_no_commands_at_breakpoint): Reimplement.
11967 (run_breakpoint_commands): Rename to ...
11968 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
11969 and change return type to boolean.
11970 (run_breakpoint_commands): New function.
11971 (gdb_breakpoint_here): Also check for Z1 breakpoints.
11972 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
11973 breakpoint. Go through the_target->remove_point instead of
11974 assuming memory breakpoint.
11975 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
11976 software and hardware breakpoints.
11977 (reinsert_raw_breakpoint): Go through the_target->insert_point
11978 instead of assuming memory breakpoint.
11979 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
11980 software and hardware breakpoints.
11981 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
11982 Check both software and hardware breakpoints.
11983 (validate_inserted_breakpoint): Assert the breakpoint is a
11984 software breakpoint. Set the inserted flag to -1 instead of
11985 setting shlib_disabled.
11986 (delete_disabled_breakpoints): Adjust.
11987 (validate_breakpoints): Only validate software breakpoints.
11988 Adjust to inserted flag change.
11989 (check_mem_read, check_mem_write): Skip breakpoint types other
11990 than software breakpoints. Adjust to inserted flag change.
11991 * mem-break.h (enum raw_bkpt_type): New enum.
11992 (raw_breakpoint, struct process_info): Forward declare.
11993 (Z_packet_to_target_hw_bp_type): Delete declaration.
11994 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
11995 (set_gdb_breakpoint, delete_gdb_breakpoint)
11996 (clear_breakpoint_conditions): New declarations.
11997 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
11998 (breakpoint_inserted_here): Update comment.
11999 (add_breakpoint_condition, add_breakpoint_commands): Replace
12000 address parameter with a breakpoint pointer parameter.
12001 (gdb_breakpoint_here): Update comment.
12002 (delete_gdb_breakpoint_at): Delete.
12003 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12004 * server.c (process_point_options): Take a struct breakpoint
12005 pointer instead of an address. Adjust.
12006 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12007 delete_gdb_breakpoint.
12008 * spu-low.c (spu_target_ops): Install NULL as
12009 supports_z_point_type method.
12010 * target.h: Include mem-break.h.
12011 (struct target_ops) <prepare_to_access_memory>: Update comment.
12012 <supports_z_point_type>: New field.
12013 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12014 instead of a char. Also take a raw breakpoint pointer.
12015 * win32-arm-low.c (the_low_target): Install NULL as
12016 supports_z_point_type.
12017 * win32-i386-low.c (i386_supports_z_point_type): New function.
12018 (i386_insert_point, i386_remove_point): Adjust to new interface.
12019 (the_low_target): Install i386_supports_z_point_type.
12020 * win32-low.c (win32_supports_z_point_type): New function.
12021 (win32_insert_point, win32_remove_point): Adjust to new interface.
12022 (win32_target_ops): Install win32_supports_z_point_type.
12023 * win32-low.h (struct win32_target_ops):
12024 <supports_z_point_type>: New method.
12025 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12026 instead of a char. Also take a raw breakpoint pointer.
12027
932539e3
PA
120282014-05-20 Pedro Alves <palves@redhat.com>
12029
12030 * mem-break.h: Include break-common.h.
12031 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12032 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12033 (Z_packet_to_target_hw_bp_type): New declaration.
12034 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12035 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12036 (Z_PACKET_ACCESS_WP): Delete macros.
12037 (Z_packet_to_hw_type): Delete function.
12038 * i386-low.h: Don't include break-common.h here.
12039 (Z_packet_to_hw_type): Delete declaration.
12040 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12041 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12042 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12043 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12044 * linux-aarch64-low.c: Don't include break-common.h here.
12045 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12046 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12047 (Z_packet_to_target_hw_bp_type): Delete function.
12048 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12049 function.
12050 (mips_insert_point, mips_remove_point): Use
12051 Z_packet_to_target_hw_bp_type.
12052
4ff0d3d8
PA
120532014-05-20 Pedro Alves <palves@redhat.com>
12054
12055 * linux-aarch64-low.c: Include break-common.h.
12056 (enum target_point_type): Delete.
12057 (Z_packet_to_point_type): Rename to ...
12058 (Z_packet_to_target_hw_bp_type): ... this, and return a
12059 target_hw_bp_type instead.
12060 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12061 instead of an enum target_point_type.
12062 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12063 breakpoint type.
12064 (aarch64_dr_state_insert_one_point)
12065 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12066 (aarch64_handle_aligned_watchpoint)
12067 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12068 Take an enum target_hw_bp_type instead of an enum
12069 target_point_type.
12070 (aarch64_supports_z_point_type): New function.
12071 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12072 use Z_packet_to_target_hw_bp_type.
12073
786dc519
JB
120742014-05-20 Joel Brobecker <brobecker@adacore.com>
12075
12076 * configure.ac: Only use -Werror by default when DEVELOPMENT
12077 is true.
12078 * configure: Regenerate.
12079
9e0aa64f
JK
120802014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12081
12082 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12083 * linux-x86-low.c (X86_64_USER_REGS): New.
12084 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12085
2b577b92
YQ
120862014-04-28 Yao Qi <yao@codesourcery.com>
12087
12088 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12089 name.
12090
94611da2
PA
120912014-04-25 Pedro Alves <palves@redhat.com>
12092
12093 PR server/16255
12094 * linux-low.c (linux_attach_fail_reason_string): New function.
12095 (linux_attach_lwp): Delete.
12096 (linux_attach_lwp_1): Rename to ...
12097 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12098 argument. Remove "initial" parameter. Return int instead of
12099 void. Don't error or warn here.
12100 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12101 failure to attach to the tgid. Call warning when failing to
12102 attach to an lwp.
12103 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12104 argument. Remove "initial" parameter. Return int instead of
12105 void. Don't error or warn here.
12106 (linux_attach_fail_reason_string): New declaration.
12107 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12108 interface change. Use linux_attach_fail_reason_string.
12109
01f9f808
MS
121102014-04-24 Michael Sturm <michael.sturm@mintel.com>
12111 Walfred Tedeschi <walfred.tedeschi@intel.com>
12112
12113 * Makefile.in: Added rules to handle new files
12114 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12115 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12116 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12117 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12118 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12119 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12120 x32-avx512-linux.o.
12121 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12122 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12123 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12124 i386/x32-avx512.xml.
12125 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12126 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12127 i386/x32-avx512-linux.xml.
12128 * i387-fp.c (num_avx512_k_registers): New constant for number
12129 of K registers.
12130 (num_avx512_zmmh_low_registers): New constant for number of
12131 lower ZMM registers (0-15).
12132 (num_avx512_zmmh_high_registers): New constant for number of
12133 higher ZMM registers (16-31).
12134 (num_avx512_ymmh_registers): New contant for number of higher
12135 YMM registers (ymm16-31 added by avx521 on x86_64).
12136 (num_avx512_xmm_registers): New constant for number of higher
12137 XMM registers (xmm16-31 added by AVX512 on x86_64).
12138 (struct i387_xsave): Add space for AVX512 registers.
12139 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12140 Add code to handle AVX512 registers.
12141 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12142 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12143 prototypei from generated file.
12144 (tdesc_amd64_avx512_linux): Likewise.
12145 (init_registers_x32_avx512_linux): Likewise.
12146 (tdesc_x32_avx512_linux): Likewise.
12147 (init_registers_i386_avx512_linux): Likewise.
12148 (tdesc_i386_avx512_linux): Likewise.
12149 (x86_64_regmap): Add AVX512 registers.
12150 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12151 mask.
12152 (initialize_low_arch): Add code to initialize AVX512 registers.
12153
51aa91f9
PA
121542014-04-23 Pedro Alves <palves@redhat.com>
12155
12156 * mem-break.c (find_gdb_breakpoint_at): Make static.
12157 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12158
a4165e94
PA
121592014-04-23 Pedro Alves <palves@redhat.com>
12160
12161 * i386-low.c: Don't include break-common.h here.
12162 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12163 prototype to take target_hw_bp_type as argument instead of a Z
12164 packet char.
12165 * i386-low.h: Include break-common.h here.
12166 (Z_packet_to_hw_type): Declare.
12167 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12168 prototypes.
12169 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12170 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12171 (x86_remove_point): Convert the packet number to a
12172 target_hw_bp_type before calling i386_low_remove_watchpoint.
12173 * win32-i386-low.c (i386_insert_point): Convert the packet number
12174 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12175 (i386_remove_point): Convert the packet number to a
12176 target_hw_bp_type before calling i386_low_remove_watchpoint.
12177
b8acf843
PA
121782014-04-23 Pedro Alves <palves@redhat.com>
12179
12180 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12181
d708bcd1
PA
121822014-04-10 Pedro Alves <palves@redhat.com>
12183
12184 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12185 Check if the condition or command is NULL before checking if the
12186 breakpoint is known. On success, return true.
12187 * mem-break.h (add_breakpoint_condition): Document return.
12188 (add_breakpoint_commands): Add describing comment.
12189 * server.c (skip_to_semicolon): New function.
12190 (process_point_options): Use it.
12191
2eec7d5b
PA
121922014-04-09 Pedro Alves <palves@redhat.com>
12193
12194 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12195 to lwpid_of.
12196
fa96cb38
PA
121972014-02-27 Pedro Alves <palves@redhat.com>
12198
12199 PR 12702
12200 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12201 macros.
12202 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12203 output.
12204 (last_thread_of_process_p): Take a PID argument instead of a
12205 thread pointer.
12206 (linux_wait_for_lwp): Delete.
12207 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12208 functions.
12209 (linux_low_filter_event): New function, party factored out from
12210 linux_wait_for_event.
12211 (linux_wait_for_event): Rename to ...
12212 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12213 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12214 sigsuspend. Check for zombie leaders.
12215 (linux_wait_for_event): Reimplement as wrapper around
12216 linux_wait_for_event_filtered.
12217 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12218 a normal or signal exit is seen, it's the whole process exiting.
12219 (wait_for_sigstop): No longer a for_each_inferior callback.
12220 Rewrite on top of linux_wait_for_event_filtered.
12221 (stop_all_lwps): Call wait_for_sigstop directly.
12222 * server.c (resume, handle_target_event): Handle
12223 TARGET_WAITKIND_NO_RESUMED.
12224
d763de10
JB
122252014-02-26 Joel Brobecker <brobecker@adacore.com>
12226
12227 * win32-low.c (psapi_get_dll_name,
12228 * win32_CreateToolhelp32Snapshot): Delete.
12229 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12230 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12231 Delete.
12232 (handle_load_dll): Add function description.
12233 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12234
850a0f76
JB
122352014-02-26 Joel Brobecker <brobecker@adacore.com>
12236
12237 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12238 Add comment.
12239 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12240 base address when calling win32_add_one_solib.
12241 (handle_load_dll): Delete local variable load_addr.
12242 Remove 0x1000 offset applied to DLL base address when calling
12243 win32_add_one_solib.
12244 (handle_unload_dll): Add comment.
12245
f25b3fc3
JB
122462014-02-26 Joel Brobecker <brobecker@adacore.com>
12247
12248 * win32-low.c (win32_add_all_dlls): Renames
12249 win32_ensure_ntdll_loaded. Rewrite function documentation.
12250 Adjust implementation to always load all DLLs.
12251 Add 0x1000 offset to DLL base address when calling
12252 win32_add_one_solib.
12253 (child_initialization_done): New static global.
12254 (do_initial_child_stuff): Set child_initialization_done to
12255 zero during child initialization, and 1 after. Replace call
12256 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12257 Add comment.
12258 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12259 (handle_unload_dll): Add function documentation.
12260 (get_child_debug_event): Ignore load and unload DLL events
12261 during child initialization.
12262
d86d4aaf
DE
122632014-02-20 Doug Evans <dje@google.com>
12264
3bc32da3 12265 Remove global all_lwps.
d86d4aaf
DE
12266 * inferiors.h (ptid_of): Move here from linux-low.h.
12267 (pid_of, lwpid_of): Ditto.
12268 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12269 parameter is a struct thread_info * now.
12270 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12271 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12272 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12273 directly.
12274 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12275 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12276 * linux-arm-low.c (update_registers_callback): Update, "entry"
12277 parameter is a struct thread_info * now.
12278 Fetch lwpid from current_inferior directly.
12279 (arm_insert_point): Pass &all_threads to find_inferior instead of
12280 &all_lwps.
12281 (arm_remove_point): Ditto.
12282 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12283 (arm_prepare_to_resume): Fetch pid from thread.
12284 (arm_read_description): Fetch lwpid from current_inferior directly.
12285 * linux-low.c (all_lwps): Delete.
12286 (delete_lwp): Delete call to remove_inferior.
12287 (handle_extended_wait): Fetch lwpid from thread.
12288 (add_lwp): Don't set lwp->entry.id. Remove call to
12289 add_inferior_to_list.
12290 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12291 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12292 (kill_one_lwp_callback): Ditto.
12293 (linux_kill): Don't dereference NULL pointer.
12294 Fetch ptid,lwpid from thread.
12295 (get_detach_signal): Fetch ptid from thread.
12296 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12297 Simplify call to regcache_invalidate_thread.
12298 (delete_lwp_callback): Update, "entry" parameter is a
12299 struct thread_info * now. Fetch pid from thread.
12300 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12301 (status_pending_p_callback): Update, "entry" parameter is a
12302 struct thread_info * now. Fetch ptid from thread.
12303 (find_lwp_pid): Update, "entry" parameter is a
12304 struct thread_info * now.
12305 (linux_wait_for_lwp): Fetch pid from thread.
12306 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12307 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12308 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12309 (dequeue_one_deferred_signal): Ditto.
12310 (cancel_breakpoint): Fetch ptid from current_inferior.
12311 (linux_wait_for_event): Pass &all_threads to find_inferior,
12312 not &all_lwps. Fetch ptid, lwpid from thread.
12313 (count_events_callback): Update, "entry" parameter is a
12314 struct thread_info * now.
12315 (select_singlestep_lwp_callback): Ditto.
12316 (select_event_lwp_callback): Ditto.
12317 (cancel_breakpoints_callback): Ditto.
12318 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12319 not &all_lwps.
12320 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12321 (unsuspend_one_lwp): Update, "entry" parameter is a
12322 struct thread_info * now.
12323 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12324 not &all_lwps.
12325 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12326 Fetch lwpid from thread, not lwp.
12327 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12328 Pass &all_threads to find_inferior, not &all_lwps.
12329 (send_sigstop): Fetch lwpid from thread, not lwp.
12330 (send_sigstop_callback): Update, "entry" parameter is a
12331 struct thread_info * now.
12332 (suspend_and_send_sigstop_callback): Ditto.
12333 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12334 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12335 struct thread_info * now.
12336 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12337 from thread, lwp.
12338 (lwp_running): Update, "entry" parameter is a
12339 struct thread_info * now.
12340 (stop_all_lwps): Fetch ptid from thread.
12341 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12342 (linux_resume_one_lwp): Fetch lwpid from thread.
12343 (linux_set_resume_request): Update, "entry" parameter is a
12344 struct thread_info * now. Fetch pid, lwpid from thread.
12345 (resume_status_pending_p): Update, "entry" parameter is a
12346 struct thread_info * now.
12347 (need_step_over_p): Ditto. Fetch lwpid from thread.
12348 (start_step_over): Fetch lwpid from thread.
12349 (linux_resume_one_thread): Update, "entry" parameter is a
12350 struct thread_info * now. Fetch lwpid from thread.
12351 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12352 (proceed_one_lwp): Update, "entry" parameter is a
12353 struct thread_info * now. Fetch lwpid from thread.
12354 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12355 struct thread_info * now.
12356 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12357 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12358 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12359 directly.
12360 (regsets_store_inferior_registers): Ditto.
12361 (fetch_register, store_register): Ditto.
12362 (linux_read_memory, linux_write_memory): Ditto.
12363 (linux_request_interrupt): Ditto.
12364 (linux_read_auxv): Ditto.
12365 (linux_xfer_siginfo): Ditto.
12366 (linux_qxfer_spu): Ditto.
12367 (linux_qxfer_libraries_svr4): Ditto.
12368 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12369 moved to inferiors.h.
12370 (get_lwp): Delete.
12371 (get_thread_lwp): Update.
12372 (struct lwp_info): Delete member "entry". Simplify comment for
12373 member "thread".
12374 (all_lwps): Delete.
12375 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12376 current_inferior directly.
12377 (update_watch_registers_callback): Update, "entry" parameter is a
12378 struct thread_info * now. Fetch pid from thread.
12379 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12380 (mips_insert_point): Fetch lwpid from current_inferior.
12381 Pass &all_threads to find_inferior, not &all_lwps.
12382 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12383 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12384 directly.
12385 (mips_stopped_data_address): Ditto.
12386 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12387 directly.
12388 * linux-tile-low.c (tile_arch_setup): Ditto.
12389 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12390 (update_debug_registers_callback): Update, "entry" parameter is a
12391 struct thread_info * now. Fetch pid from thread.
12392 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12393 Pass &all_threads to find_inferior, not &all_lwps.
12394 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12395 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12396 Pass &all_threads to find_inferior, not &all_lwps.
12397 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12398 (i386_dr_low_get_status): Ditto.
12399 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12400 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12401 (x86_linux_read_description): Ditto.
12402 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12403
3b8361aa
DE
124042014-02-20 Doug Evans <dje@google.com>
12405
12406 * inferiors.c (get_first_inferior): Fix buglet.
12407
f7667f0d
DE
124082014-02-19 Doug Evans <dje@google.com>
12409
12410 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12411 * inferiors.c (add_thread): Change result type to struct thread_info *.
12412 All callers updated.
12413 (add_lwp): Call add_thread here instead of in callers.
12414 All callers updated.
12415 * linux-low.h (get_lwp_thread): Rewrite.
12416 (struct lwp_info): New member "thread".
12417
b3312d80
DE
124182014-02-19 Doug Evans <dje@google.com>
12419
12420 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12421 All callers updated.
12422
ecc6f45c
DE
124232014-02-19 Doug Evans <dje@google.com>
12424
12425 * inferiors.c (add_thread): Fix whitespace.
12426
649ebbca
DE
124272014-02-19 Doug Evans <dje@google.com>
12428
12429 * dll.c (clear_dlls): Replace accessing list implemention details
12430 with API function.
12431 * gdbthread.h (get_first_thread): Declare.
12432 * inferiors.c (for_each_inferior_with_data): New function.
12433 (get_first_thread): New function.
12434 (find_thread_ptid): Simplify.
12435 (get_first_inferior): New function.
12436 (clear_list): Delete.
12437 (one_inferior_p): New function.
12438 (clear_inferior_list): New function.
12439 (clear_inferiors): Update.
12440 * inferiors.h (for_each_inferior_with_data): Declare.
12441 (clear_inferior_list): Declare.
12442 (one_inferior_p): Declare.
12443 (get_first_inferior): Declare.
12444 * linux-low.c (linux_wait_for_event): Replace accessing list
12445 implemention details with API function.
12446 * server.c (target_running): Ditto.
12447 (accumulate_file_name_length): New function.
12448 (emit_dll_description): New function.
12449 (handle_qxfer_libraries): Replace accessing list implemention
12450 details with API function.
12451 (handle_qxfer_threads_worker): New function.
12452 (handle_qxfer_threads_proper): Replace accessing list implemention
12453 details with API function.
12454 (handle_query): Ditto.
12455 (visit_actioned_threads_callback_ftype): New typedef.
12456 (visit_actioned_threads_data): New struct.
12457 (visit_actioned_threads): Rewrite to be find_inferior callback.
12458 (resume): Call find_inferior.
12459 (handle_status): Replace accessing list implemention
12460 details with API function.
12461 (process_serial_event): Replace accessing list implemention details
12462 with API function.
12463 * target.c (set_desired_inferior): Replace accessing list implemention
12464 details with API function.
12465 * tracepoint.c (same_process_p): New function.
12466 (gdb_agent_about_to_close): Replace accessing list implemention
12467 details with API function.
12468 * win32-low.c (child_delete_thread): Replace accessing list
12469 implemention details with API function.
12470 (match_dll_by_basename): New function.
12471 (dll_is_loaded_by_basename): New function.
12472 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12473 details call to dll_is_loaded_by_basename.
12474
80894984
DE
124752014-02-19 Doug Evans <dje@google.com>
12476
12477 * dll.h (struct dll_info): Add comment.
12478 * gdbthread.h (struct thread_info): Add comment.
12479 (current_ptid): Simplify.
12480 * inferiors.c (add_process): Update.
12481 (remove_process): Update.
12482 * inferiors.h (struct process_info): Rename member "head" to "entry".
12483 * linux-low.c (delete_lwp): Update.
12484 (add_lwp): Update.
12485 (last_thread_of_process_p): Update.
12486 (kill_one_lwp_callback, linux_kill): Update.
12487 (status_pending_p_callback): Update.
12488 (wait_for_sigstop): Update. Simplify read of ptid.
12489 (start_step_over): Update.
12490 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12491 (get_lwp_thread): Update.
12492 (struct lwp_info): Rename member "head" to "entry".
12493 * regcache.h (inferior_list_entry): Delete.
12494 * server.c (kill_inferior_callback): Update.
12495 (detach_or_kill_inferior_callback): Update.
12496 (print_started_pid): Update.
12497 (print_attached_pid): Update.
12498 (process_serial_event): Simplify read of ptid.
12499 * thread-db.c (thread_db_create_event): Update.
12500 (thread_db_get_tls_address): Update.
12501 * win32-low.c (current_inferior_ptid): Simplify.
12502
46917d26
TT
125032014-02-19 Tom Tromey <tromey@redhat.com>
12504
12505 * target.h (struct target_ops) <supports_btrace>: Add target_ops
12506 argument.
12507 (target_supports_btrace): Update.
12508
0759a81e
YQ
125092014-02-14 Yao Qi <yao@codesourcery.com>
12510
12511 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
12512 (rsp-low-ipa.o): New target.
12513
a7191e8b
TT
125142014-02-12 Tom Tromey <tromey@redhat.com>
12515
12516 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
12517 convert_ascii_to_int.
12518 * regcache.c (registers_to_string): Likewise.
12519 * remote-utils.c (decode_M_packet): Likewise.
12520 * server.c (process_serial_event): Likewise.
12521
ff0e980e
TT
125222014-02-12 Tom Tromey <tromey@redhat.com>
12523
12524 * server.c (handle_query, handle_v_run): Use hex2bin, not
12525 unhexify.
12526 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
12527
e9371aff
TT
125282014-02-12 Tom Tromey <tromey@redhat.com>
12529
12530 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
12531 convert_int_to_ascii.
12532 * regcache.c (registers_to_string, collect_register_as_string):
12533 Likewise.
12534 * remote-utils.c (look_up_one_symbol, relocate_instruction):
12535 Likewise.
12536 * server.c (process_serial_event): Likewise.
12537 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
12538 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
12539
971dc0b8
TT
125402014-02-12 Tom Tromey <tromey@redhat.com>
12541
12542 * remote-utils.c (look_up_one_symbol, monitor_output): Use
12543 bin2hex, not hexify.
12544 * tracepoint.c (cmd_qtstatus): Likewise.
12545
0a822afb
TT
125462014-02-12 Tom Tromey <tromey@redhat.com>
12547
12548 * remote-utils.c (monitor_output): Pass explicit length to
12549 hexify.
12550
9c3d6531
TT
125512014-02-12 Tom Tromey <tromey@redhat.com>
12552
12553 * tracepoint.c: Include rsp-low.h.
12554 * server.c: Include rsp-low.h.
12555 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
12556 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
12557 declare.
12558 * remote-utils.c: Include rsp-low.h.
12559 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
12560 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
12561 (convert_int_to_ascii, convert_ascii_to_int): Move to
12562 common/rsp-low.c.
12563 * regcache.c: Include rsp-low.h.
12564 * ax.c: Include rsp-low.h.
12565 * Makefile.in (SFILES): Add common/rsp-low.c.
12566 (OBS): Add rsp-low.o.
12567 (rsp-low.o): New target.
12568
01fd3ea5
TT
125692014-02-12 Tom Tromey <tromey@redhat.com>
12570
12571 * utils.h (pulongest, plongest, phex_nz): Don't declare.
12572 Include print-utils.h.
12573 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12574 (plongest, thirty_two, phex_nz): Remove.
12575 * Makefile.in (SFILES): Add common/print-utils.c.
12576 (OBS): Add print-utils.o.
12577 (print-utils-ipa.o): New target.
12578 (print-utils.o): New target.
12579 (IPA_OBJS): Add print-utils-ipa.o.
12580
e99dc820
TT
125812014-02-06 Tom Tromey <tromey@redhat.com>
12582
12583 * Makefile.in (SFILES): Fix indentation.
12584
ee1e2d4f
DE
125852014-02-05 Doug Evans <dje@google.com>
12586
12587 * linux-low.c (linux_wait_for_event): Improve comment.
12588 (linux_wait_1): Keep current_inferior in sync with event_child.
12589
f5a02773
DE
125902014-01-22 Doug Evans <dje@google.com>
12591
12592 * gdbthread.h (gdb_id_to_thread): Delete, unused.
12593
87ce2a04
DE
125942014-01-22 Doug Evans <dje@google.com>
12595
12596 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
12597 * configure: Regenerate.
12598 * config.in: Regenerate.
12599 * Makefile.in (SFILES): Add debug.c.
12600 (OBS): Add debug.o.
12601 * debug.c: New file.
12602 * debug.h: New file.
12603 * linux-aarch64-low.c (*): Update all debugging printfs to use
12604 debug_printf instead of fprintf.
12605 * linux-arm-low.c (*): Ditto.
12606 * linux-cris-low.c (*): Ditto.
12607 * linux-crisv32-low.c (*): Ditto.
12608 * linux-m32r-low.c (*): Ditto.
12609 * linux-sparc-low.c (*): Ditto.
12610 * linux-x86.c (*): Ditto.
12611 * linux-low.c (*): Ditto.
12612 (linux_wait_1): Add calls to debug_enter, debug_exit.
12613 (linux_wait): Remove redundant debugging printf.
12614 (stop_all_lwps): Add calls to debug_enter, debug_exit.
12615 (linux_resume, unstop_all_lwps): Ditto.
12616 * mem-break.c (*): Update all debugging printfs to use
12617 debug_printf instead of fprintf.
12618 * remote-utils.c (*): Ditto.
12619 * thread-db.c (*): Ditto.
12620 * server.c #include <ctype.h>, "gdb_vecs.h".
12621 (debug_threads): Moved to debug.c.
12622 (*): Update all debugging printfs to use debug_printf instead of
12623 fprintf.
12624 (start_inferior): Replace call to fflush with call to debug_flush.
12625 (monitor_show_help): Mention set debug-format.
12626 (parse_debug_format_options): New function.
12627 (handle_monitor_command): Handle "monitor set debug-format".
12628 (gdbserver_usage): Mention --debug-format.
12629 (main): Parse --debug-format.
12630 * server.h (debug_threads): Declaration moved to debug.h.
12631 #include "debug.h".
12632 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
12633 trace_debug_1 that uses debug_printf.
12634 (tracepoint_look_up_symbols): Update all debugging printfs to use
12635 debug_printf instead of fprintf.
12636
e671835b
BS
126372014-01-20 Baruch Siach <baruch@tkos.co.il>
12638
12639 * linux-xtensa-low.c: Include asm/ptrace.h instead of
12640 sys/ptrace.h.
12641
b5737fa9
PA
126422014-01-17 Pedro Alves <palves@redhat.com>
12643
ea38d2a9 12644 PR build/16445
c7faa97a
PA
12645 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
12646 defined after including gdb_proc_service.h.
b5737fa9 12647
40ed484e
DE
126482014-01-16 Doug Evans <dje@google.com>
12649
12650 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
12651 (match_dll): Use it.
12652
969c39fb
MM
126532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12654
12655 * target.h (target_ops) <read_btrace>: Change parameters and
12656 return type to allow error reporting.
12657 * server.c (handle_qxfer_btrace): Support delta reads. Pass
12658 trace reading errors on.
12659 * linux-low.c (linux_low_read_btrace): Pass trace reading
12660 errors on.
12661 (linux_low_disable_btrace): New.
12662
ab7f45ba
DE
126632014-01-15 Doug Evans <dje@google.com>
12664
12665 * inferiors.c (thread_id_to_gdb_id): Delete.
12666 * inferiors.h (thread_id_to_gdb_id): Delete.
12667
66af0f44
EZ
126682014-01-13 Eli Zaretskii <eliz@gnu.org>
12669
12670 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
12671 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
12672 versions.
12673
9939e131
PA
126742014-01-08 Pedro Alves <palves@redhat.com>
12675
12676 * server.c (handle_status): Don't discard previous queued stop
12677 replies or thread's pending status here.
12678 (main) <disconnection>: Do it here instead.
12679
b7ea362b
PA
126802014-01-08 Pedro Alves <palves@redhat.com>
12681
12682 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
12683 * server.c (visit_actioned_threads, handle_pending_status): New
12684 function.
12685 (handle_v_cont): Factor out parts to ...
12686 (resume): ... this new function. If in all-stop, and a thread
12687 being resumed has a pending status, report it without actually
12688 resuming.
12689 (myresume): Adjust to use the new 'resume' function.
12690 (clear_pending_status_callback, set_pending_status_callback)
12691 (find_status_pending_thread_callback): New functions.
12692 (handle_status): Handle the case of multiple threads having
12693 interesting statuses to report. Report threads' real last signal
12694 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
12695 with an interesting thread to report the status for, instead of
12696 always reporting the status of the first thread.
12697
28498c42
JB
126982014-01-01 Joel Brobecker <brobecker@adacore.com>
12699
12700 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
12701 * gdbreplay.c (gdbreplay_version): Likewise.
12702
f45c82da
YZ
127032013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
12704
12705 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
12706 iov.iov_len with the real length in use.
12707
379a5e2d
JB
127082013-12-13 Joel Brobecker <brobecker@adacore.com>
12709
12710 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
12711 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
12712 for all targets that use win32-low.c.
12713 * win32-low.c (win32_ensure_ntdll_loaded): New function.
12714 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
12715
4210d83e
PA
127162013-12-13 Pedro Alves <palves@redhat.com>
12717
12718 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
12719 if equal to TARGET_WAITKIND_LOADED.
12720 * win32-low.c (cached_status): New static global.
12721 (win32_wait): Add declaration.
12722 (do_initial_child_stuff): Flush all initial pending debug events
12723 up to the initial breakpoint.
12724 (win32_wait): If CACHED_STATUS was set, return that instead
12725 of doing a real wait. Remove the code resuming the execution
12726 of the inferior after receiving a TARGET_WAITKIND_LOADED event
12727 during the initial phase. Also remove the code changing
12728 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
12729 TARGET_WAITKIND_STOPPED.
12730
e7f0d979
YQ
127312013-12-11 Yao Qi <yao@codesourcery.com>
12732
12733 * notif.c (handle_notif_ack): Return 0 if no notification
12734 matches.
12735
ebcf782c
DE
127362013-11-20 Doug Evans <dje@google.com>
12737
12738 * linux-low.c (linux_set_resume_request): Fix comment.
12739
20ad9378
DE
127402013-11-20 Doug Evans <dje@google.com>
12741
12742 * linux-low.c (resume_status_pending_p): Tweak comment.
12743
a196ebeb
WT
127442013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
12745
12746 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
12747 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
12748 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
12749 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
12750 (srv_amd64_regobj): Add amd64-mpx.o.
12751 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
12752 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
12753 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
12754 * i387-fp.c (num_pl_bnd_register) Added constant.
12755 (num_pl_bnd_cfg_registers) Added constant.
12756 (struct i387_xsave) Added reserved area and MPX fields.
12757 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
12758 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
12759 function.
12760 (tdesc_i386_mpx_linux): Add MPX amd64 target.
12761 (init_registers_amd64_mpx_linux): Declare new function.
12762 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
12763 (x86_64_regmap): Add MPX registers.
12764 (x86_linux_read_description): Add MPX case.
12765 (initialize_low_arch): Initialize MPX targets.
12766
0080a2f6
TT
127672013-11-18 Tom Tromey <tromey@redhat.com>
12768
12769 * configure: Rebuild.
12770 * configure.ac: Don't check for stdlib.h.
12771 * gdbreplay.c: Unconditionally include stdlib.h.
12772
2978b111
TT
127732013-11-18 Tom Tromey <tromey@redhat.com>
12774
12775 * config.in: Rebuild.
12776 * configure: Rebuild.
12777 * configure.ac: Don't use AC_HEADER_DIRENT.
12778
a3d08894
TT
127792013-11-18 Tom Tromey <tromey@redhat.com>
12780
12781 * server.h: Don't check HAVE_STRING_H.
12782 * gdbreplay.c: Don't check HAVE_STRING_H.
12783 * configure: Rebuild.
12784
0a5dd17d
TT
127852013-11-18 Tom Tromey <tromey@redhat.com>
12786
12787 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
12788 LIBGNU.
12789
1bd2f0ba
TT
127902013-11-08 Tom Tromey <tromey@redhat.com>
12791
12792 * configure, config.in: Rebuild.
12793 * configure.ac: Remove unused configury.
12794
3266f10b
TT
127952013-11-08 Tom Tromey <tromey@redhat.com>
12796
12797 * acinclude.m4: Include common.m4, codeset.m4.
12798 * configure, config.in: Rebuild.
12799 * configure.ac: Use GDB_AC_COMMON.
12800
6682d959
AA
128012013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
12802
12803 * linux-s390-low.c (HWCAP_S390_TE): New define.
12804 (s390_arch_setup): Consider the TE field in the HWCAP for
12805 determining 'have_regset_tdb'.
12806
fd0a4d76
SDJ
128072013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
12808
12809 PR gdb/16014
12810 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
12811 call to sizeof.
12812
1a3d890b
PA
128132013-10-02 Pedro Alves <palves@redhat.com>
12814
12815 * server.c (process_serial_event): Don't output "GDBserver
12816 exiting" if GDB is connected through stdio.
12817 * target.c (mywait): Likewise, be silent if GDB is connected
12818 through stdio.
12819
97ad4581
JB
128202013-10-01 Joel Brobecker <brobecker@adacore.com>
12821
12822 * lynx-low.c (lynx_add_threads_after_attach): New function.
12823 (lynx_attach): Remove call to add_thread. Add call to
12824 lynx_add_threads_after_attach instead.
12825
5b4e221c
MF
128262013-09-28 Mike Frysinger <vapier@gentoo.org>
12827
12828 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
12829 * config.in, configure: Regenerated.
12830
ee47b2f8
YQ
128312013-09-18 Yao Qi <yao@codesourcery.com>
12832
12833 PR server/15959
12834 * server.c (start_inferior): Clear 'resume_info'.
12835
d6707650 128362013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 12837
d6707650
JW
12838 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
12839 for each register.
12840
9243dd0e 128412013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 12842
9243dd0e
JW
12843 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
12844 linux-tile-low.o to srv_tgtobj.
12845
c623a6ef
WN
128462013-09-16 Will Newton <will.newton@linaro.org>
12847
12848 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
12849 out regs.
12850
fb71d39e
PA
128512013-09-06 Pedro Alves <palves@redhat.com>
12852
12853 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
12854 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
12855 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
12856 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
12857 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
12858 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
12859
8e7e9910
PA
128602013-09-06 Pedro Alves <palves@redhat.com>
12861
12862 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
12863 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
12864
7c3a12ca
PA
128652013-09-06 Pedro Alves <palves@redhat.com>
12866
12867 * linux-amd64-ipa.c: Include tracepoint.h.
12868 * linux-i386-ipa.c: Include tracepoint.h.
12869
8eb3d7b6
RW
128702013-09-06 Ricard Wanderlof <ricardw@axis.com>
12871
12872 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
12873 (ps_get_thread_area): New function.
12874
eddddb9d
RW
128752013-09-06 Ricard Wanderlof <ricardw@axis.com>
12876
12877 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
12878 (initialize_low_arch): Call init_registers_crisv32 rather than
12879 init_register_crisv32.
12880
533b0600
PA
128812013-09-05 Pedro Alves <palves@redhat.com>
12882
12883 * server.h (handle_vFile, hostio_last_error_from_errno): Move
12884 to ...
12885 * hostio.h: ... this new file.
12886 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
12887 win32-low.c: Include hostio.h.
12888
0ce3d3b5
PA
128892013-09-05 Pedro Alves <palves@redhat.com>
12890
12891 * server.h (gdb_client_data, handler_func, callback_handler_func)
12892 (delete_file_handler, add_file_handler, append_callback_event)
12893 (delete_callback_event, start_event_loop, initialize_event_loop):
12894 Move to event-loop.h and include it.
12895 * event-loop.h: New file.
12896
799cdc37
PA
128972013-09-05 Pedro Alves <palves@redhat.com>
12898
12899 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
12900 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
12901 (loaded_dll, unloaded_dll): Move to ...
12902 * dll.h: ... this new file.
12903 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
12904
6a6bbd9d
PA
129052013-09-05 Pedro Alves <palves@redhat.com>
12906
12907 * server.h (current_process, get_thread_process, all_processes)
12908 (add_inferior_to_list, for_each_inferior, current_inferior)
12909 (remove_inferior, add_process, remove_process, find_process_pid)
12910 (have_started_inferiors_p, have_attached_inferiors_p)
12911 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
12912 (clear_inferiors, find_inferior, find_inferior_id)
12913 (inferior_target_data, set_inferior_target_data)
12914 (inferior_regcache_data, set_inferior_regcache_data): Move to
12915 inferiors.h, and include it.
12916 * inferiors.h: New file.
12917
f699aaba
PA
129182013-09-05 Pedro Alves <palves@redhat.com>
12919
12920 * server.h (struct emit_ops, current_insn_ptr, emit_error):
12921 Move ...
72f4393d 12922 * ax.h: ... here.
f699aaba 12923
c144c7a0
PA
129242013-09-05 Pedro Alves <palves@redhat.com>
12925
12926 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
12927 tracepoint.h.
12928 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
12929 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
12930 (handle_tracepoint_general_set, handle_tracepoint_query)
12931 (tracepoint_finished_step, tracepoint_was_hit)
12932 (release_while_stepping_state_list, current_traceframe)
12933 (in_readonly_region, traceframe_read_mem)
12934 (fetch_traceframe_registers, traceframe_read_sdata)
12935 (traceframe_read_info, struct fast_tpoint_collect_status)
12936 (fast_tracepoint_collecting, force_unlock_trace_buffer)
12937 (handle_tracepoit_bkpts, initialize_low_tracepoint)
12938 (supply_fast_tracepoint_registers)
12939 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
12940 (ipa_tdesc, claim_trampoline_space)
12941 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
12942 (agent_mem_read, agent_get_trace_state_variable_value)
12943 (agent_set_trace_state_variable_value, agent_tsv_read)
12944 (agent_mem_read_string, get_raw_reg_func_addr)
12945 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
12946 * tracepoint.h: ... this new file.
12947
ff42e6ab
PA
129482013-09-05 Pedro Alves <palves@redhat.com>
12949
12950 * server.h (perror_with_name, error, fatal, warning, paddress)
12951 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
12952 include it.
12953 * utils.h: New file.
12954
541af0f4
PA
129552013-09-05 Pedro Alves <palves@redhat.com>
12956
12957 * server.h (remote_debug, noack_mode, transport_is_reliable)
12958 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
12959 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
12960 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
12961 (write_enn, initialize_async_io, enable_async_io)
12962 (disable_async_io, check_remote_input_interrupt_request)
12963 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
12964 (dead_thread_notify, prepare_resume_reply)
12965 (decode_address_to_semicolon, decode_address, decode_m_packet)
12966 (decode_M_packet, decode_X_packet, decode_xfer_write)
12967 (decode_search_memory_packet, unhexify, hexify)
12968 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
12969 (look_up_one_symbol, relocate_instruction)
12970 (monitor_output): Move to remote-utils.h, and include it.
12971 * remote-utils.h: New file.
12972
eebdf26b
PA
129732013-09-05 Pedro Alves <palves@redhat.com>
12974
12975 * server.h (_): Delete.
12976
3aafd2ff
PA
129772013-09-02 Pedro Alves <palves@redhat.com>
12978
12979 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
12980 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
12981 allocated.
12982 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
12983
cee83bcb
PM
129842013-09-02 Pierre Muller <muller@sourceware.org>
12985
12986 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
12987 or WriteProcessMemory complete successfully and handle
12988 ERROR_PARTIAL_COPY error.
12989
9a13b2fa
PA
129902013-09-02 Pedro Alves <palves@redhat.com>
12991
12992 * server.c (gdb_read_memory): Return -1 on traceframe memory read
12993 error instead of EIO.
12994
602e3198
JK
129952013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12996
12997 PR server/15604
12998 * linux-low.c: Include filestuff.h.
12999 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13000 * lynx-low.c: Include filestuff.h.
13001 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13002 * server.c: Include filestuff.h.
13003 (main): Call notice_open_fds.
13004 * spu-low.c: Include filestuff.h.
13005 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13006
96d7229d
LM
130072013-08-22 Luis Machado <lgustavo@codesourcery.com>
13008
13009 * Makefile.in: Explain why ../target and ../nat are not
13010 listed as include file search paths.
13011 (linux-waitpid.o): New object file rule.
13012 * configure.srv (srv_native_linux_obj): New variable.
13013 Replace all occurrences of linux native object files with
13014 $srv_native_linux_obj.
13015 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13016 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13017 (linux_enable_event_reporting): Remove declaration.
13018 (my_waitpid): Moved to common/linux-waitpid.c.
13019 (linux_wait_for_event): Pass ptid when calling
13020 linux_enable_event_reporting.
13021 (linux_supports_tracefork_flag): Remove.
13022 (linux_enable_event_reporting): Likewise.
13023 (linux_tracefork_grandchild): Remove.
13024 (STACK_SIZE): Moved to common/linux-ptrace.c.
13025 (linux_tracefork_child): Remove.
13026 (linux_test_for_tracefork): Remove.
13027 (linux_look_up_symbols): Call linux_supports_traceclone.
13028 (initialize_low): Remove call to linux_test_for_tracefork.
13029 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13030 common/linux-ptrace.h.
13031 (PTRACE_TYPE_ARG4): Likewise.
13032 Include linux-ptrace.h.
13033
32940073
PA
130342013-08-21 Pedro Alves <palves@redhat.com>
13035
13036 * config.in: Renegerate.
13037
33b60d58 130382013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13039
33b60d58
LM
13040 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13041 (SFILES): Remove $(srcdir)/common/target-common.c and
13042 add $(srcdir)/target/waitstatus.c.
13043 (OBS): Remove target-common.o and add waitstatus.o.
13044 (server_h): Remove $(srcdir)/../common/target-common.h and
13045 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13046 and $(srcdir)/../target/waitstatus.h.
13047 (target-common.o): Remove.
13048 (waitstatus.o): New target object file.
13049 * target.h: Do not include target-common.h and
13050 include target/resume.h, target/wait.h and
13051 target/waitstatus.h.
13052
b8e1b30e
LM
130532013-08-13 Luis Machado <lgustavo@codesourcery.com>
13054
13055 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13056 to PTRACE_TYPE_ARG3.
13057 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13058 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13059 PTRACE_TYPE_ARG4.
13060 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13061 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13062
7a60ad40
YQ
130632013-07-27 Jie Zhang <jie@codesourcery.com>
13064 Daniel Jacobowitz <dan@codesourcery.com>
13065 Yao Qi <yao@codesourcery.com>
13066
13067 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13068 (mips-linux-watch.o): New rule.
13069 (mips_linux_watch_h): New variable.
13070 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13071 srv_tgtobj.
13072 * linux-mips-low.c: Include mips-linux-watch.h.
13073 (struct arch_process_info, struct arch_lwp_info): New.
13074 (update_watch_registers_callback): New function.
13075 (mips_linux_new_process, mips_linux_new_thread) New functions.
13076 (mips_linux_prepare_to_resume, mips_insert_point): New
13077 functions.
13078 (mips_remove_point, mips_stopped_by_watchpoint): New
13079 functions.
13080 (rsp_bp_type_to_target_hw_bp_type): New function.
13081 (mips_stopped_data_address): New function.
13082 (the_low_target): Add watchpoint support functions.
13083
de6f69ad
YQ
130842013-07-27 Yao Qi <yao@codesourcery.com>
13085
13086 * i386-low.c: Include break-common.h.
13087 (enum target_hw_bp_type): Remove.
13088
3360c0bf
LM
130892013-07-24 Luis Machado <lgustavo@codesourcery.com>
13090
13091 * Makefile.in (SFILES): /common/target-common.c.
13092 (OBS): Add target-common.o.
13093 (server_h): Add $(srcdir)/../common/target-common.h.
13094 (target-common.o): New target.
13095 * server.c (queue_stop_reply_callback): Free
13096 status string after use.
13097 * target.c (target_waitstatus_to_string): Remove.
13098 * target.h: Include target-common.h.
13099 (resume_kind): Likewise.
13100 (target_waitkind): Likewise.
13101 (target_waitstatus): Likewise.
13102 (TARGET_WNOHANG): Likewise.
13103
bd885420
YQ
131042013-07-04 Yao Qi <yao@codesourcery.com>
13105
13106 * Makefile.in (host_alias): Use @host_noncanonical@.
13107 (target_alias): Use @target_noncanonical@.
13108 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13109 ACX_NONCANONICAL_HOST.
13110 * configure: Regenerated.
13111
13112 Revert:
13113 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13114
13115 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13116 * configure: Rebuild.
13117 * Makefile.in (version_host, version_target): Get from configure.
13118 (version.c): Use $(version_host) and $(version_target).
13119
17ef446e
PA
131202013-07-03 Pedro Alves <palves@redhat.com>
13121
13122 * Makefile.in (config.status): Depend on development.sh.
13123 * acinclude.m4: Include libmcheck.m4.
13124 * configure: Regenerate.
13125
7a9a7487
MG
131262013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13127
13128 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13129 attribute inside the parentheses.
13130 (winapi_DebugSetProcessKillOnExit): Ditto.
13131 (winapi_DebugBreakProcess): Ditto.
13132 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13133
49b64de6
MG
131342013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13135
13136 * notif.h (notif_event): Add a dummy member to avoid compiler
13137 errors.
13138
d5749ee7
PA
131392013-07-01 Pedro Alves <palves@redhat.com>
13140
13141 * hostio.c (HOSTIO_PATH_MAX): Define.
13142 (require_filename, handle_open, handle_unlink, handle_readlink):
13143 Use it.
13144
d8d2a3ee
PA
131452013-07-01 Pedro Alves <palves@redhat.com>
13146
13147 * server.h: Include "pathmax.h".
13148 * linux-low.c: Don't include sys/param.h.
13149 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13150 MAXPATHLEN.
13151 * win32-low.c: Don't include sys/param.h.
13152 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13153
bc7dea8d
PA
131542013-07-01 Pedro Alves <palves@redhat.com>
13155
13156 * event-loop.c: Don't check HAVE_UNISTD_H before including
13157 <unistd.h>.
13158 * gdbreplay.c: Likewise.
13159 * remote-utils.c: Likewise.
13160 * server.c: Likewise.
13161 * configure.ac: Don't check for unistd.h.
13162 * configure: Regenerate.
13163
d6c2da54
TT
131642013-06-28 Tom Tromey <tromey@redhat.com>
13165
13166 * Makefile.in (version.c): Use version.in, not
13167 common/version.in.
13168
257b6bec
MG
131692013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13170
13171 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13172 * configure: Rebuild.
13173 * Makefile.in (version_host, version_target): Get from configure.
13174 (version.c): Use $(version_host) and $(version_target).
13175
86ebe149
DK
131762013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13177
13178 Fix trace-status to output user name without trailing colon.
13179 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13180
f30aa5af
DK
131812013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13182
13183 Fix trace-status to output proper start-time and stop-time.
13184 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13185 output start time and stop time in hex as gdb expects.
13186
28a93511
YQ
131872013-06-26 Pedro Alves <pedro@codesourcery.com>
13188
13189 * tracepoint.c (build_traceframe_info_xml): Output trace state
13190 variables present in the trace buffer.
13191
01208463
TT
131922013-06-24 Tom Tromey <tromey@redhat.com>
13193
13194 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13195 create-version.sh.
13196 (version.o): Remove.
13197 * gdbreplay.c: Include version.h.
13198 (version, host_name): Don't declare.
13199 * server.h: Include version.h.
13200 (version, host_name): Don't declare.
13201
760256f9
PA
132022013-06-12 Pedro Alves <palves@redhat.com>
13203
13204 * linux-x86-low.c (linux_is_elf64): Delete global.
13205 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13206 with local linux_pid_exe_is_elf_64_file use.
13207
030031ee
PA
132082013-06-11 Pedro Alves <palves@redhat.com>
13209
13210 * linux-low.c (regset_disabled, disable_regset): New functions.
13211 (regsets_fetch_inferior_registers)
13212 (regsets_store_inferior_registers): Use them.
13213 (initialize_regsets_info); Don't allocate the disabled_regsets
13214 array here.
13215 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13216 comment.
13217
5da6eb0a
PA
132182013-06-11 Pedro Alves <palves@redhat.com>
13219
13220 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13221 xmalloc.
13222
7e5aaa09
PA
132232013-06-11 Pedro Alves <palves@redhat.com>
13224
13225 * linux-x86-low.c (initialize_low_arch): Call
13226 init_registers_x32_avx_linux.
13227
d878444c
JK
132282013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13229
13230 Fix compatibility with Android Bionic.
13231 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13232 it is not empty.
13233
3aee8918
PA
132342013-06-07 Pedro Alves <palves@redhat.com>
13235
5f2b57b5 13236 PR server/14823
3aee8918
PA
13237 * Makefile.in (OBS): Add tdesc.o.
13238 (IPA_OBJS): Add tdesc-ipa.o.
13239 (tdesc-ipa.o): New rule.
13240 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13241 interface.
13242 * linux-low.c (new_inferior): Delete.
13243 (disabled_regsets, num_regsets): Delete.
13244 (linux_add_process): Adjust to set the new per-process
13245 new_inferior flag.
13246 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13247 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13248 was a stop. When calling arch_setup, switch the current inferior
13249 to the thread that got an event.
13250 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13251 (regsets_fetch_inferior_registers)
13252 (regsets_store_inferior_registers): New regsets_info parameter.
13253 Adjust to use it.
13254 (linux_register_in_regsets): New regs_info parameter. Adjust to
13255 use it.
13256 (register_addr, fetch_register, store_register): New usrregs_info
13257 parameter. Adjust to use it.
13258 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13259 parameter regs_info. Adjust to use it.
13260 (linux_fetch_registers): Get the current inferior's regs_info, and
13261 adjust to use it.
13262 (linux_store_registers): Ditto.
13263 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13264 (initialize_low): Don't initialize the target_regsets here. Call
13265 initialize_low_arch.
13266 * linux-low.h (target_regsets): Delete declaration.
13267 (struct regsets_info): New.
13268 (struct usrregs_info): New.
13269 (struct regs_info): New.
13270 (struct process_info_private) <new_inferior>: New field.
13271 (struct linux_target_ops): Delete the num_regs, regmap, and
13272 regset_bitmap fields. New field regs_info.
13273 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13274 * i387-fp.c (num_xmm_registers): Delete.
13275 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13276 calls to new interface.
13277 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13278 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13279 Infer the number of xmm registers from the regcache's target
13280 description.
13281 * i387-fp.h (num_xmm_registers): Delete.
13282 * inferiors.c (add_thread): Don't install the thread's regcache
13283 here.
13284 * proc-service.c (gregset_info): Fetch the current inferior's
13285 regs_info. Adjust to use it.
13286 * regcache.c: Include tdesc.h.
13287 (register_bytes, reg_defs, num_registers)
13288 (gdbserver_expedite_regs): Delete.
13289 (get_thread_regcache): If the thread doesn't have a regcache yet,
13290 create one, instead of aborting gdbserver.
13291 (regcache_invalidate_one): Rename to ...
13292 (regcache_invalidate_thread): ... this.
13293 (regcache_invalidate_one): New.
13294 (regcache_invalidate): Only invalidate registers of the current
13295 process.
13296 (init_register_cache): Add target_desc parameter, and use it.
13297 (new_register_cache): Ditto. Assert the target description has a
13298 non zero registers_size.
13299 (regcache_cpy): Add assertions. Adjust.
13300 (realloc_register_cache, set_register_cache): Delete.
13301 (registers_to_string, registers_from_string): Adjust.
13302 (find_register_by_name, find_regno, find_register_by_number)
13303 (register_cache_size): Add target_desc parameter, and use it.
13304 (free_register_cache_thread, free_register_cache_thread_one)
13305 (regcache_release, register_cache_size): New.
13306 (register_size): Add target_desc parameter, and use it.
13307 (register_data, supply_register, supply_register_zeroed)
13308 (supply_regblock, supply_register_by_name, collect_register)
13309 (collect_register_as_string, collect_register_by_name): Adjust.
13310 * regcache.h (struct target_desc): Forward declare.
13311 (struct regcache) <tdesc>: New field.
13312 (init_register_cache, new_register_cache): Add target_desc
13313 parameter.
13314 (regcache_invalidate_thread): Declare.
13315 (regcache_invalidate_one): Delete declaration.
13316 (regcache_release): Declare.
13317 (find_register_by_number, register_cache_size, register_size)
13318 (find_regno): Add target_desc parameter.
13319 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13320 declarations.
13321 * remote-utils.c: Include tdesc.h.
13322 (outreg, prepare_resume_reply): Adjust.
13323 * server.c: Include tdesc.h.
13324 (gdbserver_xmltarget): Delete declaration.
13325 (get_features_xml, process_serial_event): Adjust.
13326 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13327 declare.
13328 (struct process_info) <tdesc>: New field.
13329 (ipa_tdesc): Declare.
13330 * tdesc.c: New file.
13331 * tdesc.h: New file.
13332 * tracepoint.c: Include tdesc.h.
13333 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13334 (get_context_regcache): Adjust to pass ipa_tdesc down.
13335 (do_action_at_tracepoint): Adjust to get the register cache size
13336 from the context regcache's description.
13337 (traceframe_walk_blocks): Adjust to get the register cache size
13338 from the current trace frame's description.
13339 (traceframe_get_pc): Adjust to get current trace frame's
13340 description and pass it down.
13341 (gdb_collect): Adjust to get the register cache size from the
13342 IPA's description.
13343 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13344 (gdbserver_xmltarget): Delete.
13345 (initialize_low_tracepoint): Set the ipa's target description.
13346 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13347 (initialize_low_tracepoint): Set the ipa's target description.
13348 * linux-x86-low.c: Include tdesc.h.
13349 [__x86_64__] (is_64bit_tdesc): New.
13350 (ps_get_thread_area, x86_get_thread_area): Use it.
13351 (i386_cannot_store_register): Rename to ...
13352 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13353 (i386_cannot_fetch_register): Rename to ...
13354 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13355 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13356 to new interface.
13357 (target_regsets): Rename to ...
13358 (x86_regsets): ... this.
13359 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13360 interface.
13361 (x86_siginfo_fixup): Use is_64bit_tdesc.
13362 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13363 (tdesc_x32_avx_linux, tdesc_x32_linux)
13364 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13365 Declare.
13366 (x86_linux_update_xmltarget): Delete.
13367 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13368 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13369 (AMD64_LINUX_USER64_CS): New.
13370 (x86_linux_read_description): New, based on
13371 x86_linux_update_xmltarget.
13372 (same_process_callback): New.
13373 (x86_arch_setup_process_callback): New.
13374 (x86_linux_update_xmltarget): New.
13375 (x86_regsets_info): New.
13376 (amd64_linux_regs_info): New.
13377 (i386_linux_usrregs_info): New.
13378 (i386_linux_regs_info): New.
13379 (x86_linux_regs_info): New.
13380 (x86_arch_setup): Reimplement.
13381 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13382 (x86_emit_ops): Ditto.
13383 (the_low_target): Adjust. Install x86_linux_regs_info,
13384 x86_cannot_fetch_register, and x86_cannot_store_register.
13385 (initialize_low_arch): New.
13386 * linux-ia64-low.c (tdesc_ia64): Declare.
13387 (ia64_fetch_register): Adjust.
13388 (ia64_usrregs_info, regs_info): New globals.
13389 (ia64_regs_info): New function.
13390 (the_low_target): Adjust.
13391 (initialize_low_arch): New function.
13392 * linux-sparc-low.c (tdesc_sparc64): Declare.
13393 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13394 Adjust.
13395 (sparc_arch_setup): New function.
13396 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13397 (the_low_target): Adjust.
13398 (initialize_low_arch): New function.
13399 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13400 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13401 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13402 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13403 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13404 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13405 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13406 (tdesc_powerpc_isa205_vsx64l): Declare.
13407 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13408 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13409 (ppc_set_pc, ppc_get_hwcap): Adjust.
13410 (ppc_usrregs_info): Forward declare.
13411 (!__powerpc64__) ppc_regmap_adjusted: New global.
13412 (ppc_arch_setup): Adjust to the current process'es target
13413 description.
13414 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13415 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13416 (ppc_store_evrregset): Adjust.
13417 (target_regsets): Rename to ...
13418 (ppc_regsets): ... this, and make static.
13419 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13420 (ppc_regs_info): New function.
13421 (the_low_target): Adjust.
13422 (initialize_low_arch): New function.
13423 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13424 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13425 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13426 (tdesc_s390x_linux64v2): Declare.
13427 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13428 (s390_fill_gregset, s390_store_last_break): Adjust.
13429 (target_regsets): Rename to ...
13430 (s390_regsets): ... this, and make static.
13431 (s390_get_pc, s390_set_pc): Adjust.
13432 (s390_get_hwcap): New target_desc parameter, and use it.
13433 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13434 (s390_arch_setup): Adjust to set the current process'es target
13435 description. Don't adjust the regmap.
13436 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13437 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13438 (regs_info_3264): New globals.
13439 (s390_regs_info): New function.
13440 (the_low_target): Adjust.
13441 (initialize_low_arch): New function.
13442 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13443 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13444 [__mips64] (init_registers_mips_linux)
13445 (init_registers_mips_dsp_linux): Delete defines.
13446 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13447 (have_dsp): New global.
13448 (mips_read_description): New, based on mips_arch_setup.
13449 (mips_arch_setup): Reimplement.
13450 (get_usrregs_info): New function.
13451 (mips_cannot_fetch_register, mips_cannot_store_register)
13452 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13453 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13454 (target_regsets): Rename to ...
13455 (mips_regsets): ... this, and make static.
13456 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13457 (dsp_regs_info, regs_info): New globals.
13458 (mips_regs_info): New function.
13459 (the_low_target): Adjust.
13460 (initialize_low_arch): New function.
13461 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13462 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13463 Declare.
13464 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13465 (arm_read_description): New, with bits factored from
13466 arm_arch_setup.
13467 (arm_arch_setup): Reimplement.
13468 (target_regsets): Rename to ...
13469 (arm_regsets): ... this, and make static.
13470 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13471 (arm_regs_info): New function.
13472 (the_low_target): Adjust.
13473 (initialize_low_arch): New function.
13474 * linux-m68k-low.c (tdesc_m68k): Declare.
13475 (target_regsets): Rename to ...
13476 (m68k_regsets): ... this, and make static.
13477 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13478 (m68k_regs_info): New function.
13479 (m68k_arch_setup): New function.
13480 (the_low_target): Adjust.
13481 (initialize_low_arch): New function.
13482 * linux-sh-low.c (tdesc_sharch): Declare.
13483 (target_regsets): Rename to ...
13484 (sh_regsets): ... this, and make static.
13485 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13486 (sh_regs_info, sh_arch_setup): New functions.
13487 (the_low_target): Adjust.
13488 (initialize_low_arch): New function.
13489 * linux-bfin-low.c (tdesc_bfin): Declare.
13490 (bfin_arch_setup): New function.
13491 (bfin_usrregs_info, regs_info): New globals.
13492 (bfin_regs_info): New function.
13493 (the_low_target): Adjust.
13494 (initialize_low_arch): New function.
13495 * linux-cris-low.c (tdesc_cris): Declare.
13496 (cris_arch_setup): New function.
13497 (cris_usrregs_info, regs_info): New globals.
13498 (cris_regs_info): New function.
13499 (the_low_target): Adjust.
13500 (initialize_low_arch): New function.
13501 * linux-cris-low.c (tdesc_crisv32): Declare.
13502 (cris_arch_setup): New function.
13503 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
13504 (cris_regs_info): New function.
13505 (the_low_target): Adjust.
13506 (initialize_low_arch): New function.
13507 * linux-m32r-low.c (tdesc_m32r): Declare.
13508 (m32r_arch_setup): New function.
13509 (m32r_usrregs_info, regs_info): New globals.
13510 (m32r_regs_info): Adjust.
13511 (initialize_low_arch): New function.
13512 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
13513 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
13514 (tic6x_usrregs_info): Forward declare.
13515 (tic6x_read_description): New function, based on ...
13516 (tic6x_arch_setup): ... this. Reimplement.
13517 (target_regsets): Rename to ...
13518 (tic6x_regsets): ... this, and make static.
13519 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
13520 (tic6x_regs_info): New function.
13521 (the_low_target): Adjust.
13522 (initialize_low_arch): New function.
13523 * linux-xtensa-low.c (tdesc_xtensa): Declare.
13524 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
13525 (target_regsets): Rename to ...
13526 (xtensa_regsets): ... this, and make static.
13527 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
13528 globals.
13529 (xtensa_arch_setup, xtensa_regs_info): New functions.
13530 (the_low_target): Adjust.
13531 (initialize_low_arch): New function.
13532 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
13533 (nios2_arch_setup): Set the current process'es tdesc.
13534 (target_regsets): Rename to ...
13535 (nios2_regsets): ... this.
13536 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
13537 (nios2_regs_info): New function.
13538 (the_low_target): Adjust.
13539 (initialize_low_arch): New function.
a261b8f5
PA
13540 * linux-aarch64-low.c (tdesc_aarch64): Declare.
13541 (aarch64_arch_setup): Set the current process'es tdesc.
13542 (target_regsets): Rename to ...
13543 (aarch64_regsets): ... this.
13544 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
13545 (aarch64_regs_info): New function.
13546 (the_low_target): Adjust.
13547 (initialize_low_arch): New function.
3aee8918
PA
13548 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
13549 globals.
13550 (target_regsets): Rename to ...
13551 (tile_regsets): ... this.
13552 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
13553 (tile_regs_info): New function.
13554 (tile_arch_setup): Set the current process'es tdesc.
13555 (the_low_target): Adjust.
13556 (initialize_low_arch): New function.
13557 * spu-low.c (tdesc_spu): Declare.
13558 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
13559 * win32-arm-low.c (tdesc_arm): Declare.
13560 (arm_arch_setup): New function.
13561 (the_low_target): Install arm_arch_setup instead of
13562 init_registers_arm.
13563 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
13564 (init_windows_x86): Rename to ...
13565 (i386_arch_setup): ... this. Set `win32_tdesc'.
13566 (the_low_target): Adjust.
13567 * win32-low.c (win32_tdesc): New global.
13568 (child_add_thread): Don't create the thread cache here.
13569 (do_initial_child_stuff): Set the new process'es tdesc.
13570 * win32-low.h (struct target_desc): Forward declare.
13571 (win32_tdesc): Declare.
13572 * lynx-i386-low.c (tdesc_i386): Declare global.
13573 (lynx_i386_arch_setup): Set `lynx_tdesc'.
13574 * lynx-low.c (lynx_tdesc): New global.
13575 (lynx_add_process): Set the new process'es tdesc.
13576 * lynx-low.h (struct target_desc): Forward declare.
13577 (lynx_tdesc): Declare global.
13578 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
13579 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
13580 * nto-low.c (nto_tdesc): New global.
13581 (do_attach): Set the new process'es tdesc.
13582 * nto-low.h (struct target_desc): Forward declare.
13583 (nto_tdesc): Declare.
13584 * nto-x86-low.c (tdesc_i386): Declare.
13585 (nto_x86_arch_setup): Set `nto_tdesc'.
13586
b1fbec62
GB
135872013-06-04 Gary Benson <gbenson@redhat.com>
13588
13589 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
13590 to qSupported response when appropriate.
13591 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
13592 with nonzero-length annex.
13593 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
13594 arguments supplied in annex.
13595
d1ec4ce7
DE
135962013-05-31 Doug Evans <dje@google.com>
13597
ac44adcb 13598 PR server/15594
d1ec4ce7
DE
13599 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
13600 64 bits in 64-cross-32 environment.
13601
9b25f2d3
PA
136022013-05-28 Pedro Alves <palves@redhat.com>
13603
13604 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
13605 (aarch64-without-fpu.c): Delete rule.
13606 * configure.srv (aarch64*-*-linux*): Remove references to
13607 aarch64-without-fpu.o and aarch64-without-fpu.xml.
13608 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
13609 declaration.
13610
6740dc9c
PA
136112013-05-24 Pedro Alves <palves@redhat.com>
13612
13613 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
13614 instead of strchr/decode_address. Error if the range isn't split
13615 with a ','. Don't assume there's be a ':' in the action.
13616
c2d6af84
PA
136172013-05-23 Yao Qi <yao@codesourcery.com>
13618 Pedro Alves <palves@redhat.com>
13619
13620 * linux-low.c (lwp_in_step_range): New function.
13621 (linux_wait_1): If the thread was range stepping and stopped
13622 outside the stepping range, report the stop to GDB. Otherwise,
13623 continue stepping. Add range stepping debug output.
13624 (linux_set_resume_request): Copy the step range from the resume
13625 request to the lwp.
13626 (linux_supports_range_stepping): New.
13627 (linux_target_ops) <supports_range_stepping>: Set to
13628 linux_supports_range_stepping.
13629 * linux-low.h (struct linux_target_ops)
13630 <supports_range_stepping>: New field.
13631 (struct lwp_info) <step_range_start, step_range_end>: New fields.
13632 * linux-x86-low.c (x86_supports_range_stepping): New.
13633 (the_low_target) <supports_range_stepping>: Set to
13634 x86_supports_range_stepping.
13635 * server.c (handle_v_cont): Handle 'r' action.
13636 (handle_v_requests): Append ";r" if the target supports range
13637 stepping.
13638 * target.h (struct thread_resume) <step_range_start,
13639 step_range_end>: New fields.
13640 (struct target_ops) <supports_range_stepping>:
13641 New field.
13642 (target_supports_range_stepping): New macro.
13643
58794e1a
JB
136442013-05-17 Joel Brobecker <brobecker@adacore.com>
13645
13646 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
13647 confusion in comment.
13648
d631c5a7
JB
136492013-05-17 Joel Brobecker <brobecker@adacore.com>
13650
13651 * lynx-low.c (struct process_info_private): New type.
13652 (lynx_add_process): New function.
13653 (lynx_create_inferior, lynx_attach): Replace calls to
13654 add_process by calls to lynx_add_process.
13655 (lynx_resume): If PTID is null, then try using
13656 current_process()->private->last_wait_event_ptid.
13657 Add comments.
13658 (lynx_clear_inferiors): Delete. The contents of that function
13659 has been inlined in lynx_mourn;
13660 (lynx_wait_1): Save the ptid in the process's private data.
13661 (lynx_mourn): Free the process' private data. Replace call
13662 to lynx_clear_inferiors by call to clear_inferiors.
13663
96f7a20f
YQ
136642013-05-17 Yao Qi <yao@codesourcery.com>
13665
13666 * i386-low.c (i386_length_and_rw_bits): Move the comment to
13667 the right place.
13668
db0dfaa0
LM
136692013-05-16 Luis Machado <lgustavo@codesourcery.com>
13670
13671 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
13672 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
13673 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
13674 PT_TEXT_END_ADDR guards. Update comments.
13675 (linux_target_op) <read_offsets>: Conditionally define to
13676 linux_read_offsets if the target is UCLIBC and if it defines
13677 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
13678
68f5f838
SL
136792013-05-06 Sandra Loosemore <sandra@codesourcery.com>
13680 Andrew Jenner <andrew@codesourcery.com>
13681
13682 * Makefile.in (SFILES): Add linux-nios2-low.c.
13683 (clean): Add action to delete nios2-linux.c.
13684 (nios2-linux.c): New rule.
13685 * configure.srv: Add nios2*-*-linux*.
13686 * linux-nios2-low.c: New.
13687
1ebff1fd
HAQ
136882013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
13689
13690 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
13691
f6150862
HZ
136922013-04-25 Hui Zhu <hui@codesourcery.com>
13693
13694 PR gdb/15186
f6150862
HZ
13695 * ax.c (ax_printf): Add fflush.
13696
614c279d
TT
136972013-04-22 Tom Tromey <tromey@redhat.com>
13698
13699 * Makefile.in (SFILES): Add filestuff.c.
13700 (OBS): Add filestuff.o.
13701 (filestuff.o): New target.
13702 * config.in, configure: Rebuild.
13703 * configure.ac: Check for fdwalk, pipe2.
13704
7d4e5717
PA
137052013-04-17 Pedro Alves <palves@redhat.com>
13706
13707 * configure.ac (USE_THREAD_DB): Delete variable.
13708 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
13709 Don't AC_SUBST USE_THREAD_DB.
13710 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
13711 * config.in, configure: Regenerate.
13712
d5c93e41
PA
137132013-04-16 Pedro Alves <palves@redhat.com>
13714
13715 * linux-low.h (struct lwp_info) <thread_known>: Move under
13716 the USE_THREAD_DB #ifdef.
13717
04f5fe89
PA
137182013-04-16 Pedro Alves <palves@redhat.com>
13719
13720 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
13721 (linux-low.o): Delete rule.
13722 * linux-low.h: Always include "gdb_thread_db.h" instead of
13723 conditionally including thread_db.h.
13724 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
13725 HAVE_THREAD_DB_H.
13726
480b27bf
JK
137272013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13728
13729 * Makefile.in (install-only): Fix make install regression.
13730
43662968
JK
137312013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
13732
13733 Convert man pages to texinfo, new gdbinit.5 texinfo page.
13734 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
13735 installation.
13736 * gdbserver.1: Remove.
13737
3e74e146
PA
137382013-03-22 Pedro Alves <palves@redhat.com>
13739
13740 * linux-low.c (handle_extended_wait): Don't call
13741 linux_enable_event_reporting.
13742
a8347a2a
TT
137432013-03-15 Tony Theodore <tonyt@logyst.com>
13744
13745 PR build/9098:
13746 * Makefile.in (SHELL): Use @SHELL@.
13747
eeb56fa7
SDJ
137482013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
13749
13750 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
13751 compiler warning.
13752
4fa7e2ff
JB
137532013-03-13 Joel Brobecker <brobecker@adacore.com>
13754
13755 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
13756 Remove extraneous NULL element.
13757
8ddb1965
YQ
137582013-03-13 Yao Qi <yao@codesourcery.com>
13759
13760 * tracepoint.c (traceframe_read_tsv): Look for the last matched
13761 'V' block in trace frame.
13762
9accd112
MM
137632013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13764
13765 * target.h (struct target_ops): Add btrace ops.
13766 (target_supports_btrace): New macro.
13767 (target_enable_btrace): New macro.
13768 (target_disable_btrace): New macro.
13769 (target_read_btrace): New macro.
13770 * gdbthread.h (struct thread_info): Add btrace field.
13771 * server.c: Include btrace-common.h.
13772 (handle_btrace_general_set): New function.
13773 (handle_btrace_enable): New function.
13774 (handle_btrace_disable): New function.
13775 (handle_general_set): Call handle_btrace_general_set.
13776 (handle_qxfer_btrace): New function.
13777 (struct qxfer qxfer_packets[]): Add btrace entry.
13778 * inferiors.c (remove_thread): Disable btrace.
13779 * linux-low: Include linux-btrace.h.
13780 (linux_low_enable_btrace): New function.
13781 (linux_low_read_btrace): New function.
13782 (linux_target_ops): Add btrace ops.
13783 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
13784 Add srv_linux_btrace=yes.
13785 (x86_64-*-linux*): Add linux-btrace.o.
13786 Add srv_linux_btrace=yes.
13787 * configure.ac: Define HAVE_LINUX_BTRACE.
13788 * config.in: Regenerated.
13789 * configure: Regenerated.
13790
5cc22e4c
MM
137912013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13792
13793 * server.c (handle_qxfer): Preserve error message if -3 is
13794 returned.
13795 (qxfer): Document the -3 return value.
13796
7c97f91e
MM
137972013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13798
13799 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
13800 (linux_btrace_h): New variable.
13801 (linux-btrace.o): New rule.
13802
be9a119c 138032013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
13804 Hafiz Abid Qadeer <abidh@codesourcery.com>
13805
13806 * tracepoint.c (trace_buffer_size): New global.
13807 (DEFAULT_TRACE_BUFFER_SIZE): New define.
13808 (init_trace_buffer): Change to one-argument function. Allocate
13809 trace buffer memory.
13810 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
13811 handle QTBuffer:size packet.
13812 (cmd_bigqtbuffer_size): New function.
13813 (initialize_tracepoint): Call init_trace_buffer with
13814 DEFAULT_TRACE_BUFFER_SIZE.
13815 * server.c (handle_query): Add QTBuffer:size in the
13816 supported packets.
13817
e64f7499
YQ
138182013-03-07 Yao Qi <yao@codesourcery.com>
13819
13820 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
13821 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
13822 of -1.
13823 (cmd_qtsp): Adjust condition. Do post increment.
13824 Set cur_action and cur_step_action back to 0.
13825
f0ae6fc3
PA
138262013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
13827
13828 PR server/15236
13829 * linux-low.c (linux_write_memory): Return early success if LEN is
13830 zero.
13831
b5b0b0af
CV
138322013-03-05 Corinna Vinschen <vinschen@redhat.de>
13833
334ad4a8 13834 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 13835
589bc927
TT
138362013-02-28 Tom Tromey <tromey@redhat.com>
13837
13838 * configure.ac: Invoke AC_SYS_LARGEFILE.
13839 * configure, config.in: Rebuild.
13840
dfe07582
CV
138412013-02-28 Corinna Vinschen <vinschen@redhat.com>
13842
13843 * win32-low.c: Throughout, fix format strings and casts of
13844 printf-like functions to avoid type related warnings on all
13845 platforms.
13846 (get_child_debug_event): Print dwDebugEventCode as hex since
13847 that's how it's usually documented.
13848
736cd585
YQ
138492013-02-28 Yao Qi <yao@codesourcery.com>
13850
13851 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
13852 pulongest.
13853
e1f58301
JW
138542013-02-27 Jiong Wang <jiwang@tilera.com>
13855
13856 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
13857 (reg-tilegx32.c): New rule.
13858 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
13859 * linux-tile-low.c (tile_arch_setup): New function. Invoke
13860 different register info initializer according to elf class.
13861 (init_registers_tilgx32): New function. The tilegx32 register info
13862 initializer.
13863 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
13864 (tile_store_gregset): Likewise.
13865
d171ca78
YQ
138662013-02-27 Yao Qi <yao@codesourcery.com>
13867
13868 * server.c (process_point_options): Print debug message when
13869 debug_threads is true.
13870
282bbdf3
YQ
138712013-02-26 Yao Qi <yao@codesourcery.com>
13872
13873 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
13874
aca22551
PA
138752013-02-19 Pedro Alves <palves@redhat.com>
13876 Kai Tietz <ktietz@redhat.com>
13877
13878 PR gdb/15161
13879
13880 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
13881 instead of strtoul to extract address from packet.
13882 (process_serial_event) <'z'>: Likewise.
13883
4f3cee1c
YQ
138842013-02-18 Yao Qi <yao@codesourcery.com>
13885
13886 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
13887
8e1d55a3
PA
138882013-02-14 Pedro Alves <palves@redhat.com>
13889
13890 Plug memory leak.
13891
13892 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
13893 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
13894
458820da
PA
138952013-02-14 Pedro Alves <palves@redhat.com>
13896
13897 * tracepoint.c (cmd_qtdpsrc): Use savestring.
13898
baea0dae
PA
138992013-02-14 Pedro Alves <palves@redhat.com>
13900
13901 * tracepoint.c (save_string): Delete.
13902 (add_tracepoint_action): Use savestring instead of save_string.
13903
0b1afbb3
PA
139042013-02-12 Pedro Alves <palves@redhat.com>
13905
13906 * linux-xtensa-low.c: Ditto.
13907 * xtensa-xtregs.c: Ditto.
13908
8a4ac37e
PA
139092013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13910
13911 * thread-db.c (thread_db_get_tls_address): NULL pointer check
13912 thread_db.
13913
148de6bb
MS
139142013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
13915
13916 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
13917 aarch64_num_wp_regs and aarch64_num_bp_regs to
13918 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
13919
55fac6e0
MS
139202013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
13921
13922 * linux-aarch64-low.c (ps_get_thread_area): Replace
13923 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
13924
176eb98c
MS
139252013-02-04 Jim MacArthur <jim.macarthur@arm.com>
13926 Marcus Shawcroft <marcus.shawcroft@arm.com>
13927 Nigel Stephens <nigel.stephens@arm.com>
13928 Yufeng Zhang <yufeng.zhang@arm.com>
13929
13930 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
13931 (aarch64.c, aarch64-without-fpu.c): New targets.
13932 * configure.srv (aarch64*-*-linux*): New.
13933 * linux-aarch64-low.c: New file.
13934
56f7af9c
MS
139352013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
13936
43aaf8b6 13937 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
13938 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
13939 (dequeue_one_deferred_signal, linux_resume_one_thread)
13940 (fetch_register, linux_write_memory, linux_enable_event_reporting)
13941 (linux_tracefork_grandchild, linux_test_for_tracefork)
13942 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
13943 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
13944 where the argument is 0.
13945
60f662b0
YQ
139462013-01-25 Yao Qi <yao@codesourcery.com>
13947
13948 * event-loop.c: Include "queue.h".
13949 (gdb_event_p): New typedef.
13950 (struct gdb_event) <next_event>: Remove.
13951 (event_queue): Change to QUEUE(gdb_event_p).
13952 (async_queue_event): Remove.
13953 (gdb_event_xfree): New.
13954 (initialize_event_loop): New.
13955 (process_event): Use API from QUEUE.
13956 (wait_for_event): Likewise.
13957 * server.c (main): Call initialize_event_loop.
13958 * server.h (initialize_event_loop): Declare.
13959
5ae4861a
YQ
139602013-01-18 Yao Qi <yao@codesourcery.com>
13961
13962 * ax.h (struct eval_agent_expr_context): New.
13963 (gdb_eval_agent_expr): Update declaration.
13964 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
13965 TFRAME. Add new argument CTX.
13966 * server.h (struct eval_agent_expr_context): Declare.
13967 (agent_mem_read, agent_tsv_read): Update declaration.
13968 (agent_mem_read_string): Likewise.
13969 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
13970 (add_traceframe_block): Add new argument TPOINT.
13971 Increase TPOINT->traceframe_usage.
13972 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
13973 eval_tracepoint_agent_expr.
13974 (condition_true_at_tracepoint): Likewise.
13975 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
13976 (agent_mem_read_string, agent_tsv_read): Likewise.
13977
85e00e85
YQ
139782013-01-16 Yao Qi <yao@codesourcery.com>
13979
13980 * linux-low.c (linux_resume_one_lwp): Don't check
13981 'lwp->bp_reinsert != 0'.
13982
4039cf45
JB
139832013-01-07 Joel Brobecker <brobecker@adacore.com>
13984 Pedro Alves <palves@redhat.com>
13985
13986 * lynx-low.c (ptrace_request_to_str): Define a temporary
13987 macro and use it to simplify this function's implementation.
13988
9044dee2
JB
139892013-01-07 Joel Brobecker <brobecker@adacore.com>
13990
13991 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
13992 sets errno.
13993
e6352c8f
JB
139942013-01-07 Joel Brobecker <brobecker@adacore.com>
13995
13996 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
13997
50681a27
JB
139982013-01-07 Joel Brobecker <brobecker@adacore.com>
13999
14000 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14001
3f6e77ef
JB
140022013-01-07 Joel Brobecker <brobecker@adacore.com>
14003
14004 * lynx-low.c (lynx_resume): Use the resume_info parameter
14005 to determine the ptid for the lynx_ptrace call, unless
14006 it is equal to minus_one_ptid, in which case we use the
14007 ptid of the current_inferior.
14008 (lynx_wait_1): After having received a thread create/exit
14009 event, resume the inferior's execution using the signaling
14010 thread's ptid, rather than the old ptid.
14011
7fda33ae
JB
140122013-01-07 Joel Brobecker <brobecker@adacore.com>
14013
14014 * lynx-low.c (lynx_resume): Delete variable ret.
14015
b9786c74
JB
140162013-01-01 Joel Brobecker <brobecker@adacore.com>
14017
14018 * gdbreplay.c (gdbreplay_version): Update copyright year.
14019 * server.c (gdbserver_version): Likewise.
14020
8b93d60f
JB
140212012-12-17 Joel Brobecker <brobecker@adacore.com>
14022
14023 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14024 new thread.
14025
037335a7
JB
140262012-12-17 Joel Brobecker <brobecker@adacore.com>
14027
14028 * lynx-low.c (ptrace_request_to_str): Add handling for
14029 PTRACE_GETTRACESIG.
14030
52d4cbd8
JB
140312012-12-17 Joel Brobecker <brobecker@adacore.com>
14032
14033 * lynx-low.c (lynx_attach): Delete variable new_process.
14034
ab8f6ca9
JB
140352012-12-17 Joel Brobecker <brobecker@adacore.com>
14036
14037 * lynx-low.c (lynx_create_inferior): Delete variable
14038 new_process.
14039
78cbc024
JB
140402012-12-17 Joel Brobecker <brobecker@adacore.com>
14041
14042 * lynx-low.c (ptrace_request_to_str): Do not handle
14043 PTRACE_GETTHREADLIST if this macro does not exist.
14044
14a00470
YQ
140452012-12-15 Yao Qi <yao@codesourcery.com>
14046
14047 * Makefile.in (OBS): Add notif.o.
14048 * notif.c, notif.h: New.
14049 * server.c: Include "notif.h".
14050 (struct vstop_notif) <next>: Remove.
14051 <base>: New field.
14052 (queue_stop_reply): Update.
14053 (push_event, send_next_stop_reply): Remove.
14054 (discard_queued_stop_replies): Update.
14055 (notif_stop): New variable.
14056 (handle_v_stopped): Remove.
14057 (handle_v_requests): Don't call handle_v_stopped. Call
14058 handle_ack_notif instead.
14059 (queue_stop_reply_callback): Call notif_event_enque instead
14060 of queue_stop_reply.
14061 (handle_status): Don't call send_next_stop_reply, call
14062 notif_write_event instead.
14063 (kill_inferior_callback): Likewise.
14064 (detach_or_kill_inferior_callback): Likewise.
14065 (main): Call initialize_notif.
14066 (process_serial_event): Call QUEUE_is_empty.
14067 (handle_target_event): Call notif_push instead of push event.
14068 * server.h (push_event): Remove declaration.
14069
61c125b9
TT
140702012-12-10 Tom Tromey <tromey@redhat.com>
14071
14072 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14073 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14074 macros.
14075 (.c.o): Rewrite.
14076 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14077 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14078 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14079 (amd64-linux-ipa.o, ax.o): Rewrite.
14080 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14081 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14082 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14083 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14084 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14085 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14086 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14087 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14088 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14089 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14090 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14091 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14092 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14093 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14094 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14095 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14096 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14097 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14098 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14099 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14100 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14101 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14102 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14103 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14104 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14105 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14106 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14107 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14108 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14109 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14110 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14111 (reg-tilegx.o): Remove.
14112 (all_object_files): New macro.
14113 Include .deps files.
14114 * aclocal.m4, configure: Rebuild.
14115 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14116 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14117 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14118
e90e9ad9
TT
141192012-12-05 Tom Tromey <tromey@redhat.com>
14120
14121 PR gdb/14917:
14122 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14123
02d403bf 141242012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14125
14126 * configure.ac: Check for linux/perf_event.h.
14127 * config.in: Regenerated.
14128 * configure: Regenerated.
14129
0270a750
PA
141302012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14131
14132 * hostio.c (handle_readlink): Decrease buffer size
14133 parameter passed to readlink by one byte.
14134
8c29b58e
YQ
141352012-11-26 Yao Qi <yao@codesourcery.com>
14136
14137 * configure.ac (build_warnings): Append '-Wempty-body'.
14138 * configure: Regenerated.
14139 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14140 body.
14141
8bdce1ff
PM
141422012-11-15 Pierre Muller <muller@sourceware.org>
14143
14144 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14145 * config.in: Regenerate.
14146 * configure: Regenerate.
14147 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14148 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14149 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14150 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14151 header.
14152 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14153 instead of <sys/wait.h> header.
14154 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14155
02d403bf 141562012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14157
14158 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14159 (various make rules): Remove -DGDBSERVER
14160
fbd5db48
YQ
141612012-11-09 Yao Qi <yao@codesourcery.com>
14162
14163 * spu-low.c (current_ptid): Move it to ..
14164 * gdbthread.h: ... here. New.
14165 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14166 * server.c (myresume, process_serial_event): Likewise.
14167 * thread-db.c (thread_db_find_new_threads): Likewise.
14168 * tracepoint.c (run_inferior_command): Likewise.
14169
b3dc46ff
AB
141702012-10-01 Andrew Burgess <aburgess@broadcom.com>
14171
14172 * server.c (handle_search_memory_1): Include access length in
14173 warning message.
14174
07c04788
HPN
141752012-09-05 Michael Brandt <michael.brandt@axis.com>
14176
14177 * linux-crisv32-low.c: Fix compile errors.
14178
918d227b
YQ
141792012-09-04 Yao Qi <yao@codesourcery.com>
14180
14181 * tracepoint.c (cmd_qtsv): Adjust debug message.
14182 Don't check CUR_TPOINT.
14183
18c1b81a
YQ
141842012-08-28 Yao Qi <yao@codesourcery.com>
14185
14186 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14187 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14188 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14189 Remove declarations of xmalloc, xreallloc, xstrdup and
14190 freeargv.
14191 * Makefile.in (libiberty_h): New.
14192 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14193 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14194
dc82f37b
YQ
141952012-08-23 Yao Qi <yao@codesourcery.com>
14196
14197 * server.h: Remove declaration of 'xsnprintf'.
14198
406b1477
KS
141992012-08-22 Keith Seitz <keiths@redhat.com>
14200
14201 * server.h: Include build-gnulib-gbserver/config.h.
14202 * gdbreplay.c: Likewise.
14203
e6712ff1
DE
142042012-08-08 Doug Evans <dje@google.com>
14205
14206 * Makefile.in (SFILES): Add gdb_vecs.c.
14207 (OBS): Add gdb_vecs.o.
14208 (gdb_vecs_h, host_defs_h): New variables.
14209 (thread-db.o): Add $(gdb_vecs_h) dependency.
14210 (gdb_vecs.o): New rule.
14211 * thread-db.c: #include "gdb_vecs.h".
14212 (thread_db_load_search): Use a vector to iterate over path elements.
14213 Handle text appearing after "$pdir".
14214
14215 * configure.ac: Add check for strstr.
14216 * config.in: Regenerate.
14217 * configure: Regenerate.
14218
7c3270ae
UW
142192012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14220
14221 * hostio.c (handle_pread): If pread fails, fall back to attempting
14222 lseek/read.
14223 (handle_pwrite): Likewise for pwrite.
14224
b62e2b27
UW
142252012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14226
14227 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14228 between unsupported TYPE and unimplementable ADDR/LEN combination.
14229 (arm_insert_point): Act on new return value.
14230
78a99e91
PA
142312012-07-31 Pedro Alves <palves@redhat.com>
14232
14233 * server.c (process_point_options): Only skip tokens if we find
14234 one that is unrecognized. Don't treat 'X' specially while
14235 skipping unrecognized tokens.
14236
fcf303ab
UW
142372012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14238
14239 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14240 to 4-byte-align HW breakpoint addresses for Thumb.
14241
7255706c
YQ
142422012-07-27 Yao Qi <yao@codesourcery.com>
14243
14244 PR remote/14161.
14245
14246 * server.h: Declare gdb_agent_about_to_close.
14247 * target.c (kill_inferior): Include "agent.h".
14248 New. Send command 'kill'.
14249 * target.h (kill_inferior): Removed macro.
14250 * tracepoint.c (gdb_agent_about_to_close): New.
14251 (gdb_agent_helper_thread): Handle command 'close'.
14252 Wait endlessly until the inferior stops.
14253 Install gdb_agent_remove_socket to atexit hook.
14254 (agent_socket_name): New static variable.
14255 (gdb_agent_socket_init): Replace local variable 'name' with
14256 'agent_socket_name'.
14257 (gdb_agent_remove_socket): New.
14258
5a3f286f
YQ
142592012-07-27 Yao Qi <yao@codesourcery.com>
14260
14261 * server.c (process_point_options): Stop at 'X' when parsing.
14262
961bd387
ME
142632012-07-19 Michael Eager <eager@eagercon.com>
14264
a261b8f5 14265 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
14266 to hw_execute.
14267 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14268 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14269 hardware breakpoint.
14270
aa7c7447
JK
142712012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14272
14273 * gdbserver/linux-low.c (initialize_low): Call
14274 linux_ptrace_init_warnings.
14275
7f216e7c
DE
142762012-07-02 Doug Evans <dje@google.com>
14277
14278 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14279 pointer to int.
14280
d3ce09f5
SS
142812012-07-02 Stan Shebs <stan@codesourcery.com>
14282
14283 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14284 (ax.o): Add it to build rule.
14285 (ax-ipa.o): Ditto.
14286 (OBS): Add format.o.
14287 (IPA_OBS): Add format.o.
14288 * server.c (handle_query): Claim support for breakpoint commands.
14289 (process_point_options): Add command case.
14290 (process_serial_event): Leave running if there are printfs in
14291 effect.
14292 * mem-break.h (any_persistent_commands): Declare.
14293 (add_breakpoint_commands): Declare.
14294 (gdb_no_commands_at_breakpoint): Declare.
14295 (run_breakpoint_commands): Declare.
14296 * mem-break.c (struct point_command_list): New struct.
14297 (struct breakpoint): New field command_list.
14298 (any_persistent_commands): New function.
14299 (add_commands_to_breakpoint): New function.
14300 (add_breakpoint_commands): New function.
14301 (gdb_no_commands_at_breakpoint): New function.
14302 (run_breakpoint_commands): New function.
14303 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14304 locally.
14305 * ax.c: Include format.h.
14306 (ax_printf): New function.
14307 (gdb_eval_agent_expr): Add printf opcode.
14308
2f8f6aed
YQ
143092012-06-13 Yao Qi <yao@codesourcery.com>
14310
14311 * server.c (start_inferior): Remove duplicated writes to fields
14312 'last_resume_kind' and 'last_status' of 'current_inferior'.
14313
0c9070b3
YQ
143142012-06-12 Yao Qi <yao@codesourcery.com>
14315 Pedro Alves <palves@redhat.com>
14316
14317 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14318 comment.
14319 * server.c (handle_v_cont): Extend comment.
14320
c52daf70
YQ
143212012-06-11 Yao Qi <yao@codesourcery.com>
14322
14323 * linux-low.c (linux_attach): Add 'static'.
14324
d38bbb0a
YQ
143252012-06-06 Yao Qi <yao@codesourcery.com>
14326
14327 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14328
89dc0afd
JK
143292012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14330
14331 Fix gcc -flto compilation warning.
14332 * server.c (main): Make variable multi_mode and attach volatile.
14333
75f62ce7
TJB
143342012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14335
14336 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14337 if the platform doesn't know about it.
14338
65f479b6
PA
143392012-05-30 Jeff Kenton <jkenton@tilera.com>
14340
14341 * Makefile.in (SFILES): Add linux-tile-low.c.
14342 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14343 * configure.srv: Handle tilegx-*-linux*.
14344 * linux-tile-low.c: New file.
14345
0c5bf5a9
JK
143462012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14347
14348 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14349
a493e3e2
PA
143502012-05-24 Pedro Alves <palves@redhat.com>
14351
14352 PR gdb/7205
14353
43aaf8b6 14354 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 14355
2ea28649
PA
143562012-05-24 Pedro Alves <palves@redhat.com>
14357
14358 PR gdb/7205
14359
14360 Replace target_signal with gdb_signal throughout.
14361
8d409d16
MR
143622012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14363
14364 * linux-low.c (linux_store_registers): Avoid the copying sequence
14365 when no data has been retrieved by ptrace.
14366
23512c01
MGD
143672012-05-22 Will Deacon <will.deacon@arm.com>
14368
14369 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14370 Include asm/ptrace.h.
14371 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14372 already defined.
14373
4934b29e
MR
143742012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14375
14376 * linux-low.c (linux_store_registers): Don't re-retrieve data
14377 with ptrace that has already been obtained from /proc. Always
14378 copy any data retrieved with ptrace to the buffer supplied.
14379
bde24c0a
PA
143802012-05-11 Yao Qi <yao@codesourcery.com>
14381 Pedro Alves <palves@redhat.com>
14382
14383 * linux-low.c (enum stopping_threads_kind): New.
14384 (stopping_threads): Change type to `enum stopping_threads_kind'.
14385 (handle_extended_wait): If stopping and suspending threads, leave
14386 the new_lwp suspended too.
14387 (linux_wait_for_event): Adjust.
14388 (stop_all_lwps): Set `stopping_threads' to
14389 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14390 whether we're suspending threads or just stopping them. Assert no
14391 recursion happens.
14392
623b6bdf
YQ
143932012-04-29 Yao Qi <yao@codesourcery.com>
14394
14395 * server.h: Move some code to ...
14396 * gdbthread.h: ... here. New.
14397 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14398 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14399 (nto-low.o, win32-low.o): Likewise.
14400 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14401 * regcache.c, remote-utils.c, server.c: Likewise.
14402 * target.c, tracepoint.c, win32-low.c: Likewise.
14403
f15f9948
TJB
144042012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14405
14406 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14407 (PTRACE_ARG4_TYPE): Likewise.
14408 (PTRACE_XFER_TYPE): Likewise.
14409 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14410 ptrace to PTRACE_ARG3_TYPE.
14411 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14412 (PTRACE_ARG4_TYPE): Likewise.
14413 (PTRACE_XFER_TYPE): Likewise.
14414 (linux_detach_one_lwp): Cast fourth argument of
14415 ptrace to long then PTRACE_ARG4_TYPE.
14416 (regsets_fetch_inferior_registers): Cast third argument of
14417 ptrace to long then PTRACE_ARG3_TYPE.
14418 (regsets_store_inferior_registers): Likewise.
14419
38ea300a
PA
144202012-04-20 Pedro Alves <palves@redhat.com>
14421
14422 * configure: Regenerate.
14423
c971b7fa
PA
144242012-04-19 Pedro Alves <palves@redhat.com>
14425
43aaf8b6 14426 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 14427 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
14428 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14429 (all, install-only, uninstall, clean-info, all-lib, clean): No
14430 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14431 (maintainer-clean realclean distclean): Use subdir_do.
14432 (subdir_do): New.
14433 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 14434 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
14435 * acinclude.m4: Include acx_configure_dir.m4.
14436 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14437 calls. Call AC_PROG_RANLIB. Configure gnulib using
14438 ACX_CONFIGURE_DIR.
14439 (GNULIB): New.
14440 (GNULIB_STDINT_H): Adjust.
14441 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14442 * gdbreplay.c: Include build-gnulib/config.h.
14443 * server.h: Likewise.
14444 * aclocal.m4: Regenerate.
14445 * config.in: Regenerate.
14446 * configure: Regenerate.
c971b7fa 14447
809277f8
PA
144482012-04-19 Pedro Alves <palves@redhat.com>
14449
14450 * Makefile.in (LIBGNU, INCGNU): Adjust.
14451 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14452 (all, install-only, uninstall, clean-info, all-lib, clean)
14453 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14454 * configure.ac: Adjust AC_OUTPUT output.
14455 * aclocal.m4: Regenerate.
14456 * configure: Regenerate.
14457
fd9bb8b8
PA
144582012-04-19 Pedro Alves <palves@redhat.com>
14459
14460 * Makefile.in (generated_files): New.
14461 (server_h): Remove the explicit dependency on config.h, and depend
14462 on $generated_files.
14463
1c298c66
PA
144642012-04-19 Pedro Alves <palves@redhat.com>
14465
14466 * Makefile.in (INCGNU): Add -Ignulib.
14467
57c4b50b
PA
144682012-04-19 Pedro Alves <palves@redhat.com>
14469
14470 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14471 (INCGNU): ... this, and spell out -I here.
14472 (GNULIB_LIB): Rename to ...
14473 (LIBGNU): ... this.
14474 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14475
1030e047
PA
144762012-04-19 Pedro Alves <palves@redhat.com>
14477
14478 * config.in: Regenerate.
14479
447d4319
PA
144802012-04-19 Pedro Alves <palves@redhat.com>
14481
14482 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14483 * server.h (memmem): Remove declaration.
14484 * config.in: Regenerate.
14485 * configure: Regenerate.
14486
aad9eab9
YQ
144872012-04-19 Yao Qi <yao@codesourcery.com>
14488
14489 * Makefile.in (SFILES): Add common/vec.c.
14490 (OBS): Add vec.o.
14491 (vec.o): New rule.
14492
3e10640f
YQ
144932012-04-19 Yao Qi <yao@codesourcery.com>
14494
14495 * remote-utils.c (prepare_resume_reply): Replace with macro
14496 target_core_of_thread.
14497 * server.c (handle_qxfer_threads_proper): Likewise.
14498 * target.h (traget_core_of_thread): New macro.
14499
71622373
PA
145002012-04-18 Pedro Alves <palves@redhat.com>
14501
14502 * aclocal.m4: Regenerate.
14503 * configure: Regenerate.
14504
80d26939
YQ
145052012-04-16 Yao Qi <yao@codesourcery.com>
14506
14507 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
14508 duplicated on address.
14509
42476b70
YQ
145102012-04-16 Yao Qi <yao@codesourcery.com>
14511
14512 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
14513 (struct tracepoint_action_ops) <send>: New field.
14514 (m_tracepoint_action_send, r_tracepoint_action_send): New.
14515 (agent_expr_send, x_tracepoint_action_send): New.
14516 (l_tracepoint_action_send): New.
14517 (cmd_qtdp): Download and install tracepoint
14518 according to `use_agent'.
14519 (run_inferior_command): Add one more parameter `len'.
14520 Update callers.
14521 (tracepoint_send_agent): New.
14522 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
14523
7bc83639
YQ
145242012-04-16 Yao Qi <yao@codesourcery.com>
14525
14526 * tracepoint.c (download_tracepoints): Moved to ...
14527 (cmd_qtstart): ... here.
14528
5f18041e
YQ
145292012-04-14 Yao Qi <yao@codesourcery.com>
14530
14531 * tracepoint.c: Include inttypes.h.
14532 (struct collect_memory_action): Use sized types.
14533 (struct tracepoint): Likewise.
14534 (cmd_qtdp, stop_tracing): Update print specifiers.
14535 (cmd_qtp, response_tracepoint): Likewise.
14536 (collect_data_at_tracepoint): Likewise.
14537 (collect_data_at_step): Likewise.
14538
55a8c076
YQ
145392012-04-14 Yao Qi <yao@codesourcery.com>
14540
14541 Import gnulib module inttypes.
14542 * aclocal.m4, config.in, configure: Regenerated.
14543
dc750257
YQ
145442012-04-14 Yao Qi <yao@codesourcery.com>
14545
14546 * Makefile.in (maintainer-clean, realclean, distclean): Remove
14547 Makefile and config.status at last.
14548
0ab5faf9
YQ
145492012-04-13 Yao Qi <yao@codesourcery.com>
14550
14551 * tracepoint.c: Include stdint.h unconditionally.
14552
18f5fd81
TJB
145532012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14554
14555 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
14556 on BFD_HAVE_SYS_PROCFS_TYPE.
14557 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
14558 * configure: Regenerate.
14559 * config.in: Likewise.
14560
4d47af5c
L
145612012-04-13 H.J. Lu <hongjiu.lu@intel.com>
14562
14563 * Makefile.in (clean): Also remove x32.c x32-linux.c
14564 x32-avx.c x32-avx-linux.c.
14565 (x32.o): New target.
14566 (x32.c): Likewise.
14567 (x32-linux.o): Likewise.
14568 (x32-linux.c): Likewise.
14569 (x32-avx.o): Likewise.
14570 (x32-avx.c): Likewise.
14571 (x32-avx-linux.o): Likewise.
14572 (x32-avx-linux.c): Likewise.
14573
14574 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
14575 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
14576 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
14577 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
14578 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
14579 i386/x32-avx-linux.xml.
14580
14581 * linux-x86-low.c (init_registers_x32_linux): New prototype.
14582 (init_registers_x32_avx_linux): Likwise.
14583 (x86_linux_update_xmltarget): Call init_registers_x32_linux
14584 or init_registers_x32_avx_linux if linux_is_elf64 is false.
14585
ecedbe58
PA
145862012-04-13 Pedro Alves <palves@redhat.com>
14587
14588 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
14589 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
14590 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
14591 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
14592 the sub-make.
14593
c92b5177
L
145942012-04-12 H.J. Lu <hongjiu.lu@intel.com>
14595
14596 * linux-x86-low.c (compat_x32_clock_t): New.
14597 (compat_x32_siginfo_t): Likewise.
14598 (compat_x32_siginfo_from_siginfo): Likewise.
14599 (siginfo_from_compat_x32_siginfo): Likewise.
14600 (linux_is_elf64): Likewise.
14601 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
14602 and siginfo_from_compat_x32_siginfo for x32.
14603 (x86_arch_setup): Set linux_is_elf64.
14604
214d508e
L
146052012-04-12 H.J. Lu <hongjiu.lu@intel.com>
14606
14607 PR gdb/13969
14608 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
14609 e_machine field.
14610 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
14611 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
14612 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
14613 compatible with process.
14614
c9a1864a
YQ
146152012-04-12 Yao Qi <yao@codesourcery.com>
14616
14617 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
14618 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
14619 (install-only, install-info, clean): Handle sub dir gnulib.
14620 (all-lib, am--refresh): New targets.
14621 (memmem.o): Remove target.
14622 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
14623 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
14624 (AC_REPLACE_FUNCS): Remove memmem.
14625 Invoke gl_INIT and AM_INIT_AUTOMAKE.
14626 (AC_OUTPUT): Generate Makefile in gnulib/.
14627 * aclocal.m4, config.in, configure: Regenerated.
14628
367ba2c2
MR
146292012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
14630
14631 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
14632
9d236627
PA
146332012-04-05 Pedro Alves <palves@redhat.com>
14634
14635 -Werror=strict-aliasing
14636
14637 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
14638 pointer.
14639
111217b3
PA
146402012-04-04 Pedro Alves <palves@redhat.com>
14641
14642 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
14643 (sparc_store_gregset_from_stack, sparc_store_gregset)
14644 (sparc_breakpoint_at): Fix formatting.
14645
8365dcf5
TJB
146462012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14647
14648 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
14649 are available.
14650 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
14651 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
14652 * config.in: Regenerate.
14653 * configure: Likewise.
14654
689cc2ae
PA
146552012-03-29 Pedro Alves <palves@redhat.com>
14656
14657 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
14658 Correct ptrace arguments.
14659
c14dfd32
PA
146602012-03-28 Pedro Alves <palves@redhat.com>
14661
14662 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
14663 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
14664 (IA64_FR1_REGNUM): New defines.
14665 (ia64_fetch_register): New.
14666 (the_low_target): Install it.
14667 * linux-low.h (struct linux_target_ops) <fetch_register>: New
14668 field.
14669 * linux-low.c (linux_fetch_registers): Try the
14670 the_low_target.fetch_register hook first.
14671
14672 * linux-arm-low.c (the_low_target): Adjust.
14673 * linux-bfin-low.c (the_low_target): Adjust.
14674 * linux-cris-low.c (the_low_target): Adjust.
14675 * linux-crisv32-low.c (the_low_target): Adjust.
14676 * linux-m32r-low.c (the_low_target): Adjust.
14677 * linux-m68k-low.c (the_low_target): Adjust.
14678 * linux-mips-low.c (the_low_target): Adjust.
14679 * linux-ppc-low.c (the_low_target): Adjust.
14680 * linux-s390-low.c (the_low_target): Adjust.
14681 * linux-sh-low.c (the_low_target): Adjust.
14682 * linux-sparc-low.c (the_low_target): Adjust.
14683 * linux-tic6x-low.c (the_low_target): Adjust.
14684 * linux-x86-low.c (the_low_target): Adjust.
14685 * linux-xtensa-low.c (the_low_target): Adjust.
14686
63c88e13
PA
146872012-03-26 Pedro Alves <palves@redhat.com>
14688
14689 * server.c (handle_qxfer_libraries): Don't bail early if
14690 the_target->qxfer_libraries_svr4 is not NULL.
14691
fb723180
PA
146922012-03-26 Pedro Alves <palves@redhat.com>
14693
14694 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
14695
0afae3cf
PA
146962012-03-23 Pedro Alves <palves@redhat.com>
14697
14698 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
14699 "library-list-svr4" element's start tag when the the DSO list is
14700 empty.
14701
485f1ee4
PA
147022012-03-23 Pedro Alves <palves@redhat.com>
14703
14704 * linux-low.c (read_one_ptr): Read the inferior's pointer through
14705 a variable whose type size is the same as the inferior's pointer
14706 size.
14707
a5362b9a
TS
147082012-03-21 Thomas Schwinge <thomas@codesourcery.com>
14709
14710 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
14711 struct siginfo.
14712 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
14713 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
14714 * linux-low.h: Include <signal.h>.
14715 (struct siginfo): Remove forward declaration.
14716 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
14717 struct siginfo.
14718
d226c142
MF
147192012-03-21 Mike Frysinger <vapier@gentoo.org>
14720
14721 * .gitignore: Ignore more files.
14722
122f36ef
PA
147232012-03-19 Pedro Alves <palves@redhat.com>
14724 Jan Kratochvil <jan.kratochvil@redhat.com>
14725
14726 * server.c (cont_thread, general_thread): Add describing comments.
14727 (start_inferior): Clear `cont_thread'.
14728 (handle_v_cont): Don't set `cont_thread' if resuming all threads
14729 of a process.
14730
fc3e5175
YQ
147312012-03-15 Yao Qi <yao@codesourcery.com>
14732
14733 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
14734 handling to ...
14735 (cmd_qtdp): ... here.
14736
8d0d92cd
YQ
147372012-03-15 Yao Qi <yao@codesourcery.com>
14738
14739 * tracepoint.c (struct tracepoint_action_ops): New.
14740 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
14741 (m_tracepoint_action_download): New.
14742 (r_tracepoint_action_download): New.
14743 (x_tracepoint_action_download): New.
14744 (l_tracepoint_action_download): New.
14745 (add_tracepoint_action): Install `action->ops' according type.
14746 (download_tracepoint_1): Move code `download' function pointer
14747 of various tracepoint_action_ops.
14748
87b0bb13
JK
147492012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14750
14751 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
14752 linux_ptrace_attach_warnings.
14753
5f572dec
JK
147542012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14755
14756 * Makefile.in (linux-ptrace.o): New.
14757 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
14758 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
14759 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
14760 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
14761 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
14762 of these targets.
14763 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
14764
f4647387
YQ
147652012-03-08 Yao Qi <yao@codesourcery.com>
14766 Pedro Alves <palves@redhat.com>
14767
14768 Fix PR server/13392.
14769 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
14770 offset of JMP insn.
14771 * tracepoint.c (remove_tracepoint): New.
14772 (cmd_qtdp): Call remove_tracepoint when failed to install.
14773
9b224c5e
PA
147742012-03-07 Pedro Alves <palves@redhat.com>
14775
14776 * linux-low.c (get_detach_signal): New.
14777 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
14778 Pass on pending signals to PTRACE_DETACH. Check the result of the
14779 ptrace call.
14780 * server.c (program_signals, program_signals_p): New.
14781 (handle_general_set): Handle QProgramSignals.
14782 * server.h (program_signals, program_signals_p): Declare.
14783
e237a7e2
JK
147842012-03-05 Pedro Alves <palves@redhat.com>
14785 Jan Kratochvil <jan.kratochvil@redhat.com>
14786
14787 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
14788 New comment why.
14789
5808517f
YQ
147902012-03-03 Yao Qi <yao@codesourcery.com>
14791
14792 * tracepoint.c (tracepoint_look_up_symbols): Update call to
14793 agent_look_up_symbols.
14794
58b4daa5
YQ
147952012-03-03 Yao Qi <yao@codesourcery.com>
14796
14797 * Makefile.in (linux-low.o): Keep dependence on agent.h.
14798 (linux-x86-low.o): Likewise.
14799 * server.h: Remove in_process_agent_loaded.
14800 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
14801 common/agent.c.
14802 Update callers.
14803
8ffcbaaf
YQ
148042012-03-03 Yao Qi <yao@codesourcery.com>
14805
14806 * tracepoint.c (gdb_agent_capability): New global.
14807 (in_process_agent_loaded_ust): Renamed to
14808 `in_process_agent_supports_ust'.
14809 Update callers.
14810 (in_process_agent_supports_ust): Call agent_capability_check.
14811 (clear_installed_tracepoints): Assert that agent supports
14812 agent.
14813
d1feda86
YQ
148142012-03-03 Yao Qi <yao@codesourcery.com>
14815
14816 * linux-low.c (linux_supports_agent): New.
14817 (linux_target_ops): Initialize field `supports_agent' with
14818 linux_supports_agent.
14819 * target.h (struct target_ops) <supports_agent>: New.
14820 (target_supports_agent): New macro.
14821 * server.c (handle_general_set): Handle packet 'QAgent'.
14822 (handle_query): Send `QAgent+'.
14823 * Makefile.in (server.o): Depends on agent.h.
14824
2fa291ac
YQ
148252012-03-03 Yao Qi <yao@codesourcery.com>
14826
14827 * Makefile.in (OBS): Add agent.o.
14828 Add new rule for agent.o.
14829 Track dependence of tracepoint.c on agent.h.
14830 * tracepoint.c (run_inferior_command_1):
14831 (run_inferior_command): Call agent_run_command.
14832 (gdb_ust_connect_sync_socket): Deleted. Move it to
14833 common/agent.c.
14834 (resume_thread, stop_thread): Likewise.
14835 (gdb_ust_socket_init): Renamed to ...
14836 (gdb_agent_socket_init): ... New.
14837 (gdb_ust_thread): Renamed to ...
14838 (gdb_agent_helper_thread): ... New.
14839 (gdb_ust_init): Move some code to ...
14840 (gdb_agent_init): ... here. New.
14841 [HAVE_UST]: Call gdb_ust_init.
14842 (initialize_tracepoint_ftlib): Call gdb_agent_init.
14843 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
14844 * config.in, configure: Regenerated.
14845
05044653
PA
148462012-03-02 Pedro Alves <palves@redhat.com>
14847
14848 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
14849 * linux-low.c (struct simple_pid_list): New.
14850 (stopped_pids): New a struct simple_pid_list pointer.
14851 (add_to_pid_list, pull_pid_from_list): New.
14852 (handle_extended_wait): Don't assume the first signal new children
14853 report is SIGSTOP. Adjust call to pull_pid_from_list.
14854 (linux_wait_for_lwp): Adjust.
14855
8d00225b
YQ
148562012-03-02 Yao Qi <yao@codesourcery.com>
14857
14858 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
14859 debug log.
14860
19560ba5
YQ
148612012-03-02 Yao Qi <yao@codesourcery.com>
14862
14863 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
14864 `stop_pc' and `tpoint'. Update caller.
14865
1faeff08
MR
148662012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
14867
14868 * linux-low.h (linux_target_ops): Add regset_bitmap member.
14869 * linux-low.c (use_linux_regsets): New macro.
14870 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
14871 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
14872 (linux_register_in_regsets): New function.
14873 (usr_fetch_inferior_registers): Skip registers covered by
14874 regsets.
14875 (usr_store_inferior_registers): Likewise.
14876 (usr_fetch_inferior_registers): New macro.
14877 (usr_store_inferior_registers): Likewise.
14878 (linux_fetch_registers): Handle mixed regset/non-regset targets.
14879 (linux_store_registers): Likewise.
14880 * linux-mips-low.c (init_registers_mips_dsp_linux): New
14881 prototype.
14882 (init_registers_mips64_dsp_linux): Likewise.
14883 (init_registers_mips_linux): New macro.
14884 (init_registers_mips_dsp_linux): Likewise.
14885 (mips_dsp_num_regs): Likewise.
14886 (DSP_BASE, DSP_CONTROL): New fallback macros.
14887 (mips_base_regs): New macro.
14888 (mips_regmap): Use it. Fix the size.
14889 (mips_dsp_regmap): New variable.
14890 (mips_dsp_regset_bitmap): Likewise.
14891 (mips_arch_setup): New function.
14892 (mips_cannot_fetch_register): Use the_low_target.regmap rather
14893 than mips_regmap.
14894 (mips_cannot_store_register): Likewise.
14895 (the_low_target): Update .arch_setup, .num_regs and .regmap
14896 initializers. Add .regset_bitmap initializer.
14897 * linux-arm-low.c (the_low_target): Add .regset_bitmap
14898 initializer.
14899 * linux-bfin-low.c (the_low_target): Likewise.
14900 * linux-cris-low.c (the_low_target): Likewise.
14901 * linux-crisv32-low.c (the_low_target): Likewise.
14902 * linux-ia64-low.c (the_low_target): Likewise.
14903 * linux-m32r-low.c (the_low_target): Likewise.
14904 * linux-m68k-low.c (the_low_target): Likewise.
14905 * linux-ppc-low.c (the_low_target): Likewise.
14906 * linux-s390-low.c (the_low_target): Likewise.
14907 * linux-sh-low.c (the_low_target): Likewise.
14908 * linux-sparc-low.c (the_low_target): Likewise.
14909 * linux-tic6x-low.c (the_low_target): Likewise.
14910 * linux-x86-low.c (the_low_target): Likewise.
14911 * linux-xtensa-low.c (the_low_target): Likewise.
14912 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
14913 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
14914 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
14915 srv_xmlfiles.
14916 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
14917 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
14918
c03e6ccc
YQ
149192012-02-29 Yao Qi <yao@codesourcery.com>
14920 Pedro Alves <palves@redhat.com>
14921
14922 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
14923 `step_over_finished' is true.
14924
644cebc9
PA
149252012-02-27 Pedro Alves <palves@redhat.com>
14926
14927 * linux-low.c (pid_is_stopped): Delete, moved to common/.
14928 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
14929
c14d7ab2
PA
149302012-02-27 Pedro Alves <palves@redhat.com>
14931
14932 PR server/9684
14933 * linux-low.c (pid_is_stopped): New.
14934 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
14935
412c89dd
LM
149362012-02-25 Luis Machado <lgustavo@codesourcery.com>
14937
14938 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
14939 of conditions.
14940
b745defe
MR
149412012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
14942
14943 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
14944
9f3a5c85
LM
149452012-02-24 Luis Machado <lgustavo@codesourcery>
14946
14947 * server.c (handle_query): Advertise support for target-side
14948 breakpoint condition evaluation.
14949 (process_point_options): New function.
14950 (process_serial_event): When inserting a breakpoint, check for
14951 a target-side condition that should be evaluated.
14952
14953 * mem-break.c: Include regcache.h and ax.h.
14954 (point_cond_list_t): New data structure.
14955 (breakpoint) <cond_list>: New field.
14956 (find_gdb_breakpoint_at): Make non-static.
14957 (delete_gdb_breakpoint_at): Clear any target-side
14958 conditions.
14959 (clear_gdb_breakpoint_conditions): New function.
14960 (add_condition_to_breakpoint): Likewise.
14961 (add_breakpoint_condition): Likewise.
14962 (gdb_condition_true_at_breakpoint): Likewise.
14963 (gdb_breakpoint_here): Return result directly instead
14964 of going through a local variable.
14965
14966 * mem-break.h (find_gdb_breakpoint_at): New prototype.
14967 (clear_gdb_breakpoint_conditions): Likewise.
14968 (add_breakpoint_condition): Likewise.
14969 (gdb_condition_true_at_breakpoint): Likewise.
14970
14971 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
14972 (need_step_over_p): Take target-side breakpoint condition into
14973 consideration.
14974
5e1dc496
LM
149752012-02-24 Luis Machado <lgustavo@codesourcery>
14976
14977 * server.h: Include tracepoint.h.
14978 (agent_mem_read, agent_get_trace_state_variable_value,
14979 agent_set_trace_state_variable_value,
14980 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
14981 get_set_tsv_func_addr): New prototypes.
14982
14983 * ax.h: New include file.
14984 * ax.c: New source file.
14985
14986 * tracepoint.c: Include ax.h.
14987 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
14988 agent_expr, eval_result_type): Move to ax.h.
14989 (parse_agent_expr): Rename to ...
14990 (gdb_parse_agent_expr): ... this, make it non-static and move
14991 to ax.h.
14992 (unparse_agent_expr) Rename to ...
14993 (gdb_unparse_agent_expr): ... this, make it non-static and move
14994 to ax.h.
14995 (eval_agent_expr): Rename to ...
14996 (eval_tracepoint_agent_expr): ... this.
14997 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
14998 forward declarations.
14999 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15000 (agent_get_trace_state_variable_value): New function.
15001 (agent_set_trace_state_variable_value): New function.
15002 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15003 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15004 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15005 (condition_true_at_tracepoint): Likewise.
15006 (parse_agent_expr): Rename to ...
15007 (gdb_parse_agent_expr): ... this and move to ax.c.
15008 (unparse_agent_expr): Rename to ...
15009 (gdb_unparse_agent_expr): ... this and move to ax.c.
15010 (gdb_agent_op_name): Move to ax.c.
15011 (eval_agent_expr): Rename to ...
15012 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15013 and move to ax.c.
15014 (eval_tracepoint_agent_expr): New function.
15015 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15016 non-static.
5e1dc496
LM
15017 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15018 ax.c.
15019 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15020 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15021 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15022 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15023 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15024 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15025 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15026 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15027 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15028 (compile_bytecodes): Remove forward declaration.
15029 (is_goto_target): Move to ax.c.
15030 (compile_bytecodes): Move to ax.c and call
15031 agent_get_trace_state_variable_value (...) and
15032 agent_set_trace_state_variable_value (...).
15033
15034 * Makefile.in: Update ax.c and IPA dependencies.
15035
277e4e52
PA
150362012-02-24 Pedro Alves <palves@redhat.com>
15037
15038 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15039 (cmd_bigqtbuffer_circular): ... this. Only handle
15040 'QTBuffer:circular:'.
15041 (handle_tracepoint_general_set): Adjust.
15042
bf4c19f7
YQ
150432012-02-16 Yao Qi <yao@codesourcery.com>
15044
15045 * inferiors.c: Move code to ...
15046 * dll.c: .... here. New.
15047 * server.h: Declare clear_dlls.
15048 * Makefile.in (SFILES): Add dll.c.
15049 (OBS): Add dll.o
15050 (dll.o): New rule.
15051
d73f2619
YQ
150522012-02-11 Yao Qi <yao@codesourcery.com>
15053
15054 * server.c: (handle_monitor_command): Add a new parameter
15055 `own_buf'.
15056 (handle_query): Update caller.
15057
f8255c2a
JB
150582012-02-09 Joel Brobecker <brobecker@adacore.com>
15059
15060 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15061 * configure, config.in: Regenerate.
15062 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15063 is not defined.
15064
da84f473
PA
150652012-02-02 Pedro Alves <palves@redhat.com>
15066
15067 Try SIGKILL first, then PTRACE_KILL.
15068 * linux-low.c (linux_kill_one_lwp): New.
15069 (linux_kill_one_lwp): Rename to ...
15070 (kill_one_lwp_callback): ... this. Use the new
15071 linux_kill_one_lwp.
15072
e886a173
PA
150732012-02-02 Pedro Alves <palves@redhat.com>
15074
15075 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15076 inferior.
15077
be07f1a2
PA
150782012-01-27 Pedro Alves <palves@redhat.com>
15079
15080 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15081 (elf_64_file_p): Make static.
15082 (linux_pid_exe_is_elf_64_file): New.
15083 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15084 Delete declarations.
15085 (linux_pid_exe_is_elf_64_file): Declare.
15086 * linux-x86-low.c (x86_arch_setup): Use
15087 linux_pid_exe_is_elf_64_file.
15088
d8301ad1
JK
150892012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15090
15091 * linux-low.c (linux_wait_for_event_1): Rename to ...
15092 (linux_wait_for_event): ... here and merge it with former
15093 linux_wait_for_event - new variable wait_ptid, use it.
15094 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15095
01b17894
PA
150962012-01-23 Pedro Alves <palves@redhat.com>
15097
15098 * server.c (main): Avoid yet another case of infinite loop while
15099 detaching/killing after a longjmp.
15100
e825046f
JK
151012012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15102
15103 Code cleanup.
15104 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15105
b9e7b9c3
UW
151062012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15107
15108 * hostio.c (handle_readlink): New function.
15109 (handle_vFile): Call it to handle "vFile:readlink" packets.
15110
901f9912
UW
151112012-01-20 Pedro Alves <palves@redhat.com>
15112 Ulrich Weigand <ulrich.weigand@linaro.org>
15113
15114 * server.c (handle_v_requests): Only support vAttach and vRun to
15115 start multiple processes when in extended protocol mode.
15116
fc1ab1a0
PA
151172012-01-17 Pedro Alves <palves@redhat.com>
15118
15119 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15120 memalign plus mprotect to allocate the scratch buffer.
15121
7d5d4e98
PA
151222012-01-13 Pedro Alves <palves@redhat.com>
15123
15124 * server.c (attach_inferior): Clear `cont_thread'.
15125
f128d5e9
PA
151262012-01-13 Pedro Alves <palves@redhat.com>
15127
15128 * server.c (main): Avoid infinite loop while detaching/killing
15129 after a longjmp.
15130
06db92f0
DE
151312012-01-09 Doug Evans <dje@google.com>
15132
15133 * server.c (start_inferior): Set last_ptid in --wrapper case.
15134
32d92999
YQ
151352012-01-06 Yao Qi <yao@codesourcery.com>
15136
15137 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15138 defined.
15139 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15140
5e0a92a9
YQ
151412012-01-04 Yao Qi <yao@codesourcery.com>
15142
15143 * tracepoint.c (cmd_qtdp): Print debug message
15144 for static tracepoint.
15145
ae639e8c
YQ
151462012-01-04 Yao Qi <yao@codesourcery.com>
15147
15148 * tracepoint.c (trace_vdebug): Differentiate debug message
15149 between gdbserver and IPA.
15150
f72429c5
YQ
151512012-01-03 Yao Qi <yao@codesourcery.com>
15152
15153 * tracepoint.c (tracepoint_was_hit): Don't collect for
15154 static tracepoint.
15155
12c3e59c
JB
151562012-01-02 Joel Brobecker <brobecker@adacore.com>
15157
15158 * terminal.h: Reformat copyright header.
15159
67827812
JB
151602012-01-02 Joel Brobecker <brobecker@adacore.com>
15161
15162 * server.c (gdbserver_version): Update copyright year.
15163 * gdbreplay.c (gdbreplay_version): Likewise.
15164
3e52c33d
JK
151652011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15166
15167 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15168
15169 Revert:
15170 2011-12-18 Hui Zhu <teawater@gmail.com>
15171 * linux-low.c (linux_create_inferior): Save return value to ret.
15172
66f1260e
HZ
151732011-12-18 Hui Zhu <teawater@gmail.com>
15174
15175 * linux-low.c (linux_create_inferior): Save return value to ret.
15176
e77616d7
DE
151772011-12-16 Doug Evans <dje@google.com>
15178
e7b06c57
DE
15179 * linux-low.c (linux_create_inferior): If stdio connection,
15180 redirect stdin from /dev/null, stdout to stderr.
15181 * remote-utils.c (remote_is_stdio): New static global.
15182 (remote_connection_is_stdio): New function.
15183 (remote_prepare): Handle stdio connection.
15184 (remote_open): Ditto.
15185 (remote_close): Don't close stdin for stdio connections.
15186 (read_prim,write_prim): New functions. Replace all calls to
15187 read/write to these.
15188 * server.c (main): Watch for "-" argument. Move call to
15189 remote_prepare before start_inferior.
15190 * server.h (STDIO_CONNECTION_NAME): New macro.
15191 (remote_connection_is_stdio): Declare.
15192
e77616d7
DE
15193 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15194 in debugging output.
15195
82067193
YQ
151962011-12-15 Yao Qi <yao@codesourcery.com>
15197
15198 * tracepoint.c: Include sys/syscall.h.
15199 (gdb_ust_thread): Remove preprocessor conditional.
15200
82bfbe7e
PA
152012011-12-14 Pedro Alves <pedro@codesourcery.com>
15202
15203 * linux-low.c (linux_detach_one_lwp): Call
15204 the_low_target.prepare_to_resume before detaching.
15205
712c6575
YQ
152062011-12-14 Yao Qi <yao@codesourcery.com>
15207
15208 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15209 of write.
15210
d54d1edf
YQ
152112011-12-14 Yao Qi <yao@codesourcery.com>
15212
15213 * i386-low.c (i386_low_stopped_data_address): Initialize local
15214 variable `control'.
15215
6210a125
PA
152162011-12-13 Pedro Alves <pedro@codesourcery.com>
15217
15218 PR remote/13492
15219
15220 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15221 DR_CONTROL unless necessary. Extend comments.
15222 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15223 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15224
2ece8244
YQ
152252011-12-13 Yao Qi <yao@codesourcery.com>
15226
15227 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15228 macros.
15229 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15230
784867a5
JK
152312011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15232
15233 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15234 Print new debug message for such case.
15235
6bf36717
JK
152362011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15237
15238 Fix overlapping memcpy.
15239 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15240 the read_inferior_memory transfer.
15241 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15242 write_inferior_memory transfer.
15243 (set_fast_tracepoint_jump): New variable buf. Use it for the
15244 read_inferior_memory and write_inferior_memory transfers.
15245 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15246 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15247 Use it for the write_inferior_memory transfer.
15248 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15249 buffers.
15250
50275556
MR
152512011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15252
15253 * linux-low.c (fetch_register, store_register): Make code
15254 consistent, fix formatting.
15255
7325beb4
MR
152562011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15257
15258 * linux-low.c (usr_store_inferior_registers): Factor out code
15259 to handle individual registers into...
15260 (store_register): ... this new function.
15261
c642a434
UW
152622011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15263
15264 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15265 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15266 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15267 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15268 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15269 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15270 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15271 (srv_xmlfiles): Add new XML files.
15272
15273 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15274 and <sys/uio.h>.
15275 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15276 (init_registers_s390_linux32v1): Add prototype.
15277 (init_registers_s390_linux32v2): Likewise.
15278 (init_registers_s390_linux64v1): Likewise.
15279 (init_registers_s390_linux64v2): Likewise.
15280 (init_registers_s390x_linux64v1): Likewise.
15281 (init_registers_s390x_linux64v2): Likewise.
15282 (s390_num_regs): Increment to 52.
15283 (s390_regmap): Add orig_r2 register.
15284 (s390_num_regs_3264): Increment to 68.
15285 (s390_regmap_3264): Add orig_r2 register.
15286 (s390_collect_ptrace_register): Handle orig_r2 register.
15287 (s390_supply_ptrace_register): Likewise.
15288 (s390_fill_last_break): New function.
15289 (s390_store_last_break): Likewise.
15290 (s390_fill_system_call): New function.
15291 (s390_store_system_call): Likewise.
15292 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15293 register sets.
15294 (s390_check_regset): New function.
15295 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15296 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15297 Update target_regsets for available register sets.
15298
2268b414
JK
152992011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15300 Jan Kratochvil <jan.kratochvil@redhat.com>
15301
15302 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15303 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15304 New.
15305 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15306 * linux-low.h (struct process_info_private): New member r_debug.
15307 * server.c (handle_qxfer_libraries): Call
15308 the_target->qxfer_libraries_svr4.
15309 (handle_qxfer_libraries_svr4): New function.
15310 (qxfer_packets): New entry "libraries-svr4".
15311 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15312 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15313 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15314 PACKET_qXfer_libraries_svr4.
15315
d6db1fab
UW
153162011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15317
15318 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15319 PSW address/mask between 8-byte and 16-byte formats.
15320 (s390_supply_ptrace_register): Likewise.
15321 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15322 basic addressing mode bit.
15323
242f5f1c
SS
153242011-11-24 Stan Shebs <stan@codesourcery.com>
15325
15326 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15327
f196051f
SS
153282011-11-17 Stan Shebs <stan@codesourcery.com>
15329
15330 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15331 (tracing_start_time): New global.
15332 (tracing_stop_time): New global.
15333 (tracing_user_name): New global.
15334 (tracing_notes): New global.
15335 (tracing_stop_note): New global.
15336 (cmd_qtstart): Set traceframe_usage, start_time.
15337 (stop_tracing): Set stop_time.
15338 (cmd_qtstatus): Report additional status.
15339 (cmd_qtp): New function.
15340 (handle_tracepoint_query): Call it.
15341 (cmd_qtnotes): New function.
15342 (handle_tracepoint_general_set): Call it.
15343 (get_timestamp): Rename from tsv_get_timestamp.
15344
405f8e94
SS
153452011-11-14 Stan Shebs <stan@codesourcery.com>
15346 Kwok Cheung Yeung <kcy@codesourcery.com>
15347
15348 * linux-x86-low.c (small_jump_insn): New.
15349 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15350 trampoline and error message, build a trampoline and issue a small
15351 jump instruction to it.
15352 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15353 trampoline and error message.
15354 (x86_get_min_fast_tracepoint_insn_len): New.
15355 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15356 * linux-low.h (struct linux_target_ops): Add arguments to
15357 install_fast_tracepoint_jump_pad operation, add new operation.
15358 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15359 arguments.
15360 (linux_get_min_fast_tracepoint_insn_len): New function.
15361 (linux_target_op): Add new operation.
15362 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15363 (gdb_trampoline_buffer_end): Ditto.
15364 (gdb_trampoline_buffer_error): Ditto.
15365 (struct ipa_sym_addresses): Add fields for new IPA variables.
15366 (symbol_list): Add entries for new IPA variables.
15367 (struct tracepoint): Add fields to hold the address range of the
15368 trampoline used by the tracepoint.
15369 (trampoline_buffer_head): New static variable.
15370 (trampoline_buffer_tail): Ditto.
15371 (claim_trampoline_space): New function.
15372 (have_fast_tracepoint_trampoline_buffer): New function.
15373 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15374 structure.
15375 (install_fast_tracepoint): Ditto, also add error buffer argument.
15376 (cmd_qtminftpilen): New function.
15377 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15378 (fast_tracepoint_from_trampoline_address): New function.
15379 (fast_tracepoint_collecting): Handle trampoline as part of jump
15380 pad space.
15381 (set_trampoline_buffer_space): New function.
15382 (initialize_tracepoint): Initialize new IPA variables.
15383 * target.h (struct target_ops): Add arguments to
15384 install_fast_tracepoint_jump_pad operation, add new
15385 get_min_fast_tracepoint_insn_len operation.
15386 (target_get_min_fast_tracepoint_insn_len): New.
15387 (install_fast_tracepoint_jump_pad): Add arguments.
15388 * server.h (IPA_BUFSIZ): Define.
15389 * linux-i386-ipa.c: Include extra header files.
15390 (initialize_fast_tracepoint_trampoline_buffer): New function.
15391 (initialize_low_tracepoint): Call it.
15392 * server.h (set_trampoline_buffer_space): Declare.
15393 (claim_trampoline_space): Ditto.
15394 (have_fast_tracepoint_trampoline_buffer): Ditto.
15395
1e4d1764
YQ
153962011-11-14 Yao Qi <yao@codesourcery.com>
15397
15398 * server.c (handle_query): Handle InstallInTrace for qSupported.
15399 * tracepoint.c (add_tracepoint): Sort list.
15400 (install_tracepoint, download_tracepoint): New.
15401 (cmd_qtdp): Call them to install and download tracepoints.
15402 (sort_tracepoints): Removed.
15403 (cmd_qtstart): Update.
15404
5c73ff4e
YQ
154052011-11-14 Yao Qi <yao@codesourcery.com>
15406
15407 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15408 * mem-break.h: Declare.
15409 * tracepoint.c (cmd_qtstart): Move some code to ...
15410 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15411 New.
15412 (download_tracepoints): Move some code to ...
15413 (download_tracepoint_1): ... here. New.
15414
86a30030
YQ
154152011-11-08 Yao Qi <yao@codesourcery.com>
15416
15417 * remote-utils.c (relocate_instruction): A comment fix.
15418
8d26e50c
JB
154192011-11-07 Joel Brobecker <brobecker@adacore.com>
15420
15421 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15422 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15423 dr_status_mirror and dr_control_mirror from debug_reg_state.
15424 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15425 (i386_initial_stuff): Remove use of deleted globals.
15426 (i386_get_thread_context, i386_set_thread_context,
15427 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15428 from debug_reg_state.
15429
a59306a3
YQ
154302011-11-05 Yao Qi <yao@codesourcery.com>
15431
15432 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15433 address as TPOINT's.
15434
3065dfb6
SS
154352011-11-02 Stan Shebs <stan@codesourcery.com>
15436
15437 * tracepoint.c (agent_mem_read_string): New function.
15438 (eval_agent_expr): Call it for tracenz.
15439 * server.c (handle_query): Report support for tracenz.
15440
fd0d8c7c
YQ
154412011-11-02 Yao Qi <yao@codesourcery.com>
15442
15443 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15444
609086b1
YQ
154452011-11-02 Yao Qi <yao@codesourcery.com>
15446
15447 * target.h: Fix a typo in comment.
15448
b9fd1791
PA
154492011-10-31 Pedro Alves <pedro@codesourcery.com>
15450
15451 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15452 clobber the breakpoints' shadows with fast tracepoint jumps.
15453 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15454 * target.c (write_inferior_memory): Also pass MYADDR down to
15455 check_mem_write.
15456
03583c20
UW
154572011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15458
15459 * configure.ac: Check support for personality routine.
15460 * configure: Regenerate.
15461 * config.in: Likewise.
15462 * linux-low.c: Include <sys/personality.h>.
15463 Define ADDR_NO_RANDOMIZE if necessary.
15464 (linux_create_inferior): Disable address space randomization when
15465 forking inferior, if requested.
15466 (linux_supports_disable_randomization): New function.
15467 (linux_target_ops): Install it.
15468 * server.h (disable_randomization): Declare.
15469 * server.c (disable_randomization): New global variable.
15470 (handle_general_set): Handle QDisableRandomization.
15471 (handle_query): Likewise for qSupported.
15472 (main): Support --disable-randomization and --no-disable-randomization
15473 command line arguments.
15474 * target.h (struct target_ops): Add supports_disable_randomization.
15475 (target_supports_disable_randomization): New macro.
15476
723b724b
MF
154772011-09-29 Mike Frysinger <vapier@gentoo.org>
15478
15479 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15480 ifdef check.
15481 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15482 [!PT_GETDSBT] (target_loadmap): New definition.
15483 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15484 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15485 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15486 and PT_GETDSBT to LINUX_LOADMAP.
15487 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15488 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15489
55329a5c 154902011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
15491
15492 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
15493 (arm_linux_hwbp_cap): New static variable.
15494 (arm_linux_get_hwbp_cap): Replace by ...
15495 (arm_linux_init_hwbp_cap): ... this new function.
15496 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
15497 (arm_linux_get_hw_watchpoint_count): Likewise.
15498 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15499 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
15500 (arm_prepare_to_resume): Use perror_with_name instead of error.
15501
55329a5c 155022011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
15503
15504 * linux-arm-low.c: Include <signal.h>.
15505 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
15506 (struct arm_linux_hwbp_cap): New data type.
15507 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
15508 (struct arm_linux_hw_breakpoint): New data type.
15509 (MAX_BPTS, MAX_WPTS): Define.
15510 (struct arch_process_info, struct arch_lwp_info): New data types.
15511 (arm_linux_get_hwbp_cap): New function.
15512 (arm_linux_get_hw_breakpoint_count): Likewise.
15513 (arm_linux_get_hw_watchpoint_count): Likewise.
15514 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15515 (arm_hwbp_control_initialize): Likewise.
15516 (arm_hwbp_control_is_enabled): Likewise.
15517 (arm_hwbp_control_is_initialized): Likewise.
15518 (arm_hwbp_control_disable): Likewise.
15519 (arm_linux_hw_breakpoint_equal): Likewise.
15520 (arm_linux_hw_point_initialize): Likewise.
15521 (struct update_registers_data): New data structure.
15522 (update_registers_callback: New function.
15523 (arm_insert_point): Likewise.
15524 (arm_remove_point): Likewise.
15525 (arm_stopped_by_watchpoint): Likewise.
15526 (arm_stopped_data_address): Likewise.
15527 (arm_new_process): Likewise.
15528 (arm_new_thread): Likewise.
15529 (arm_prepare_to_resume): Likewise.
15530 (the_low_target): Register arm_insert_point, arm_remove_point,
15531 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
15532 arm_new_thread, and arm_prepare_to_resume.
15533
6b9801d4
SS
155342011-09-15 Stan Shebs <stan@codesourcery.com>
15535
15536 * server.h (struct emit_ops): Add compare-goto fields.
15537 * tracepoint.c (gdb_agent_op_sizes): New table.
15538 (emit_eq_goto): New function.
15539 (emit_ne_goto): New function.
15540 (emit_lt_goto): New function.
15541 (emit_le_goto): New function.
15542 (emit_gt_goto): New function.
15543 (emit_ge_goto): New function.
15544 (is_goto_target): New function.
15545 (compile_bytecodes): Recognize special cases of compare-goto
15546 combinations and call specialized emitters for them.
15547 * linux-x86-low.c (amd64_emit_eq_goto): New function.
15548 (amd64_emit_ne_goto): New function.
15549 (amd64_emit_lt_goto): New function.
15550 (amd64_emit_le_goto): New function.
15551 (amd64_emit_gt_goto): New function.
15552 (amd64_emit_ge_goto): New function.
15553 (amd64_emit_ops): Add the new functions.
15554 (i386_emit_eq_goto): New function.
15555 (i386_emit_ne_goto): New function.
15556 (i386_emit_lt_goto): New function.
15557 (i386_emit_le_goto): New function.
15558 (i386_emit_gt_goto): New function.
15559 (i386_emit_ge_goto): New function.
15560 (i386_emit_ops): Add the new functions.
15561
bf15cbda
SS
155622011-09-08 Stan Shebs <stan@codesourcery.com>
15563
15564 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
15565 (i386_emit_epilogue): Restore %ebx.
15566
943ca1dd
JZ
155672011-08-31 Jie Zhang <jzhang918@gmail.com>
15568
15569 * server.c (step_thread): Remove definition.
15570 (process_serial_event): Don't handle Hs.
15571 * server.h (step_thread): Remove declaration.
15572 * target.c (set_desired_inferior): Remove use of step_thread.
15573
e3deef73
LM
155742011-08-24 Luis Machado <lgustavo@codesourcery.com>
15575
15576 * linux-low.c: Include linux-procfs.h.
15577 (linux_attach_lwp_1): Update comments.
15578 (linux_attach): Scan for existing threads when attaching to a
15579 process that is the tgid.
15580 * Makefile.in: Update dependencies.
15581
13da1c97
LM
155822011-08-24 Luis Machado <lgustavo@codesourcery.com>
15583
15584 * configure.srv: Add linux-procfs.o dependencies.
15585
881127c9
YQ
155862011-08-14 Yao Qi <yao@codesourcery.com>
15587
15588 * target.h (struct target_ops): Fix indent.
15589 * win32-low.c (win32_target_ops): Fix comment.
15590
58dbd541
YQ
155912011-08-14 Andrew Jenner <andrew@codesourcery.com>
15592 Yao Qi <yao@codesourcery.com>
15593
15594 * Makefile.in (clean): Remove tic6x-*.c files.
15595 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
15596 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
15597 (tic6x-c64xp-linux.c): Likewise.
15598 * configure.srv: Add support for tic6x-*-uclinux.
15599 * linux-tic6x-low.c: New.
15600 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
15601
78d85199
YQ
156022011-08-14 Andrew Stubbs <ams@codesourcery.com>
15603 Yao Qi <yao@codesourcery.com>
15604
15605 * target.h (struct target_ops): Add read_loadmap.
15606 * linux-low.c (struct target_loadseg): New type.
15607 (struct target_loadmap): New type.
15608 (linux_read_loadmap): New function.
15609 (linux_target_ops): Add linux_read_loadmap.
15610 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
15611 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
15612 to NULL.
78d85199 15613
a959a88d
EZ
156142011-08-05 Eli Zaretskii <eliz@gnu.org>
15615
15616 * win32-low.c: Include <stdint.h>.
15617
1ced966e
PA
156182011-07-22 Pedro Alves <pedro@codesourcery.com>
15619
15620 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
15621 to the inferior here.
15622 (i386_remove_aligned_watchpoint): Ditto.
15623 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
15624 fit part of the watchpoint in the debug registers.
15625 (i386_update_inferior_debug_regs): New.
15626 (i386_low_insert_watchpoint): Work on a local mirror of the debug
15627 registers, and only update the inferior on success.
15628 (i386_low_remove_watchpoint): Ditto.
15629
d26e3629
KY
156302011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
15631
15632 * linux-low.c (compare_ints, unique, list_threads, show_process,
15633 linux_core_of_thread): Delete.
15634 (linux_target_ops): Change linux_core_of_thread to
15635 linux_common_core_of_thread.
15636 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
15637 * utils.c (malloc_failure): Change type of argument.
15638 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
15639 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
15640 common/linux-osdata.c, common/ptid.c and common/buffer.c.
15641 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
15642 (IPA_OBJS): Add common-utils-ipa.o.
15643 (ptid_h, linux_osdata_h): New macros.
15644 (server_h): Add common/common-utils.h, common/xml-utils.h,
15645 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
15646 common/ptid.h.
15647 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
15648 ptid.o, buffer.o): New rules.
15649 (linux-low.o): Add common/linux-osdata.h as a dependency.
15650 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
15651 * configure.ac: Add AC_HEADER_DIRENT check.
15652 * config.in: Regenerate.
15653 * configure: Regenerate.
15654 * remote-utils.c (xml_escape_text): Delete.
15655 (buffer_grow, buffer_free, buffer_init, buffer_finish,
15656 buffer_xml_printf): Move to common/buffer.c.
15657 * server.c (main): Remove call to initialize_inferiors.
15658 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
15659 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
15660 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
15661 internal_error, gdb_assert, gdb_assert_fail): Delete.
15662 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
15663 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
15664 common/buffer.h.
15665 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
15666 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
15667 initialize_inferiors): Delete.
15668
2275a1a7
PA
156692011-07-20 Pedro Alves <pedro@codesourcery.com>
15670
15671 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
15672 symbol error.
15673
0a5b1e09
PA
156742011-05-31 Pedro Alves <pedro@codesourcery.com>
15675
15676 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
15677 assertion.
15678 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
15679
6938fd34
YQ
156802011-05-26 Yao Qi <yao@codesourcery.com>
15681
15682 * Makefile.in (thread-db.o): Track dependence to
15683 common/gdb_thread_db.h.
15684 * thread-db.c: include gdb_thread_db.h from right place.
15685
b481f9e0
TT
156862011-05-16 Adrian Cornish <gnu@bluedreamer.com>
15687
15688 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
15689 __FILE__ and __LINE__ to internal_error.
15690
98a5dd13
DE
156912011-05-13 Doug Evans <dje@google.com>
15692
15693 * thread-db.c (try_thread_db_load_from_sdir): New function.
15694 (try_thread_db_load_from_dir): New function.
15695 (thread_db_load_search): Handle $sdir, ignore $pdir.
15696 Remove trying of system directories if search of
15697 libthread-db-search-path fails, that is now done via $sdir.
15698
d248b706
KY
156992011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
15700
15701 * server.c (handle_query): Add EnableDisableTracepoints to the list
15702 of supported features.
43aaf8b6 15703 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 15704 tracepoints.
43aaf8b6
PA
15705 (cmd_qtenable_disable): New.
15706 (cmd_qtstart): Install tracepoints even if disabled.
15707 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
15708 receiving a QTEnable or QTDisable packet.
15709 (gdb_collect): Skip data collection if fast tracepoint is disabled.
15710 (ust_marker_to_static_tracepoint): Do not ignore disabled static
15711 tracepoints.
15712 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 15713
84e578fb
DE
157142011-05-10 Doug Evans <dje@google.com>
15715
15716 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
15717
71f55dd8
DE
157182011-05-04 Doug Evans <dje@google.com>
15719
15720 * linux-low.c (linux_join): Skip process lookup.
15721 * spu-low.c (spu_join): Ditto.
15722 * server.c (join_inferiors_callback): Delete.
15723 (process_serial_event): For 'D' packet (detach) call join_inferior
15724 directly.
15725
4d393d60
JM
157262011-05-04 Joseph Myers <joseph@codesourcery.com>
15727
15728 * README: Don't mention xscale*-*-linux*.
15729 * configure.srv (xscale*-*-linux*): Don't handle target.
15730
b00ad6ff
NF
157312011-04-27 Nathan Froyd <froydnj@codesourcery.com>
15732
15733 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
15734 casting pointers.
15735 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
15736 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
15737 (i386_emit_void_call_2): Likewise.
15738
af96c192
YQ
157392011-04-26 Yao Qi <yao@codesourcery.com>
15740
43aaf8b6
PA
15741 * linux-low.c: Move common macros to linux-ptrace.h.
15742 Include linux-ptrace.h.
af96c192
YQ
15743 * Makefile.in (linux_ptrace_h): New.
15744 (linux-low.o): Depends on linux-ptrace.h.
15745
03f2bd59
JK
157462011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
15747
15748 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
15749 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
15750 (remote_prepare): New function with most of the TCP code from ...
15751 (remote_open): ... here. Detect PORT here unconditionally. Move also
15752 setting transport_is_reliable.
15753 * server.c (run_once): New variable.
15754 (gdbserver_usage): Document it.
15755 (main): Set run_once for `--once'. Call remote_prepare. Exit after
15756 the first run if RUN_ONCE.
15757 * server.h (run_once, remote_prepare): New declarations.
15758
7a9dd1b2
TT
157592011-04-19 Tom Tromey <tromey@redhat.com>
15760
15761 * win32-low.c (handle_load_dll): Remove duplicate "the".
15762
81239425
PM
157632011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
15764
15765 Remove support for old Cygwin 1.5 versions.
15766 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
15767 function to avoid warning.
15768 (win32_add_one_solib): Use cygwin_conv_path function to avoid
15769 warning.
15770
9e0627f1
PM
157712011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
15772
15773 * gdbserver/server.h (Macro _): Define it if not available.
15774
588eebee
MS
157752011-03-14 Michael Snyder <msnyder@vmware.com>
15776
348af9f7 15777 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 15778
43f70d4c
JB
157792011-03-10 Joel Brobecker <brobecker@adacore.com>
15780
15781 * Makefile.in (maintainer-clean realclean distclean): Remove
15782 "make ... subdir_do" command.
15783
348af9f7
MS
157842011-03-10 Michael Snyder <msnyder@vmware.com>
15785
15786 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
15787
15788 * server.c (handle_v_run): Free alloced buffer on early return.
15789
e637a4f5
YQ
157902011-03-09 Yao Qi <yao@codesourcery.com>
15791
15792 Revert:
15793 2011-03-04 Yao Qi <yao@codesourcery.com>
15794
15795 * Makefile.in: Remove GNU make feature --directory.
15796
15797 2011-03-05 Yao Qi <yao@codesourcery.com>
15798
15799 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
15800 (subdir_do): New make target. Copied from gdb/Makefile.
15801 (maintainer-clean, realclean, distclean, clean): Call corresponding
15802 make targets in common/Makefile.
15803
15804 2011-02-11 Yao Qi <yao@codesourcery.com>
15805
15806 * configure.ac: Call AC_PROG_RANLIB.
15807 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
15808 * configure: Regenerate.
15809
e6edda56
JK
158102011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15811
15812 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
15813
e5141119
JB
158142011-03-06 Yao Qi <yao@codesourcery.com>
15815
15816 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
15817
64794aa4
JB
158182011-03-05 Yao Qi <yao@codesourcery.com>
15819
15820 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
15821 (subdir_do): New make target. Copied from gdb/Makefile.
15822 (maintainer-clean, realclean, distclean, clean): Call corresponding
15823 make targets in common/Makefile.
15824
7a762829
YQ
158252011-03-04 Yao Qi <yao@codesourcery.com>
15826
15827 * Makefile.in: Remove GNU make feature --directory.
15828
348af9f7
MS
158292011-03-04 Michael Snyder <msnyder@vmware.com>
15830
15831 * server.c (queue_stop_reply): Call xmalloc not malloc.
15832
158332011-03-02 Michael Snyder <msnyder@vmware.com>
15834
15835 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
15836
9f72fee2
MS
158372011-02-28 Michael Snyder <msnyder@vmware.com>
15838
588eebee
MS
15839 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
15840 (cmd_qtframe): Ditto.
15841 (cmd_qtbuffer): Ditto.
15842 (cmd_bigqtbuffer): Ditto.
15843
9f72fee2
MS
15844 * utils.c (decimal2str): Initialize 'width' to nine, then
15845 don't mess with it.
15846
8040bd49
UW
158472011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15848
15849 * hostio.c (require_data): Free *data, not data.
15850
7e52cbd0
JK
158512011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15852
15853 * hostio.c (require_data): Use free, not xfree.
15854
9130f83e
MS
158552011-02-27 Michael Snyder <msnyder@vmware.com>
15856
4b812f4e
MS
15857 * server.c (handle_query): Discard unused value.
15858
9130f83e
MS
15859 * hostio.c (require_data): Free malloc memory before returning
15860 error.
15861
69d37113
MS
158622011-02-26 Michael Snyder <msnyder@vmware.com>
15863
15864 * linux-low.c (list_threads): Call closedir for dirent.
15865
35f5825a
MS
158662011-02-27 Michael Snyder <msnyder@vmware.com>
15867
2a589cef
MS
15868 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
15869 a case statement falls through.
15870
0adea5f7
MS
15871 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
15872
35f5825a
MS
15873 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
15874 in comparison.
15875
238f1c74
MS
158762011-02-26 Michael Snyder <msnyder@vmware.com>
15877
15878 * utils.c (decimal2str): Eliminate dead code and dead param.
15879 (pulongest): Drop dead param from call to decimal2str.
15880 (plongest): Ditto.
15881
633ff500
JB
158822011-02-24 Joel Brobecker <brobecker@adacore.com>
15883
15884 Revert the following patch (not approved yet):
15885 2011-02-21 Hui Zhu <teawater@gmail.com>
15886 * tracepoint.c (tp_printf): New function.
15887 (eval_agent_expr): Handle gdb_agent_op_printf.
15888
f9c6ff72
HZ
158892011-02-21 Hui Zhu <teawater@gmail.com>
15890
15891 * tracepoint.c (tp_printf): New function.
15892 (eval_agent_expr): Handle gdb_agent_op_printf.
15893
94d5e490
TT
158942011-02-18 Tom Tromey <tromey@redhat.com>
15895
15896 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
15897 (tracepoint.o): Likewise.
15898 * tracepoint.c (enum gdb_agent_op): Use ax.def.
15899 (gdb_agent_op_names): Likewise.
15900
c7f96d2b
TT
159012011-02-18 Tom Tromey <tromey@redhat.com>
15902
15903 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
15904 gdb_agent_op_rot>: New constants.
15905 (gdb_agent_op_names): Add pick and roll.
15906 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
15907 cases.
15908
0feedb2c
JK
159092011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
15910
15911 * aclocal.m4: Regenerated with aclocal-1.11.1.
15912
b3b9301e
PA
159132011-02-14 Pedro Alves <pedro@codesourcery.com>
15914
15915 * server.c (handle_qxfer_traceframe_info): New.
15916 (qxfer_packets): Register "traceframe-info".
15917 (handle_query): Report support for qXfer:traceframe-info:read+.
15918 * tracepoint.c (match_blocktype): New.
15919 (traceframe_find_block_type): Rename to ...
15920 (traceframe_walk_blocks): ... this. Add callback filter argument,
15921 and use it.
15922 (traceframe_find_block_type): New, reimplemented on top of
15923 traceframe_walk_blocks.
15924 (build_traceframe_info_xml): New.
15925 (traceframe_read_info): New.
15926 * server.h (traceframe_read_info): Declare.
15927
4f3e6fb7
YQ
159282011-02-11 Yao Qi <yao@codesourcery.com>
15929
15930 * configure.ac: Call AC_PROG_RANLIB.
15931 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
15932 * configure: Regenerate.
15933
764880b7
PA
159342011-02-07 Pedro Alves <pedro@codesourcery.com>
15935
15936 * server.c (gdb_read_memory): Change return semantics to allow
15937 partial transfers.
15938 (handle_search_memory_1): Adjust.
15939 (process_serial_event) <'m' packet>: Handle partial transfers.
15940 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
15941
1c79eb8a
PA
159422011-01-28 Pedro Alves <pedro@codesourcery.com>
15943
15944 * regcache.c (init_register_cache): Initialize
15945 regcache->register_status.
15946 (free_register_cache): Release regcache->register_status.
15947 (regcache_cpy): Copy register_status.
15948 (registers_to_string): Print 'x's for unavailable registers.
15949 (supply_register): Mark the register's status valid or
15950 unavailable, depending on whether a buffer was passed in or not.
15951 (supply_register_zeroed): New.
15952 (supply_regblock): Mark the registers' status valid or
15953 unavailable, depending on whether a buffer was passed in or not.
15954 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
15955 (struct regcache): New `register_status' field.
15956 (supply_register_zeroed): Declare.
15957 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
15958 supply_register_zeroed, rather than passing a NULL buffer to
15959 supply_register.
15960 * tracepoint.c (fetch_traceframe_registers): Update comment.
15961
85724a0e
PA
159622011-01-28 Pedro Alves <pedro@codesourcery.com>
15963
15964 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
15965 buffer explicit.
15966
d08aafef
PA
159672011-01-25 Pedro Alves <pedro@codesourcery.com>
15968
15969 * server.h (decode_xfer_write): Change prototype.
15970 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
15971 and don't extract the annex here.
15972 * server.c (decode_xfer_read): Remove `annex' parameter,
15973 and don't extract the annex here.
15974 (decode_xfer): New.
15975 (struct qxfer): New.
15976 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
15977 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
15978 (handle_qxfer_statictrace): New functions, abstracted out from
15979 handle_query, and made to use the struct qxfer interface.
15980 (handle_threads_qxfer_proper): Rename to ...
15981 (handle_qxfer_threads_proper): ... this.
15982 (handle_threads_qxfer): Rename to ...
15983 (handle_qxfer_threads): ... this. Adjust.
15984 (qxfer_packets): New array.
15985 (handle_qxfer): New function.
15986 (handle_query): Use handle_qxfer.
15987
493e2a69
MS
159882011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
15989
15990 * gdbreplay.c: Shorten lines of >= 80 columns.
15991 * linux-low.c: Ditto.
15992 * linux-ppc-low.c: Ditto.
15993 * linux-s390-low.c: Ditto.
15994 * linux-sparc-low.c: Ditto.
15995 * linux-x86-low.c: Ditto.
15996 * linux-xtensa-low.c: Ditto.
15997 * mem-break.c: Ditto.
15998 * nto-low.c: Ditto.
15999 * regcache.h: Ditto.
16000 * remote-utils.c: Ditto.
16001 * server.c: Ditto.
16002 * server.h: Ditto.
16003 * thread-db.c: Ditto.
16004 * tracepoint.c: Ditto.
16005 * utils.c: Ditto.
16006 * win32-low.h: Ditto.
16007
44944448
JB
160082011-01-05 Joel Brobecker <brobecker@adacore.com>
16009
16010 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16011 update.
16012
71ce852c
JB
160132011-01-01 Joel Brobecker <brobecker@adacore.com>
16014
16015 * server.c (gdbserver_version): Update copyright year in version
16016 output.
16017 * gdbreplay.c (gdbreplay_version): Ditto.
16018
eb826dc6
MF
160192010-12-29 Jie Zhang <jie.zhang@analog.com>
16020
16021 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16022 * linux-bfin-low.c: New file.
16023 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16024 PT_DATA_ADDR for BFIN targets.
16025 * Makefile.in (SFILES): Add linux-bfin-low.c.
16026 (clean): Remove reg-bfin.c.
16027 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16028 * README: Mention supported Blackfin targets.
16029
39ab222a
MF
160302010-12-23 Mike Frysinger <vapier@gentoo.org>
16031
16032 * .gitignore: New file.
16033
a1f2ce7d
MF
160342010-11-16 Mike Frysinger <vapier@gentoo.org>
16035
16036 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16037
f474844c
JZ
160382010-10-22 Jie Zhang <jie@codesourcery.com>
16039
16040 * Makefile.in: Add FLAGS_TO_PASS variable.
16041 (install): Remove dependency of install-only and recursively
16042 invoke make for install-only.
16043
f1048712
DE
160442010-10-04 Doug Evans <dje@google.com>
16045
16046 * Makefile.in (uninstall): Use $(DESTDIR).
16047
b53a1623
PA
160482010-09-24 Pedro Alves <pedro@codesourcery.com>
16049
e6ee044d
PA
16050 PR gdb/11842
16051
b53a1623
PA
16052 * linux-x86-low.c (compat_siginfo_from_siginfo)
16053 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16054 si_code is < 0. Check for si_code == SI_TIMER before checking for
16055 si_code < 0.
16056
fa1bd1e4
JB
160572010-09-13 Joel Brobecker <brobecker@adacore.com>
16058
16059 * lynx-i386-low.c: New file.
16060 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16061
47fac8f8
JB
160622010-09-13 Joel Brobecker <brobecker@adacore.com>
16063
16064 * lynx-low.c (ptrace_request_to_str): Remove handling for
16065 request values that have been removed in LynxOS 5.x.
16066
1adfc54d
JB
160672010-09-13 Joel Brobecker <brobecker@adacore.com>
16068
16069 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16070 <ptrace.h>
16071
c2a66c29
NS
160722010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16073
16074 * configure.ac: Add --enable-inprocess-agent option.
16075 * configure: Rebuilt.
16076
32fcada3
YQ
160772010-09-06 Yao Qi <yao@codesourcery.com>
16078
16079 * linux-low.c (linux_kill): Remove unused variable.
16080 (linux_stabilize_threads): Likewise.
16081 * server.c (start_inferior): Likewise.
16082 (queue_stop_reply_callback): Likewise.
16083 * tracepoint.c (do_action_at_tracepoint): Likewise.
16084
0cccb683
YQ
160852010-09-06 Yao Qi <yao@codesourcery.com>
16086
16087 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16088 on return.
16089
423ec54c
JK
160902010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16091
16092 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16093
12ac6819
PA
160942010-09-06 Pedro Alves <pedro@codesourcery.com>
16095
16096 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16097 "$(IPA_DEPFILES)".
16098
8ed54b31
JB
160992010-09-01 Joel Brobecker <brobecker@adacore.com>
16100
16101 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16102 gdbserver/lynx-ppc-low.c: New files.
16103 * Makefile.in (lynx_low_h): New variable.
16104 (lynx-low.o, lynx-ppc-low.o): New rules.
16105 * configure.ac: On LynxOS, link with -lnetinet.
16106 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16107 * configure: regenerate.
16108
bb0116a4
JB
161092010-09-01 Joel Brobecker <brobecker@adacore.com>
16110
16111 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16112 * configure.ac: Add check for vasprintf and vsnprintf.
16113 * configure, config.in: Regenerate.
16114 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16115
a778ab81 161162010-09-01 Joel Brobecker <brobecker@adacore.com>
16117
16118 * gdbreplay.c: Move include of alloca.h up, next to include of
16119 malloc.h.
16120 * server.h: Add include of malloc.h.
16121 * mem-break.c: Remove include of malloc.h.
16122 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16123
8b034a19 161242010-09-01 Joel Brobecker <brobecker@adacore.com>
16125
16126 * Makefile.in (memmem.o): Build with -Wno-error.
16127
161282010-09-01 Joel Brobecker <brobecker@adacore.com>
16129
16130 * utils.c (xsnprintf): Make non-static.
16131 * server.h: Add xsnprintf declaration.
16132 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16133 replace calls to snprintf by calls to xsnprintf throughout.
16134
161352010-09-01 Joel Brobecker <brobecker@adacore.com>
16136
16137 * configure.ac: Add configure check for alloca.
16138 * configure, config.in: Regenerate.
16139 * server.h: Include alloca.h if it exists.
16140 * gdbreplay.c: Include alloca.h if it exists.
16141
1a981360
PA
161422010-08-28 Pedro Alves <pedro@codesourcery.com>
16143
16144 * linux-low.c (__SIGRTMIN): Define if not already defined.
16145 (linux_create_inferior): Check for __ANDROID__ rather than
16146 __SIGRTMIN.
16147 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16148 are already deferred.
16149 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16150 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16151 stopped and already has a pending signal to report.
16152 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16153 a pending signal to report or is moving out of a jump pad.
16154 (linux_init_signals): Check for __ANDROID__ rather than
16155 __SIGRTMIN.
16156
b4d51a55
PA
161572010-08-28 Pedro Alves <pedro@codesourcery.com>
16158
16159 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16160 debug_threads check. Avoid a linear search when not doing debug
16161 output.
16162
ec48365d
PA
161632010-08-27 Pedro Alves <pedro@codesourcery.com>
16164
16165 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16166 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16167 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16168 (process_event): Change local fd's type to gdb_fildes_t.
16169 (create_file_handler): Adjust prototype.
16170 (delete_file_handler): Adjust prototype.
16171 (handle_file_event): Adjust prototype. Use pfildes.
16172 (create_file_event): Adjsut prototype.
16173 * remote-utils.c (remote_desc, listen_desc): Change type to
16174 gdb_fildes_t.
16175 * server.h: New gdb_fildes_t typedef.
16176 [USE_WIN32API]: Include winsock2.h.
16177 (delete_file_handler, add_file_handler): Adjust prototypes.
16178 (pfildes): Declare.
16179 * utils.c (pfildes): New.
16180
854d88f0
PA
161812010-08-27 Pedro Alves <pedro@codesourcery.com>
16182
16183 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16184 * configure: Regenerate.
16185
0146f85b
PA
161862010-08-27 Pedro Alves <pedro@codesourcery.com>
16187
16188 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16189 (linux_done_accessing_memory): ... this.
16190 (linux_target_ops): Adjust.
16191 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16192 * nto-low.c (nto_target_ops): Adjust comment.
16193 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16194 * spu-low.c (spu_target_ops): Adjust comment.
16195 * target.h (target_ops): Rename unprepare_to_access_memory field
16196 to done_accessing_memory.
16197 (unprepare_to_access_memory): Rename to ...
16198 (done_accessing_memory): ... this.
16199
90d74c30
PA
162002010-08-26 Pedro Alves <pedro@codesourcery.com>
16201
16202 * linux-low.c (linux_prepare_to_access_memory): New.
16203 (linux_unprepare_to_access_memory): New.
16204 (linux_target_ops): Install them.
16205 * server.c (read_memory): Rename to ...
16206 (gdb_read_memory): ... this. Use
16207 prepare_to_access_memory/prepare_to_access_memory.
16208 (write_memory): Rename to ...
16209 (gdb_write_memory): ... this. Use
16210 prepare_to_access_memory/prepare_to_access_memory.
16211 (handle_search_memory_1): Adjust.
16212 (process_serial_event): Adjust.
16213 * target.h (struct target_ops): New fields
16214 prepare_to_access_memory and unprepare_to_access_memory.
16215 (prepare_to_access_memory, unprepare_to_access_memory): New.
16216 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16217 prepare_to_access_memory/prepare_to_access_memory.
16218 * nto-low.c (nto_target_ops): Adjust.
16219 * spu-low.c (spu_target_ops): Adjust.
16220 * win32-low.c (win32_target_ops): Adjust.
16221
fd467969
PA
162222010-08-26 Pedro Alves <pedro@codesourcery.com>
16223
16224 * Makefile.in (WARN_CFLAGS): Get it from configure.
16225 (WERROR_CFLAGS): New.
16226 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16227 * configure.ac: Introduce --enable-werror, which adds -Werror to
16228 the compiler command line. Enabled by default. Disable with
16229 --disable-werror. Add -Wdeclaration-after-statement
16230 Wpointer-arith and -Wformat-nonliteral to warning flags.
16231 * configure: Regenerate.
16232
331e2f5f
PA
162332010-08-26 Pedro Alves <pedro@codesourcery.com>
16234
16235 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16236
e581f2b4
PA
162372010-08-26 Pedro Alves <pedro@codesourcery.com>
16238
16239 * gdbreplay.c (remote_error): New.
16240 (gdbchar): New.
16241 (expect): Use gdbchar. Check for error reading from GDB.
16242 Clarify sync error output.
16243 (play): Check for errors writing to GDB.
16244 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16245 * remote-utils.c (getpkt): Check for errors writing to the remote
16246 descriptor.
16247
3c11dd79
PA
162482010-08-25 Pedro Alves <pedro@codesourcery.com>
16249
16250 * linux-low.c (linux_wait_1): Move non-debugging code out of
16251 `debug_threads' control.
16252
d20a8ad9
PA
162532010-08-25 Pedro Alves <pedro@codesourcery.com>
16254
16255 * linux-low.c (linux_wait_1): Don't set last_status here.
16256 * server.c (push_event, queue_stop_reply_callback): Assert we're
16257 not pushing a TARGET_WAITKIND_IGNORE event.
16258 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16259 (myresume, handle_target_event): Set the thread's last_resume_kind
16260 and last_status from the target returned status.
16261
964e4306
PA
162622010-08-25 Pedro Alves <pedro@codesourcery.com>
16263
16264 PR threads/10729
16265
16266 * linux-x86-low.c (update_debug_registers_callback): New.
16267 (i386_dr_low_set_addr): Use it.
16268 (i386_dr_low_get_addr): New.
16269 (i386_dr_low_set_control): Use update_debug_registers_callback.
16270 (i386_dr_low_get_control): New.
16271 (i386_dr_low_get_status): Adjust.
16272 * linux-low.c (linux_stop_lwp): New.
16273 * linux-low.h (linux_stop_lwp): Declare.
16274
16275 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16276 argument instead of a i386_debug_reg_state.
16277 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16278 a i386_debug_reg_state.
16279 (i386_insert_aligned_watchpoint): Adjust.
16280 (i386_remove_aligned_watchpoint): Adjust.
16281 (i386_low_stopped_data_address): Read the debug registers from the
16282 inferior instead of from the mirrors.
16283 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16284 (i386_dr_low_get_addr): Declare.
16285 (i386_dr_low_get_control): Declare.
16286 (i386_dr_low_get_status): Change prototype.
16287
16288 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16289 (i386_dr_low_get_addr): New.
16290 (i386_dr_low_get_control): New.
16291 (i386_dr_low_get_status): Adjust prototype. Return
16292 dr_status_mirror.
16293 (i386_initial_stuff): Clear dr_status_mirror and
16294 dr_control_mirror.
16295 (i386_get_thread_context): Adjust.
16296 (i386_set_thread_context): Adjust.
16297 (i386_thread_added): Adjust.
16298
5f21a75b
PA
162992010-08-24 Pedro Alves <pedro@codesourcery.com>
16300
16301 * linux-low.h (linux_thread_area): Delete declaration.
16302
3e4c1235
TS
163032010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16304
16305 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16306 after its termination.
16307
1971b033
PA
163082010-08-09 Pedro Alves <pedro@codesourcery.com>
16309
16310 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16311 (gdb_wants_all_stopped): Delete.
16312 (linux_wait_1): Don't call them.
16313 * server.c (handle_v_cont): Tag all threads as want-stopped.
16314 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16315 stopped as "client-wants-stopped".
16316
310444ac
PA
163172010-07-31 Pedro Alves <pedro@codesourcery.com>
16318
16319 * Makefile.in (signals_h): New.
16320 (server_h): Depend on it.
16321 (server.o): Don't depend on $(signals_def).
16322 (signals.o): Depend on $(signals_def).
16323
a19cae16
JK
163242010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16325
16326 * Makefile.in (signals_def): New.
16327 (server_h): Append include/gdb/signals.h and signals_def.
16328 (server.o): Append signals_def.
16329
30d50328
JK
163302010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16331
16332 * server.c (handle_target_event): Use target_signal_to_host for
16333 resume_info.sig initialization.
16334 * target.h (struct thread_resume) <sig>: New comment.
16335
5c3216e2
OS
163362010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16337
c6f46ca0
OS
16338 * server.c (handle_query): strcpy() the returned string from paddress()
16339 instead of sprintf().
5c3216e2
OS
16340 * utils.c (paddress): Return phex_nz().
16341
6bd31874
JB
163422010-07-07 Joel Brobecker <brobecker@adacore.com>
16343
16344 * server.c (handle_v_cont): Call mourn_inferior if process
16345 just exited.
16346 (myresume): Likewise.
16347
0fb4aa4b
PA
163482010-07-01 Pedro Alves <pedro@codesourcery.com>
16349
16350 Static tracepoints, and integration with UST.
16351
16352 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16353 * mem-break.c (uninsert_all_breakpoints)
16354 (reinsert_all_breakpoints): New.
16355 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16356 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16357 (gdb_agent_ust_loaded, helper_thread_id)
16358 (gdb_agent_helper_thread_id): New macros.
16359 (struct ipa_sym_addresses): Add addr_ust_loaded,
16360 addr_helper_thread_id, addr_cmd_buf.
16361 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16362 (in_process_agent_loaded_ust): New.
16363 (write_e_ust_not_loaded): New.
16364 (maybe_write_ipa_ust_not_loaded): New.
16365 (struct collect_static_trace_data_action): New.
16366 (enum tracepoint_type) <static_tracepoint>: New.
16367 (struct tracepoint) <handle>: Mention static tracepoints.
16368 (struct static_tracepoint_ctx): New.
16369 (CMD_BUF_SIZE): New.
16370 (add_tracepoint_action): Handle static tracepoint actions.
16371 (unprobe_marker_at): New.
16372 (clear_installed_tracepoints): Handle static tracepoints.
16373 (cmd_qtdp): Handle static tracepoints.
16374 (probe_marker_at): New.
16375 (cmd_qtstart): Handle static tracepoints.
16376 (response_tracepoint): Handle static tracepoints.
16377 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16378 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16379 (get_context_regcache): Handle static tracepoints.
16380 (do_action_at_tracepoint): Handle static tracepoint actions.
16381 (traceframe_find_block_type): Handle static trace data blocks.
16382 (traceframe_read_sdata): New.
16383 (download_tracepoints): Download static tracepoint actions.
16384 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16385 (GDB_PROBE_NAME): New.
16386 (ust_ops): New.
16387 (GET_UST_SYM): New.
16388 (USTF): New.
16389 (dlsym_ust): New.
16390 (ust_marker_to_static_tracepoint): New.
16391 (gdb_probe): New.
16392 (collect_ust_data_at_tracepoint): New.
16393 (gdb_ust_probe): New.
16394 (UNIX_PATH_MAX, SOCK_DIR): New.
16395 (gdb_ust_connect_sync_socket): New.
16396 (resume_thread, stop_thread): New.
16397 (run_inferior_command): New.
16398 (init_named_socket): New.
16399 (gdb_ust_socket_init): New.
16400 (cstr_to_hexstr): New.
16401 (next_st): New.
16402 (first_marker, next_marker): New.
16403 (response_ust_marker): New.
16404 (cmd_qtfstm, cmd_qtsstm): New.
16405 (unprobe_marker_at, probe_marker_at): New.
16406 (cmd_qtstmat, gdb_ust_thread): New.
16407 (gdb_ust_init): New.
16408 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16409 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16410 (ST_REGENTRY): New.
16411 (x86_64_st_collect_regmap): New.
16412 (X86_64_NUM_ST_COLLECT_GREGS): New.
16413 (AMD64_RIP_REGNUM): New.
16414 (supply_static_tracepoint_registers): New.
16415 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16416 (ST_REGENTRY): New.
16417 (i386_st_collect_regmap): New.
16418 (i386_NUM_ST_COLLECT_GREGS): New.
16419 (supply_static_tracepoint_registers): New.
16420 * server.c (handle_query): Handle qXfer:statictrace:read.
16421 <qSupported>: Report support for StaticTracepoints, and
16422 qXfer:statictrace:read features.
16423 * server.h (traceframe_read_sdata)
16424 (supply_static_tracepoint_registers): Declare.
16425 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16426 (unpack_varlen_hex): Include in IPA build.
16427 * Makefile.in (ustlibs, ustinc): New.
16428 (IPA_OBJS): Add remote-utils-ipa.o.
16429 ($(IPA_LIB)): Link -ldl and -lpthread.
16430 (UST_CFLAGS): New.
16431 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16432 * config.in, configure: Regenerate.
16433
9e4344e5
PA
164342010-06-20 Ian Lance Taylor <iant@google.com>
16435 Pedro Alves <pedro@codesourcery.com>
16436
16437 * linux-x86-low.c (always_true): Delete.
16438 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16439 trying to fool the compiler with always_true.
16440
c6beb2cb
PA
164412010-06-20 Pedro Alves <pedro@codesourcery.com>
16442
16443 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16444 conditions in gdbserver.
16445
d2ed6730
UW
164462010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16447
16448 * spu-low.c (spu_read_memory): Wrap around local store limit.
16449 (spu_write_memory): Likewise.
16450
4e29fb54
PA
164512010-06-15 Pedro Alves <pedro@codesourcery.com>
16452
16453 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16454 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16455 LONGEST uses.
16456 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16457 uses.
16458 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16459 uses with LONGEST uses.
16460
6a271cae
PA
164612010-06-14 Stan Shebs <stan@codesourcery.com>
16462 Pedro Alves <pedro@codesourcery.com>
16463
16464 Bytecode compiler.
16465
16466 * linux-x86-low.c: Include limits.h.
16467 (add_insns): New.
16468 (always_true): New.
16469 (EMIT_ASM): New.
16470 (EMIT_ASM32): New.
16471 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16472 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16473 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16474 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16475 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16476 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16477 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16478 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16479 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16480 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16481 (amd64_emit_void_call_2): New.
16482 (amd64_emit_ops): New.
16483 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16484 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16485 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16486 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16487 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16488 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16489 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16490 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16491 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
16492 (i386_emit_stack_adjust, i386_emit_int_call_1)
16493 (i386_emit_void_call_2): New.
16494 (i386_emit_ops): New.
16495 (x86_emit_ops): New.
16496 (the_low_target): Install x86_emit_ops.
16497 * server.h (struct emit_ops): New.
16498 (get_raw_reg_func_addr): Declare.
16499 (current_insn_ptr, emit_error): Declare.
16500 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
16501 (set_trace_state_variable_value): New defines.
16502 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
16503 addr_get_trace_state_variable_value and
16504 addr_set_trace_state_variable_value.
16505 (symbol_list): New fields for get_raw_reg,
16506 get_trace_state_variable_value and set_trace_state_variable_value.
16507 (condfn): New typedef.
16508 (struct tracepoint): New field `compiled_cond'.
16509 (do_action_at_tracepoint): Clear compiled_cond.
16510 (get_trace_state_variable_value, set_trace_state_variable_value):
16511 Export in the IPA.
16512 (condition_true_at_tracepoint): If there's a compiled condition,
16513 run that.
16514 (current_insn_ptr, emit_error): New globals.
16515 (struct bytecode_address): New.
16516 (get_raw_reg_func_addr): New.
16517 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
16518 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
16519 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
16520 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
16521 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
16522 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
16523 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
16524 (compile_tracepoint_condition, compile_bytecodes): New.
16525 * target.h (emit_ops): Forward declare.
16526 (struct target_ops): New field emit_ops.
16527 (target_emit_ops): New.
16528 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
16529 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
16530 * linux-low.c (linux_emit_ops): New.
16531 (linux_target_ops): Install it.
16532 * linux-low.h (struct linux_target_ops): New field emit_ops.
16533
92b72907
UW
165342010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
16535
16536 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
16537 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
16538
fa593d66
PA
165392010-06-01 Pedro Alves <pedro@codesourcery.com>
16540 Stan Shebs <stan@codesourcery.com>
16541
16542 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
16543 (all): Depend on $(extra_libraries).
16544 (install-only): Install the IPA.
16545 (IPA_OBJS, IPA_LIB): New.
16546 (clean): Remove the IPA lib.
16547 (IPAGENT_CFLAGS): New.
16548 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
16549 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
16550 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
16551 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
16552 * configure.ac: Check for atomic builtins support in the compiler.
16553 (IPA_DEPFILES, extra_libraries): Define.
16554 * configure.srv (ipa_obj): Add description.
16555 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
16556 (i[34567]86-*-linux*): Set ipa_obj.
16557 (x86_64-*-linux*): Set ipa_obj.
16558 * linux-low.c (stabilizing_threads): New.
16559 (supports_fast_tracepoints): New.
16560 (linux_detach): Stabilize threads before detaching.
16561 (handle_tracepoints): Handle internal tracing breakpoints. Assert
16562 the lwp is either not stabilizing, or is moving out of a jump pad.
16563 (linux_fast_tracepoint_collecting): New.
16564 (maybe_move_out_of_jump_pad): New.
16565 (enqueue_one_deferred_signal): New.
16566 (dequeue_one_deferred_signal): New.
16567 (linux_wait_for_event_1): If moving out of a jump pad, defer
16568 pending signals to later.
16569 (linux_stabilize_threads): New.
16570 (linux_wait_1): Check if threads need moving out of jump pads, and
16571 do it if so.
16572 (stuck_in_jump_pad_callback): New.
16573 (move_out_of_jump_pad_callback): New.
16574 (lwp_running): New.
16575 (linux_resume_one_lwp): Handle moving out of jump pads.
16576 (linux_set_resume_request): Dequeue deferred signals.
16577 (need_step_over_p): Also step over fast tracepoint jumps.
16578 (start_step_over): Also uninsert fast tracepoint jumps.
16579 (finish_step_over): Also reinsert fast tracepoint jumps.
16580 (linux_install_fast_tracepoint_jump): New.
16581 (linux_target_ops): Install linux_stabilize_threads and
16582 linux_install_fast_tracepoint_jump_pad.
16583 * linux-low.h (linux_target_ops) <get_thread_area,
16584 install_fast_tracepoint_jump_pad>: New fields.
16585 (struct lwp_info) <collecting_fast_tracepoint,
16586 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
16587 (linux_get_thread_area): Declare.
16588 * linux-x86-low.c (jump_insn): New.
16589 (x86_get_thread_area): New.
16590 (append_insns): New.
16591 (push_opcode): New.
16592 (amd64_install_fast_tracepoint_jump_pad): New.
16593 (i386_install_fast_tracepoint_jump_pad): New.
16594 (x86_install_fast_tracepoint_jump_pad): New.
16595 (the_low_target): Install x86_get_thread_area and
16596 x86_install_fast_tracepoint_jump_pad.
16597 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
16598 (struct fast_tracepoint_jump): New.
16599 (fast_tracepoint_jump_insn): New.
16600 (fast_tracepoint_jump_shadow): New.
16601 (find_fast_tracepoint_jump_at): New.
16602 (fast_tracepoint_jump_here): New.
16603 (delete_fast_tracepoint_jump): New.
16604 (set_fast_tracepoint_jump): New.
16605 (uninsert_fast_tracepoint_jumps_at): New.
16606 (reinsert_fast_tracepoint_jumps_at): New.
16607 (set_breakpoint_at): Use write_inferior_memory.
16608 (uninsert_raw_breakpoint): Use write_inferior_memory.
16609 (check_mem_read): Mask out fast tracepoint jumps.
16610 (check_mem_write): Mask out fast tracepoint jumps.
16611 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
16612 (set_fast_tracepoint_jump): Declare.
16613 (delete_fast_tracepoint_jump)
16614 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
16615 (reinsert_fast_tracepoint_jumps_at): Declare.
16616 * regcache.c: Don't compile many functions when building the
16617 in-process agent library.
16618 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
16619 the register buffer in the heap.
16620 (free_register_cache): If the register buffer isn't owned by the
16621 regcache, don't free it.
16622 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
16623 pre-existing register caches.
16624 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
16625 type.
16626 (convert_ascii_to_int): : Constify `from' parameter type.
16627 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
16628 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
16629 the needed buffer in-place.
16630 (relocate_instruction): New.
16631 * server.c (handle_query) <qSymbols>: If the target supports
16632 tracepoints, give it a chance of looking up symbols. Report
16633 support for fast tracepoints.
16634 (handle_status): Stabilize threads.
16635 (process_serial_event): Adjust.
16636 * server.h (struct fast_tracepoint_jump): Forward declare.
16637 (struct process_info) <fast_tracepoint_jumps>: New field.
16638 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
16639 (decode_X_packet, decode_M_packet): Adjust.
16640 (relocate_instruction): Declare.
16641 (in_process_agent_loaded): Declare.
16642 (tracepoint_look_up_symbols): Declare.
16643 (struct fast_tpoint_collect_status): Declare.
16644 (fast_tracepoint_collecting): Declare.
16645 (force_unlock_trace_buffer): Declare.
16646 (handle_tracepoint_bkpts): Declare.
16647 (initialize_low_tracepoint)
16648 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
16649 * target.h (struct target_ops) <stabilize_threads,
16650 install_fast_tracepoint_jump_pad>: New fields.
16651 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
16652 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
16653 [HAVE_STDINT_H]: Include stdint.h.
16654 (trace_debug_1): Rename to ...
16655 (trace_vdebug): ... this.
16656 (trace_debug): Rename to ...
16657 (trace_debug_1): ... this. Add `level' parameter.
16658 (trace_debug): New.
16659 (ATTR_USED, ATTR_NOINLINE): New.
16660 (IP_AGENT_EXPORT): New.
16661 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
16662 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
16663 (about_to_request_buffer_space, trace_buffer_is_full)
16664 (stopping_tracepoint, expr_eval_result, error_tracepoint)
16665 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
16666 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
16667 (traceframe_write_count, traceframes_created)
16668 (trace_state_variables)
16669 New renaming defines.
16670 (struct ipa_sym_addresses): New.
16671 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
16672 (symbol_list): New.
16673 (ipa_sym_addrs): New.
16674 (all_tracepoint_symbols_looked_up): New.
16675 (in_process_agent_loaded): New.
16676 (write_e_ipa_not_loaded): New.
16677 (maybe_write_ipa_not_loaded): New.
16678 (tracepoint_look_up_symbols): New.
16679 (debug_threads) [IN_PROCESS_AGENT]: New.
16680 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
16681 (UNKNOWN_SIDE_EFFECTS): New.
16682 (stop_tracing): New.
16683 (flush_trace_buffer): New.
16684 (stop_tracing_bkpt): New.
16685 (flush_trace_buffer_bkpt): New.
16686 (read_inferior_integer): New.
16687 (read_inferior_uinteger): New.
16688 (read_inferior_data_pointer): New.
16689 (write_inferior_data_pointer): New.
16690 (write_inferior_integer): New.
16691 (write_inferior_uinteger): New.
16692 (struct collect_static_trace_data_action): Delete.
16693 (enum tracepoint_type): New.
16694 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
16695 <actions_str, step_actions, step_actions_str>: Only include in
16696 GDBserver.
fa593d66
PA
16697 <orig_size, obj_addr_on_target, adjusted_insn_addr>
16698 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
16699 (tracepoints): Use IP_AGENT_EXPORT.
16700 (last_tracepoint): Don't include in the IPA.
16701 (stopping_tracepoint): Use IP_AGENT_EXPORT.
16702 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
16703 (alloced_trace_state_variables): New.
16704 (trace_state_variables): Use IP_AGENT_EXPORT.
16705 (traceframe_t): Delete unused variable.
16706 (circular_trace_buffer): Don't include in the IPA.
16707 (trace_buffer_start): Delete.
16708 (struct trace_buffer_control): New.
16709 (trace_buffer_free): Delete.
16710 (struct ipa_trace_buffer_control): New.
16711 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
16712 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
16713 New.
16714 (trace_buffer_ctrl): New.
16715 (TRACE_BUFFER_CTRL_CURR): New.
16716 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
16717 Reimplement as macros.
16718 (trace_buffer_wrap): Delete.
16719 (traceframe_write_count, traceframe_read_count)
16720 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
16721 (struct tracepoint_hit_ctx) <type>: New field.
16722 (struct fast_tracepoint_ctx): New.
16723 (memory_barrier): New.
16724 (cmpxchg): New.
16725 (record_tracepoint_error): Update atomically in the IPA.
16726 (clear_inferior_trace_buffer): New.
16727 (about_to_request_buffer_space): New.
16728 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
16729 updating the same buffer.
16730 (add_tracepoint): Default the tracepoint's type to trap
16731 tracepoint, and orig_size to -1.
16732 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
16733 internal variables.
16734 (create_trace_state_variable): New parameter `gdb'. Handle it.
16735 (clear_installed_tracepoints): Clear fast tracepoint jumps.
16736 (cmd_qtdp): Handle fast tracepoints.
16737 (cmd_qtdv): Adjust.
16738 (max_jump_pad_size): New.
16739 (gdb_jump_pad_head): New.
16740 (get_jump_space_head): New.
16741 (claim_jump_space): New.
16742 (sort_tracepoints): New.
16743 (MAX_JUMP_SIZE): New.
16744 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
16745 IPA.
16746 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
16747 support. Upload fast traceframes, and delete internal IPA
16748 breakpoints.
16749 (stop_tracing_handler): New.
16750 (flush_trace_buffer_handler): New.
16751 (cmd_qtstop): Upload fast tracepoints.
16752 (response_tracepoint): Handle fast tracepoints.
16753 (tracepoint_finished_step): Upload fast traceframes. Set the
16754 tracepoint hit context's tracepoint type.
16755 (handle_tracepoint_bkpts): New.
16756 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
16757 type. Add comment about fast tracepoints.
16758 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
16759 non-existing action_str field.
16760 (get_context_regcache): Handle fast tracepoints.
16761 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
16762 to the regcache.
16763 (fast_tracepoint_from_jump_pad_address): New.
16764 (fast_tracepoint_from_ipa_tpoint_address): New.
16765 (collecting_t): New.
16766 (force_unlock_trace_buffer): New.
16767 (fast_tracepoint_collecting): New.
16768 (collecting): New.
16769 (gdb_collect): New.
16770 (write_inferior_data_ptr): New.
16771 (target_tp_heap): New.
16772 (target_malloc): New.
16773 (download_agent_expr): New.
16774 (UALIGN): New.
16775 (download_tracepoints): New.
16776 (download_trace_state_variables): New.
16777 (upload_fast_traceframes): New.
16778 (IPA_FIRST_TRACEFRAME): New.
16779 (IPA_NEXT_TRACEFRAME_1): New.
16780 (IPA_NEXT_TRACEFRAME): New.
16781 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
16782 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
16783 (gdb_jump_pad_buffer_end): New.
16784 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
16785 (initialize_tracepoint): Adjust.
16786 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
16787 buffer. Initialize the low module.
16788 * utils.c (PREFIX, TOOLNAME): New.
16789 (malloc_failure): Use PREFIX.
16790 (error): In the IPA, an error causes an exit.
16791 (fatal, warning): Use PREFIX.
16792 (internal_error): Use TOOLNAME.
16793 (NUMCELLS): Increase to 10.
16794 * configure, config.in: Regenerate.
16795
d149dd1d
PA
167962010-06-01 Pedro Alves <pedro@codesourcery.com>
16797
16798 * server.c (handle_query) <qSupported>: Do two passes over the
16799 qSupported string to avoid nesting strtok.
16800
f6528abd
JK
168012010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16802
16803 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
16804 (CDEPS): New.
16805 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
16806 -Wl,--dynamic-list.
16807 * configure: Regenerate.
16808 * proc-service.list: New.
16809
ca2a87a0
JK
168102010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16811
16812 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
16813 New comment.
16814
363a6e9f
OS
168152010-05-26 Ozkan Sezer <sezeroz@gmail.com>
16816
16817 * gdbreplay.c (remote_open): Check error return from socket() call by
16818 its equality to -1 not by it being negative.
16819 * remote-utils.c (remote_open): Likewise.
16820
d23b6cb1
PA
168212010-05-23 Pedro Alves <pedro@codesourcery.com>
16822
16823 * config.h: Regenerate.
16824
28d3cf85
MK
168252010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
16826
16827 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
16828 doesn't provide PTRACE_GET_THREAD_AREA.
16829
fea36a59
MK
168302010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
16831
16832 * linux-m68k-low.c: Include <asm/ptrace.h>
16833 (ps_get_thread_area): Implement.
16834
24b066ba
DE
168352010-05-03 Doug Evans <dje@google.com>
16836
16837 * event-loop.c (struct callback_event): New struct.
16838 (callback_list): New global.
16839 (append_callback_event, delete_callback_event): New functions.
16840 (process_callback): New function.
16841 (start_event_loop): Call it.
16842 * remote-utils.c (NOT_SCHEDULED): Define.
16843 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
16844 moved out of readchar.
16845 (readchar): Rewrite. Call reschedule before returning.
16846 (reset_readchar): New function.
16847 (remote_close): Call it.
16848 (process_remaining, reschedule): New functions.
16849 * server.h (callback_handler_func): New typedef.
16850 (append_callback_event, delete_callback_event): Declare.
16851
9836d6ea
PA
168522010-05-03 Pedro Alves <pedro@codesourcery.com>
16853
16854 * proc-service.c (ps_pglobal_lookup): Use
16855 thread_db_look_up_one_symbol.
16856 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
16857 parameter. Use it instead of all_symbols_looked_up.
16858 * server.h (struct process_info) <all_symbols_looked_up>: Delete
16859 field.
16860 (all_symbols_looked_up): Don't declare.
16861 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
16862 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
16863 field.
16864 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
16865 Set all_symbols_looked_up here.
16866 (thread_db_look_up_one_symbol): New.
16867 (thread_db_get_tls_address): Adjust.
16868 (thread_db_load_search, try_thread_db_load_1): Always allocate the
16869 thread_db object on the heap, and tentatively set it in the
16870 process structure.
16871 (thread_db_init): Don't set all_symbols_looked_up here.
16872 * linux-low.h (thread_db_look_up_one_symbol): Declare.
16873
7984d532
PA
168742010-05-03 Pedro Alves <pedro@codesourcery.com>
16875
16876 * linux-low.c (linux_kill, linux_detach): Adjust.
16877 (status_pending_p_callback): Remove redundant statement. Check
16878 for !TARGET_WAITIKIND_IGNORE, instead of
16879 TARGET_WAITKIND_STOPPED.
16880 (handle_tracepoints): Make sure LWP is locked. Adjust.
16881 (linux_wait_for_event_1): Adjust.
16882 (linux_cancel_breakpoints): New.
16883 (unsuspend_one_lwp): New.
16884 (unsuspend_all_lwps): New.
16885 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
16886 (send_sigstop_callback): Change return type to int, add new
16887 `except' parameter and handle it.
16888 (suspend_and_send_sigstop_callback): New.
16889 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
16890 pass them down. If SUSPEND, also increment the lwp's suspend
16891 count.
16892 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
16893 (need_step_over_p): Don't consider suspended LWPs.
16894 (start_step_over): Adjust.
16895 (proceed_one_lwp): Change return type to int, add new `except'
16896 parameter and handle it.
16897 (unsuspend_and_proceed_one_lwp): New.
16898 (proceed_all_lwps): Use find_inferior instead of
16899 for_each_inferior.
16900 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
16901 also decrement the suspend count of LWPs. Pass `except' down,
16902 instead of hacking its suspend count.
16903 (linux_pause_all): Add `freeze' parameter. Adjust.
16904 (linux_unpause_all): New.
16905 (linux_target_ops): Install linux_unpause_all.
16906 * server.c (handle_status): Adjust.
16907 * target.h (struct target_ops): New fields `unpause_all' and
16908 `cancel_breakpoints'. Add new parameter to `pause_all'.
16909 (pause_all): Add new `freeze' parameter.
16910 (unpause_all): New.
16911 (cancel_breakpoints): New.
16912 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
16913 cancel breakpoints.
16914 (cmd_qtstart): Pause threads.
16915 (stop_tracing): Pause threads, and cancel breakpoints.
16916 * win32-low.c (win32_target_ops): Adjust.
16917
e471f25b
PA
169182010-05-03 Pedro Alves <pedro@codesourcery.com>
16919
16920 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
16921 the inferior right away from here...
16922 (linux_wait_1): ... to here, and adjust to check the thread's
16923 last_resume_kind instead of the lwp's step or stop_expected flags.
16924
1915ef4f
PA
169252010-05-02 Pedro Alves <pedro@codesourcery.com>
16926
16927 * README: Use consistent `GDB' and `GDBserver' spellings.
16928
f9e39928
PA
169292010-05-02 Pedro Alves <pedro@codesourcery.com>
16930
16931 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
16932 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
16933 (linux_detach_one_lwp): Assume the lwp is stopped.
16934 (any_thread_of): Delete.
16935 (linux_detach): Stop all lwps here. Don't blindly delete all
16936 breakpoints.
16937 (delete_lwp_callback): New.
16938 (linux_mourn): Delete all lwps of the process that is gone.
16939 (linux_wait_1): Don't delete the last lwp of the process here.
16940 * mem-break.h (mark_breakpoints_out): Declare.
16941 * mem-break.c (mark_breakpoints_out): New.
16942 (free_all_breakpoints): Use it.
16943 * server.c (handle_target_event): If the process is gone, mark
16944 breakpoints out.
16945 * thread-db.c (struct thread_db) <create_bp>: New field.
16946 (thread_db_enable_reporting): Fix prototype. Store a thread event
16947 breakpoint reference in the thread_db struct.
16948 (thread_db_load_search): Clear the thread_db object.
16949 (try_thread_db_load_1): Ditto.
16950 (switch_to_process): New.
16951 (disable_thread_event_reporting): Use it.
16952 (remove_thread_event_breakpoints): New.
16953 (thread_db_detach, thread_db_mourn): Use it.
16954
1e7fc18c
PA
169552010-05-01 Pedro Alves <pedro@codesourcery.com>
16956
16957 * linux-low.c (linux_enable_event_reporting): New.
16958 (linux_wait_for_event_1, handle_extended_wait): Use it.
16959
02fc4de7
PA
169602010-04-30 Pedro Alves <pedro@codesourcery.com>
16961
16962 * linux-low.c (linux_kill_one_lwp, linux_kill)
16963 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
16964 (send_sigstop): Take an lwp_info as parameter instead. Queue a
16965 SIGSTOP even if the LWP is stopped.
16966 (send_sigstop_callback): New.
16967 (stop_all_lwps): Use send_sigstop_callback instead.
16968 (linux_resume_one_thread): Adjust.
16969 (proceed_one_lwp): Still proceed an LWP that the client has
16970 requested to stop, if we haven't reported it as stopped yet. Make
16971 sure that LWPs the client want stopped, have a pending SIGSTOP.
16972
bc3b5632
DE
169732010-04-26 Doug Evans <dje@google.com>
16974
ae1ada35
DE
16975 * server.c (handle_general_set): Make static.
16976
bc3b5632
DE
16977 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
16978 Print received char after testing for error/eof instead of before.
16979 (input_interrupt): Tweak comment.
16980
65730243
DE
169812010-04-23 Doug Evans <dje@google.com>
16982
16983 * server.c (start_inferior): Print inferior argv if --debug.
16984
a8ae7dc0
AR
169852010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
16986
16987 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
16988 * nto-x86-low.c: Include server.h
16989
1c07cc19
PM
169902010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
16991
16992 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
16993 be consistent with other sources of this directory.
16994 (init_registers_amd64): Correct name of source file of this function
16995 in the comment.
16996
e0a61e09
PM
169972010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16998
16999 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17000 64-bit executables.
17001
54709339
PM
170022010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17003
17004 * win32-i386-low.c: Add 64-bit support.
17005 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17006 (init_registers_amd64): Declare.
17007 (mappings): Add 64-bit version of array.
17008 (init_windows_x86): New function.
17009 (the_low_target): Change init_arch field to init_windows_x86.
17010
e8f0053d
PM
170112010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17012
17013 * win32-low.c: Adapt to support also 64-bit architecture.
17014 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17015 (get_image_name): Use SIZE_T type for local variable `done'.
17016 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17017 (toolhelp_get_dll_name): Idem.
17018 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17019 Use uintptr_t typecast to avoid warning.
17020 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17021 (handle_exception): Use phex_nz to avoid warning.
17022 (win32_wait): Remove unused local variable `process'.
17023
c481e77e
PM
170242010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17025
17026 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17027 `amd64-avx.o'.
17028
12ea4b69
PM
170292010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17030
17031 * configure.ac: Use `ws2_32' library for srv_mingw.
17032 * configure: Regenerate.
17033 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17034 * remote-utils.c: Likewise.
17035
f6d1620c
L
170362010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17037
17038 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17039 if __x86_64__ is defined.
17040
8e642873
PM
170412010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17042
17043 * configure: Regenerate.
17044
711e434b
PM
170452010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17046
17047 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17048 * target.h (target_ops): New get_tib_address field.
17049 * win32-low.h (win32_thread_info): Add thread_local_base field.
17050 * win32-low.c (child_add_thread): Add tlb argument.
17051 Set thread_local_base field to TLB.
17052 (get_child_debug_event): Adapt to child_add_thread change.
17053 (win32_get_tib_address): New function.
17054 (win32_target_ops): Set get_tib_address field to
17055 win32_get_tib_address.
17056 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17057
505106cd
PA
170582010-04-12 Pedro Alves <pedro@codesourcery.com>
17059
505106cd
PA
17060 * linux-low.c (linux_mourn): Also remove the process.
17061 * server.c (handle_target_event): Don't remove the process here.
17062 * nto-low.c (nto_mourn): New.
17063 (nto_target_ops): Install it.
17064 * spu-low.c (spu_mourn): New.
17065 (spu_target_ops): Install it.
17066 * win32-low.c (win32_mourn): New.
17067 (win32_target_ops): Install it.
17068
e8470a06
PA
170692010-04-12 Pedro Alves <pedro@codesourcery.com>
17070
17071 * server.h (buffer_xml_printf): Remove redundant `;'.
17072
45ba0d02
PA
170732010-04-12 Pedro Alves <pedro@codesourcery.com>
17074
17075 * regcache.c (set_register_cache): Invalidate regcaches before
17076 changing the register cache layout.
17077 (regcache_invalidate_one): Allow a NULL regcache.
17078 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17079 regcaches before changing the register cache layout or the target
17080 regsets.
17081
59e04013
L
170822010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17083
17084 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17085 variable warning on Linux/x86-64.
17086
8336d594
PA
170872010-04-11 Pedro Alves <pedro@codesourcery.com>
17088
17089 GDBserver disconnected tracing support.
17090
17091 * linux-low.c (linux_remove_process): Delete.
17092 (add_lwp): Don't set last_resume_kind here.
17093 (linux_kill): Use `mourn'.
17094 (linux_detach): Use `thread_db_detach', and `mourn'.
17095 (linux_mourn): New.
17096 (linux_attach_lwp_1): Adjust comment.
17097 (linux_attach): last_resume_kind moved the thread_info; adjust.
17098 (status_pending_p_callback): Adjust.
17099 (linux_wait_for_event_1): Adjust.
17100 (count_events_callback, select_singlestep_lwp_callback)
17101 (select_event_lwp_callback, cancel_breakpoints_callback)
17102 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17103 (proceed_one_lwp): Adjust.
17104 (linux_async): Add debug output.
17105 (linux_thread_stopped): New.
17106 (linux_pause_all): New.
17107 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17108 linux_pause_all.
17109 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17110 (thread_db_free): Delete declaration.
17111 (thread_db_detach, thread_db_mourn): Declare.
17112 * thread-db.c (thread_db_init): Use thread_db_mourn.
17113 (thread_db_free): Delete, split in two.
17114 (disable_thread_event_reporting): New.
17115 (thread_db_detach): New.
17116 (thread_db_mourn): New.
17117
17118 * server.h (struct thread_info) <last_resume_kind>: New field.
17119 <attached>: Add comment.
17120 <gdb_detached>: New field.
17121 (handler_func): Change return type to int.
17122 (handle_serial_event, handle_target_event): Ditto.
17123 (gdb_connected): Declare.
17124 (tracing): Delete.
17125 (disconnected_tracing): Declare.
17126 (stop_tracing): Declare.
17127
17128 * server.c (handle_query) <qSupported>: Report support for
17129 disconnected tracing.
17130 (queue_stop_reply_callback): Account for running threads.
17131 (gdb_wants_thread_stopped): New.
17132 (gdb_wants_all_threads_stopped): New.
17133 (gdb_reattached_process): New.
17134 (handle_status): Clear the `gdb_detached' flag of all processes.
17135 In all-stop, stop all threads.
17136 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17137 (process_serial_event): If the remote connection breaks, or if an
17138 exit was forced with "monitor exit", force an event loop exit.
17139 Handle disconnected tracing on detach.
17140 (handle_serial_event): Adjust.
17141 (handle_target_event): If GDB isn't connected, forward events back
17142 to the inferior, unless the last process exited, in which case,
17143 exit gdbserver. Adjust interface.
17144
17145 * remote-utils.c (remote_open): Don't block in accept. Instead
17146 register an event loop source on the listen socket file
17147 descriptor. Refactor bits into ...
17148 (listen_desc): ... this new global.
17149 (gdb_connected): ... this new function.
17150 (enable_async_notification): ... this new function.
17151 (handle_accept_event): ... this new function.
17152 (remote_close): Clear remote_desc.
17153
17154 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17155
17156 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17157 New fields.
17158 (mourn_inferior): Define.
17159 (target_process_qsupported): Avoid the dangling else problem.
17160 (thread_stopped): Define.
17161 (pause_all): Define.
17162 (target_waitstatus_to_string): Declare.
17163 * target.c (target_waitstatus_to_string): New.
17164
17165 * tracepoint.c (tracing): Make extern.
17166 (disconnected_tracing): New.
17167 (stop_tracing): Make extern. Handle tracing stops due to GDB
17168 disconnecting.
17169 (cmd_qtdisconnected): New.
17170 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17171 (handle_tracepoint_general_set): Handle QTDisconnected.
17172
17173 * event-loop.c (event_handler_func): Change return type to int.
17174 (process_event): Bail out if the event handler wants the event
17175 loop to stop.
17176 (handle_file_event): Ditto.
17177 (start_event_loop): Bail out if the event handler wants the event
17178 loop to stop.
17179
17180 * nto-low.c (nto_target_ops): Adjust.
17181 * spu-low.c (spu_wait): Don't remove the process here.
17182 (spu_target_ops): Adjust.
17183 * win32-low.c (win32_wait): Don't remove the process here.
17184 (win32_target_ops): Adjust.
17185
5d267c4c
PA
171862010-04-11 Pedro Alves <pedro@codesourcery.com>
17187
17188 * regcache.c (realloc_register_cache): Invalidate inferior's
17189 regcache before recreating it.
17190
623ccd72
PA
171912010-04-09 Pedro Alves <pedro@codesourcery.com>
17192
17193 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17194
219f2f23
PA
171952010-04-09 Stan Shebs <stan@codesourcery.com>
17196 Pedro Alves <pedro@codesourcery.com>
17197
17198 * server.h (LONGEST): New.
17199 (struct thread_info) <while_stepping>: New field.
17200 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17201 Declare.
17202 (initialize_tracepoint, handle_tracepoint_general_set)
17203 (handle_tracepoint_query, tracepoint_finished_step)
17204 (tracepoint_was_hit, release_while_stepping_state_list):
17205 (current_traceframe): Declare.
17206 * server.c (handle_general_set): Handle tracepoint packets.
17207 (read_memory): New.
17208 (write_memory): New.
17209 (handle_search_memory_1): Use read_memory.
17210 (handle_query): Report support for conditional tracepoints, trace
17211 state variables, and tracepoint sources. Handle tracepoint
17212 queries.
17213 (main): Initialize the tracepoints module.
17214 (process_serial_event): Handle traceframe reads/writes.
17215
17216 * linux-low.c (handle_tracepoints): New.
17217 (linux_wait_1): Call it.
17218 (linux_resume_one_lwp): Handle while-stepping.
17219 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17220 (linux_target_ops): Install them.
17221 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17222 New field.
17223 * linux-x86-low.c (x86_supports_tracepoints): New.
17224 (the_low_target). Install it.
17225
17226 * mem-break.h (delete_breakpoint): Declare.
17227 * mem-break.c (delete_breakpoint): Make external.
17228
17229 * target.h (struct target_ops): Add `supports_tracepoints',
17230 `read_pc', and `write_pc' fields.
17231 (target_supports_tracepoints): Define.
17232 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17233 (phex_nz): New.
17234
17235 * regcache.h (struct regcache) <registers_owned>: New field.
17236 (init_register_cache, regcache_cpy): Declare.
17237 (regcache_read_pc, regcache_write_pc): Declare.
17238 (register_cache_size): Declare.
17239 (supply_regblock): Declare.
17240 * regcache.c (init_register_cache): New.
17241 (new_register_cache): Use it.
17242 (regcache_cpy): New.
17243 (register_cache_size): New.
17244 (supply_regblock): New.
17245 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 17246
219f2f23
PA
17247 * tracepoint.c: New.
17248
17249 * Makefile.in (OBS): Add tracepoint.o.
17250 (tracepoint.o): New rule.
17251
3a13a53b
L
172522010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17253
17254 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17255 (i386-mmx.o): New.
17256 (i386-mmx.c): Likewise.
17257 (i386-mmx-linux.o): Likewise.
17258 (i386-mmx-linux.c): Likewise.
17259
17260 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17261 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17262 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17263 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17264
17265 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17266 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17267 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17268
1570b33e
L
172692010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17270
17271 * Makefile.in (clean): Updated.
17272 (i386-avx.o): New.
17273 (i386-avx.c): Likewise.
17274 (i386-avx-linux.o): Likewise.
17275 (i386-avx-linux.c): Likewise.
17276 (amd64-avx.o): Likewise.
17277 (amd64-avx.c): Likewise.
17278 (amd64-avx-linux.o): Likewise.
17279 (amd64-avx-linux.c): Likewise.
17280
17281 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17282 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17283 (srv_amd64_regobj): Add amd64-avx.o.
17284 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17285 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17286 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17287 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17288 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17289 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17290 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17291
17292 * i387-fp.c: Include "i386-xstate.h".
17293 (i387_xsave): New.
17294 (i387_cache_to_xsave): Likewise.
17295 (i387_xsave_to_cache): Likewise.
17296 (x86_xcr0): Likewise.
17297
17298 * i387-fp.h (i387_cache_to_xsave): Likewise.
17299 (i387_xsave_to_cache): Likewise.
17300 (x86_xcr0): Likewise.
17301
17302 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17303 * linux-crisv32-low.c (target_regsets): Likewise.
17304 * linux-m68k-low.c (target_regsets): Likewise.
17305 * linux-mips-low.c (target_regsets): Likewise.
17306 * linux-ppc-low.c (target_regsets): Likewise.
17307 * linux-s390-low.c (target_regsets): Likewise.
17308 * linux-sh-low.c (target_regsets): Likewise.
17309 * linux-sparc-low.c (target_regsets): Likewise.
17310 * linux-xtensa-low.c (target_regsets): Likewise.
17311
17312 * linux-low.c: Include <sys/uio.h>.
17313 (regsets_fetch_inferior_registers): Support nt_type.
17314 (regsets_store_inferior_registers): Likewise.
17315 (linux_process_qsupported): New.
17316 (linux_target_ops): Add linux_process_qsupported.
17317
17318 * linux-low.h (regset_info): Add nt_type.
17319 (linux_target_ops): Add process_qsupported.
17320
17321 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17322 and <sys/uio.h>.
17323 (init_registers_i386_avx_linux): New.
17324 (init_registers_amd64_avx_linux): Likewise.
17325 (xmltarget_i386_linux_no_xml): Likewise.
17326 (xmltarget_amd64_linux_no_xml): Likewise.
17327 (PTRACE_GETREGSET): Likewise.
17328 (PTRACE_SETREGSET): Likewise.
17329 (x86_fill_xstateregset): Likewise.
17330 (x86_store_xstateregset): Likewise.
17331 (use_xml): Likewise.
17332 (x86_linux_update_xmltarget): Likewise.
17333 (x86_linux_process_qsupported): Likewise.
17334 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17335 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17336 init_registers_i386_linux here. Call
17337 x86_linux_update_xmltarget.
17338 (the_low_target): Add x86_linux_process_qsupported.
17339
17340 * server.c (handle_query): Call target_process_qsupported.
17341
17342 * target.h (target_ops): Add process_qsupported.
17343 (target_process_qsupported): New.
17344
fc7238bb
PA
173452010-04-03 Pedro Alves <pedro@codesourcery.com>
17346
17347 * inferiors.c (add_thread): Set last_status kind to
17348 TARGET_WAITKIND_IGNORE.
17349 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17350 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17351 (linux_wait_1): Move `thread' local definition to block that uses
17352 it. Don't NULL initialize `event_child'.
17353 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17354 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17355 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17356
bdabb078
PA
173572010-04-01 Pedro Alves <pedro@codesourcery.com>
17358
17359 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17360 an extended waitstatus, or by a watchpoint.
17361 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17362 thread was stepping or has been stopped by a watchpoint.
17363
d3bbe7a0
PA
173642010-04-01 Pedro Alves <pedro@codesourcery.com>
17365
17366 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17367 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17368 of another, then delete the previous, and validate all
17369 breakpoints.
17370 (validate_inserted_breakpoint): New.
17371 (delete_disabled_breakpoints): New.
17372 (validate_breakpoints): New.
17373 (check_mem_read): Validate breakpoints before trusting their
17374 shadow. Delete disabled breakpoints.
17375 (check_mem_write): Validate breakpoints before trusting they
17376 should be inserted. Delete disabled breakpoints.
17377 * mem-break.h (validate_breakpoints):
17378 * server.c (handle_query): Validate breakpoints when we see a
17379 qSymbol query.
17380
8b07ae33
PA
173812010-04-01 Pedro Alves <pedro@codesourcery.com>
17382
17383 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17384 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17385 if we could tell there's a GDB breakpoint at stop_pc.
17386 (need_step_over_p): Don't do a step over if we find a GDB
17387 breakpoint at the resume PC.
17388
17389 * mem-break.c (struct raw_breakpoint): New.
17390 (enum bkpt_type): New type `gdb_breakpoint'.
17391 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17392 fields. New field `raw'.
17393 (find_raw_breakpoint_at): New.
17394 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17395 breakpoint instead.
17396 (set_breakpoint_at): Adjust.
17397 (delete_raw_breakpoint): New.
17398 (release_breakpoint): New.
17399 (delete_breakpoint): Rename to...
17400 (delete_breakpoint_1): ... this. Add proc parameter. Use
17401 release_breakpoint. Return ENOENT.
17402 (delete_breakpoint): Reimplement.
17403 (find_breakpoint_at): Delete.
17404 (find_gdb_breakpoint_at): New.
17405 (delete_breakpoint_at): Delete.
17406 (set_gdb_breakpoint_at): New.
17407 (delete_gdb_breakpoint_at): New.
17408 (gdb_breakpoint_here): New.
17409 (set_reinsert_breakpoint): Use release_breakpoint.
17410 (uninsert_breakpoint): Rename to ...
17411 (uninsert_raw_breakpoint): ... this.
17412 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17413 (reinsert_raw_breakpoint): Change parameter type to
17414 raw_breakpoint.
17415 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17416 instead.
17417 (check_breakpoints): Adjust. Use release_breakpoint.
17418 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17419 (breakpoint_inserted_here): Ditto.
17420 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17421 Don't trust the breakpoint's shadow if it is not inserted.
17422 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17423 (delete_all_breakpoints): Adjust.
17424 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17425 use delete_breakpoint_1.
17426
17427 * mem-break.h (breakpoints_supported): Delete declaration.
17428 (set_gdb_breakpoint_at): Declare.
17429 (gdb_breakpoint_here): Declare.
17430 (delete_breakpoint_at): Delete.
17431 (delete_gdb_breakpoint_at): Declare.
17432
17433 * server.h (struct raw_breakpoint): Forward declare.
17434 (struct process_info): New field `raw_breakpoints'.
17435
17436 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17437 breakpoints.
17438
6bf5e0ba
PA
174392010-03-24 Pedro Alves <pedro@codesourcery.com>
17440
17441 * linux-low.c (status_pending_p_callback): Fix comment.
17442 (linux_wait_for_event_1): Move most of the internal breakpoint
17443 handling from here...
17444 (linux_wait_1): ... to here.
17445 (count_events_callback): New.
17446 (select_singlestep_lwp_callback): New.
17447 (select_event_lwp_callback): New.
17448 (cancel_breakpoints_callback): New.
17449 (select_event_lwp): New.
17450 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17451 priority to all LWPs that have had events that should be reported
17452 to the client. Cancel breakpoints when about to reporting the
17453 event to the client, not while stopping lwps. No longer cancel
17454 finished single-steps here.
17455 (cancel_finished_single_step): Delete.
17456 (cancel_finished_single_steps): Delete.
17457
414a389f
PA
174582010-03-24 Pedro Alves <pedro@codesourcery.com>
17459
17460 * mem-break.c (enum bkpt_type): New.
17461 (struct breakpoint): New field `type'.
17462 (set_breakpoint_at): Change return type to struct breakpoint
17463 pointer. Set type to `other_breakpoint' by default.
17464 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17465 in the breakpoint list.
17466 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17467 (reinsert_breakpoint): Rename to ...
17468 (reinsert_raw_breakpoint): ... this.
17469 (reinsert_breakpoints_at): Adjust.
17470 * mem-break.h (struct breakpoint): Declare.
17471 (set_breakpoint_at): Change return type to struct breakpoint
17472 pointer.
17473
2280c721
PA
174742010-03-24 Pedro Alves <pedro@codesourcery.com>
17475
17476 * server.c (handle_query): Assign, not compare.
17477
d50171e4
PA
174782010-03-24 Pedro Alves <pedro@codesourcery.com>
17479
17480 Teach linux gdbserver to step-over-breakpoints.
17481
17482 * linux-low.c (can_hardware_single_step): New.
17483 (supports_breakpoints): New.
17484 (handle_extended_wait): If stopping threads, read the stop pc of
17485 the new cloned LWP.
17486 (get_pc): New.
17487 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17488 low target doesn't support retrieving the PC.
17489 (add_lwp): Set last_resume_kind to resume_continue.
17490 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17491 (linux_attach): Don't clear stop_expected. Set the lwp's
17492 last_resume_kind to resume_stop.
17493 (linux_detach_one_lwp): Don't check for removed breakpoints.
17494 (check_removed_breakpoint): Delete.
17495 (status_pending_p): Rename to ...
17496 (status_pending_p_callback): ... this. Don't check for removed
17497 breakpoints. Don't consider threads that are stopped from GDB's
17498 perspective.
17499 (linux_wait_for_lwp): Always read the stop_pc here.
17500 (cancel_breakpoint): New.
17501 (step_over_bkpt): New global.
17502 (linux_wait_for_event_1): Implement stepping over breakpoints.
17503 (gdb_wants_lwp_stopped): New.
17504 (gdb_wants_all_stopped): New.
17505 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
17506 single-step traps here. Store the thread's last reported target
17507 wait status.
17508 (send_sigstop): Don't clear stop_expected. Always set it,
17509 instead.
17510 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
17511 (cancel_finished_single_step): New.
17512 (cancel_finished_single_steps): New.
17513 (wait_for_sigstop): Don't cancel finished single-step traps here.
17514 (linux_resume_one_lwp): Don't check for removed breakpoints.
17515 Don't set `step' on non-hardware step archs.
17516 (linux_set_resume_request): Ignore resume_stop requests if already
17517 stopping or stopped. Set the lwp's last_resume_kind.
17518 (resume_status_pending_p): Don't check for removed breakpoints.
17519 (need_step_over_p): New.
17520 (start_step_over): New.
17521 (finish_step_over): New.
17522 (linux_resume_one_thread): Always queue a sigstop for resume_stop
17523 requests. Clear the thread's last reported target waitstatus.
17524 Don't use the `suspended' flag. Don't consider pending breakpoints.
17525 (linux_resume): Start a step-over if necessary.
17526 (proceed_one_lwp): New.
17527 (proceed_all_lwps): New.
17528 (unstop_all_lwps): New.
17529 * linux-low.h (struct lwp_info): Rewrite comment for the
17530 `suspended' flag. Add the `stop_pc' field. Delete the
17531 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
17532 Add `'last_resume_kind' and `need_step_over' fields.
17533 * inferiors.c (struct thread_info): Delete, moved elsewhere.
17534 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
17535 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
17536 (set_raw_breakpoint_at): New.
17537 (set_breakpoint_at): Rewrite to use it.
17538 (reinsert_breakpoint_handler): Delete.
17539 (set_reinsert_breakpoint): New.
17540 (reinsert_breakpoint_by_bp): Delete.
17541 (delete_reinsert_breakpoints): New.
17542 (uninsert_breakpoint): Rewrite.
17543 (uninsert_breakpoints_at): New.
17544 (reinsert_breakpoint): Rewrite.
17545 (reinsert_breakpoints_at): New.
17546 (check_breakpoints): Rewrite.
17547 (breakpoint_here): New.
17548 (breakpoint_inserted_here): New.
17549 (check_mem_read): Adjust.
17550 * mem-break.h (breakpoints_supported, breakpoint_here)
17551 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
17552 (reinsert_breakpoint_by_bp): Delete declaration.
17553 (delete_reinsert_breakpoints): Declare.
17554 (reinsert_breakpoint): Delete declaration.
17555 (reinsert_breakpoints_at): Declare.
17556 (uninsert_breakpoint): Delete declaration.
17557 (uninsert_breakpoints_at): Declare.
17558 (check_breakpoints): Adjust prototype.
17559 * server.h: Adjust include order.
17560 (struct thread_info): Declare here. Add a `last_status' field.
17561
30ba68cb
MS
175622010-03-23 Michael Snyder <msnyder@vmware.com>
17563
17564 * server.c (crc32): New function.
17565 (handle_query): Add handling for 'qCRC:' request.
17566
b9a881c2
PA
175672010-03-23 Pedro Alves <pedro@codesourcery.com>
17568
17569 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
17570 lwp had been stopped by a watchpoint.
17571
e92d13d5
PA
175722010-03-16 Pedro Alves <pedro@codesourcery.com>
17573
17574 * server.h (internal_error): Declare.
17575 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
17576 * utils.c (internal_error): New function.
17577
64daa791
AS
175782010-03-15 Andreas Schwab <schwab@redhat.com>
17579
17580 * configure.srv: Fix typo setting srv_regobj.
17581
f52cd8cd
PA
175822010-03-15 Pedro Alves <pedro@codesourcery.com>
17583
17584 * linux-low.c (fetch_register): Avoid passing a non string literal
17585 format to `error'.
17586 (usr_store_inferior_registers): Ditto.
17587
93ae6fdc
PA
175882010-03-14 Pedro Alves <pedro@codesourcery.com>
17589
17590 * linux-low.c (linux_write_memory): Bail out early if peeking
17591 memory failed.
17592
c3adc08c
PA
175932010-03-14 Pedro Alves <pedro@codesourcery.com>
17594
17595 * linux-low.h (struct lwp_info): New fields
17596 `stopped_by_watchpoint' and `stopped_data_address'.
17597 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
17598 here, and cache them in the lwp object.
17599 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
17600 directly.
17601 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
17602 field.
17603 (linux_stopped_by_watchpoint): Rewrite.
17604 (linux_stopped_data_address): Rewrite.
17605
bce522a2
PA
176062010-03-06 Simo Melenius <simo.melenius@iki.fi>
17607
17608 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
17609 switching the current inferior, not before.
17610
90884b2b
L
176112010-03-01 H.J. Lu <hongjiu.lu@intel.com>
17612
17613 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
17614 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
17615 i386-linux.c and amd64-linux.c.
17616 (reg-i386.o): Removed.
17617 (reg-i386.c): Likewise.
17618 (reg-i386-linux.o): Likewise.
17619 (reg-i386-linux.c): Likewise.
17620 (reg-x86-64.o): Likewise.
17621 (reg-x86-64.c): Likewise.
17622 (reg-x86-64-linux.o): Likewise.
17623 (reg-x86-64-linux.c): Likewise.
17624 (i386.o): New.
17625 (i386.c): Likewise.
17626 (i386-linux.o): Likewise.
17627 (i386-linux.c): Likewise.
17628 (amd64.o): Likewise.
17629 (amd64.c): Likewise.
17630 (amd64-linux.o): Likewise.
17631 (amd64-linux.c): Likewise.
17632
17633 * configure.srv (srv_i386_regobj): New.
17634 (srv_i386_linux_regobj): Likewise.
17635 (srv_amd64_regobj): Likewise.
17636 (srv_amd64_linux_regobj): Likewise.
17637 (srv_i386_32bit_xmlfiles): Likewise.
17638 (srv_i386_64bit_xmlfiles): Likewise.
17639 (srv_i386_xmlfiles): Likewise.
17640 (srv_amd64_xmlfiles): Likewise.
17641 (srv_i386_linux_xmlfiles): Likewise.
17642 (srv_amd64_linux_xmlfiles): Likewise.
17643 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
17644 srv_xmlfiles to $srv_i386_xmlfiles.
17645 (i[34567]86-*-mingw32ce*): Likewise.
17646 (i[34567]86-*-mingw*): Likewise.
17647 (i[34567]86-*-nto*): Likewise.
17648 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
17649 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
17650 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
17651 (x86_64-*-linux*): Likewise.
17652
17653 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
17654 (init_registers_amd64_linux): New.
17655 (x86_arch_setup): Replace init_registers_x86_64_linux with
17656 init_registers_amd64_linux.
17657
193f13e6
MK
176582010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
17659
17660 * configure.ac: Check for libdl. If it is not available link against
17661 static libthread_db.
17662 * configure: Regenerate.
17663
85d721b8
PA
176642010-02-22 Pedro Alves <pedro@codesourcery.com>
17665
17666 PR9605
17667
17668 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
17669 handing a read watchpoint.
17670 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
17671
6076632b
DE
176722010-02-12 Doug Evans <dje@google.com>
17673
17674 * linux-low.c (linux_supports_tracefork_flag): Document.
17675 (linux_look_up_symbols): Add comment.
17676
3327ccf7
L
176772010-02-03 H.J. Lu <hongjiu.lu@intel.com>
17678
17679 * regcache.c (supply_register): Clear regcache if buf is NULL.
17680
0718675c 176812010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 17682 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
17683
17684 * inferiors.c (find_inferior): Add function documentation.
17685 (unloaded_dll): Handle the case where the unloaded dll has not
17686 been previously registered in the dll list.
17687
177321bd
DJ
176882010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
17689
17690 * linux-arm-low.c (thumb_breakpoint_len): Delete.
17691 (thumb2_breakpoint): New.
17692 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
17693
2b009048
DJ
176942010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17695
17696 * linux-low.c (get_stop_pc): Check for SIGTRAP.
17697 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
17698 breakpoints.
17699
3be029c7
PA
177002010-01-21 Pedro Alves <pedro@codesourcery.com>
17701
17702 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
17703
18f5de3b
JK
177042010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
17705
17706 * linux-s390-low.c (s390_collect_ptrace_register)
17707 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
17708
3743bb4f
DE
177092010-01-21 Doug Evans <dje@google.com>
17710
14ce3065
DE
17711 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
17712 (PTRACE_ARG4_TYPE): New macro.
17713 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
17714 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
17715 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
17716 (usr_store_inferior_registers): Ditto.
17717 (linux_read_memory, linux_write_memory): Ditto.
17718 (linux_test_for_tracefork): Ditto.
17719
3743bb4f
DE
17720 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
17721 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
17722
8b315be5
PA
177232010-01-21 Pedro Alves <pedro@codesourcery.com>
17724
17725 * proc-service.c (ps_lgetregs): Don't refetch registers from the
17726 target.
17727
85492558
PA
177282010-01-21 Pedro Alves <pedro@codesourcery.com>
17729
17730 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
17731 prototype to take a regcache. Adjust.
17732
442ea881
PA
177332010-01-20 Pedro Alves <pedro@codesourcery.com>
17734
17735 * regcache.h (struct thread_info): Forward declare.
17736 (struct regcache): New.
17737 (new_register_cache): Adjust prototype.
17738 (get_thread_regcache): Declare.
17739 (free_register_cache): Adjust prototype.
17740 (registers_to_string, registers_from_string): Ditto.
17741 (supply_register, supply_register_by_name, collect_register)
17742 (collect_register_as_string, collect_register_by_name): Ditto.
17743 * regcache.c (struct inferior_regcache_data): Delete.
17744 (get_regcache): Rename to ...
17745 (get_thread_regcache): ... this. Adjust. Switch inferior before
17746 fetching registers.
17747 (regcache_invalidate_one): Adjust.
17748 (regcache_invalidate): Fix prototype.
17749 (new_register_cache): Return the new register cache.
17750 (free_register_cache): Change prototype.
17751 (realloc_register_cache): Adjust.
17752 (registers_to_string): Change prototype to take a regcache. Adjust.
17753 (registers_from_string): Ditto.
17754 (register_data): Ditto.
17755 (supply_register): Ditto.
17756 (supply_register_by_name): Ditto.
17757 (collect_register): Ditto.
17758 (collect_register_as_string): Ditto.
17759 (collect_register_by_name): Ditto.
17760 * server.c (process_serial_event): Adjust.
17761 * linux-low.h (regset_fill_func, regset_store_func): Change
17762 prototype.
17763 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
17764 Change prototype.
17765 * linux-low.c (get_stop_pc): Adjust.
17766 (check_removed_breakpoint): Adjust.
17767 (linux_wait_for_event): Adjust.
17768 (linux_resume_one_lwp): Adjust.
17769 (fetch_register): Add regcache parameter. Adjust.
17770 (usr_store_inferior_registers): Ditto.
17771 (regsets_fetch_inferior_registers): Ditto.
17772 (regsets_store_inferior_registers): Ditto.
17773 (linux_fetch_registers, linux_store_registers): Ditto.
17774 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
17775 regcache. Adjust.
43aaf8b6
PA
17776 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
17777 Ditto.
442ea881
PA
17778 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
17779 prototype to take a regcache.
17780 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
17781 * remote-utils.c (convert_ascii_to_int, outreg)
17782 (prepare_resume_reply): Change prototype to take a regcache.
17783 Adjust.
17784 * target.h (struct target_ops) <fetch_registers, store_registers>:
17785 Change prototype to take a regcache.
17786 (fetch_inferior_registers, store_inferior_registers): Change
17787 prototype to take a regcache. Adjust.
17788 * proc-service.c (ps_lgetregs): Adjust.
17789 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
17790 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
17791 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
17792 take a regcache. Adjust.
17793 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
17794 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
17795 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
17796 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
17797 * linux-cris-low.c (cris_get_pc, cris_set_pc)
17798 (cris_cannot_fetch_register):
17799 (cris_breakpoint_at): Change prototype to take a regcache.
17800 Adjust.
17801 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
17802 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
17803 to take a regcache. Adjust.
17804 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
17805 Adjust.
17806 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
17807 take a regcache. Adjust.
17808 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
17809 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
17810 (m68k_set_pc): Change prototype to take a regcache. Adjust.
17811 * linux-mips-low.c (mips_get_pc):
17812 (mips_set_pc): Change prototype to take a regcache. Adjust.
17813 (mips_reinsert_addr): Adjust.
17814 (mips_collect_register): Change prototype to take a regcache.
17815 Adjust.
17816 (mips_supply_register):
17817 (mips_collect_register_32bit, mips_supply_register_32bit)
17818 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
17819 (mips_store_fpregset): Ditto.
43aaf8b6
PA
17820 * linux-ppc-low.c (ppc_supply_ptrace_register)
17821 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
17822 (parse_spufs_run): Adjust.
17823 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
17824 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
17825 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
17826 take a regcache. Adjust.
17827 * linux-s390-low.c (s390_collect_ptrace_register)
17828 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
17829 (s390_set_pc): Change prototype to take a regcache. Adjust.
17830 (s390_arch_setup): Adjust.
17831 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
17832 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
17833 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
17834 (sparc_fill_gregset, sparc_store_gregset_from_stack)
17835 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
17836 regcache. Adjust.
17837 (sparc_breakpoint_at): Adjust.
17838 * linux-xtensa-low.c (xtensa_fill_gregset):
17839 (xtensa_store_gregset):
17840 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
17841 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
17842 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
17843 prototype to take a regcache. Adjust.
17844 * win32-arm-low.c (arm_fetch_inferior_register)
17845 (arm_store_inferior_register): Change prototype to take a
17846 regcache. Adjust.
17847 * win32-i386-low.c (i386_fetch_inferior_register)
17848 (i386_store_inferior_register): Change prototype to take a
17849 regcache. Adjust.
17850 * win32-low.c (child_fetch_inferior_registers)
17851 (child_store_inferior_registers): Change prototype to take a
17852 regcache. Adjust.
17853 (win32_wait): Adjust.
17854 (win32_fetch_inferior_registers): Change prototype to take a
17855 regcache. Adjust.
17856 (win32_store_inferior_registers): Adjust.
17857 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
17858 store_inferior_register>: Change prototype to take a regcache.
17859
60c3d7b0
DE
178602010-01-20 Doug Evans <dje@google.com>
17861
17862 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
17863 #ifdef.
17864 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 17865 (W_STOPCODE): Provide definition if missing.
60c3d7b0 17866
dc146f7c
VP
178672010-01-13 Vladimir Prus <vladimir@codesourcery.com>
17868
17869 * linux-low.c (linux_core_of_thread): New.
17870 (compare_ints, show_process, list_threads): New.
17871 (linux_qxfer_osdata): Report threads and cores.
17872 (linux_target_op): Register linux_core_of_thread.
17873 * remote-utils.c (prepare_resume_reply): Report the core.
17874 (buffer_xml_printf): Support %d specifier.
17875 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
17876 New.
17877 (handle_query): Handle qXfer:threads. Announce availability
17878 thereof.
17879 * target.h (struct target_ops): New field core_of_thread.
17880
7803799a
UW
178812010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
17882
17883 * Makefile.in (clean): Remove new generated files.
17884 (reg-s390.o, reg-s390.c): Remove rules.
17885 (reg-s390x.o, reg-s390x.c): Likewise.
17886 (s390-linux32.o, s390-linux32.c): Add rules.
17887 (s390-linux64.o, s390-linux64.c): Likewise.
17888 (s390x-linux64.o, s390x-linux64.c): Likewise.
17889 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
17890 * linux-s390-low.c: Include <elf.h>.
17891 (HWCAP_S390_HIGH_GPRS): Define if undefined.
17892 (init_registers_s390): Remove prototype.
17893 (init_registers_s390x): Likewise.
17894 (init_registers_s390_linux32): Add prototype.
17895 (init_registers_s390_linux64): Likewise.
17896 (init_registers_s390x_linux64): Likewise.
17897 (s390_num_regs_3264): New define.
17898 (s390_regmap_3264): New global variable.
17899 (s390_cannot_fetch_register): Remove obsolete check.
17900 (s390_cannot_store_register): Likewise.
17901 (s390_collect_ptrace_register): Handle upper/lower register halves.
17902 (s390_supply_ptrace_register): Likewise.
17903 (s390_fill_gregset): Update to register number changes.
17904 (s390_get_hwcap): New routine.
17905 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
17906 Install appropriate regmap and register set.
17907
6e7ffa39
JB
179082010-01-01 Joel Brobecker <brobecker@adacore.com>
17909
17910 * server.c (gdbserver_version): Update copyright year to 2010.
17911 * gdbreplay.c (gdbreplay_version): Likewise.
17912
957f3f49
DE
179132009-12-28 Doug Evans <dje@google.com>
17914
17915 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
17916 elf/external.h. Include <elf.h> instead but only if necessary.
17917
ca5c370d
PA
179182009-12-28 Pedro Alves <pedro@codesourcery.com>
17919
17920 * linux-low.c (linux_remove_process): Remove `detaching'
17921 parameter. Don't release/detach from thread_db here.
17922 (linux_kill): Release/detach from thread_db here, ...
17923 (linux_detach): ... and here, before actually detaching.
17924 (linux_wait_1): ... and here, when a process exits.
17925 * thread-db.c (any_thread_of): New.
17926 (thread_db_free): Switch the current inferior to a thread of the
17927 passed in process.
17928
4ee62156
DE
179292009-12-21 Doug Evans <dje@google.com>
17930
d90e6a88
DE
17931 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
17932
c5f62d5f
DE
17933 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
17934 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
17935 warning ifndef __NR_tkill. Move setting of errno there too.
17936 Delete unnecessary resetting of errno after syscall.
17937 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
17938
10e86dd7
DE
17939 * configure.ac: Check for dladdr.
17940 * config.in: Regenerate.
17941 * configure: Regenerate.
17942 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
17943 (try_thread_db_load): Update.
17944
4ee62156
DE
17945 * linux-low.c (my_waitpid): Delete unnecessary prototype.
17946
00f515da
DE
179472009-12-18 Doug Evans <dje@google.com>
17948
e9464885
DE
17949 * event-loop.c: Include unistd.h if it exists.
17950
07d4f67e
DE
17951 * linux-low.c (my_waitpid): Move definition away from being in
17952 between linux_tracefork_child/linux_test_for_tracefork.
17953
00f515da
DE
17954 * gdb_proc_service.h (psaddr_t): Fix type.
17955 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
17956 signature to match glibc.
17957
1de1badb
DE
179582009-12-16 Doug Evans <dje@google.com>
17959
17960 * linux-low.c (linux_read_memory): Fix argument to read.
17961
aeeb81d1
PA
179622009-11-26 Pedro Alves <pedro@codesourcery.com>
17963
17964 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
17965 events, don't leave current_inferior pointing at null.
17966
10357975
PA
179672009-11-26 Pedro Alves <pedro@codesourcery.com>
17968
17969 * win32-low.c (LOG): Delete.
17970 (OUTMSG): Output to stderr.
17971 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
17972 on compile time LOG macro.
17973 (win32_wait): Fix debug output.
17974
cf6e3471
PA
179752009-11-26 Pedro Alves <pedro@codesourcery.com>
17976
17977 * win32-low.c (win32_add_one_solib): If the dll name is
17978 "ntdll.dll", prepend the system directory to the dll path.
17979
0c85e18e
MK
179802009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
17981
17982 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
17983
9ac544ce 179842009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 17985 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
17986
17987 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
17988 * configure.ac: Check for __mcoldfire__ and set
17989 gdb_cv_m68k_is_coldfire.
17990 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
17991 reg-cf.o and reg-m68k.o.
17992 * configure: Regenerated.
17993
fd7dd3e6
PA
179942009-11-16 Pedro Alves <pedro@codesourcery.com>
17995
17996 * linux-low.c (linux_remove_process): Add `detaching' parameter.
17997 Pass it to thread_db_free.
17998 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
17999 proper `detaching' argument to linux_remove_process.
18000 * linux-low.h (thread_db_free): Add `detaching' parameter.
18001 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18002 to thread_db_free.
18003 (thread_db_free): Add `detaching' parameter. Only
18004 call td_ta_clear_event if detaching from process.
18005
75aa492e
MK
180062009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18007
18008 * thread-db.c (thread_db_free): Fix typo.
18009
21e1bee4
PP
180102009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18011
18012 PR gdb/10838
18013 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18014
8838b45e
NS
180152009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18016
18017 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18018 with an i686 compiler.
18019 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18020 needed.
18021 * configure: Rebuilt.
18022
8a35fb51
SL
180232009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18024
18025 PR gdb/10783
18026
18027 * server.c (handle_search_memory_1): Correct read_addr initialization
18028 in loop for searching subsequent chunks.
18029
96f15937
PP
180302009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18031
18032 * configure.ac: New --with-libthread-db option.
18033 * thread-db.c: Allow direct dependence on libthread_db.
18034 (thread_db_free): Adjust.
18035 * config.in: Regenerate.
18036 * configure: Likewise.
889bf7c5 18037
5f7d1694
PP
180382009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18039
18040 PR gdb/10757
18041 * thread-db.c (attach_thread): New function.
18042 (maybe_attach_thread): Return success/failure.
18043 (find_new_threads_callback): Adjust.
889bf7c5
PA
18044 (thread_db_find_new_threads): Loop until no new threads.
18045
88e3b899
PA
180462009-10-13 Pedro Alves <pedro@codesourcery.com>
18047
18048 * proc-service.c (ps_lgetregs): Formatting.
18049
cdbfd419
PP
180502009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18051
18052 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18053 * configure.ac: Adjust.
18054 * linux-low.h (struct process_info_private): Move members to struct
18055 thread_db.
18056 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18057 * linux-low.c (linux_remove_process): Adjust.
18058 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18059 * server.c (handle_query): Move code ...
18060 (handle_monitor_command): ... here. New function.
18061 * target.h (struct target_ops): New member.
18062 * thread-db.c (struct thread_db): New.
18063 (libthread_db_search_path): New variable.
18064 (thread_db_create_event, thread_db_enable_reporting)
18065 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18066 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18067 (try_thread_db_load_1, dladdr_to_soname): New functions.
18068 (try_thread_db_load, thread_db_load_search): New functions.
18069 (thread_db_init): Search for libthread_db.
18070 (thread_db_free): New function.
18071 (thread_db_handle_monitor_command): Likewise.
18072 * config.in: Regenerate.
18073 * configure: Regenerate.
889bf7c5 18074
4168d2d6
UW
180752009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18076
18077 * spu-low.c (spu_kill): Wait for inferior to terminate.
18078 Call clear_inferiors.
18079 (spu_detach): Call clear_inferiors.
18080
81ecdfbb
RW
180812009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18082
18083 * aclocal.m4: Regenerate.
18084 * config.in: Likewise.
18085 * configure: Likewise.
18086
0b9ff2c0
UW
180872009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18088
18089 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18090 (parse_spufs_run): New function.
18091 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18092 (ppc_breakpoint_at): Handle SPU breakpoints.
18093
efcbbd14
UW
180942009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18095
18096 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18097 (SPUFS_MAGIC): Define.
18098 (spu_enumerate_spu_ids): New function.
18099 (linux_qxfer_spu): New function.
18100 (linux_target_ops): Install linux_qxfer_spu.
18101
f4d9bade
UW
181022009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18103
18104 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18105 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18106 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18107 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18108 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18109 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18110 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18111 (init_registers_powerpc_cell32l): Add prototype.
18112 (init_registers_powerpc_cell64l): Likewise.
18113 (ppc_arch_setup): Detect Cell/B.E. architecture.
18114
96e946ca
RW
181152009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18116
18117 * Makefile.in (datarootdir): New variable.
18118
58d6951d
DJ
181192009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18120
18121 * linux-low.c (linux_write_memory): Update debugging output.
18122 * Makefile.in (clean): Add new descriptions.
18123 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18124 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18125 * configure.srv: Add new files for arm*-*-linux*.
18126 * linux-arm-low.c: Add new declarations.
18127 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18128 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18129 (HWCAP_VFPv3D16): New.
18130 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18131 instead of __IWMMXT__.
18132 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18133 (arm_arch_setup): New.
18134 (target_regsets): Remove #ifdef. Add VFP regset.
18135 (the_low_target): Use arm_arch_setup.
18136
12b42a12
DJ
181372009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18138
18139 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18140 the main thread again.
18141
ac8c974e
AR
181422009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18143
18144 Adding Neutrino gdbserver.
18145 * configure: Regenerated.
18146 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18147 * configure.srv (i[34567]86-*-nto*): New target.
18148 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18149 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18150 (nto_comctrl) [__QNX__]: New function.
18151 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18152
4424e0c3 181532009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18154
18155 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18156 srv_tgtobj.
18157
912cf4ba
PA
181582009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18159 Pedro Alves <pedro@codesourcery.com>
18160
18161 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18162 don't support CONTEXT_EXTENDED_REGISTERS.
18163 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18164 (the_low_target): Install them.
18165 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18166 failing with ERROR_PIPE_NOT_CONNECTED.
18167
aa5ca48f
DE
181682009-06-30 Doug Evans <dje@google.com>
18169 Pierre Muller <muller@ics.u-strasbg.fr>
18170
18171 Add h/w watchpoint support to x86-linux, win32-i386.
18172 * Makefile.in (SFILES): Add i386-low.c
18173 (i386_low_h): Define.
18174 (i386-low.o): Add dependencies.
18175 (linux-x86-low.o): Add i386-low.h dependency.
18176 (win32-i386-low.o): Ditto.
18177 * i386-low.c: New file.
18178 * i386-low.h: New file.
18179 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18180 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18181 * linux-low.c (linux_add_process): Initialize arch_private.
18182 (linux_remove_process): Free arch_private.
18183 (add_lwp): Initialize arch_private.
18184 (delete_lwp): Free arch_private.
18185 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18186 provided.
18187 * linux-low.h (process_info_private): New member arch_private.
18188 (lwp_info): New member arch_private.
18189 (linux_target_ops): New members new_process, new_thread,
18190 prepare_to_resume.
18191 (ptid_of): New macro.
18192 * linux-x86-low.c: Include stddef.h, i386-low.h.
18193 (arch_process_info): New struct.
18194 (arch_lwp_info): New struct.
18195 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18196 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18197 (i386_dr_low_get_status): New function.
18198 (x86_insert_point, x86_remove_point): New functions.
18199 (x86_stopped_by_watchpoint): New function.
18200 (x86_stopped_data_address): New function.
18201 (x86_linux_new_process, x86_linux_new_thread): New functions.
18202 (x86_linux_prepare_to_resume): New function.
18203 (the_low_target): Add entries for insert_point, remove_point,
18204 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18205 prepare_to_resume.
18206 * server.c (debug_hw_points): New global.
18207 (monitor_show_help): Document set debug-hw-points.
18208 (handle_query): Process "set debug-hw-points".
18209 * server.h (debug_hw_points): Declare.
18210 (paddress): Declare.
18211 * utils.c (NUMCELLS, CELLSIZE): New macros.
18212 (get_sell, xsnprintf, paddress): New functions.
18213 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18214 remove_point, stopped_by_watchpoint, stopped_data_address.
18215 * win32-i386-low.c: Include i386-low.h.
18216 (debug_reg_state): Replaces dr.
18217 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18218 (i386_dr_low_get_status): New function.
18219 (i386_insert_point, i386_remove_point): New functions.
18220 (i386_stopped_by_watchpoint): New function.
18221 (i386_stopped_data_address): New function.
18222 (i386_initial_stuff): Update.
18223 (get_thread_context,set_thread_context,i386_thread_added): Update.
18224 (the_low_target): Add entries for insert_point,
18225 remove_point, stopped_by_watchpoint, stopped_data_address.
18226 * win32-low.c (win32_insert_watchpoint): New function.
18227 (win32_remove_watchpoint): New function.
18228 (win32_stopped_by_watchpoint): New function.
18229 (win32_stopped_data_address): New function.
18230 (win32_target_ops): Add entries for insert_watchpoint,
18231 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18232 * win32-low.h (win32_target_ops): New members insert_point,
18233 remove_point, stopped_by_watchpoint, stopped_data_address.
18234
d993e290
PA
182352009-06-25 Pedro Alves <pedro@codesourcery.com>
18236
18237 * server.c (process_serial_event): Re-return unsupported, not
18238 error, if the type isn't recognized. Re-allow supporting only
18239 insert or remove packets. Also call require_running for
18240 breakpoints. Add missing break statement to default case. Tidy.
18241 * target.h (struct target_ops): Rename insert_watchpoint to
18242 insert_point, and remove_watchpoint to remove_point.
18243
18244 * linux-low.h (struct linux_target_ops): Likewise.
18245 * linux-low.c (linux_insert_watchpoint): Rename to ...
18246 (linux_insert_point): ... this. Adjust.
18247 (linux_remove_watchpoint): Rename to ...
18248 (linux_remove_point): ... this. Adjust.
18249 (linux_target_ops): Adjust.
18250 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18251 (cris_insert_point): ... this.
18252 (cris_remove_watchpoint): Rename to ...
18253 (cris_remove_point): ... this.
18254 (the_low_target): Adjust.
18255
0f54c268
PM
182562009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18257
18258 * server.c (handle_v_kill): Pass signal_pid to
18259 kill_inferior if multi_process is zero.
18260
c6314022
AR
182612009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18262
18263 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18264 * target.h (target_ops): Comment for *_watchpoint to make it clear
18265 the functions can get types '0' and '1'.
18266
4463ce24
AR
182672009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18268
18269 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18270 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18271 * regcache.c (get_regcache): Likewise.
18272 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18273 * win32-low.c (child_fetch_inferior_registers): Remove check for
18274 regno 0.
18275
cf8fd78b
PA
182762009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18277 Pedro Alves <pedro@codesourcery.com>
18278
18279 * target.h (struct target_ops) <supports_multi_process>: New
18280 callback.
18281 (target_supports_multi_process): New.
18282 * server.c (handle_query): Even if GDB reports support, only
18283 enable multi-process if the target also supports it. Report
18284 multi-process support only if the target backend supports it.
18285 * linux-low.c (linux_supports_multi_process): New function.
18286 (linux_target_ops): Install it as target_supports_multi_process
18287 callback.
18288
47c0c975
DE
182892009-05-24 Doug Evans <dje@google.com>
18290
e09875d4
DE
18291 Global renaming of find_thread_pid to find_thread_ptid.
18292 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18293 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18294 All callers updated.
18295
e27d73f6
DE
18296 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18297 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18298 directly.
18299
47c0c975
DE
18300 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18301 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18302 (linux_resume_one_lwp): Ditto.
18303
2acc282a
DE
183042009-05-23 Doug Evans <dje@google.com>
18305
18306 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18307 from struct inferior_list_entry * to struct lwp_info *.
18308 All callers updated.
18309
9f1036c1
DE
183102009-05-13 Doug Evans <dje@google.com>
18311
18312 * linux-x86-low.c: Don't include assert.h.
18313 (x86_siginfo_fixup): Use fatal, not assert.
18314 (x86_arch_setup): Fix comment.
18315
d0722149
DE
183162009-05-12 Doug Evans <dje@google.com>
18317
18318 Biarch support for i386/amd64 gdbserver.
18319 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18320 Add linux-x86-low.c.
18321 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18322 (linux-x86-low.o): Add.
18323 * linux-x86-64-low.c: Delete.
18324 * linux-i386-low.c: Delete.
18325 * linux-x86-low.c: New file.
18326 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18327 linux-x86-low.o.
18328 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18329 linux-x86-low.o.
18330 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18331 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18332 (linux_child_pid_to_exec_file): New function.
18333 (elf_64_header_p, elf_64_file_p): New functions.
18334 (siginfo_fixup): New function.
18335 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18336 give target a chance to convert layout.
18337 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18338 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18339
fdeb2a12
DE
183402009-05-07 Doug Evans <dje@google.com>
18341
18342 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18343 (regsets_store_inferior_registers): Ditto.
18344
a6dbe5df
PA
183452009-05-06 Pedro Alves <pedro@codesourcery.com>
18346
18347 PR server/10048
18348
18349 * linux-low.c (must_set_ptrace_flags): Delete.
18350 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18351 of the global.
18352 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18353 `lwp->must_set_ptrace_flags' instead.
ba42693b 18354 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
18355 (linux_wait_1): ... not here.
18356
5091eb23
DE
183572009-04-30 Doug Evans <dje@google.com>
18358
9f767825
DE
18359 * inferiors.c (started_inferior_callback): New function.
18360 (attached_inferior_callback): New function.
18361 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18362 * server.c (print_started_pid, print_attached_pid): New functions.
18363 (detach_or_kill_for_exit): New function.
18364 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18365 * server.h (have_started_inferiors_p): Declare.
18366 (have_attached_inferiors_p): Declare.
18367
5091eb23
DE
18368 * inferiors.c (remove_process): Fix memory leak, free process.
18369 * linux-low.c (linux_remove_process): New function.
18370 (linux_kill): Call it instead of remove_process.
18371 (linux_detach, linux_wait_1): Ditto.
18372
155c8968
PA
183732009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18374
18375 * configure.srv: Add x86 Windows CE target.
18376
7fe519cb
UW
183772009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18378
18379 * inferiors.c (get_thread_process): Make global.
18380 * server.h (get_thread_process): Add prototype.
18381 * thread-db.c (find_one_thread): Use get_thread_process
18382 instead of current_process.
18383 (thread_db_get_tls_address): Do not crash if called when
18384 thread layer is not yet initialized.
18385
5472f405
UW
183862009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18387
18388 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18389 * spu-low.c (current_tid): Rename to ...
18390 (current_ptid): ... this.
18391 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18392 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18393 ptid_get_lwp (current_ptid) instead of current_tid.
18394 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18395 instead of current_tid. Use find_process_pid to verify pid
18396 argument is valid. Pass proper argument to remove_process.
18397 (spu_thread_alive): Compare current_ptid instead of current_tid.
18398 (spu_resume): Likewise.
18399
55ac2b99
PA
184002009-04-02 Pedro Alves <pedro@codesourcery.com>
18401
18402 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18403 variable.
18404
95954743
PA
184052009-04-01 Pedro Alves <pedro@codesourcery.com>
18406
18407 Implement the multiprocess extensions, and add linux multiprocess
18408 support.
18409
18410 * server.h (ULONGEST): Declare.
18411 (struct ptid, ptid_t): New.
18412 (minus_one_ptid, null_ptid): Declare.
18413 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18414 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18415 (struct inferior_list_entry): Change `id' type from unsigned from
18416 to ptid_t.
18417 (struct sym_cache, struct breakpoint, struct
18418 process_info_private): Forward declare.
18419 (struct process_info): Declare.
18420 (current_process): Declare.
18421 (all_processes): Declare.
18422 (initialize_inferiors): Declare.
18423 (add_thread): Adjust to use ptid_t.
18424 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18425 (add_process, remove_process, find_thread_pid): Declare.
18426 (find_inferior_id): Adjust to use ptid_t.
18427 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18428 (multi_process): Declare.
18429 (push_event): Adjust to use ptid_t.
18430 (read_ptid, write_ptid): Declare.
18431 (prepare_resume_reply): Adjust to use ptid_t.
18432 (clear_symbol_cache): Declare.
18433 * inferiors.c (all_processes): New.
18434 (null_ptid, minus_one_ptid): New.
18435 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18436 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18437 (add_thread): Change unsigned long to ptid. Remove gdb_id
18438 parameter. Adjust.
18439 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18440 (gdb_id_to_thread): Rename to ...
18441 (find_thread_pid): ... this. Change unsigned long to ptid.
18442 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18443 (loaded_dll, pull_pid_from_list): Adjust.
18444 (add_process, remove_process, find_process_pid)
18445 (get_thread_process, current_process, initialize_inferiors): New.
18446 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18447 (struct target_waitstatus) <related_pid>: Ditto.
18448 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18449 return type to int.
18450 (struct target_ops) <join>: Add `pid' argument.
18451 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18452 (struct target_ops) <wait>: Add `ptid' field. Change return type
18453 to ptid.
18454 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18455 (mywait): Add `ptid' argument. Change return type to ptid_t.
18456 (target_pid_to_str): Declare.
18457 * target.c (set_desired_inferior): Adjust to use ptids.
18458 (mywait): Add new `ptid' argument. Adjust.
18459 (target_pid_to_str): New.
18460 * mem-break.h (free_all_breakpoints): Declare.
18461 * mem-break.c (breakpoints): Delelete.
18462 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18463 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18464 to use per-process breakpoint list.
18465 (free_all_breakpoints): New.
18466 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18467 (symbol_cache, all_symbols_looked_up): Delete.
18468 (hexchars): New.
18469 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18470 read_ptid): New.
18471 (prepare_resume_reply): Change ptid argument's type from unsigned
18472 long to ptid_t. Adjust. Implement W;process and X;process.
18473 (free_sym_cache, clear_symbol_cache): New.
18474 (look_up_one_symbol): Adjust to per-process symbol cache. *
18475 * server.c (cont_thread, general_thread, step_thread): Change type
18476 to ptid_t.
18477 (attached): Delete.
18478 (multi_process): New.
18479 (last_ptid): Change type to ptid_t.
18480 (struct vstop_notif) <ptid>: Change type to ptid_t.
18481 (queue_stop_reply, push_event): Change `ptid' argument's type to
18482 ptid_t.
18483 (discard_queued_stop_replies): Add `pid' argument.
18484 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18485 changes. Don't reference the `attached' global.
18486 (attach_inferior): Adjust to mywait interface changes.
18487 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18488 features. Handle and report "multiprocess+". Handle
18489 "qAttached:PID".
18490 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18491 changes.
18492 (handle_v_kill): New.
18493 (handle_v_stopped): Adjust to use target_pid_to_str.
18494 (handle_v_requests): Allow multiple attaches and runs when
18495 multiprocess extensions are in effect. Handle "vKill".
18496 (myresume): Adjust to use ptids.
18497 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
18498 (handle_status): Adjust to discard_queued_stop_replies interface
18499 change.
18500 (first_thread_of, kill_inferior_callback)
18501 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
18502 (main): Call initialize_inferiors. Adjust to use ptids, killing
18503 and detaching from all inferiors. Handle multiprocess packet
18504 variants.
18505 * linux-low.h: Include gdb_proc_service.h.
18506 (struct process_info_private): New.
18507 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
18508 <lwpid_of>: Use ptid_get_lwp.
18509 (get_lwp_thread): Adjust.
18510 (struct lwp_info): Add `dead' member.
18511 (find_lwp_pid): Declare.
18512 * linux-low.c (thread_db_active): Delete.
18513 (new_inferior): Adjust comment.
18514 (inferior_pid): Delete.
18515 (linux_add_process): New.
18516 (handle_extended_wait): Adjust.
18517 (add_lwp): Change unsigned long to ptid.
18518 (linux_create_inferior): Add process to processes table. Adjust
18519 to use ptids. Don't set new_inferior here.
18520 (linux_attach_lwp): Rename to ...
18521 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
18522 it. Adjust to use ptids.
18523 (linux_attach_lwp): New.
18524 (linux_attach): Add process to processes table. Don't set
18525 new_inferior here.
18526 (struct counter): New.
18527 (second_thread_of_pid_p, last_thread_of_process_p): New.
18528 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
18529 multiple processes.
18530 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
18531 processes. Remove process from process table.
18532 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
18533 to multiple processes.
18534 (any_thread_of): New.
18535 (linux_detach): Add `pid' argument, and handle it. Remove process
18536 from processes table.
18537 (linux_join): Add `pid' argument. Handle it.
18538 (linux_thread_alive): Change unsighed long argument to ptid_t.
18539 Consider dead lwps as not being alive.
18540 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
18541 threads we're not interested in.
18542 (same_lwp, find_lwp_pid): New.
18543 (linux_wait_for_lwp): Change `pid' argument's type from int to
18544 ptid_t. Adjust.
18545 (linux_wait_for_event): Rename to ...
18546 (linux_wait_for_event_1): ... this. Change `pid' argument's type
18547 from int to ptid_t. Adjust.
18548 (linux_wait_for_event): New.
18549 (linux_wait_1): Add `ptid' argument. Change return type to
18550 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
18551 that exit from the process table.
18552 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
18553 Adjust.
18554 (mark_lwp_dead): New.
18555 (wait_for_sigstop): Adjust to use ptids. If a process exits while
18556 stopping all threads, mark its main lwp as dead.
18557 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
18558 ptids.
18559 (fetch_register, usr_store_inferior_registers)
18560 (regsets_fetch_inferior_registers)
18561 (regsets_store_inferior_registers, linux_read_memory)
18562 (linux_write_memory): Inline `inferior_pid'.
18563 (linux_look_up_symbols): Adjust to use per-process
18564 `thread_db_active'.
18565 (linux_request_interrupt): Adjust to use ptids.
18566 (linux_read_auxv): Inline `inferior_pid'.
18567 (initialize_low): Don't reference thread_db_active.
18568 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
18569 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
18570 (ps_getpid): Return the pid of the current inferior.
18571 * thread-db.c (proc_handle, thread_agent): Delete.
18572 (thread_db_create_event, thread_db_enable_reporting): Adjust to
18573 per-process data.
18574 (find_one_thread): Change argument type to ptid_t. Adjust to
18575 per-process data.
18576 (maybe_attach_thread): Adjust to per-process data and ptids.
18577 (thread_db_find_new_threads): Ditto.
18578 (thread_db_init): Ditto.
18579 * spu-low.c (spu_create_inferior, spu_attach): Add process to
18580 processes table. Adjust to use ptids.
18581 (spu_kill, spu_detach): Adjust interface. Remove process from
18582 processes table.
18583 (spu_join, spu_thread_alive): Adjust interface.
18584 (spu_wait): Adjust interface. Remove process from processes
18585 table. Adjust to use ptids.
18586 * win32-low.c (current_inferior_tid): Delete.
18587 (current_inferior_ptid): New.
18588 (debug_event_ptid): New.
18589 (thread_rec): Take a ptid. Adjust.
18590 (child_add_thread): Add `pid' argument. Adjust to use ptids.
18591 (child_delete_thread): Ditto.
18592 (do_initial_child_stuff): Add `attached' argument. Add process to
18593 processes table.
18594 (child_fetch_inferior_registers, child_store_inferior_registers):
18595 Adjust.
18596 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
18597 (win32_attach): Pass 1 to do_initial_child_stuff.
18598 (win32_kill): Adjust interface. Remove process from processes
18599 table.
18600 (win32_detach): Ditto.
18601 (win32_join): Adjust interface.
18602 (win32_thread_alive): Take a ptid.
18603 (win32_resume): Adjust to use ptids.
18604 (get_child_debug_event): Ditto.
18605 (win32_wait): Adjust interface. Remove exiting process from
18606 processes table.
18607
bd99dc85
PA
186082009-04-01 Pedro Alves <pedro@codesourcery.com>
18609
18610 Non-stop mode support.
18611
18612 * server.h (non_stop): Declare.
18613 (gdb_client_data, handler_func): Declare.
18614 (delete_file_handler, add_file_handler, start_event_loop):
18615 Declare.
18616 (handle_serial_event, handle_target_event, push_event)
18617 (putpkt_notif): Declare.
18618 * target.h (enum resume_kind): New.
18619 (struct thread_resume): Replace `step' field by `kind' field.
18620 (TARGET_WNOHANG): Define.
18621 (struct target_ops) <wait>: Add `options' argument.
18622 <supports_non_stop, async, start_non_stop>: New fields.
18623 (target_supports_non_stop, target_async): New.
18624 (start_non_stop): Declare.
18625 (mywait): Add `options' argument.
18626 * target.c (mywait): Add `options' argument. Print child exit
18627 notifications here.
18628 (start_non_stop): New.
18629 * server.c (non_stop, own_buf, mem_buf): New globals.
18630 (struct vstop_notif): New.
18631 (notif_queue): New global.
18632 (queue_stop_reply, push_event, discard_queued_stop_replies)
18633 (send_next_stop_reply): New.
18634 (start_inferior): Adjust to use resume_kind. Adjust to mywait
18635 interface changes.
18636 (attach_inferior): In non-stop mode, don't wait for the target
18637 here.
18638 (handle_general_set): Handle QNonStop.
18639 (handle_query): When handling qC, return the current general
18640 thread, instead of the first thread of the list.
18641 (handle_query): If the backend supports non-stop mode, include
18642 QNonStop+ in the qSupported query response.
18643 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
18644 and non-stop mode.
18645 (handle_v_attach, handle_v_run): Handle non-stop mode.
18646 (handle_v_stopped): New.
18647 (handle_v_requests): Report support for vCont;t. Handle vStopped.
18648 (myresume): Adjust to use resume_kind. Handle non-stop.
18649 (queue_stop_reply_callback): New.
18650 (handle_status): Handle non-stop mode.
18651 (main): Clear non_stop flag on reconnection. Use the event-loop.
18652 Refactor serial protocol handling from here ...
18653 (process_serial_event): ... to this new function. When GDB
18654 selects any thread, select one here. In non-stop mode, wait until
18655 GDB acks all pending events before exiting.
18656 (handle_serial_event, handle_target_event): New.
18657 * remote-utils.c (remote_open): Install remote_desc in the event
18658 loop.
18659 (remote_close): Remove remote_desc from the event loop.
18660 (putpkt_binary): Rename to...
18661 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
18662 (putpkt_binary): New as wrapper around putpkt_binary_1.
18663 (putpkt_notif): New.
18664 (prepare_resume_reply): In non-stop mode, don't change the
18665 general_thread.
18666 * event-loop.c: New.
18667 * Makefile.in (OBJ): Add event-loop.o.
18668 (event-loop.o): New rule.
18669
18670 * linux-low.h (pid_of): Moved here.
18671 (lwpid_of): New.
18672 (get_lwp_thread): Use lwpid_of.
18673 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
18674 * linux-low.c (pid_of): Delete.
18675 (inferior_pid): Use lwpid_of.
18676 (linux_event_pipe): New.
18677 (target_is_async_p): New.
18678 (delete_lwp): New.
18679 (handle_extended_wait): Use lwpid_of.
18680 (add_lwp): Don't set lwpid field.
18681 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
18682 (linux_kill_one_lwp): If killing a running lwp, stop it first.
18683 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
18684 (linux_detach_one_lwp): If detaching from a running lwp, stop it
18685 first. Adjust to linux_wait_for_event interface changes. Use
18686 lwpid_of.
18687 (linux_detach): Don't delete the main lwp here.
18688 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
18689 (status_pending_p): Don't consider explicitly suspended lwps.
18690 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
18691 pointer. Add OPTIONS argument. Change return type to int. Use
18692 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
18693 (linux_wait_for_event): Take an integer pid instead of a lwp_info
18694 pointer. Add status pointer argument. Return a pid instead of a
18695 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
18696 changes. In non-stop mode, don't switch to a random thread.
18697 (linux_wait): Rename to...
18698 (linux_wait_1): ... this. Add target_options argument, and handle
18699 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
18700 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
18701 clean exit and signal exit code. Don't stop all threads in
18702 non-stop mode. In all-stop mode, only stop all threads when
18703 reporting a stop to GDB. Handle explicit thread stop requests.
18704 (async_file_flush, async_file_mark): New.
18705 (linux_wait): New.
18706 (send_sigstop): Use lwpid_of.
18707 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
18708 interface changes. In non-stop mode, don't switch to a random
18709 thread.
18710 (linux_resume_one_lwp): Use lwpid_of.
18711 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
18712 (linux_resume_one_thread): ... this. Handle resume_stop. In
18713 non-stop mode, don't look for pending flag in all threads.
18714 (resume_status_pending_p): Don't consider explicitly suspended
18715 threads.
18716 (my_waitpid): Reimplement. Emulate __WALL.
18717 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
18718 Use lwpid_of.
18719 (sigchld_handler, linux_supports_non_stop, linux_async)
18720 (linux_start_non_stop): New.
18721 (linux_target_ops): Register linux_supports_non_stop, linux_async
18722 and linux_start_non_stop.
18723 (initialize_low): Install SIGCHLD handler.
18724 * thread-db.c (thread_db_create_event, find_one_thread)
18725 (thread_db_get_tls_address): Use lwpid_of.
18726 * win32-low.c (win32_detach): Adjust to use resume_kind.
18727 (win32_wait): Add `options' argument.
18728 * spu-low.c (spu_resume): Adjust to use resume_kind.
18729 (spu_wait): Add `options' argument.
18730
5b1c542e
PA
187312009-04-01 Pedro Alves <pedro@codesourcery.com>
18732
18733 Decouple target code from remote protocol.
18734
18735 * target.h (enum target_waitkind): New.
18736 (struct target_waitstatus): New.
18737 (struct target_ops) <wait>: Return an unsigned long. Take a
18738 target_waitstatus pointer instead of a char pointer.
18739 (mywait): Likewise.
18740 * target.c (mywait): Change prototype to return an unsigned long.
18741 Take a target_waitstatus pointer instead of a char pointer. Adjust.
18742 * server.h (thread_from_wait, old_thread_from_wait): Delete
18743 declarations.
18744 (prepare_resume_reply): Change prototype to take a
18745 target_waitstatus.
18746 * server.c (thread_from_wait, old_thread_from_wait): Delete.
18747 (last_status, last_ptid): New.
18748 (start_inferior): Remove "statusptr" argument. Adjust. Return a
18749 pid instead of a signal.
18750 (attach_inferior): Remove "status" and "signal" parameters.
18751 Adjust.
18752 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
18753 not as an address.
18754 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
18755 (handle_v_requests, myresume): Remove "status" and "signal"
18756 parameters. Adjust.
18757 (handle_status): New.
18758 (main): Delete local `status'. Adjust.
18759 * remote-utils.c: Include target.h.
18760 (prepare_resume_reply): Change prototype to take a
18761 target_waitstatus. Adjust.
18762
18763 * linux-low.c (linux_wait): Adjust to new target_ops->wait
18764 interface.
18765 * spu-low.c (spu_wait): Adjust.
18766 * win32-low.c (enum target_waitkind, struct target_waitstatus):
18767 Delete.
18768 (win32_wait): Adjust.
18769
2bd7c093
PA
187702009-04-01 Pedro Alves <pedro@codesourcery.com>
18771
18772 * target.h (struct thread_resume): Delete leave_stopped member.
18773 (struct target_ops): Add a `n' argument to the `resume' callback.
18774 * server.c (start_inferior): Adjust.
18775 (handle_v_cont, myresume): Adjust.
18776 * linux-low.c (check_removed_breakpoint): Adjust to resume
18777 interface change, and to removed leave_stopped field.
18778 (resume_ptr): Delete.
18779 (struct thread_resume_array): New.
18780 (linux_set_resume_request): Add new `arg' parameter. Adjust to
18781 resume interface change.
18782 (linux_continue_one_thread, linux_queue_one_thread)
18783 (resume_status_pending_p): Check if the resume field is NULL
18784 instead of checking the leave_stopped member.
18785 (linux_resume): Adjust to the target resume interface change.
18786 * spu-low.c (spu_resume): Adjust to the target resume interface
18787 change.
18788 * win32-low.c (win32_detach, win32_resume): Ditto.
18789
c35fafde
PA
187902009-04-01 Pedro Alves <pedro@codesourcery.com>
18791
18792 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
18793 flag.
18794 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
18795 pending.
18796 (linux_continue_one_thread): Only preserve the stepping flag if
18797 there's a pending breakpoint.
18798
0a59d50b
PA
187992009-03-31 Pedro Alves <pedro@codesourcery.com>
18800
18801 * server.c (main): After the inferior having exited, call
18802 remote_close before exiting gdbserver.
18803
f04c6d38
TJB
188042009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
18805
18806 Fix size of FPSCR in Power 7 processors.
18807 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
18808 (PPC_FEATURE_HAS_DFP): New #define.
18809 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
18810 size of the FPSCR.
18811
78e5cee6
PA
188122009-03-23 Pedro Alves <pedro@codesourcery.com>
18813
18814 * server.c (handle_query) Whitespace and formatting.
18815
1b3f6016
PA
188162009-03-22 Pedro Alves <pedro@codesourcery.com>
18817
18818 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
18819 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
18820 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
18821 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
18822 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
18823 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
18824 Makefile.in, configure.ac: Fix whitespace throughout.
18825 * configure: Regenerate.
18826
a07b2135
PA
188272009-03-22 Pedro Alves <pedro@codesourcery.com>
18828
18829 * inferiors.c (find_inferior): Make it safe for the callback
18830 function to delete the currently iterated inferior.
18831
67cc2626
PA
188322009-03-22 Pedro Alves <pedro@codesourcery.com>
18833
18834 * Makefile.in (linuw_low_h): Move higher.
18835 (thread-db.o): Depend on $(linux_low_h).
18836
54a0b537
PA
188372009-03-17 Pedro Alves <pedro@codesourcery.com>
18838
18839 Rename "process" to "lwp" throughout.
18840
18841 * linux-low.c (all_processes): Rename to...
18842 (all_lwps): ... this.
18843 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
18844 (add_process): Rename to ...
18845 (add_lwp): ... this. Adjust.
18846 (linux_create_inferior): Adjust.
18847 (linux_attach_lwp): Adjust.
18848 (linux_attach): Adjust.
18849 (linux_kill_one_process): Rename to ...
18850 (linux_kill_one_lwp): ... this. Adjust.
18851 (linux_kill): Adjust.
18852 (linux_detach_one_process): Rename to ...
18853 (linux_detach_one_lwp): ... this. Adjust.
18854 (linux_detach): Adjust.
18855 (check_removed_breakpoint): Adjust.
18856 (status_pending_p): Adjust.
18857 (linux_wait_for_process): Rename to ...
18858 (linux_wait_for_lwp): ... this. Adjust.
18859 (linux_wait_for_event): Adjust.
18860 (send_sigstop): Adjust.
18861 (wait_for_sigstop): Adjust.
18862 (stop_all_processes): Rename to ...
18863 (stop_all_lwps): ... this.
18864 (linux_resume_one_process): Rename to ...
18865 (linux_resume_one_lwp): ... this. Adjust.
18866 (linux_set_resume_request, linux_continue_one_thread)
18867 (linux_queue_one_thread, resume_status_pending_p)
18868 (usr_store_inferior_registers, regsets_store_inferior_registers)
18869 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
18870 Adjust.
18871 * linux-low.h (get_process): Rename to ...
18872 (get_lwp): ... this. Adjust.
18873 (get_thread_process): Rename to ...
18874 (get_thread_lwp): ... this. Adjust.
18875 (get_process_thread): Rename to ...
18876 (get_lwp_thread): ... this. Adjust.
18877 (struct process_info): Rename to ...
18878 (struct lwp_info): ... this.
18879 (all_processes): Rename to ...
18880 (all_lwps): ... this.
18881 * proc-service.c (ps_lgetregs): Adjust.
18882 * thread-db.c (thread_db_create_event, find_one_thread)
18883 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
18884
0b16c5cf
PA
188852009-03-14 Pedro Alves <pedro@codesourcery.com>
18886
18887 * server.c (handle_query): Handle "qAttached".
18888
32de4b9d
NS
188892009-03-13 Nathan Sidwell <nathan@codesourcery.com>
18890
18891 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
18892 GPLv3, update license URL.
18893
2aecd87f
DE
188942009-03-01 Doug Evans <dje@google.com>
18895
93efd302 18896 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
18897 (server_h): Add gdb_signals.h.
18898 (signals.o): Update.
18899 * server.h (target_signal_from_host,target_signal_to_host_p)
18900 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
18901
86b1f9c5
PM
189022009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
18903
18904 * remote-utils.c (getpkt): Also generate remote-debug
18905 information if noack_mode is set.
18906
4aa995e1
PA
189072009-02-06 Pedro Alves <pedro@codesourcery.com>
18908
18909 * server.c (handle_query): Report qXfer:siginfo:read and
18910 qXfer:siginfo:write as supported and handle them.
18911 * target.h (struct target_ops) <qxfer_siginfo>: New field.
18912 * linux-low.c (linux_xfer_siginfo): New.
18913 (linux_target_ops): Set it.
18914
62709adf
PA
189152009-01-26 Pedro Alves <pedro@codesourcery.com>
18916
18917 * server.c (gdbserver_usage): Mention --remote-debug.
18918 (main): Accept '--remote-debug' switch.
18919
aef93bd7
DE
189202009-01-18 Doug Evans <dje@google.com>
18921
18922 * regcache.c (new_register_cache): No need to check result of xcalloc.
18923 * server.c (handle_search_memory): Back out calls to xmalloc,
18924 result is checked and error is returned to user upon failure.
18925 (handle_query): Ditto. Add more checks for result of malloc.
18926 (handle_v_cont): Check result of malloc, report error back to
18927 user upon failure.
18928 (handle_v_run): Ditto. Call freeargv.
18929 * server.h (freeargv): Declare.
18930 * utils.c (freeargv): New fn.
18931
54363045
DE
189322009-01-15 Doug Evans <dje@google.com>
18933
f626972c
DE
18934 * gdbreplay.c (perror_with_name): Make arg const char *.
18935 * server.h (target_signal_to_name): Make return type const char *.
0842e787 18936 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 18937 * utils.c (perror_with_name): Make arg const char *.
54363045 18938
18aae699
PA
189392009-01-14 Pedro Alves <pedro@codesourcery.com>
18940
18941 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
18942 when handling a EXIT_PROCESS_DEBUG_EVENT.
18943
ff703abe
JB
189442009-01-06 Joel Brobecker <brobecker@adacore.com>
18945
18946 * gdbreplay.c (gdbreplay_version): Update copyright year.
18947 * server.c (gdbserver_version): Likewise.
18948
f21cc1a2 189492009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
18950
18951 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 18952 (handle_extended_wait): Improve comment.
0e21c1ec 18953
bca929d3
DE
189542008-12-13 Doug Evans <dje@google.com>
18955
18956 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
18957 * server.h (ATTR_MALLOC): New macro.
18958 (xmalloc,xcalloc,xstrdup): Declare.
18959 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
18960 * inferiors.c: Ditto.
18961 * linux-low.c: Ditto.
18962 * mem-break.c: Ditto.
18963 * regcache.c: Ditto.
18964 * remote-utils.c: Ditto.
18965 * server.c: Ditto.
18966 * target.c: Ditto.
18967 * win32-low.c: Ditto.
18968
97438e3f
DE
189692008-12-12 Doug Evans <dje@google.com>
18970
896c7fbb
DE
18971 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
18972 in debugging printf.
18973
97438e3f
DE
18974 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
18975
e3b886f8
DE
189762008-12-09 Doug Evans <dje@google.com>
18977
18978 * linux-low.h (struct process_info): Delete member tid, unused.
18979 * thread-db.c (find_one_thread): Update.
18980 (maybe_attach_thread): Update.
18981
07e059b5
VP
189822008-12-02 Pedro Alves <pedro@codesourcery.com>
18983
889bf7c5
PA
18984 * target.h (struct target_ops): Add qxfer_osdata member.
18985 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
18986 and dirent.h.
18987 (linux_qxfer_osdata): New functions.
18988 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
18989 callback.
18990 * server.c (handle_query): Handle "qXfer:osdata:read:".
18991 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
18992 (buffer_xml_printf): New functions.
18993 * server.h (struct buffer): New.
18994 (buffer_grow_str, buffer_grow_str0): New macros.
18995 (buffer_grow, buffer_free, buffer_init, buffer_finish)
18996 (buffer_xml_printf): Declare.
07e059b5 18997
4cab47ab
DE
189982008-11-24 Doug Evans <dje@google.com>
18999
19000 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19001
f142445f
DJ
190022008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19003
19004 * server.c (handle_v_run): Always use the supplied argument list.
19005
d0107bb6 190062008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19007
d0107bb6
BW
19008 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19009 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19010
2c4ad781
TJB
190112008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19012
19013 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19014 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19015 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19016 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19017 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19018 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19019 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19020 XML target descriptions.
19021 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19022 when inferior is running on an ISA 2.05 or later processor. Add
19023 special case to return offset for full 64-bit slot of FPSCR when
19024 in 32-bits.
19025
dfb64f85
DJ
190262008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19027
19028 * Makefile.in (SFILES, clean): Added sparc64 files.
19029 (reg-sparc64.o, reg-sparc64.c): New.
19030 * configure.srv (sparc*-*-linux*): New configuration.
19031 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19032 syscall arguments for SPARC.
19033 (regsets_store_inferior_registers): Likewise.
19034 * linux-sparc-low.c: New file.
19035
66b6e1dd
DE
190362008-10-21 Doug Evans <dje@google.com>
19037
19038 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19039 (READLINE_DIR,READLINE_DEP): Delete.
19040 (INTERNAL_CFLAGS): Update.
19041 (LINTFLAGS): Update.
19042
9b710a42
PA
190432008-10-10 Pedro Alves <pedro@codesourcery.com>
19044
19045 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19046 whole argv from the last run, not just argv[0].
19047
5822d809
PA
190482008-09-08 Pedro Alves <pedro@codesourcery.com>
19049
19050 * regcache.c (new_register_cache): Return NULL if the register
19051 cache size isn't known yet.
19052 (free_register_cache): Avoid dereferencing a NULL regcache.
19053
74aac56f
DJ
190542008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19055
19056 * configure.srv: Merge MIPS and MIPS64.
19057
400b20f5
MR
190582008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19059
19060 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19061
677c5bb1
LM
190622008-08-18 Luis Machado <luisgpm@br.ibm.com>
19063
19064 * Makefile.in: Add required vsx dependencies.
19065
19066 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19067 Declare init_registers_powerpc_vsx32l.
19068 Declare init_registers_powerpc_vsx64l.
19069 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19070 (ppc_arch_setup): Check for VSX in hwcap.
19071 (ppc_fill_vsxregset): New function.
19072 (ppc_store_vsxregset): New function.
19073 Add new VSX entry in regset_info target_regsets.
19074
19075 * configure.srv: Add new VSX dependencies.
19076
a6f3e723
SL
190772008-08-12 Pedro Alves <pedro@codesourcery.com>
19078
19079 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19080 (remote_open): Set or clear transport_is_reliable.
19081 (putpkt_binary): Don't expect acks in noack mode.
19082 (getpkt): Don't send ack/nac in noack mode.
19083 * server.c (handle_general_set): Handle QStartNoAckMode.
19084 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19085 qSupported.
19086 (main): Reset noack_mode on every connection.
19087 * server.h (noack_mode): Declare.
19088
a417dc56
RW
190892008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19090
19091 * Makefile.in (GDBREPLAY_OBS): New variable.
19092 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19093
3221518c
UW
190942008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19095 Daniel Jacobowitz <dan@codesourcery.com>
19096
19097 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19098 (usr_store_inferior_registers): Likewise.
19099 (regsets_store_inferior_registers): Likewise.
19100
ec56be1b
PA
191012008-07-31 Rolf Jansen <rj@surtec.com>
19102 Pedro Alves <pedro@codesourcery.com>
19103
19104 * configure.ac: Check for memmem declaration.
19105 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19106 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19107 (disable_packet_qfThreadInfo): Unconditionally compile.
19108 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19109 * configure, config.in: Regenerate.
19110
2fe5e3ff
DE
191112008-07-28 Doug Kwan <dougkwan@google.com>
19112
19113 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19114 (linux_write_memory): Remove declaration of errno.
19115
836acd6d
UW
191162008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19117
19118 * linux-low.c (handle_extended_wait): Do not use "status"
19119 variable uninitialized.
19120
aeba519e
PA
191212008-07-07 Pedro Alves <pedro@codesourcery.com>
19122
19123 * server.c (handle_v_attach): Inhibit reporting dll changes.
19124
db42f210
PA
191252008-06-27 Pedro Alves <pedro@codesourcery.com>
19126
19127 * remote-utils.c (prepare_resume_reply): If requested, don't
19128 output "thread:TID" in the T stop reply.
19129
19130 * server.c (disable_packet_vCont, disable_packet_Tthread)
19131 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19132 (handle_query): If requested, disable support for qC, qfThreadInfo
19133 and qsThreadInfo.
19134 (handle_v_requests): If requested, disable support for vCont.
19135 (gdbserver_show_disableable): New.
19136 (main): Handle --disable-packet and --disable-packet=LIST.
19137
19138 * server.h (disable_packet_vCont, disable_packet_Tthread)
19139 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19140
8e4c5421
CD
191412008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19142
19143 * server.c (gdbserver_usage): Mention --version.
19144
6e23a804
DJ
191452008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19146
19147 * Makefile.in (gdbreplay.o): New rule.
19148
90aa6a40
JM
191492008-06-06 Joseph Myers <joseph@codesourcery.com>
19150
19151 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19152 message, not gdbserver.
19153
c16158bc 191542008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19155 Nathan Sidwell <nathan@codesourcery.com>
19156 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19157
19158 * acinclude.m4: Include ../../config/acx.m4.
19159 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19160 * configure, config.in: Regenerate.
19161 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19162 * server.c (gdbserver_version): Print PKGVERSION.
19163 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19164 (main): Adjust gdbserver_usage calls.
19165 * gdbreplay.c (version, host_name): Add declarations.
19166 (gdbreplay_version, gdbreplay_usage): New.
19167 (main): Accept --version and --help options.
19168
aeb75bf5
DJ
191692008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19170
19171 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19172 (arm_breakpoint_at): Handle Thumb.
19173 (the_low_target): Add comment.
19174
76b233dd
UW
191752008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19176
19177 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19178
08388c79
DE
191792008-05-09 Doug Evans <dje@google.com>
19180
a3c83fae
DE
19181 * server.h (decode_search_memory_packet): Declare.
19182 * remote-utils.c (decode_search_memory_packet): New fn.
19183 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19184 (handle_search_memory): New fn.
19185 (handle_query): Process qSearch:memory packets.
19186
bb9c3d36
UW
191872008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19188
19189 * regcache.c (registers_length): Remove.
19190 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19191 full register packet.
19192 * regcache.h (registers_length): Remove prototype.
19193 * server.h (PBUFSIZ): Define to 16384.
19194
7284e1be
UW
191952008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19196
19197 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19198 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19199 powerpc-64l.o, and powerpc-altivec64l.o.
19200 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19201 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19202 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19203 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19204 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19205 to srv_xmlfiles.
19206
19207 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19208 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19209 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19210 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19211 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19212 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19213 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19214 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19215 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19216 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19217 (clean): Update.
19218
19219 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19220 (init_registers_powerpc_32l): ... this new prototype.
19221 (init_registers_powerpc_32): Remove, replace by ...
19222 (init_registers_powerpc_altivec32l): ... this new prototype.
19223 (init_registers_powerpc_e500): Remove, replace by ...
19224 (init_registers_powerpc_e500l): ... this new prototype.
19225 (init_registers_ppc64): Remove, replace by ...
19226 (init_registers_powerpc_64l): ... this new prototype.
19227 (init_registers_powerpc_64): Remove, replace by ...
19228 (init_registers_powerpc_altivec64l): ... this new prototype.
19229 (ppc_num_regs): Set to 73.
19230 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19231 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19232 (ppc_cannot_store_register): Handle orig_r3 and trap.
19233 (ppc_arch_setup): Update init_registers_... calls.
19234 (ppc_fill_gregset): Handle orig_r3 and trap.
19235
19236 * inferiors.c (clear_inferiors): Reset current_inferior.
19237
fdc59709
PB
192382008-04-23 Paolo Bonzini <bonzini@gnu.org>
19239
889bf7c5
PA
19240 * acinclude.m4: Add override.m4.
19241 * configure: Regenerate.
fdc59709 19242
c9b2f845
UW
192432008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19244
19245 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19246 initial call to init_register_ppc64.
19247
550512b8
UW
192482008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19249
43aaf8b6
PA
19250 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19251 single powerpc*-*-linux* case.
550512b8
UW
19252 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19253
b6430ec3
UW
192542008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19255
19256 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 19257 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
19258 from reg_xmlfiles.
19259 * linux-ppc-low.c: Include <elf.h>.
19260 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19261 (ppc_hwcap): New global variable.
19262 (ppc_regmap): Remove __SPE__ #ifdef sections.
19263 (ppc_regmap_e500): New global variable.
19264 (ppc_cannot_store_register): Update __SPE__ special case.
19265 (ppc_get_hwcap): New function.
19266 (ppc_arch_setup): Use it to determine whether inferior supports
19267 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19268 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19269 Do not access registers if target does not support AltiVec.
19270 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19271 Do not access registers if target does not support SPE.
19272 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19273
52fa2412
UW
192742008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19275
19276 * linux-low.c (disabled_regsets, num_regsets): New.
19277 (use_regsets_p): Delete.
19278 (linux_wait_for_process): Clear disabled_regsets.
19279 (regsets_fetch_inferior_registers): Check and set it.
19280 (regsets_store_inferior_registers): Likewise.
19281 (linux_fetch_registers, linux_store_registers): Do not use
19282 use_regsets_p.
19283 (initialize_low): Allocate disabled_regsets.
19284
e28b3332
DJ
192852008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19286
19287 * Makefile.in (LIBOBJS): New.
19288 (OBS): Use LIBOBJS.
19289 (memmem.o): New rule.
19290 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19291 * configure: Regenerated.
19292
4536995d
UW
192932008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19294
19295 * server.c (handle_query): Never return "unsupported" for
19296 qXfer:features:read queries.
19297
221c031f
UW
192982008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19299
19300 * server.c (get_features_xml): Fix inverted condition.
19301 (handle_query): Always support qXfer:feature:read.
19302
ccd213ac
DJ
193032008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19304
19305 * server.c (wrapper_argv): New.
19306 (start_inferior): Handle wrapper_argv. If set, expect an extra
19307 trap.
19308 (gdbserver_usage): Document --wrapper.
19309 (main): Parse --wrapper.
19310
6fe305f7
UW
193112008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19312
19313 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19314 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19315 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19316 (ppc_set_pc): Likewise.
19317 (ppc_arch_setup): New function.
19318 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19319 of collect_register.
889bf7c5 19320 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 19321
5b0a002e
UW
193222008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19323
19324 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19325 instead of linux-ppc64-low.o.
19326 * linux-ppc64-low.c: Remove file.
19327 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19328 (linux-ppc64-low.o): Remove rule.
19329
19330 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19331 (init_registers_powerpc_64): Likewise.
19332 (ppc_regmap): Conditionally define depending on __powerpc64__.
19333 (ppc_cannot_store_register): Do not special-case "fpscr" when
19334 compiled on __powerpc64__.
19335 (ppc_collect_ptrace_register): New function.
19336 (ppc_supply_ptrace_register): New function.
19337 (ppc_breakpoint): Change type to "unsigned int".
19338 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19339 (the_low_target): Conditionally provide initializers for the
889bf7c5 19340 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
19341 collect_ptrace_register and supply_ptrace_register members.
19342
9b4b61c8
UW
193432008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19344
19345 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19346 * server.c (gdbserver_xmltarget): Define.
19347 (get_features_xml): Use it to replace "target.xml" and arch_string.
19348
19349 * configure.srv: Remove srv_xmltarget. Add XML files that were
19350 mentioned there to srv_xmlfiles instead. Remove conditional tests
19351 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19352 srv_xmlfiles and srv_regobj to include all possible choices.
19353 * configure.ac (srv_xmltarget): Remove.
19354 (srv_xmlfiles): Do not add "target.xml".
19355 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19356 checks for supplementary target information.
19357 * configure: Regenerate.
19358 * Makefile.in (XML_TARGET): Remove.
19359 (target.xml): Remove rule.
19360 (clean): Do not clean up target.xml.
19361 (.PRECIOUS): Do not mention target.xml.
19362
19363 * target.h (struct target_ops): Remove arch_string member.
19364 * linux-low.c (linux_arch_string): Remove.
19365 (linux_target_ops): Remove arch_string initializer.
19366 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19367 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19368 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19369 * spu-low.c (spu_arch_string): Remove.
19370 (spu_target_ops): Remove arch_string initializer.
19371 * win32-low.c (win32_arch_string): Remove.
19372 (win32_target_ops): Remove arch_string initializer.
19373 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19374 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19375 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19376
ee1a7ae4
UW
193772008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19378
19379 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19380 by collect_ptrace_register and supply_ptrace_register hooks.
19381 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19382 instead of checking for the_low_target.left_pad_xfer.
19383 (usr_store_inferior_registers): Use collect_ptrace_register callback
19384 instead of checking for the_low_target.left_pad_xfer.
19385
19386 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19387 (s390_supply_ptrace_register): Likewise.
19388 (s390_fill_gregset): Call s390_collect_ptrace_register.
19389 (the_low_target): Update.
19390
19391 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19392 (ppc_supply_ptrace_register): Likewise.
19393 (the_low_target): Update.
19394
19395 * linux-i386-low.c (the_low_target): Update.
19396 * linux-x86-64-low.c (the_low_target): Update.
19397
d61ddec4
UW
193982008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19399
19400 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19401 reg-s390.o and reg-s390x.o.
19402
19403 * linux-low.c (new_inferior): New global variable.
19404 (linux_create_inferior, linux_attach): Set it.
19405 (linux_wait_for_process): Call the_low_target.arch_setup after the
19406 target has stopped for the first time.
19407 (initialize_low): Do not call the_low_target.arch_setup.
19408
19409 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19410 (s390_set_pc): Likewise.
19411 (s390_arch_setup): New function.
19412 (the_low_target): Use s390_arch_setup as arch_setup routine.
19413
19414 * regcache.c (realloc_register_cache): New function.
19415 (set_register_cache): Call it for each existing regcache.
19416
d05b4ac3
UW
194172008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19418
19419 * server.h (init_registers): Remove prototype.
19420
19421 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19422 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19423 instead of init_registers ().
19424 * linux-arm-low.c (init_registers_arm): Add prototype.
19425 (init_registers_arm_with_iwmmxt): Likewise.
19426 (the_low_target): Add initializer for arch_setup field.
19427 * linux-cris-low.c (init_registers_cris): Add prototype.
19428 (the_low_target): Add initializer for arch_setup field.
19429 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19430 (the_low_target): Add initializer for arch_setup field.
19431 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19432 (the_low_target): Add initializer for arch_setup field.
19433 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19434 (the_low_target): Add initializer for arch_setup field.
19435 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19436 (the_low_target): Add initializer for arch_setup field.
19437 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19438 (the_low_target): Add initializer for arch_setup field.
19439 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19440 (init_registers_mips64_linux): Likewise.
19441 (the_low_target): Add initializer for arch_setup field.
19442 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19443 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19444 (the_low_target): Add initializer for arch_setup field.
19445 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19446 (init_registers_powerpc_64): Likewise.
19447 (the_low_target): Add initializer for arch_setup field.
19448 * linux-s390-low.c (init_registers_s390): Add prototype.
19449 (init_registers_s390x): Likewise.
19450 (the_low_target): Add initializer for arch_setup field.
19451 * linux-sh-low.c (init_registers_sh): Add prototype.
19452 (the_low_target): Add initializer for arch_setup field.
19453 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19454 (the_low_target): Add initializer for arch_setup field.
19455 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19456 (the_low_target): Add initializer for arch_setup field.
19457
19458 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19459 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19460 instead of init_registers ().
19461 * win32-arm-low.c (init_registers_arm): Add prototype.
19462 (the_low_target): Add initializer for arch_setup field.
19463 * win32-i386-low.c (init_registers_i386): Add prototype.
19464 (the_low_target): Add initializer for arch_setup field.
19465
19466 * spu-low.c (init_registers_spu): Add prototype.
19467 (initialize_low): Call initialie_registers_spu () instead of
19468 initialize_registers ().
19469
fd96d250
PA
194702008-02-19 Pedro Alves <pedro@codesourcery.com>
19471
19472 * server.c (handle_v_requests): When handling the vRun and vAttach
19473 packets, if already debugging a process, don't kill it. Return an
19474 error instead.
19475
d41b6bb4
DJ
194762008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19477
19478 * server.c (handle_query): Correct length check.
19479
5ac588cf
PA
194802008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19481
19482 * win32-low.c (do_initial_child_stuff): Add process handle
19483 parameter. Set current_process_handle and current_process_id from the
19484 parameters. Clear globals.
19485 (win32_create_inferior): Don't set current_process_handle and
19486 current_process_id here. Instead pass them on the call to
19487 do_initial_child_stuff.
19488 (win32_attach): Likewise.
19489 (win32_clear_inferiors): New.
19490 (win32_kill): Don't close the current process handle or the
19491 current thread handle here. Instead call win32_clear_inferiors.
19492 (win32_detach): Don't open a new handle to the process. Call
19493 win32_clear_inferiors.
19494 (win32_join): Don't rely on current_process_handle; open a new
19495 handle using the process id.
19496 (win32_wait): Call win32_clear_inferiors when the inferior process
19497 has exited.
19498
ecd7ecbc
DJ
194992008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
19500
19501 * server.c (monitor_show_help): Add "exit".
19502
1525d545
MG
195032008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
19504
ecd7ecbc 19505 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
19506 (clean): Add reg-xtensa.c.
19507 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
19508 * configure.srv (xtensa*-*-linux*) New target.
19509 * linux-xtensa-low.c: New.
19510 * xtensa-xtregs.c: New.
1525d545 19511
59a016f0
PA
195122008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
19513
19514 * hostio.c: Don't include errno.h.
19515 (errno_to_fileio_errno): Move to hostio-errno.
19516 * hostio.c: (hostio_error): Remove the error parameter. Defer the
19517 error number outputting to the target->hostio_last_error callback.
19518 (hostio_packet_error): Use FILEIO_EINVAL directly.
19519 (handle_open, handle_pread, hostio_error, handle_unlink): Update
19520 calls to hostio_error.
19521 * hostio-errno.c: New.
19522 * server.h (hostio_last_error_from_errno): Declare.
19523 * target.h (target_ops): Add hostio_last_error member.
19524 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
19525 as hostio_last_error handler.
889bf7c5 19526 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
19527 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
19528 (wince_hostio_last_error): New functions.
19529 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
19530 as hostio_last_error handler.
19531 (win32_target_ops) [!_WIN32_WCE]: Register
19532 hostio_last_error_from_errno as hostio_last_error handler.
19533 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
19534 (hostio-errno.o): New rule.
19535 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
19536 * configure.srv (srv_hostio_err_objs): New variable. Default to
19537 hostio-errno.o.
19538 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
19539 * configure: Regenerate.
19540
2d717e4f
DJ
195412008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19542
19543 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
19544 (linux_kill, linux_detach): Clean up the process list.
19545 * remote-utils.c (remote_open): Improve port number parsing.
19546 (putpkt_binary, input_interrupt): Only send interrupts if the target
19547 is running.
19548 * server.c (extended_protocol): Make static.
19549 (attached): Define earlier.
19550 (exit_requested, response_needed, program_argv): New variables.
19551 (target_running): New.
19552 (start_inferior): Clear attached here.
19553 (attach_inferior): Set attached here.
19554 (require_running): Define.
19555 (handle_query): Use require_running and target_running. Implement
19556 "monitor exit".
19557 (handle_v_attach, handle_v_run): New.
19558 (handle_v_requests): Use require_running. Handle vAttach and vRun.
19559 (gdbserver_usage): Update.
19560 (main): Redo argument parsing. Handle --debug and --multi. Handle
19561 --attach along with other options or after the port. Save
19562 program_argv. Support no initial program. Resynchronize
19563 communication with GDB after an error. Handle "monitor exit".
19564 Use require_running and target_running. Always allow the extended
19565 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
19566 restart in extended mode.
19567 * README: Refer to the GDB manual. Update --attach usage.
19568
7407e2de
AS
195692007-12-20 Andreas Schwab <schwab@suse.de>
19570
19571 * linux-low.c (STACK_SIZE): Define.
19572 (linux_tracefork_child): Use it. Use __clone2 on ia64.
19573 (linux_test_for_tracefork): Likewise.
19574
b65d95c5
DJ
195752007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
19576
19577 * linux-low.c (linux_wait_for_event): Update messages. Do not
19578 reinsert auto-delete breakpoints.
19579 * mem-break.c (struct breakpoint): Change return type of handler to
19580 int.
19581 (set_breakpoint_at): Update handler type.
19582 (reinsert_breakpoint_handler): Return 1 instead of calling
19583 delete_breakpoint.
19584 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
19585 setting a new one.
19586 (check_breakpoints): Delete auto-delete breakpoints and return 2.
19587 * mem-break.h (set_breakpoint_at): Update handler type.
19588 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
19589 * win32-low.c (auto_delete_breakpoint): New.
19590 (get_child_debug_event): Use it.
19591
4e799345
DJ
195922007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
19593
19594 * configure.ac: Check for pread and pwrite.
19595 * hostio.c (handle_pread): Fall back to lseek and read.
19596 (handle_pwrite): Fall back to lseek and write.
19597 * config.in, configure: Regenerated.
19598
27524b67
DJ
195992007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
19600
19601 * server.c (myresume): Add own_buf argument.
19602 (main): Update calls.
19603
a20d5e98
DJ
196042007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
19605
19606 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
19607 * remote-utils.c (remote_open): Do not call disable_async_io.
19608 (block_async_io): Delete.
19609 (unblock_async_io): Make static.
19610 (initialize_async_io): New.
19611 * server.c (handle_v_cont): Handle async I/O here.
19612 (myresume): Likewise. Move other common resume tasks here...
19613 (main): ... from here. Call initialize_async_io. Disable async
19614 I/O before the main loop.
19615 * server.h (initialize_async_io): Declare.
19616 (block_async_io, unblock_async_io): Delete prototypes.
19617 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
19618
b79d787e
DJ
196192007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
19620
19621 * remote-utils.c (readchar): Allow binary data in received messages.
19622
d97903b2
PA
196232007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19624
19625 * win32-low.c (attaching): New global.
19626 (win32_create_inferior): Clear the `attaching' global.
19627 (win32_attach): Set the `attaching' global.
19628 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
19629 attaching. Only set a breakpoint at the entry point if not
19630 attaching.
19631
311de423
PA
196322007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19633
19634 * server.c (main): Don't report dll events on the initial
19635 connection on attaches.
19636
6c2d16d2
PA
196372007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19638
19639 * server.c (main): Relax numerical bases supported for the pid of
19640 the --attach command line argument.
19641
5ca906e6
PA
196422007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19643
19644 * win32-low.c (win32_attach): Call OpenProcess before
19645 DebugActiveProcess, not after. Add last error output to error
19646 call.
19647
9c6c8194
PA
196482007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19649
19650 * win32-low.c (win32_get_thread_context)
19651 (win32_set_thread_context): New functions.
19652 (thread_rec): Use win32_get_thread_context.
19653 (continue_one_thread, win32_resume): Use win32_set_thread_context.
19654 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
19655 field.
19656
4d5d1aaa
PA
196572007-12-03 Leo Zayas
19658 Pedro Alves <pedro_alves@portugalmail.pt>
19659
19660 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
19661 global variables.
19662 (child_add_thread): Minor cleanup.
19663 (child_continue): Resume artificially suspended threads before
19664 calling ContinueDebugEvent.
19665 (suspend_one_thread): New.
19666 (fake_breakpoint_event): New.
19667 (get_child_debug_event): Change return type to int. Check here if
19668 gdb sent an interrupt request. If a soft interrupt was requested,
19669 fake a breakpoint event. Return 0 if there is no event to handle,
19670 and 1 otherwise.
19671 (win32_wait): Don't check here if gdb sent an interrupt request.
19672 Ensure there is a valid event to handle.
19673 (win32_request_interrupt): Add soft interruption method as last
19674 resort.
19675
c436e841
PA
196762007-12-03 Leo Zayas
19677 Pedro Alves <pedro_alves@portugalmail.pt>
19678
19679 * win32-low.h (win32_thread_info): Add descriptions to the
19680 structure members. Replace `suspend_count' counter by a
19681 `suspended' flag.
19682 * win32-low.c (thread_rec): Update condition of when to get the
19683 context from the inferior. Rely on ContextFlags being set if it
19684 has already been retrieved. Only suspend the inferior thread if
19685 we haven't already. Warn if that fails.
19686 (continue_one_thread): s/suspend_count/suspended/. Only call
19687 ResumeThread once. Warn if that fails.
19688
e7b5fa67
PA
196892007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
19690
19691 * win32-low.c (win32_wait): Don't read from the inferior when it
19692 has already exited.
19693
a385171d
PA
196942007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
19695
19696 * Makefile.in (win32_low_h): New variable.
19697 (win32-low.o): Add dependency on $(win32_low_h).
19698 (win32-arm-low.o, win32-i386-low.o): New rules.
19699
f80c84b3
DJ
197002007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
19701
19702 * hostio.c: Correct copyright year.
19703
a6b151f1
DJ
197042007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
19705
19706 * Makefile.in (OBS): Add hostio.o.
19707 (hostio.o): New rule.
19708 * server.h (handle_vFile): Declare.
19709 * hostio.c: New file.
19710 * server.c (handle_v_requests): Take packet_len and new_packet_len
19711 for binary packets. Call handle_vFile.
19712 (main): Update call to handle_v_requests.
19713
f9387fc3
DJ
197142007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
19715
19716 * linux-low.c: Include <sched.h>.
19717
51c2684e
DJ
197182007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
19719
19720 * linux-low.c (linux_tracefork_grandchild): New.
19721 (linux_tracefork_child): Use clone.
19722 (linux_test_for_tracefork): Use clone; allocate and free a stack.
19723
75f83163
JB
197242007-10-31 Joel Brobecker <brobecker@adacore.com>
19725
19726 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
19727
da5898ce
DJ
197282007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
19729
19730 * linux-low.c (handle_extended_wait): Handle unexpected signals.
19731
24a09b5f
DJ
197322007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
19733
19734 * inferiors.c (change_inferior_id): Delete.
19735 (add_pid_to_list, pull_pid_from_list): New.
19736 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
19737 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
19738 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
19739 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
19740 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
19741 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
19742 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
19743 (using_threads): Always set to 1.
19744 (handle_extended_wait): New.
19745 (add_process): Do not set TID.
19746 (linux_create_inferior): Set must_set_ptrace_flags.
19747 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
19748 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
19749 (linux_thread_alive): Rename TID argument to LWPID.
19750 (linux_wait_for_process): Handle unknown processes. Do not use TID.
19751 (linux_wait_for_event): Do not use TID or check using_threads. Update
19752 call to dead_thread_notify. Call handle_extended_wait.
19753 (linux_create_inferior): Use PTRACE_SETOPTIONS.
19754 (send_sigstop): Delete sigstop_sent.
19755 (wait_for_sigstop): Avoid TID.
19756 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
19757 (linux_test_for_tracefork): New.
19758 (linux_lookup_signals): Use thread_db_active and
19759 linux_supports_tracefork_flag.
19760 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
19761 * linux-low.h (get_process_thread): Avoid TID.
19762 (struct process_ifo): Move thread_known and tid to the end. Remove
19763 sigstop_sent.
19764 (linux_attach_lwp, thread_db_init): Update prototypes.
19765 * server.h (change_inferior_id): Delete prototype.
19766 (add_pid_to_list, pull_pid_from_list): New prototypes.
19767 * thread-db.c (thread_db_use_events): New.
19768 (find_first_thread): Rename to...
19769 (find_one_thread): ...this. Update callers and messages. Do not
19770 call fatal. Check thread_db_use_events. Do not call
19771 change_inferior_id or new_thread_notify.
19772 (maybe_attach_thread): Update. Do not call new_thread_notify.
19773 (thread_db_init): Set thread_db_use_events. Check use_events.
19774 * utils.c (fatal, warning): Correct message prefix.
19775
30ed0a8f
DJ
197762007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
19777
19778 * Makefile.in (clean): Remove new files.
19779 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
19780 (powerpc-64.o, powerpc-64.c): New rules.
19781 * configure.srv: Use alternate register sets for powerpc64-*-linux*
19782 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
19783 with SPE.
19784 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
19785 SPE targets.
19786 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
19787 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
19788 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
19789 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
19790 (target_regsets): Add AltiVec and SPE register sets.
19791 * configure.ac: Check for AltiVec and SPE.
19792 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
19793 (ppc_fill_vrregset, ppc_store_vrregset): New.
19794 (target_regsets): Add AltiVec register set.
19795 * configure: Regenerated.
19796
fd462a61
DJ
197972007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
19798
19799 * linux-low.c (O_LARGEFILE): Define.
19800 (linux_read_memory): Use /proc/PID/mem.
19801 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
19802 * configure, config.in: Regenerated.
19803
69f223ed
DJ
198042007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19805
19806 * linux-low.c (linux_wait_for_event): Do not pass signals while
19807 single-stepping.
19808
aec18585
PA
198092007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
19810
19811 * win32-low.c (create_process): New.
19812 (win32_create_inferior): Use create_process instead of
19813 CreateProcess. If create_process failed retry appending an ".exe"
19814 suffix. Store the GetLastError result immediatelly after
19815 create_process calls and use it on the call to error.
19816
34d86ddd
PA
198172007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
19818
19819 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
19820
5a0e3bd0
JB
198212007-08-23 Joel Brobecker <brobecker@adacore.com>
19822
19823 * configure.ac: Switch license to GPLv3.
19824
f88c79e6
MS
198252007-08-01 Michael Snyder <msnyder@access-company.com>
19826
19827 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
19828
6b3d9b83
PA
198292007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
19830
19831 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
19832 typedef.
19833 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
19834 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
19835 CloseToolhelp32Snapshot.
19836 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
19837 CloseToolhelp32Snapshot.
19838
c588c53c
MS
198392007-07-27 Michael Snyder <michael.snyder@access-company.com>
19840
19841 * server.c (main): Check for inferior exit before main loop.
19842
aa0403d9
PA
198432007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
19844
19845 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
19846 instead of on tmp_desc.
19847
255e7678
DJ
198482007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
19849 Daniel Jacobowitz <dan@codesourcery.com>
19850
19851 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
19852 (add_thread): Minor cleanups.
19853 (clear_inferiors): Move lower in the file. Clear the DLL
19854 list.
19855 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
19856 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
19857 (xml_escape_text): New.
19858 * server.c (handle_query): Handle qXfer:libraries:read. Report it
19859 for qSupported.
19860 (handle_v_cont): Report errors.
19861 (gdbserver_version): Update.
19862 (main): Correct size of own_buf. Do not report initial DLL events.
19863 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
19864 (unloaded_dll, xml_escape_text): New.
19865 * win32-low.c (enum target_waitkind): Update comments.
19866 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
19867 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
19868 (win32_EnumProcessModules, win32_GetModuleInformation)
19869 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
19870 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
19871 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
19872 (win32_Module32First, win32_Module32Next, load_toolhelp)
19873 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
19874 (get_child_debug_event): Handle DLL events.
19875 (win32_wait): Likewise.
19876
0d37add9
DJ
198772007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
19878
19879 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
19880 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
19881
45e2715e
PA
198822007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
19883
19884 * win32-low.c (handle_output_debug_string): Ignore event if not
19885 waiting.
19886
c5674cf1
PA
198872007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
19888
19889 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
19890
2bbe3cc1
DJ
198912007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
19892
19893 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
19894
ae13219e
DJ
198952007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
19896
19897 * inferiors.c (change_inferior_id): Add comment.
19898 * linux-low.c (check_removed_breakpoint): Add an early
19899 prototype. Improve debug output.
19900 (linux_attach): Doc update.
19901 (linux_detach_one_process, linux_detach): Clean up before releasing
19902 each process.
19903 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
19904 * linux-low.h (struct process_info): Doc improvement.
19905 * mem-break.c (delete_all_breakpoints): New.
19906 * mem-break.h (delete_all_breakpoints): New prototype.
19907 * thread-db.c (find_first_thread): New.
19908 (thread_db_create_event): Call it instead of
19909 thread_db_find_new_threads. Clean up unused variables.
19910 (maybe_attach_thread): Remove first thread handling.
19911 (thread_db_find_new_threads): Use find_first_thread.
19912 (thread_db_get_tls_address): Likewise.
19913
4105de34
DJ
199142007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
19915
19916 * thread-db.c (thread_db_find_new_threads): Add prototype.
19917 (thread_db_create_event): Check for the main thread before adding
19918 a new thread.
19919 (maybe_attach_thread): Only enable event reporting if TID == 0.
19920 (thread_db_get_tls_address): Check for new threads.
19921
2b876972
DJ
199222007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
19923
19924 * linux-low.c (linux_create_inferior): Try execv before execvp.
19925 * spu-low.c (spu_create_inferior): Likewise.
19926
7a245884
DJ
199272007-06-13 Mike Frysinger <vapier@gentoo.org>
19928
19929 * linux-low.c (linux_create_inferior): Change execv to execvp.
19930 * spu-low.c (spu_create_inferior): Likewies.
19931
117ce543
DJ
199322007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
19933
19934 * Makefile.in (clean): Clean new files instead of deleted ones.
19935 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
19936 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
19937 rules.
19938 * configure.srv: Specify XML files and new regformats for MIPS and
19939 MIPS64 GNU/Linux.
19940 * linux-mips-low.c (mips_num_regs): Set to only used registers.
19941 (mips_regmap): Do not fetch $0. Remove unused registers. Add
19942 an entry for the restart register.
19943 (mips_cannot_fetch_register, mips_cannot_store_register)
19944 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
19945 register names to match the XML descriptions.
19946 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
19947 restart register instead of $0.
19948
0e7f50da
UW
199492007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
19950 Markus Deuling <deuling@de.ibm.com>
19951
19952 * remote-utils.c (decode_xfer_write): New function.
19953 * server.h (decode_xfer_write): Add prototype.
19954 * server.c (handle_query): Add PACKET_LEN argument. Support
19955 qXfer:spu:read and qXfer:spu:write packets.
19956 (main): Pass packet_len to handle_query.
19957 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
19958 * target.h (target_ops): Add qxfer_spu.
19959
374c1d38
UW
199602007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
19961
19962 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
19963 accessing non-seekable spufs files.
19964
bb63802a
UW
199652007-05-16 Markus Deuling <deuling@de.ibm.com>
19966
889bf7c5 19967 * server.c (handle_query): Add reply for qC packet.
bb63802a 19968
7390519e
PA
199692007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19970 Leo Zayas <lerele@champenstudios@com>
19971
19972 * server.h (check_remote_input_interrupt_request): New function.
19973 * remote_utils.c (INVALID_DESCRIPTOR): New define.
19974 (remote_desc): Initialize with INVALID_DESCRIPTOR.
19975 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
19976 (check_remote_input_interrupt_request): New function.
19977 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 19978 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
19979 winapi_GenerateConsoleCtrlEvent): New typedefs.
19980 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
19981 to 250 ms.
19982 (win32_wait): Check for remote interrupt request
19983 with check_remote_input_interrupt_request.
19984 (win32_request_interrupt): New function.
19985 (win32_target_op): Set request_interrupt to win32_request_interrupt.
19986
34b34921
PA
199872007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19988
19989 * win32-low.c (debug_registers_changed,
19990 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
19991 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
19992 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
19993 (thread_rec): Get context using the low target.
19994 (child_add_thread): Call thread_added on the low target,
19995 which does the same thing.
19996 (regptr): Delete.
19997 (do_initial_child_stuff): Remove debug registers references.
19998 Set context using the low target. Resume threads after
19999 setting the contexts.
20000 (child_continue): Remove dead variable. Remove debug
20001 registers references.
20002 (child_fetch_inferior_registers): Go through the low target.
20003 (do_child_store_inferior_registers): Remove.
20004 (child_store_inferior_registers): Go through the low target.
20005 (win32_resume): Remove debug registers references.
20006 Set context using the low target.
20007 (handle_exception): Change return type to void. Don't record
20008 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20009 first chance exception.
889bf7c5 20010 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20011 goto loop. Always return after waiting for debug event.
20012 (win32_wait): Convert to switch statement. Handle spurious
20013 events.
20014
20015 * win32-i386-low.c (debug_registers_changed,
20016 debug_registers_used): New.
20017 (initial_stuff): Rename to ...
20018 (i386_initial_stuff): ... this. Clear debug registers
20019 state variables.
20020 (store_debug_registers): Delete.
20021 (i386_get_thread_context): New.
20022 (load_debug_registers): Delete.
20023 (i386_set_thread_context): New.
20024 (i386_thread_added): New.
20025 (single_step): Rename to ...
20026 (i386_single_step): ... this.
20027 (do_fetch_inferior_registers): Rename to ...
20028 (i386_fetch_inferior_register): ... this.
20029 (i386_store_inferior_register): New.
20030 (the_low_target): Adapt to new interface.
20031
20032 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20033 (arm_get_thread_context): New.
20034 (arm_set_thread_context): New.
20035 (regptr): New.
20036 (do_fetch_inferior_registers): Rename to ...
20037 (arm_fetch_inferior_register): ... this.
20038 (arm_store_inferior_register): New.
20039 (arm_wince_breakpoint): Reimplement as unsigned long.
20040 (arm_wince_breakpoint_len): Define.
20041 (the_low_target): Adapt to new interface.
20042
20043 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20044 load_debug_registers. Add get_thread_context, set_thread_context,
20045 thread_added and store_inferior_register. Rename
20046 fetch_inferior_registers to fetch_inferior_register.
20047 (regptr): Remove declaration.
20048
dd6953e1
PA
200492007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20050
20051 * linux-low.c (linux_detach): Change return type to int. Return 0.
20052 * spu-low.c (spu_detach): Likewise.
20053
444d6139
PA
200542007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20055
20056 * target.h (target_ops): Change return type of detach to int.
20057 Add join.
20058 (join_inferior): New.
20059 * server.c (main): Don't skip detach support on mingw32.
20060 If the inferior doesn't support detaching return error.
20061 Call join_inferior instead of using waitpid.
20062 * linux-low.c (linux_join): New.
20063 (linux_target_op): Add linux_join.
20064 * spu-low.c (spu_join): New.
20065 (spu_target_ops): Add spu_join.
20066 * win32-low.c (win32_detach): Adapt to new interface.
20067 Reopen current_process_handle before detaching. Issue a child
20068 resume before detaching.
20069 (win32_join): New.
20070 (win32_target_op): Add win32_join.
20071
1d5315fe
PA
200722007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20073
20074 * win32-low.c (win32-attach): Fix return value.
20075 * target.h (target_ops): Describe ATTACH return values.
20076
bf914831
PA
200772007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20078
20079 * win32-low.c (GETPROCADDRESS): Define.
20080 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20081 (winapi_DebugSetProcessKillOnExit): Likewise.
20082 (win32_create_inferior): Force usage of ansi CreateProcessA.
20083 (win32_attach): Use GETPROCADDRESS.
20084 (win32_detach): Likewise.
20085
f72f3e60
PA
200862007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20087
20088 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20089
ed50f18f
PA
200902007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20091
20092 * win32-low.c: Commit leftover changes from 2007-03-29.
20093
0c2ead7e
DJ
200942007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20095
20096 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20097 fields short instead of int. Add explicit padding.
20098 (i387_cache_to_fsave): Remove unnecessary casts.
20099 (i387_fsave_to_cache): Doc fix.
20100 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20101
73725ff3
DJ
201022007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20103
20104 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20105 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20106
d99f33d8
PA
201072007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20108
20109 * configure.srv (arm*-*-mingw32ce*): Move near the other
20110 arm targets.
20111
68070c10
PA
201122007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20113
2482afc6 20114 * configure.ac: Add errno checking.
68070c10
PA
20115 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20116 sys/file.h and malloc.h.
20117 (AC_CHECK_DECLS): Add perror.
20118 (srv_mingwce): Handle.
2482afc6 20119 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20120 win32-i386-low.o to srv_tgtobj.
20121 (i[34567]86-*-mingw*): Likewise.
20122 (arm*-*-mingw32ce*): Add case.
20123 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20124 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20125 [__MINGW32CE__] (strerror): New function.
20126 [__MINGW32CE__] (errno): Define to GetLastError.
20127 [__MINGW32CE__] (COUNTOF): New macro.
20128 (remote_open): Remove extra close call.
20129 * mem-break.c (delete_breakpoint_at): New function.
20130 * mem-break.h (delete_breakpoint_at): Declare.
20131 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20132 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20133 [USE_WIN32API] (read, write): Add char* casts.
20134 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20135 * server.h: Include wincecompat.h on Windows CE.
20136 [HAVE_ERRNO_H]: Check.
20137 (perror): Declare if not declared.
20138 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20139 (perror_with_name): Remove errno declaration.
20140 * wincecompat.h: New.
20141 * wincecompat.c: New.
20142 * win32-low.h: New.
20143 * win32-arm-low.c: New.
20144 * win32-i386-low.c: New.
20145 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20146 (OUTMSG2): Make it safe.
20147 (_T): New macro.
20148 (COUNTOF): New macro.
20149 (NUM_REGS): Get it from the low target.
20150 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20151 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20152 (thread_rec): Let low target handle debug registers.
20153 (child_add_thread): Likewise.
20154 (child_init_thread_list): Likewise.
20155 (continue_one_thread): Likewise.
20156 (regptr): New.
20157 (do_child_fetch_inferior_registers): Move to ...
20158 * win32-i386-low.c: ... here, and rename to ...
20159 (do_fetch_inferior_registers): ... this.
889bf7c5 20160 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20161 Go through the low target.
20162 (do_child_store_inferior_registers): Use regptr.
20163 (strwinerror): New function.
20164 (win32_create_inferior): Handle Windows CE.
20165 Use strwinerror instead of strerror on Windows error
20166 codes. Add program to the error output.
20167 Don't close the main thread handle on Windows CE.
20168 (win32_attach): Use coredll.dll on Windows CE.
20169 (win32_kill): Close current process and current
20170 thread handles.
20171 (win32_detach): Use coredll.dll on Windows CE.
20172 (win32_resume): Let low target handle debug registers, and
20173 step request.
20174 (handle_exception): Add/Remove initial breakpoint. Avoid
20175 non-existant WSTOPSIG on Windows CE.
20176 (win32_read_inferior_memory): Cast to remove warning.
20177 (win32_arch_string): Go through the low target.
20178 (initialize_low): Call set_breakpoint_data with the low
20179 target's breakpoint.
20180 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20181 FOP_REGNUM, mappings): Move to ...
20182 * win32-i386-low.c: ... here.
20183 * win32-low.c (win32_thread_info): Move to ...
20184 * win32-low.h: ... here.
20185 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20186 win32-arm-low.c and wincecompat.c.
20187 (all:): Add $EXEEXT.
20188 (install-only:): Likewise.
20189 (gdbserver:): Likewise.
20190 (gdbreplay:): Likewise.
20191 * config.in: Regenerate.
20192 * configure: Regenerate.
20193
41093d81
PA
201942007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20195
20196 * win32-low.c: Rename typedef thread_info to
20197 win32_thread_info throughout.
20198
544afa54
PA
201992007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20200
20201 * win32-i386-low.c: Rename to ...
20202 * win32-low.c: ... this.
20203 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20204 * Makefile.in: Likewise.
20205
bce7165d
PA
202062007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20207
20208 * remote-utils.c (monitor_output): Constify msg parameter.
20209 * server.h (monitor_output): Likewise.
20210 * win32-i386-low.c (handle_output_debug_string): New.
20211 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20212 handle_output_debug_string.
20213 (get_child_debug_event): Likewise.
20214
506c7aa0
DJ
202152007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20216
20217 * server.c (main): Correct strtoul check.
20218
42c81e2a
DJ
202192007-03-27 Jon Ringle <jon@ringle.org>
20220
20221 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20222
9453113a
DJ
202232007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20224
20225 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20226
64a69107
DJ
202272007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20228
20229 * terminal.h: Check HAVE_SGTTY_H.
20230
202312007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
20232
20233 * remote-utils.c (remote_open): Print out the assigned port number.
20234
c74d0ad8
DJ
202352007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20236
20237 * remote-utils.c (monitor_output): New function.
20238 * server.c (debug_threads): Define here.
20239 (monitor_show_help): New function.
20240 (handle_query): Handle qRcmd.
20241 (main): Do not handle 'd' packet.
20242 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20243 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20244 of debug_threads.
20245
de7c3b4a
PA
202462007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20247
20248 * Makefile.in (EXEEXT): New.
20249 (clean): Use $(EXEEXT).
20250
ef57601b
PA
202512007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20252
20253 * target.h (target_ops): Rename send_signal to request_interrupt,
20254 and remove enum target_signal parameter.
20255 * linux-low.c (linux_request_interrupt): Rename from
20256 linux_send_signal, and always send SIGINT.
20257 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20258 and always send SIGINT.
20259 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20260 of send_signal.
20261 (input_interrupt): Likewise.
20262
820f2bda
PA
202632007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20264
20265 * server.c (get_features_xml): Check if target implemented
20266 arch_string.
20267 * win32-i386-low.c (win32_arch_string): New.
20268 (win32_target_ops): Add win32_arch_string as arch_string member.
20269
ab39bf24
UW
202702007-02-22 Markus Deuling <deuling@de.ibm.com>
20271
20272 * spu-low.c (spu_arch_string): New.
20273 (spu_target_ops): Add spu_arch_string.
20274
61ff6e04
DJ
202752007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20276
20277 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20278 * configure.ac: Do not check for terminal.h.
20279 * configure, config.in: Regenerated.
20280
fb1e4ffc
DJ
202812007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20282
20283 * Makefile.in (OBS): Add $(XML_BUILTIN).
20284 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20285 (clean): Update.
20286 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20287 (arm-with-iwmmxt.c): New.
20288 * config.in, configure: Regenerate.
20289 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20290 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20291 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20292 (arm*-*-linux*): Add iWMMXt and regset support.
20293 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20294 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20295 (arm_store_wmmxregset, target_regsets): New.
20296 * server.c (get_features_xml): Take annex argument. Check builtin
20297 XML documents.
20298 (handle_query): Handle multiple annexes.
20299
0f48aa01
DJ
203002007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20301
20302 * remote-utils.c [USE_WIN32API] (read, write): Define.
20303 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20304 write.
20305
23181151
DJ
203062007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20307
20308 * linux-i386-low.c (the_low_target): Set arch_string.
20309 * linux-x86-64-low.c (the_low_target): Likewise.
20310 * linux-low.c (linux_arch_string): New.
20311 (linux_target_ops): Add it.
20312 * linux-low.h (struct linux_target_ops): Add arch_string.
20313 * server.c (write_qxfer_response): Use const void * for DATA.
20314 (get_features_xml): New.
20315 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20316 * target.h (struct target_ops): Add arch_string method.
20317
9d606399
DJ
203182007-01-03 Denis Pilat <denis.pilat@st.com>
20319 Daniel Jacobowitz <dan@codesourcery.com>
20320
20321 * linux-low.c (linux_kill): Handle being called with no threads.
20322 * win32-i386-low.c (win32_kill): Likewise.
20323 (get_child_debug_event): Clear current_process_handle.
20324
203252006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
20326 Daniel Jacobowitz <dan@codesourcery.com>
20327
20328 * remote-utils.c (remote_open): Check the type of specified
20329 serial port devices before opening them.
20330 * server.c (main): Kill the inferior if an error occurs during
20331 the first remote_open.
20332
a5e13d24
DJ
203332006-12-05 Markus Deuling <deuling@de.ibm.com>
20334
20335 * README: Update supported targets.
20336
186947f7
DJ
203372006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20338
20339 * Makefile.in (clean): Remove reg-mips64.c.
20340 (reg-mips64.c, reg-mips64.o): New rules.
20341 * configure.srv: Handle mips64. Include regset support for mips.
20342 * linux-mips-low.c (union mips_register): New.
20343 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20344 (mips_breakpoint, mips_breakpoint_at): Use int.
20345 (mips_collect_register, mips_supply_register)
20346 (mips_collect_register_32bit, mips_supply_register_32bit)
20347 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20348 (mips_store_fpregset, target_regsets): New.
20349 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20350
a13e2c95
UW
203512006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20352
20353 * configure.srv: Add target "spu*-*-*".
20354 * Makefile.in (clean): Remove reg-spu.c.
20355 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20356 * spu-low.c: New file.
20357
cb7283db
DJ
203582006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20359
20360 * configure.ac: Correct td_thr_tls_get_addr test.
20361 * configure: Regenerated.
20362
89be2091
DJ
203632006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20364
20365 * linux-low.c (linux_wait_for_event): Reformat. Use the
20366 pass_signals array.
20367 * remote-utils.c (decode_address_to_semicolon): New.
20368 * server.c (pass_signals, handle_general_set): New.
20369 (handle_query): Mention QPassSignals for qSupported.
20370 (main): Call handle_general_set.
20371 * server.h (pass_signals, decode_address_to_semicolon): New.
20372
000ef4f0
DJ
203732006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20374
20375 * server.c (handle_query): Correct error handling for read_auxv.
20376
b7149293
UW
203772005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20378
20379 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20380 and srv_linux_thread_db to yes.
20381 * linux-s390-low.c (s390_fill_gregset): New function.
20382 (target_regsets): Define data structure.
20383
dae5f5cf
DJ
203842006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20385
20386 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20387 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20388 * config.in, configure: Regenerated.
20389 * inferiors.c (gdb_id_to_thread): New function.
20390 (gdb_id_to_thread_id): Use it.
20391 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20392 * linux-low.h (struct process_info): Add th member.
20393 (thread_db_get_tls_address): New prototype.
20394 * remote-utils.c (decode_address): Make non-static.
20395 * server.c (handle_query): Handle qGetTLSAddr.
20396 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20397 * target.h (struct target_ops): Add get_tls_address.
20398 * thread-db.c (maybe_attach_thread): Save the thread handle.
20399 (thread_db_get_tls_address): New.
20400
32ca6d61
DJ
204012006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20402
20403 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20404 (linux_resume_one_process): Take a siginfo_t *. Update all
20405 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20406 (struct pending_signals): Add a siginfo_t.
20407 (linux_wait_for_process): Always set last_status.
20408 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20409 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20410 * linux-low.h (struct process_info): Add last_status.
20411
5ffff7c1
DJ
204122006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20413
20414 * remote-utils.c (try_rle): New function.
20415 (putpkt_binary): Use it.
20416
8695c747
DJ
204172006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20418
20419 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20420 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20421 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20422 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20423 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20424 point registers.
20425
290fadea
RS
204262006-08-08 Richard Sandiford <richard@codesourcery.com>
20427
20428 * server.c (terminal_fd): New variable.
20429 (old_foreground_pgrp): Likewise.
20430 (restore_old_foreground_pgrp): New function.
20431 (start_inferior): Record the terminal file descriptor in terminal_fd
20432 and its original foreground group in old_foreground_pgrp. Register
20433 restore_old_foreground_pgrp with atexit().
20434
9f2e1e63
DJ
204352006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20436
20437 * server.c (handle_query): Correct qPart to qXfer.
20438
b80864fb
DJ
204392006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20440
20441 * configure.ac: Check for more headers which are missing on
20442 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20443 * configure.srv: Add Cygwin and mingw32.
20444 * remote-utils.c: Don't include headers unconditionally which
20445 are missing on mingw32. Include <winsock.h> for mingw32.
20446 (remote_open): Adjust for mingw32 support. Flush
20447 standard error after writing to it.
20448 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20449 (unblock_async_io, enable_async_io, disable_async_io)
20450 (readchar, getpkt): Update for Winsock support.
20451 (prepare_resume_reply): Expect a protocol signal number.
20452 * server.c: Disable <sys/wait.h> on mingw32.
20453 (start_inferior): Adjust for mingw32 support. Flush
20454 standard error after writing to it.
20455 (attach_inferior): Likewise. Use protocol signal
20456 numbers.
20457 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20458 and names.
20459 * win32-i386-low.c: New file.
20460 * Makefile.in (XM_CLIBS): Set.
20461 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20462 (win32-i386-low.o): New dependency rule.
20463 * linux-low.c (linux_wait): Use target signal numbers.
20464 * target.h (struct target_ops): Doc fix.
20465 * server.h (target_signal_to_name): New prototype.
20466 * gdbreplay.c: Don't include headers unconditionally which
20467 are missing on mingw32. Include <winsock.h> for mingw32.
20468 (remote_close, remote_open): Adjust for Winsock support.
20469 * configure, config.in: Regenerated.
20470
0876f84a
DJ
204712006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20472
20473 * server.c (decode_xfer_read, write_qxfer_response): New.
20474 (handle_query): Take a packet length argument. Handle
20475 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20476 the qSupported response.
20477 (main): Update call to handle_query.
20478
01f9e8fa
DJ
204792006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20480
20481 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20482 (putpkt_binary): Renamed from putpkt and adjusted for binary
20483 data.
20484 (putpkt): New wrapper for putpkt_binary.
20485 (readchar): Don't mask off the high bit.
20486 (decode_X_packet): New function.
20487 * server.c (main): Call putpkt_binary if a handler sets the packet
20488 length. Save the length of the incoming packet. Handle 'X'.
20489 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20490
be2a5f71
DJ
204912006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20492
20493 * server.c (handle_query): Handle qSupported.
20494
ea025f5f
DJ
204952006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20496
20497 * remote-utils.c (all_symbols_looked_up): New variable.
20498 (look_up_one_symbol): Check it.
20499 * server.h (look_up_one_symbol): New declaration.
20500 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
20501
9308fc88
DJ
205022006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20503
20504 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 20505 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
20506 (PTRACE_GET_THREAD_AREA): Define.
20507 (ps_get_thread_area): New function.
20508
52fb6437
NS
205092006-05-09 Nathan Sidwell <nathan@codesourcery.com>
20510
20511 * configure.srv (m68k*-*-uclinux*): New target.
20512 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
20513 (linux_resume_one_process): Remove extraneous cast.
20514 (linux_read_offsets): New.
20515 (linux_target_op): Add linux_read_offsets on mmuless systems.
20516 * server.c (handle_query): Add qOffsets logic.
20517 * target.h (struct target_ops): Add read_offsets.
20518
21b0f40c
DJ
205192006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20520
20521 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
20522 (PTRACE_GET_THREAD_AREA): Define.
20523 (ps_get_thread_area): New function.
20524 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
20525 (linux-x86-64-low.o): Update.
20526
0050a760
DJ
205272006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20528
20529 * configure.ac: Remove checks for prfpregset_t.
20530 * gdb_proc_service.h: New file.
20531 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
20532 new "gdb_proc_service.h".
20533 * proc-service.c: Likewise.
20534 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
20535 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
20536 * Makefile.in (gdb_proc_service_h): Updated.
20537 * configure, config.in: Regenerated.
20538
b92a518e
DJ
205392006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20540
20541 * remote-utils.c (prepare_resume_reply): Move declaration
20542 of gdb_id_from_wait to the top of the block.
20543
545587ee
DJ
205442006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
20545
20546 * linux-low.c (regsets_store_inferior_registers): Read the regset
20547 from the target before filling it.
20548
9db87ebd
DJ
205492006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20550
20551 * server.c (attach_inferior): Return SIGTRAP for a successful
20552 attach.
20553
dd24457d
DJ
205542006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
20555
20556 * Makefile.in (OBS): Add version.o.
20557 (STAGESTUFF): Delete.
20558 (version.o): Add dependencies.
20559 (version.c): Replace rule.
20560 (clean): Remove version.c.
20561 * server.c (gdbserver_version): New.
20562 (gdbserver_usage): Use printf.
20563 (main): Handle --version and --help.
20564 * server.h (version, host_name): Add declarations.
20565
6f0f660e
EZ
205662005-12-23 Eli Zaretskii <eliz@gnu.org>
20567
889bf7c5
PA
20568 * linux-arm-low.c:
20569 * linux-arm-low.c:
20570 * inferiors.c:
20571 * i387-fp.h:
20572 * i387-fp.c:
20573 * gdbreplay.c:
20574 * regcache.c:
20575 * proc-service.c:
20576 * mem-break.h:
20577 * mem-break.c:
20578 * linux-x86-64-low.c:
20579 * linux-sh-low.c:
20580 * linux-s390-low.c:
20581 * linux-ppc64-low.c:
20582 * linux-ppc-low.c:
20583 * linux-mips-low.c:
20584 * linux-m68k-low.c:
20585 * linux-m32r-low.c:
20586 * linux-low.h:
20587 * linux-low.c:
20588 * linux-ia64-low.c:
20589 * linux-i386-low.c:
20590 * linux-crisv32-low.c:
20591 * thread-db.c:
20592 * terminal.h:
20593 * target.h:
20594 * target.c:
20595 * server.h:
20596 * server.c:
20597 * remote-utils.c:
20598 * regcache.h:
20599 * utils.c:
20600 * Makefile.in:
20601 * configure.ac:
6f0f660e
EZ
20602 * gdbserver.1: Add (C) after Copyright. Update the FSF
20603 address.
20604
9d1fb177
DJ
206052005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
20606
20607 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
20608 (arm_breakpoint_at): Recognize both breakpoints.
20609 (the_low_target): Use the correct breakpoint instruction.
20610
011a70c2
DJ
206112005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
20612
20613 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
20614 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
20615 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
20616 (the_low_target): Update.
20617
7fb85e41
AS
206182005-10-25 Andreas Schwab <schwab@suse.de>
20619
20620 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
20621
20622 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
20623 (ia64_num_regs): Reduce to 462.
20624
3db0444b
DJ
206252005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
20626
20627 * acinclude.m4: Correct quoting.
20628 * aclocal.m4: Regenerated.
20629
20630 Suggested by SZOKOVACS Robert <szo@ies.hu>:
20631 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
20632 (thread_db_init): Call thread_db_err_str.
20633 * configure.ac: Check for TD_VERSION.
20634 * config.in, configure: Regenerated.
20635
bee0189a
DJ
206362005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20637
20638 * server.h (error, fatal, warning): Add ATTR_FORMAT.
20639
e9d25b98
DJ
206402005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20641
20642 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
20643 is not available. Define HAVE_PTRACE_GETREGS if it is.
20644 * config.in, configure: Regenerated.
20645 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
20646 * linux-i386-low.c, linux-m68k-low.c: Update to use
20647 HAVE_PTRACE_GETREGS.
20648 * linux-low.c (regsets_fetch_inferior_registers)
20649 (regsets_store_inferior_registers): Only return 0 if we processed
20650 GENERAL_REGS.
20651 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
20652 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
20653
a06660f7
DJ
206542005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20655
20656 * inferiors.c (struct thread_info): Add gdb_id.
20657 (add_thread): Add gdb_id argument.
20658 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
20659 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
20660 calls to add_thread.
20661 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
20662 * server.c (handle_query): Use thread_to_gdb_id.
20663 (handle_v_cont, main): Use gdb_id_to_thread_id.
20664 * server.h (add_thread): Update prototype.
20665 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
20666 prototypes.
20667
5a1f5858
DJ
206682005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20669
20670 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
20671 left-padded registers.
20672 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
20673 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
20674
e122f1f5
SE
206752005-07-01 Steve Ellcey <sje@cup.hp.com>
20676
20677 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
20678 * configure: Regenerate.
20679 * config.in: Regenerate.
20680 * server.h (NEED_DECLARATION_STRERROR):
20681 Replace with !HAVE_DECL_STRERROR.
20682
d592fa2f
DJ
206832005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
20684
20685 * linux-low.c (linux_wait, linux_send_signal): Don't test
20686 an unsigned long variable for > 0 if it could be MAX_ULONG.
20687 * server.c (myresume): Likewise.
20688 * target.c (set_desired_inferior): Likewise.
20689
ccbd4912
MK
206902005-06-13 Mark Kettenis <kettenis@gnu.org>
20691
20692 * configure.ac: Simplify and improve check for socklen_t.
20693 * configure, config.in: Regenerate.
20694
f450004a
DJ
206952005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
20696
20697 * acconfig.h: Remove.
20698 * configure.ac: Add a test for socklen_t. Use three-argument
20699 AC_DEFINE throughout.
20700 * config.in: Regenerated using autoheader 2.59.
20701 * configure: Regenerated.
20702
20703 * gdbreplay.c (socklen_t): Provide a default.
20704 (remote_open): Use socklen_t.
20705 * remote-utils.c (socklen_t): Provide a default.
20706 (remote_open): Use socklen_t.
20707 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
20708 unsigned char.
20709
20710 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
20711 char for buffers.
20712 * linux-low.c (linux_read_memory, linux_write_memory)
20713 (linux_read_auxv): Likewise.
20714 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
20715 (check_mem_write): Likewise.
20716 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
20717 Likewise.
20718 * regcache.c (struct inferior_rgcache_data, registers_to_string)
20719 (registers_from_string, register_data): Likewise.
20720 * server.c (handle_query, main): Likewise.
20721 * server.h (convert_ascii_to_int, convert_int_to_ascii)
20722 (decode_M_packet): Likewise.
20723 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
20724 * target.h (struct target_ops): Update read_memory, write_memory,
20725 and read_auxv.
20726 (read_inferior_memory, write_inferior_memory): Update.
20727 * linux-low.h (struct linux_target_ops): Change type of breakpoint
20728 to unsigned char *.
20729 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
20730 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
20731 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
20732 linux-s390-low.c, linux-sh-low.c: Update for changes in
20733 read_inferior_memory and the_low_target->breakpoint.
20734
eee84df1
DJ
207352005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
20736
20737 * Makefile.in (SFILES): Add linux-ppc64-low.c.
20738 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
20739 * configure.srv: Add powerpc64-*-linux*.
20740 * linux-ppc64-low.c: New file.
20741
45b134e5
OF
207422005-05-23 Orjan Friberg <orjanf@axis.com>
20743
20744 * linux-cris-low.c: New file with support for CRIS.
20745 * linux-crisv32-low.c: Ditto for CRISv32.
20746 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
20747 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 20748 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
20749 reg-crisv32.o, and reg-crisv32.c to make rules.
20750 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
20751 recognized targets.
20752
48d93c75
UW
207532005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
20754
20755 * linux-low.c (fetch_register): Ensure buffer size is a multiple
20756 of sizeof (PTRACE_XFER_TYPE).
20757 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
20758
e013ee27
OF
207592005-05-12 Orjan Friberg <orjanf@axis.com>
20760
889bf7c5 20761 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
20762 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
20763 pointers for hardware watchpoint support.
20764 * linux-low.h (struct linux_target_ops): Ditto.
20765 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
20766 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
20767 to linux_target_ops.
20768 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
20769 reply packet.
20770 * server.c (main): Recognize 'Z' and 'z' packets.
20771
b0ded00b
UW
207722005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
20773
20774 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
20775 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
20776 (the_low_target): Add new members.
20777
8643e2ad
DJ
207782005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
20779
20780 * proc-service.c (ps_lgetregs): Search all_processes instead of
20781 all_threads.
20782
fc620387
DJ
207832005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
20784
20785 * server.c (start_inferior): Change return type to int.
20786 (attach_inferior): Change sigptr to int *.
20787 (handle_v_cont, handle_v_requests): Change signal to int *.
20788 (main): Change signal to int.
20789
207902005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
20791
20792 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
20793 * configure.srv: Add m32r*-*-linux*.
20794 * linux-m32r-low.c: New file.
20795
e0e76420
DJ
207962005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
20797
20798 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
20799
a1928bad
DJ
208002005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20801
20802 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
20803 Take unsigned long arguments for PIDs.
20804 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
20805 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
20806 (wait_for_sigstop, linux_resume_one_process)
20807 (regsets_fetch_inferior_registers, linux_send_signal)
20808 (linux_read_auxv): Likewise. Update the types of variables holding
20809 PIDs. Update format string specifiers.
20810 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
20811 * remote-utils.c (prepare_resume_reply): Likewise.
20812 * server.c (cont_thread, general_thread, step_thread)
20813 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
20814 unsigned long.
20815 (handle_query): Update format specifiers.
20816 (handle_v_cont, main): Use strtoul for thread IDs.
20817 * server.h (struct inferior_list_entry): Use unsigned long for ID.
20818 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
20819 (general_thread, step_thread, thread_from_wait)
20820 (old_thread_from_wait): Update.
20821 * target.h (struct thread_resume): Use unsigned long for THREAD.
20822 (struct target_ops): Use unsigned long for arguments to attach and
20823 thread_alive.
20824
dcdb98d2
DJ
208252005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
20826
20827 * acinclude.m4: Include bfd/bfd.m4 directly.
20828 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
20829 <agriffis@toolchain.org>.
20830 * aclocal.m4, configure: Regenerated.
20831
bec39cab
AC
208322005-01-07 Andrew Cagney <cagney@gnu.org>
20833
20834 * configure.ac: Rename configure.in, require autoconf 2.59.
20835 * configure: Re-generate.
20836
434c4c77
DJ
208372004-12-08 Daniel Jacobowitz <dan@debian.org>
20838
20839 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
20840 LIBS when finished.
20841 * aclocal.m4: Regenerated.
20842 * configure: Regenerated.
20843
db1d3e1b
AS
208442004-11-21 Andreas Schwab <schwab@suse.de>
20845
20846 * linux-m68k-low.c (m68k_num_gregs): Define.
20847 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
20848 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
20849 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
20850 (m68k_breakpoint_at): New. Add to the_low_target.
20851
20852 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
20853 srv_linux_thread_db to yes.
20854
43360365
JB
208552004-10-20 Joel Brobecker <brobecker@gnat.com>
20856
20857 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
20858 (ARCH_SET_FS): Likewise.
20859 (ARCH_GET_FS): Likewise.
20860 (ARCH_GET_GS): Likewise.
20861
fd500816
DJ
208622004-10-16 Daniel Jacobowitz <dan@debian.org>
20863
20864 * linux-i386-low.c (ps_get_thread_area): New.
20865 * linux-x86-64-low.c (ps_get_thread_area): New.
20866 * linux-low.c: Include <sys/syscall.h>.
20867 (linux_kill_one_process): Don't kill the first thread here.
20868 (linux_kill): Kill the first thread here.
20869 (kill_lwp): New function.
20870 (send_sigstop, linux_send_signal): Use it.
20871 * proc-service.c: Clean up #ifdefs.
20872 (fpregset_info): Delete.
20873 (ps_lgetregs): Update and enable implementation.
20874 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
20875 implementations.
20876 * remote-utils.c (struct sym_cache, symbol_cache): New.
20877 (input_interrupt): Print a clearer message.
20878 (async_io_enabled): New variable.
20879 (enable_async_io, disable_async_io): Use it. Update comments.
20880 (look_up_one_symbol): Use the symbol cache.
20881 * thread-db.c (thread_db_look_up_symbols): New function.
20882 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
20883
f6de3c42
DJ
208842004-10-16 Daniel Jacobowitz <dan@debian.org>
20885
20886 * configure.in: Test for -rdynamic.
20887 * configure: Regenerated.
20888 * Makefile (INTERNAL_LDFLAGS): New.
20889 (gdbserver, gdbreplay): Use it.
20890
2c0fc042
AC
208912004-09-02 Andrew Cagney <cagney@gnu.org>
20892
20893 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
20894
075b3282
DJ
208952004-03-23 Daniel Jacobowitz <drow@mvista.com>
20896
20897 * linux-low.c (linux_wait): Clear all_processes list also.
20898
fa6a77dc
DJ
208992004-03-12 Daniel Jacobowitz <drow@mvista.com>
20900
20901 * linux-low.c: Include <errno.h>. Remove extern declaration of
20902 errno.
20903
6d782a97
DJ
209042004-03-12 Daniel Jacobowitz <drow@mvista.com>
20905
20906 * gdbreplay.c, server.h, utils.c: Update copyright years.
20907
3a7fb99b
DJ
209082004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
20909
20910 * server.c (main): Print child status or termination signal from
20911 variable 'signal', not 'sig'.
20912
c3e735a6
DJ
209132004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
20914
20915 * linux-low.c (linux_read_memory): Change return type to
20916 int. Check for and return error from ptrace().
20917 * target.c (read_inferior_memory): Change return type to int. Pass
20918 back return status from the_target->read_memory().
20919 * target.h (struct target_ops): Adapt *read_memory() prototype.
20920 Update comment.
20921 (read_inferior_memory): Adapt prototype.
20922 * server.c (main): Return an error packet if
20923 read_inferior_memory() returns an error.
20924
a59d1c82
DJ
209252004-03-04 Daniel Jacobowitz <drow@mvista.com>
20926
20927 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
20928 Unify with other clean targets.
20929
dc3f8883
DJ
209302004-02-29 Daniel Jacobowitz <drow@mvista.com>
20931
20932 * server.c (handle_v_cont): Call set_desired_inferior.
20933
89a208da
DJ
209342004-02-29 Daniel Jacobowitz <drow@mvista.com>
20935
20936 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
20937
62ea82f5
DJ
209382004-02-29 Daniel Jacobowitz <drow@mvista.com>
20939
20940 * linux-low.c (linux_wait): Unblock async I/O.
20941 (linux_resume): Block and enable async I/O.
20942 * remote-utils.c (block_async_io, unblock_async_io): New functions.
20943 * server.h (block_async_io, unblock_async_io): Add prototypes.
20944
6910d122
DJ
209452004-02-29 Daniel Jacobowitz <drow@mvista.com>
20946
20947 * remote-utils.c (remote_open): Print a status notice after
20948 opening a TCP port.
20949 * server.c (attach_inferior): Print a status notice after
20950 attaching.
20951
209522004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
20953
20954 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
20955
c89dc5d4
DJ
209562004-02-26 Daniel Jacobowitz <drow@mvista.com>
20957
20958 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
20959 error packet.
20960 * server.c, target.h: Update copyright years.
20961
4b8dad4a
RM
209622004-02-25 Roland McGrath <roland@redhat.com>
20963
20964 * target.h (struct target_ops): New member `read_auxv'.
20965 * server.c (handle_query): Handle qPart:auxv:read: query using that.
20966 * linux-low.c (linux_read_auxv): New function.
20967 (linux_target_ops): Initialize `read_auxv' member to that.
20968
d7446758
JB
209692004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20970
20971 Committed by Jim Blandy <jimb@redhat.com>.
20972
20973 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 20974 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
20975 instead of GPR_SIZE to distiguish s390 and s390x targets.
20976
5544ad89
DJ
209772004-01-31 Daniel Jacobowitz <drow@mvista.com>
20978
20979 * linux-low.c: Update copyright year.
20980 (check_removed_breakpoint): Clear pending_is_breakpoint.
20981 (linux_set_resume_request, linux_queue_one_thread)
20982 (resume_status_pending_p): New functions.
20983 (linux_continue_one_thread): Use process->resume.
20984 (linux_resume): Only resume threads if there are no pending events.
20985 * linux-low.h (struct process_info): Add resume request
20986 pointer.
20987
2a68b70e
DJ
209882004-01-30 Daniel Jacobowitz <drow@mvista.com>
20989
20990 * regcache.c (new_register_cache): Clear the allocated register
20991 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
20992
64386c31
DJ
209932003-10-13 Daniel Jacobowitz <drow@mvista.com>
20994
20995 * linux-low.c (linux_resume): Take a struct thread_resume *
20996 argument.
20997 (linux_wait): Update call.
20998 (resume_ptr): New static variable.
20999 (linux_continue_one_thread): Renamed from
21000 linux_continue_one_process. Use resume_ptr.
21001 (linux_resume): Use linux_continue_one_thread.
21002 * server.c (handle_v_cont, handle_v_requests): New functions.
21003 (myresume): New function.
21004 (main): Handle 'v' case.
21005 * target.h (struct thread_resume): New type.
21006 (struct target_ops): Change argument of "resume" to struct
21007 thread_resume *.
21008 (myresume): Delete macro.
21009
c938e9b0
L
210102003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21011
21012 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21013 (uninstall): Support DESTDIR.
21014
7f313d07
BC
21015Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21016
21017 * configure.srv: Add xscale*linux copy of arm*linux entry.
21018
3b2fc2ea
DJ
210192003-07-24 Daniel Jacobowitz <drow@mvista.com>
21020
21021 * linux-arm-low.c (arm_reinsert_addr): New function.
21022 (the_low_target): Add arm_reinsert_addr.
21023
1c0a559e
MK
210242003-07-08 Mark Kettenis <kettenis@gnu.org>
21025
21026 * mem-break.c: Remove whitespace at end of file.
21027
43d5792c
DJ
210282003-06-28 Daniel Jacobowitz <drow@mvista.com>
21029
21030 * configure.in: Check whether we need to prototype strerror.
21031 * server.h: Optionally prototype strerror.
21032 * gdbreplay.c (perror_with_name): Use strerror.
21033 * linux-low.c (linux_attach_lwp): Use strerror.
21034 * utils.c (perror_with_name): Use strerror.
21035 * config.in, configure: Regenerated.
21036
c8a86edf
DJ
210372003-06-28 Daniel Jacobowitz <drow@mvista.com>
21038
21039 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21040 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21041
73d37363
DJ
210422003-06-20 Daniel Jacobowitz <drow@mvista.com>
21043
21044 * Makefile.in (SFILES): Update.
21045 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21046 low-sun3.c: Remove files.
21047
6ad8ae5c
DJ
210482003-06-17 Daniel Jacobowitz <drow@mvista.com>
21049
21050 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21051 (linux_detach_one_process, linux_detach): New functions.
21052 (linux_target_ops): Add linux_detach.
21053 * server.c (main): Handle 'D' packet.
21054 * target.h (struct target_ops): Add "detach" member.
21055 (detach_inferior): Define.
21056
1581182a
MK
210572003-06-13 Mark Kettenis <kettenis@gnu.org>
21058
21059 From Kelley Cook <kelleycook@wideopenwest.com>:
21060 * configure.srv: Accept i[34567]86 variants.
21061
e5379b03
DJ
210622003-06-05 Daniel Jacobowitz <drow@mvista.com>
21063
21064 * linux-low.c (linux_wait_for_event): Correct comment typos.
21065 (linux_resume_one_process): Call check_removed_breakpoint.
21066 (linux_send_signal): New function.
21067 (linux_target_ops): Add linux_send_signal.
21068 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21069 of kill.
21070 * target.h (struct target_ops): Add send_signal.
21071
2ff29de4
JB
210722003-05-29 Jim Blandy <jimb@redhat.com>
21073
21074 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21075 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21076 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21077 away part of the register's value.
21078
254787d4
DJ
210792003-03-26 Daniel Jacobowitz <drow@mvista.com>
21080
21081 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21082 (linux_wait_for_event, linux_init_signals): Likewise.
21083
94e10508
DJ
210842003-03-17 Daniel Jacobowitz <drow@mvista.com>
21085
21086 * configure.in: Check for stdlib.h.
21087 * configure: Regenerated.
21088 * config.in: Regenerated.
21089
4c0711e0
DJ
210902003-01-04 Andreas Schwab <schwab@suse.de>
21091
21092 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21093
ef66e766
AC
210942003-01-02 Andrew Cagney <ac131313@redhat.com>
21095
21096 * Makefile.in: Remove obsolete code.
21097
a1358604
DJ
210982002-11-20 Daniel Jacobowitz <drow@mvista.com>
21099
21100 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21101 defined(PT_FPR0_HI).
21102
23ce3b1c
DJ
211032002-11-17 Stuart Hughes <seh@zee2.com>
21104
21105 * linux-arm-low.c (arm_num_regs): Increase.
21106 (arm_regmap): Include status register.
21107
211082002-11-17 Daniel Jacobowitz <drow@mvista.com>
21109
21110 * linux-low.c (register_addr): Remove incorrect -1 check.
21111
a9fa9f7d
DJ
211122002-08-29 Daniel Jacobowitz <drow@mvista.com>
21113
21114 * linux-low.c (linux_create_inferior): Call setpgid. Return
21115 the new PID.
21116 (unstopped_p, linux_signal_pid): Remove.
21117 (linux_target_ops): Remove linux_signal_pid.
21118 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21119 global instead of target method.
21120 * target.h (struct target_ops): Remove signal_pid. Update comment
21121 for create_inferior.
21122 * server.c (signal_pid): New variable.
21123 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21124 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21125 (attach_inferior): Set signal_pid.
21126
17574093
DJ
211272002-08-23 Daniel Jacobowitz <drow@mvista.com>
21128
21129 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21130
211312002-08-20 Jim Blandy <jimb@redhat.com>
21132
21133 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21134 default for this.
21135
211362002-08-01 Andrew Cagney <cagney@redhat.com>
21137
21138 * Makefile.in: Make chill references obsolete.
21139
211402002-07-24 Kevin Buettner <kevinb@redhat.com>
21141
21142 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21143 * configure: Regenerate.
21144 * config.in: Regenerate.
21145
211462002-07-09 David O'Brien <obrien@FreeBSD.org>
21147
21148 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21149 (perror_with_name, remote_close, remote_open, expect, play): Static.
21150
211512002-07-04 Michal Ludvig <mludvig@suse.cz>
21152
4b8dad4a 21153 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21154 byte offsets instead of an array of indexes.
21155 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21156
211572002-06-13 Daniel Jacobowitz <drow@mvista.com>
21158
21159 * regcache.c: Add comment.
21160
211612002-06-11 Daniel Jacobowitz <drow@mvista.com>
21162
21163 * thread-db.c: New file.
21164 * proc-service.c: New file.
21165 * acinclude.m4: New file.
21166 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21167 proc-service.o, and thread-db.o.
21168 (linux-low.o): Add USE_THREAD_DB.
21169 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21170 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21171 * aclocal.m4: Regenerated.
21172 * config.in: Regenerated.
21173 * configure: Regenerated.
21174 * configure.in: Check for proc_service.h, sys/procfs.h,
21175 thread_db.h, and linux/elf.h headrs.
21176 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21177 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21178 Check for -lthread_db and thread support.
21179 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21180 PowerPC, and SuperH.
21181 * i387-fp.c: Constify arguments.
21182 * i387-fp.h: Likewise.
21183 * inferiors.c: (struct thread_info): Renamed from
21184 `struct inferior_info'. Remove PID member. Use generic inferior
21185 list header. All uses updated.
21186 (inferiors, signal_pid): Removed.
21187 (all_threads): New variable.
21188 (get_thread): Define.
21189 (add_inferior_to_list): New function.
21190 (for_each_inferior): New function.
21191 (change_inferior_id): New function.
21192 (add_inferior): Removed.
21193 (remove_inferior): New function.
21194 (add_thread): New function.
21195 (free_one_thread): New function.
21196 (remove_thread): New function.
21197 (clear_inferiors): Use for_each_inferior and free_one_thread.
21198 (find_inferior): New function.
21199 (find_inferior_id): New function.
21200 (inferior_target_data): Update argument type.
21201 (set_inferior_target_data): Likewise.
21202 (inferior_regcache_data): Likewise.
21203 (set_inferior_regcache_data): Likewise.
21204 * linux-low.c (linux_bp_reinsert): Remove.
21205 (all_processes, stopping_threads, using_thrads)
21206 (struct pending_signals, debug_threads, pid_of): New.
21207 (inferior_pid): Replace with macro.
21208 (struct inferior_linux_data): Remove.
21209 (get_stop_pc, add_process): New functions.
21210 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21211 Use add_process and add_thread.
21212 (linux_attach_lwp): New function, based on old linux_attach. Use
21213 add_process and add_thread. Set stop_expected for new threads.
21214 (linux_attach): New function.
21215 (linux_kill_one_process): New function.
21216 (linux_kill): Kill all LWPs.
21217 (linux_thread_alive): Use find_inferior_id.
21218 (check_removed_breakpoints, status_pending_p): New functions.
21219 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21220 Update. Use WNOHANG. Wait for cloned processes also. Update process
21221 struct for the found process.
21222 (linux_wait_for_event): New function.
21223 (linux_wait): Use it. Support LWPs.
21224 (send_sigstop, wait_for_sigstop, stop_all_processes)
21225 (linux_resume_one_process, linux_continue_one_process): New functions.
21226 (linux_resume): Support LWPs.
21227 (REGISTER_RAW_SIZE): Remove.
21228 (fetch_register): Use register_size instead. Call supply_register.
21229 (usr_store_inferior_registers): Likewise. Call collect_register.
21230 Fix recursive case.
21231 (regsets_fetch_inferior_registers): Improve error message.
21232 (regsets_store_inferior_registers): Add debugging.
21233 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21234 (unstopped_p, linux_signal_pid): New functions.
21235 (linux_target_ops): Add linux_signal_pid.
21236 (linux_init_signals): New function.
21237 (initialize_low): Call it. Initialize using_threads.
21238 * regcache.c (inferior_regcache_data): Add valid
21239 flag.
21240 (get_regcache): Fetch registers lazily. Add fetch argument
21241 and update all callers.
21242 (regcache_invalidate_one, regcache_invalidate): New
21243 functions.
21244 (new_register_cache): Renamed from create_register_cache.
21245 Return the new regcache.
21246 (free_register_cache): Change argument to a void *.
21247 (registers_to_string, registers_from_string): Call get_regcache
21248 with fetch flag set.
21249 (register_data): Make static. Pass fetch flag to get_regcache.
21250 (supply_register): Call get_regcache with fetch flag clear.
21251 (collect_register): Call get_regcache with fetch flag set.
21252 (collect_register_as_string): New function.
21253 * regcache.h: Update.
21254 * remote-utils.c (putpkt): Flush after debug output and use
21255 stderr.
21256 Handle input interrupts while waiting for an ACK.
21257 (input_interrupt): Use signal_pid method.
21258 (getpkt): Flush after debug output and use stderr.
21259 (outreg): Use collect_register_as_string.
21260 (new_thread_notify, dead_thread_notify): New functions.
21261 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21262 and general_thread.
21263 (look_up_one_symbol): Flush after debug output.
21264 * server.c (step_thread, server_waiting): New variables.
21265 (start_inferior): Don't use signal_pid. Update call to mywait.
21266 (attach_inferior): Update call to mywait.
21267 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21268 (main): Don't fetch/store registers explicitly. Use
21269 set_desired_inferior. Support proposed ``Hs'' packet. Update
21270 calls to mywait.
21271 * server.h: Update.
21272 (struct inferior_list, struct_inferior_list_entry): New.
21273 * target.c (set_desired_inferior): New.
21274 (write_inferior_memory): Constify.
21275 (mywait): New function.
21276 * target.h: Update.
21277 (struct target_ops): New signal_pid method.
21278 (mywait): Removed macro, added prototype.
21279
21280 * linux-low.h (regset_func): Removed.
21281 (regset_fill_func, regset_store_func): New.
21282 (enum regset_type): New.
21283 (struct regset_info): Add type field. Use new operation types.
21284 (struct linux_target_ops): stop_pc renamed to get_pc.
21285 Add decr_pc_after_break and breakpoint_at.
21286 (get_process, get_thread_proess, get_process_thread)
21287 (strut process_info, all_processes, linux_attach_lwp)
21288 (thread_db_init): New.
21289
21290 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21291 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21292 (the_low_target): Add new members.
21293 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21294 (i386_store_fpxregset): Constify.
21295 (target_regsets): Add new kind identifier.
21296 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21297 (i386_set_pc): Add debugging.
21298 (i386_breakpoint_at): New function.
21299 (the_low_target): Add new members.
21300 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21301 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21302 (mips_breakpoint_at): New.
21303 (the_low_target): Add new members.
21304 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21305 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21306 (the_low_target): Add new members.
21307 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21308 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21309 (the_low_target): Add new members.
21310 * linux-x86-64-low.c (target_regsets): Add new kind
21311 identifier.
21312
213132002-05-15 Daniel Jacobowitz <drow@mvista.com>
21314
21315 From Martin Pool <mbp@samba.org>:
21316 * server.c (gdbserver_usage): New function.
21317 (main): Call it.
21318
213192002-05-14 Daniel Jacobowitz <drow@mvista.com>
21320
21321 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21322 stop_at -> stop_pc.
21323
213242002-05-04 Andrew Cagney <ac131313@redhat.com>
21325
21326 * Makefile.in: Remove obsolete code.
21327
213282002-04-24 Michal Ludvig <mludvig@suse.cz>
21329
21330 * linux-low.c (regsets_fetch_inferior_registers),
21331 (regsets_store_inferior_registers): Removed cast to int from
21332 ptrace() calls.
21333 * regcache.h: Added declaration of struct inferior_info.
21334
213352002-04-20 Daniel Jacobowitz <drow@mvista.com>
21336
21337 * inferiors.c (struct inferior_info): Add regcache_data.
21338 (add_inferior): Call create_register_cache.
21339 (clear_inferiors): Call free_register_cache.
21340 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21341 * regcache.c (struct inferior_regcache_data): New.
21342 (registers): Remove.
21343 (get_regcache): New function.
21344 (create_register_cache, free_register_cache): New functions.
21345 (set_register_cache): Don't initialize the register cache here.
21346 (registers_to_string, registers_from_string, register_data): Call
21347 get_regcache.
21348 * regcache.h: Add prototypes.
21349 * server.h: Likewise.
21350
213512002-04-20 Daniel Jacobowitz <drow@mvista.com>
21352
21353 * mem-break.c: New file.
21354 * mem-break.h: New file.
21355 * Makefile.in: Add mem-break.o rule; update server.h
21356 dependencies.
21357 * inferiors.c (struct inferior_info): Add target_data
21358 member.
21359 (clear_inferiors): Free target_data member if set.
21360 (inferior_target_data, set_inferior_target_data): New functions.
21361 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21362 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21363 * linux-low.c (linux_bp_reinsert): New variable.
21364 (struct inferior_linux_data): New.
21365 (linux_create_inferior): Use set_inferior_target_data.
21366 (linux_attach): Likewise. Call add_inferior.
21367 (linux_wait_for_one_inferior): New function.
21368 (linux_wait): Call it.
21369 (linux_write_memory): Add const.
21370 (initialize_low): Call set_breakpoint_data.
21371 * linux-low.h (struct linux_target_ops): Add breakpoint
21372 handling members.
21373 * server.c (attach_inferior): Remove extra add_inferior
21374 call.
21375 * server.h: Include mem-break.h. Update inferior.c
21376 prototypes.
21377 * target.c (read_inferior_memory)
21378 (write_inferior_memory): New functions.
21379 * target.h (read_inferior_memory)
21380 (write_inferior_memory): Change macros to prototypes.
21381 (struct target_ops): Update comments. Add const to write_memory
21382 definition.
21383
213842002-04-11 Daniel Jacobowitz <drow@mvista.com>
21385
21386 * linux-low.c (usr_store_inferior_registers): Support
21387 registers which are allowed to fail to store.
21388 * linux-low.h (linux_target_ops): Likewise.
21389 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21390 (ppc_cannot_store_register): FPSCR may not be storable.
21391
213922002-04-09 Daniel Jacobowitz <drow@mvista.com>
21393
21394 * server.h: Include <string.h> if HAVE_STRING_H.
21395 * ChangeLog: Correct paths in last ChangeLog entry.
21396
213972002-04-09 Daniel Jacobowitz <drow@mvista.com>
21398
21399 * linux-low.h: Remove obsolete prototypes.
21400 (struct linux_target_ops): New.
21401 (extern the_low_target): New.
21402 * linux-low.c (num_regs, regmap): Remove declarations.
21403 (register_addr): Use the_low_target explicitly.
21404 (fetch_register): Likewise.
21405 (usr_fetch_inferior_registers): Likewise.
21406 (usr_store_inferior_registers): Likewise.
21407 * linux-arm-low.c (num_regs): Remove.
21408 (arm_num_regs): Define.
21409 (arm_regmap): Renamed from regmap, made static.
21410 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21411 made static.
21412 (arm_cannot_store_register): Renamed from cannot_store_register,
21413 made static.
21414 (the_low_target): New.
21415 * linux-i386-low.c (num_regs): Remove.
21416 (i386_num_regs): Define.
21417 (i386_regmap): Renamed from regmap, made static.
21418 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21419 made static.
21420 (i386_cannot_store_register): Renamed from cannot_store_register,
21421 made static.
21422 (the_low_target): New.
21423 * linux-ia64-low.c (num_regs): Remove.
21424 (ia64_num_regs): Define.
21425 (ia64_regmap): Renamed from regmap, made static.
21426 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21427 made static.
21428 (ia64_cannot_store_register): Renamed from cannot_store_register,
21429 made static.
21430 (the_low_target): New.
21431 * linux-m68k-low.c (num_regs): Remove.
21432 (m68k_num_regs): Define.
21433 (m68k_regmap): Renamed from regmap, made static.
21434 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21435 made static.
21436 (m68k_cannot_store_register): Renamed from cannot_store_register,
21437 made static.
21438 (the_low_target): New.
21439 * linux-mips-low.c (num_regs): Remove.
21440 (mips_num_regs): Define.
21441 (mips_regmap): Renamed from regmap, made static.
21442 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21443 made static.
21444 (mips_cannot_store_register): Renamed from cannot_store_register,
21445 made static.
21446 (the_low_target): New.
21447 * linux-ppc-low.c (num_regs): Remove.
21448 (ppc_num_regs): Define.
21449 (ppc_regmap): Renamed from regmap, made static.
21450 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21451 made static.
21452 (ppc_cannot_store_register): Renamed from cannot_store_register,
21453 made static.
21454 (the_low_target): New.
21455 * linux-s390-low.c (num_regs): Remove.
21456 (s390_num_regs): Define.
21457 (s390_regmap): Renamed from regmap, made static.
21458 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21459 made static.
21460 (s390_cannot_store_register): Renamed from cannot_store_register,
21461 made static.
21462 (the_low_target): New.
21463 * linux-sh-low.c (num_regs): Remove.
21464 (sh_num_regs): Define.
21465 (sh_regmap): Renamed from regmap, made static.
21466 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21467 made static.
21468 (sh_cannot_store_register): Renamed from cannot_store_register,
21469 made static.
21470 (the_low_target): New.
21471 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21472 (the_low_target): New.
21473
214742002-04-09 Daniel Jacobowitz <drow@mvista.com>
21475
21476 * Makefile.in: Add stamp-h target.
21477 * configure.in: Create stamp-h.
21478 * configure: Regenerated.
21479
214802002-04-09 Daniel Jacobowitz <drow@mvista.com>
21481
21482 * inferiors.c: New file.
21483 * target.c: New file.
21484 * target.h: New file.
21485 * Makefile.in: Add target.o and inferiors.o. Update
21486 dependencies.
21487 * linux-low.c (inferior_pid): New static variable,
21488 moved from server.c.
21489 (linux_create_inferior): Renamed from create_inferior.
21490 Call add_inferior. Return 0 on success instead of a PID.
21491 (linux_attach): Renamed from myattach.
21492 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
21493 (linux_thread_alive): Renamed from mythread_alive.
21494 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
21495 child dies.
21496 (linux_resume): Renamed from myresume. Add missing ``return 0''.
21497 (regsets_store_inferior_registers): Correct error message.
21498 Add missing ``return 0''.
21499 (linux_fetch_registers): Renamed from fetch_inferior_registers.
21500 (linux_store_registers): Renamed from store_inferior_registers.
21501 (linux_read_memory): Renamed from read_inferior_memory.
21502 (linux_write_memory): Renamed from write_inferior_memory.
21503 (linux_target_ops): New structure.
21504 (initialize_low): Call set_target_ops ().
21505 * remote-utils.c (unhexify): New function.
21506 (hexify): New function.
21507 (input_interrupt): Send signals to ``signal_pid''.
21508 * server.c (inferior_pid): Remove.
21509 (start_inferior): Update create_inferior call.
21510 (attach_inferior): Call add_inferior.
21511 (handle_query): New function.
21512 (main): Call handle_query for `q' packets.
21513 * server.h: Include "target.h". Remove obsolete prototypes.
21514 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
21515
215162002-04-09 Daniel Jacobowitz <drow@mvista.com>
21517
21518 * Makefile.in: Add WARN_CFLAGS. Update configury
21519 dependencies.
21520 * configure.in: Check for <string.h>
21521 * configure: Regenerate.
21522 * config.in: Regenerate.
21523 * gdbreplay.c: Include needed system headers.
21524 (remote_open): Remove strchr prototype.
21525 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
21526 * regcache.c (supply_register): Change buf argument to const void *.
21527 (supply_register_by_name): Likewise.
21528 (collect_register): Change buf argument to void *.
21529 (collect_register_by_name): Likewise.
21530 * regcache.h: Add missing prototypes.
21531 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
21532 * server.c (handle_query): New function.
21533 (attached): New static variable, moved out of main.
21534 (main): Quiet longjmp clobber warnings.
21535 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
21536 * utils.c (error): Remove NORETURN.
21537 (fatal): Likewise.
This page took 2.378098 seconds and 4 git commands to generate.