Share handle_load_dll and handle_unload_dll declarations
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
1 2020-04-08 Tom Tromey <tromey@adacore.com>
2
3 * win32-low.c (windows_nat::handle_load_dll): Rename from
4 handle_load_dll. No longer static.
5 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
6 No longer static.
7
8 2020-04-08 Tom Tromey <tromey@adacore.com>
9
10 * win32-low.c (handle_output_debug_string): Add parameter. Change
11 return type.
12 (win32_kill, get_child_debug_event): Update.
13
14 2020-04-08 Tom Tromey <tromey@adacore.com>
15
16 * win32-low.c (current_process_handle, current_process_id)
17 (main_thread_id, last_sig, current_event, siginfo_er): Move to
18 nat/windows-nat.c.
19
20 2020-04-08 Tom Tromey <tromey@adacore.com>
21
22 * win32-low.c (get_image_name): Remove.
23 (handle_load_dll): Update.
24
25 2020-04-08 Tom Tromey <tromey@adacore.com>
26
27 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
28 No longer static. Change parameters.
29 (child_add_thread, child_fetch_inferior_registers)
30 (child_store_inferior_registers, win32_resume)
31 (win32_get_tib_address): Update.
32
33 2020-04-08 Tom Tromey <tromey@adacore.com>
34
35 * win32-low.h (struct win32_target_ops): Use qualified names where
36 needed.
37 * win32-i386-low.c: Add "using namespace".
38 * win32-low.c: Add "using namespace".
39 * win32-arm-low.c: Add "using namespace".
40
41 2020-04-08 Tom Tromey <tromey@adacore.com>
42
43 * win32-low.c (delete_thread_info): Don't call CloseHandle.
44
45 2020-04-08 Tom Tromey <tromey@adacore.com>
46
47 * win32-low.c (win32_require_context, suspend_one_thread): Use
48 windows_thread_info::suspend.
49 (continue_one_thread): Use windows_thread_info::resume.
50 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
51
52 2020-04-08 Tom Tromey <tromey@adacore.com>
53
54 * win32-i386-low.c (update_debug_registers)
55 (i386_prepare_to_resume, i386_thread_added): Update.
56
57 2020-04-08 Tom Tromey <tromey@adacore.com>
58
59 * win32-low.c (child_add_thread): Use new.
60 (delete_thread_info): Use delete.
61
62 2020-04-08 Tom Tromey <tromey@adacore.com>
63
64 * win32-low.h (struct windows_thread_info): Remove.
65
66 2020-04-08 Tom Tromey <tromey@adacore.com>
67
68 * win32-low.h (struct windows_thread_info): Rename from
69 win32_thread_info. Remove typedef.
70 (struct win32_target_ops, win32_require_context): Update.
71 * win32-low.c (win32_get_thread_context)
72 (win32_set_thread_context, win32_prepare_to_resume)
73 (win32_require_context, thread_rec, child_add_thread)
74 (delete_thread_info, continue_one_thread)
75 (child_fetch_inferior_registers, child_store_inferior_registers)
76 (win32_resume, suspend_one_thread, win32_get_tib_address):
77 Update.
78 * win32-i386-low.c (update_debug_registers)
79 (win32_get_current_dr, i386_get_thread_context)
80 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
81 (i386_fetch_inferior_register, i386_store_inferior_register):
82 Update.
83 * win32-arm-low.c (arm_get_thread_context)
84 (arm_fetch_inferior_register, arm_store_inferior_register):
85 Update.
86
87 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
88
89 * linux-low.h (struct linux_target_ops): Remove.
90 (the_low_target): Remove.
91 * linux-x86-low.cc (the_low_target): Remove.
92 * linux-aarch64-low.cc (the_low_target): Ditto.
93 * linux-arm-low.cc (the_low_target): Ditto.
94 * linux-bfin-low.cc (the_low_target): Ditto.
95 * linux-cris-low.cc (the_low_target): Ditto.
96 * linux-crisv32-low.cc (the_low_target): Ditto.
97 * linux-ia64-low.cc (the_low_target): Ditto.
98 * linux-m32r-low.cc (the_low_target): Ditto.
99 * linux-m68k-low.cc (the_low_target): Ditto.
100 * linux-mips-low.cc (the_low_target): Ditto.
101 * linux-nios2-low.cc (the_low_target): Ditto.
102 * linux-ppc-low.cc (the_low_target): Ditto.
103 * linux-riscv-low.cc (the_low_target): Ditto.
104 * linux-s390-low.cc (the_low_target): Ditto.
105 * linux-sh-low.cc (the_low_target): Ditto.
106 * linux-sparc-low.cc (the_low_target): Ditto.
107 * linux-tic6x-low.cc (the_low_target): Ditto.
108 * linux-tile-low.cc (the_low_target): Ditto.
109 * linux-xtensa-low.cc (the_low_target): Ditto.
110
111 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
112
113 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
114 linux target define the op by overriding the declaration in
115 process_stratum_target.
116
117 * linux-low.h (struct linux_target_ops): Remove the op.
118 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
119 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
120 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
121 (x86_get_ipa_tdesc_idx): Turn into...
122 (x86_target::get_ipa_tdesc_idx): ...this.
123 (the_low_target): Remove the op field.
124 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
125 (ppc_get_ipa_tdesc_idx): Turn into...
126 (ppc_target::get_ipa_tdesc_idx): ...this.
127 (the_low_target): Remove the op field.
128 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
129 (s390_get_ipa_tdesc_idx): Turn into...
130 (s390_target::get_ipa_tdesc_idx): ...this.
131 (the_low_target): Remove the op field.
132
133 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
134
135 Turn the 'get_syscall_trapinfo' linux target op into a method
136 of process_stratum_target.
137
138 * linux-low.h (struct linux_target_ops): Remove the op.
139 (class linux_process_target) <get_syscall_trapinfo>
140 <gdb_catch_this_syscall>
141 <low_supports_catch_syscall>
142 <low_get_syscall_trapinfo>: Declare.
143 * linux-low.cc (get_syscall_trapinfo): Turn into...
144 (linux_process_target::get_syscall_trapinfo): ...this.
145 (linux_process_target::low_get_syscall_trapinfo): Define.
146 (gdb_catch_this_syscall_p): Turn into...
147 (linux_process_target::gdb_catch_this_syscall): ...this.
148 (linux_process_target::low_supports_catch_syscall): Define.
149
150 Update the callers below.
151
152 (linux_process_target::wait_1)
153 (linux_process_target::supports_catch_syscall)
154
155 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
156 <low_get_syscall_trapinfo>: Declare.
157 (x86_target::low_supports_catch_syscall): Define.
158 (x86_get_syscall_trapinfo): Turn into...
159 (x86_target::low_get_syscall_trapinfo): ...this.
160 (the_low_target): Remove the op field.
161 * linux-aarch64-low.cc (class aarch64_target)
162 <low_supports_catch_syscall>
163 <low_get_syscall_trapinfo>: Declare.
164 (aarch64_target::low_supports_catch_syscall): Define.
165 (aarch64_get_syscall_trapinfo): Turn into...
166 (aarch64_target::low_get_syscall_trapinfo): ...this.
167 (the_low_target): Remove the op field.
168 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
169 <low_get_syscall_trapinfo>: Declare.
170 (arm_target::low_supports_catch_syscall): Define.
171 (arm_get_syscall_trapinfo): Turn into...
172 (arm_target::low_get_syscall_trapinfo): ...this.
173 (the_low_target): Remove the op field.
174 * linux-ppc-low.cc (the_low_target): Remove the op field.
175 * linux-s390-low.cc (the_low_target): Remove the op field.
176
177 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
178
179 Remove the 'supports_hardware_single_step' linux target op and
180 override the process_stratum_target's op definition in
181 linux_process_target to return true.
182
183 * linux-low.h (struct linux_target_ops): Remove the op.
184 (class linux_process_target) <finish_step_over>
185 <maybe_hw_step>: Declare.
186 * linux-low.cc (can_hardware_single_step): Remove.
187 (maybe_hw_step): Turn into...
188 (linux_process_target::maybe_hw_step): ...this.
189 (finish_step_over): Turn into...
190 (linux_process_target::finish_step_over): ...this.
191 (linux_process_target::supports_hardware_single_step): Update
192 to return true.
193
194 Update the callers below.
195
196 (linux_process_target::single_step)
197 (linux_process_target::resume_one_lwp_throw)
198
199 * linux-arm-low.cc (class arm_target)
200 <supports_hardware_single_step>: Declare.
201 (arm_supports_hardware_single_step): Turn into...
202 (arm_target::supports_hardware_single_step): ...this.
203 (the_low_target): Remove the op field.
204 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
205 (the_low_target): Remove the op field.
206 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
207 Remove.
208 (the_low_target): Remove the op field.
209 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
210 (the_low_target): Remove the op field.
211 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
212 (the_low_target): Remove the op field.
213 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
214 (the_low_target): Remove the op field.
215 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
216 (the_low_target): Remove the op field.
217 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
218 (the_low_target): Remove the op field.
219 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
220 (the_low_target): Remove the op field.
221 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
222 (the_low_target): Remove the op field.
223 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
224 (the_low_target): Remove the op field.
225 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
226 (the_low_target): Remove the op field.
227 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
228 Remove.
229 (the_low_target): Remove the op field.
230
231 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
232
233 Turn the 'supports_range_stepping' linux target op into a method
234 of linux_process_target.
235
236 * linux-low.h (struct linux_target_ops): Remove the op.
237 (class linux_process_target) <low_supports_range_stepping>: Declare.
238 * linux-low.cc (linux_process_target::low_supports_range_stepping):
239 Define.
240 (linux_process_target::supports_range_stepping): Update the call
241 site.
242 * linux-x86-low.cc (class x86_target)
243 <low_supports_range_stepping>: Declare.
244 (x86_supports_range_stepping): Turn into...
245 (x86_target::low_supports_range_stepping): ...this.
246 (the_low_target): Remove the op field.
247 * linux-aarch64-low.cc (class aarch64_target)
248 <low_supports_range_stepping>: Declare.
249 (aarch64_supports_range_stepping): Turn into...
250 (aarch64_target::low_supports_range_stepping): ...this.
251 (the_low_target): Remove the op field.
252 * linux-arm-low.cc (the_low_target): Remove the op field.
253 * linux-bfin-low.cc (the_low_target): Ditto.
254 * linux-crisv32-low.cc (the_low_target): Ditto.
255 * linux-m32r-low.cc (the_low_target): Ditto.
256 * linux-m68k-low.cc (the_low_target): Ditto.
257 * linux-ppc-low.cc (the_low_target): Ditto.
258 * linux-s390-low.cc (the_low_target): Ditto.
259 * linux-sh-low.cc (the_low_target): Ditto.
260 * linux-tic6x-low.cc (the_low_target): Ditto.
261 * linux-tile-low.cc (the_low_target): Ditto.
262 * linux-xtensa-low.cc (the_low_target): Ditto.
263
264 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
265
266 Remove the 'emit_ops' linux target ops and let the concrete
267 linux target define the op by overriding the declaration of
268 process_stratum_target.
269
270 * linux-low.h (struct linux_target_ops): Remove the op.
271 (class linux_process_target) <emit_ops>: Remove.
272 * linux-low.cc (linux_process_target::emit_ops): Remove.
273 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
274 (x86_emit_ops): Turn into...
275 (x86_target::emit_ops): ...this.
276 (the_low_target): Remove the op field.
277 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
278 (aarch64_emit_ops): Turn into...
279 (aarch64_target::emit_ops): ...this.
280 (the_low_target): Remove the op field.
281 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
282 (ppc_emit_ops): Turn into...
283 (ppc_target::emit_ops): ...this.
284 (the_low_target): Remove the op field.
285 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
286 (s390_emit_ops): Turn into...
287 (s390_target::emit_ops): ...this.
288 (the_low_target): Remove the op field.
289 * linux-arm-low.cc (the_low_target): Remove the op field.
290 * linux-bfin-low.cc (the_low_target): Ditto.
291 * linux-crisv32-low.cc (the_low_target): Ditto.
292 * linux-m32r-low.cc (the_low_target): Ditto.
293 * linux-m68k-low.cc (the_low_target): Ditto.
294 * linux-sh-low.cc (the_low_target): Ditto.
295 * linux-tic6x-low.cc (the_low_target): Ditto.
296 * linux-tile-low.cc (the_low_target): Ditto.
297 * linux-xtensa-low.cc (the_low_target): Ditto.
298
299 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
300
301 Remove the 'install_fast_tracepoint_jump_pad' and
302 'get_min_fast_tracepoint_insn_len' linux target ops to let the
303 concrete linux target define the ops by overriding the declarations
304 of process_stratum_target.
305
306 * linux-low.h (struct linux_target_ops): Remove the ops.
307 (class linux_process_target) <supports_fast_tracepoints>
308 <install_fast_tracepoint_jump_pad>
309 <get_min_fast_tracepoint_insn_len>: Remove.
310 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
311 (linux_process_target::install_fast_tracepoint_jump_pad)
312 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
313 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
314 <install_fast_tracepoint_jump_pad>
315 <get_min_fast_tracepoint_insn_len>: Declare.
316 (x86_target::supports_fast_tracepoints): Define.
317 (x86_install_fast_tracepoint_jump_pad): Turn into...
318 (x86_target::install_fast_tracepoint_jump_pad): ...this.
319 (x86_get_min_fast_tracepoint_insn_len): Turn into...
320 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
321 (the_low_target): Remove the op fields.
322 * linux-aarch64-low.cc (class aarch64_target)
323 <supports_fast_tracepoints>
324 <install_fast_tracepoint_jump_pad>
325 <get_min_fast_tracepoint_insn_len>: Declare.
326 (aarch64_target::supports_fast_tracepoints): Define.
327 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
328 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
329 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
330 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
331 (the_low_target): Remove the op fields.
332 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
333 <install_fast_tracepoint_jump_pad>
334 <get_min_fast_tracepoint_insn_len>: Declare.
335 (ppc_target::supports_fast_tracepoints): Define.
336 (ppc_install_fast_tracepoint_jump_pad): Turn into...
337 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
338 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
339 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
340 (the_low_target): Remove the op fields.
341 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
342 <install_fast_tracepoint_jump_pad>
343 <get_min_fast_tracepoint_insn_len>: Declare.
344 (s390_target::supports_fast_tracepoints): Define.
345 (s390_install_fast_tracepoint_jump_pad): Turn into...
346 (s390_target::install_fast_tracepoint_jump_pad): ...this.
347 (s390_get_min_fast_tracepoint_insn_len): Turn into...
348 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
349 (the_low_target): Remove the op fields.
350 * linux-arm-low.cc (the_low_target): Remove the op fields.
351 * linux-bfin-low.cc (the_low_target): Ditto.
352 * linux-crisv32-low.cc (the_low_target): Ditto.
353 * linux-m32r-low.cc (the_low_target): Ditto.
354 * linux-m68k-low.cc (the_low_target): Ditto.
355 * linux-sh-low.cc (the_low_target): Ditto.
356 * linux-tic6x-low.cc (the_low_target): Ditto.
357 * linux-tile-low.cc (the_low_target): Ditto.
358 * linux-xtensa-low.cc (the_low_target): Ditto.
359
360 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
361
362 Turn the 'get_thread_area' linux target op into a method of
363 process_stratum_target.
364
365 * linux-low.h (struct linux_target_ops): Remove the op.
366 (class linux_process_target) <stuck_in_jump_pad>
367 <linux_fast_tracepoint_collecting>
368 <low_get_thread_area>: Declare.
369 * linux-low.cc (supports_fast_tracepoints): Remove.
370 (linux_fast_tracepoint_collecting): Turn into...
371 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
372 (linux_process_target::low_get_thread_area): Define.
373 (stuck_in_jump_pad_callback): Turn into...
374 (linux_process_target::stuck_in_jump_pad): ...this.
375
376 Update the caller below.
377
378 (linux_process_target::stabilize_threads)
379
380 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
381 Declare.
382 (x86_get_thread_area): Turn into...
383 (x86_target::low_get_thread_area): ...this.
384 (the_low_target): Remove the op field.
385 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
386 Declare.
387 (aarch64_get_thread_area): Turn into...
388 (aarch64_target::low_get_thread_area): ...this.
389 (the_low_target): Remove the op field.
390 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
391 Declare.
392 (ppc_get_thread_area): Turn into...
393 (ppc_target::low_get_thread_area): ...this.
394 (the_low_target): Remove the op field.
395 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
396 Declare.
397 (s390_get_thread_area): Turn into...
398 (s390_target::low_get_thread_area): ...this.
399 (the_low_target): Remove the op field.
400 * linux-arm-low.cc (the_low_target): Remove the op field.
401 * linux-bfin-low.cc (the_low_target): Ditto.
402 * linux-crisv32-low.cc (the_low_target): Ditto.
403 * linux-m32r-low.cc (the_low_target): Ditto.
404 * linux-m68k-low.cc (the_low_target): Ditto.
405 * linux-sh-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
410 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
411
412 Remote the 'supports_tracepoints' 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.h (struct linux_target_ops): Remove the op.
417 (class linux_process_target) <supports_tracepoints>: Remove.
418 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
419 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
420 Declare.
421 (x86_supports_tracepoints): Turn into...
422 (x86_target::supports_tracepoints): ...this.
423 (the_low_target): Remove the op field.
424 * linux-aarch64-low.cc (class aarch64_target)
425 <supports_tracepoints>: Declare.
426 (aarch64_supports_tracepoints): Turn into...
427 (aarch64_target::supports_tracepoints): ...this.
428 (the_low_target): Remove the op field.
429 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
430 Declare.
431 (ppc_supports_tracepoints): Turn into...
432 (ppc_target::supports_tracepoints): ...this.
433 (the_low_target): Remove the op field.
434 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
435 Declare.
436 (s390_supports_tracepoints): Turn into...
437 (s390_target::supports_tracepoints): ...this.
438 (the_low_target): Remove the op field.
439 * linux-arm-low.cc (the_low_target): Remove the op field.
440 * linux-bfin-low.cc (the_low_target): Ditto.
441 * linux-crisv32-low.cc (the_low_target): Ditto.
442 * linux-m32r-low.cc (the_low_target): Ditto.
443 * linux-m68k-low.cc (the_low_target): Ditto.
444 * linux-sh-low.cc (the_low_target): Ditto.
445 * linux-tic6x-low.cc (the_low_target): Ditto.
446 * linux-tile-low.cc (the_low_target): Ditto.
447 * linux-xtensa-low.cc (the_low_target): Ditto.
448
449 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
450
451 Remove the 'process_qsupported' linux target op and let a concrete
452 linux target define the op by overriding the op declaration in
453 process_stratum_target.
454
455 * linux-low.h (struct linux_target_ops): Remove the op.
456 (class linux_process_target) <process_qsupported>: Remove.
457 * linux-low.cc (linux_process_target::process_qsupported): Remove.
458 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
459 (x86_linux_process_qsupported): Turn into...
460 (x86_target::process_qsupported): ...this.
461 (the_low_target): Remove the op field.
462 * linux-aarch64-low.cc (the_low_target): Remove the op
463 field.
464 * linux-arm-low.cc (the_low_target): Ditto.
465 * linux-bfin-low.cc (the_low_target): Ditto.
466 * linux-crisv32-low.cc (the_low_target): Ditto.
467 * linux-m32r-low.cc (the_low_target): Ditto.
468 * linux-m68k-low.cc (the_low_target): Ditto.
469 * linux-ppc-low.cc (the_low_target): Ditto.
470 * linux-s390-low.cc (the_low_target): Ditto.
471 * linux-sh-low.cc (the_low_target): Ditto.
472 * linux-tic6x-low.cc (the_low_target): Ditto.
473 * linux-tile-low.cc (the_low_target): Ditto.
474 * linux-xtensa-low.cc (the_low_target): Ditto.
475
476 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
477
478 Turn the 'prepare_to_resume' linux target op into a method of
479 linux_process_target.
480
481 * linux-low.h (struct linux_target_ops): Remove the op.
482 (class linux_process_target) <low_prepare_to_resume>: Declare.
483 * linux-low.cc (linux_process_target::low_prepare_to_resume):
484 Define.
485
486 Update the callers below:
487
488 (linux_process_target::resume_one_lwp_throw)
489 (linux_process_target::low_prepare_to_resume)
490
491 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
492 Declare.
493 (x86_target::low_prepare_to_resume): Define.
494 (the_low_target): Remove the op field.
495 * linux-aarch64-low.cc (class aarch64_target)
496 <low_prepare_to_resume>: Declare.
497 (aarch64_target::low_prepare_to_resume): Define.
498 (the_low_target): Remove the op field.
499 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
500 Declare.
501 (arm_prepare_to_resume): Turn into...
502 (arm_target::low_prepare_to_resume): ...this.
503 (the_low_target): Remove the op field.
504 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
505 Declare.
506 (mips_linux_prepare_to_resume): Turn into...
507 (mips_target::low_prepare_to_resume): ...this.
508 (the_low_target): Remove the op field.
509 * linux-bfin-low.cc (the_low_target): Remove the op field.
510 * linux-crisv32-low.cc (the_low_target): Ditto.
511 * linux-m32r-low.cc (the_low_target): Ditto.
512 * linux-m68k-low.cc (the_low_target): Ditto.
513 * linux-ppc-low.cc (the_low_target): Ditto.
514 * linux-s390-low.cc (the_low_target): Ditto.
515 * linux-sh-low.cc (the_low_target): Ditto.
516 * linux-tic6x-low.cc (the_low_target): Ditto.
517 * linux-tile-low.cc (the_low_target): Ditto.
518 * linux-xtensa-low.cc (the_low_target): Ditto.
519
520 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
521
522 Turn the 'new_process', 'delete_process', 'new_thread',
523 'delete_thread', and 'new_fork' linux target ops into methods
524 of linux_process_target.
525
526 * linux-low.h (struct linux_target_ops): Remove the ops.
527 (class linux_process_target) <add_linux_process>
528 <add_lwp>
529 <delete_lwp>
530 <attach_lwp>
531 <detach_one_lwp>
532 <check_zombie_leaders>
533 <filter_exit_event>
534 <low_new_process>
535 <low_delete_process>
536 <low_new_thread>
537 <low_delete_thread>
538 <low_new_fork>: Declare.
539 * linux-low.cc (delete_lwp): Turn into...
540 (linux_process_target::delete_lwp): ...this.
541 (linux_process_target::low_delete_thread): Define.
542 (linux_add_process): Turn into...
543 (linux_process_target::add_linux_process): ...this.
544 (linux_process_target::low_new_process): Define.
545 (linux_process_target::low_delete_process): Define.
546 (linux_process_target::low_new_fork): Define.
547 (add_lwp): Turn into...
548 (linux_process_target::add_lwp): ...this.
549 (linux_process_target::low_new_thread): Define.
550 (linux_attach_lwp): Turn into...
551 (linux_process_target::attach_lwp): ...this.
552 (linux_detach_one_lwp): Turn into...
553 (linux_process_target::detach_one_lwp): ...this.
554 (linux_detach_lwp_callback): Remove and inline...
555 (linux_process_target::detach): ...here.
556 (check_zombie_leaders): Turn into...
557 (linux_process_target::check_zombie_leaders): ...this.
558 (filter_exit_event): Turn into...
559 (linux_process_target::filter_exit_event): ...this.
560
561 Update the callers below.
562
563 (linux_process_target::handle_extended_wait)
564 (linux_process_target::create_inferior)
565 (attach_proc_task_lwp_callback)
566 (linux_process_target::attach)
567 (linux_process_target::detach)
568 (linux_process_target::mourn)
569 * thread-db.cc (attach_thread)
570
571 * linux-x86-low.cc (class x86_target) <low_new_process>
572 <low_delete_process>
573 <low_new_thread>
574 <low_delete_thread>
575 <low_new_fork>: Declare.
576 (x86_linux_new_process): Turn into...
577 (x86_target::low_new_process): ...this.
578 (x86_linux_delete_process): Turn into...
579 (x86_target::low_delete_process): ...this.
580 (x86_target::low_new_thread): Define.
581 (x86_target::low_delete_thread): Define.
582 (x86_linux_new_fork): Turn into...
583 (x86_target::low_new_fork): ...this.
584 (the_low_target): Remove the op fields.
585 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
586 <low_delete_process>
587 <low_new_thread>
588 <low_delete_thread>
589 <low_new_fork>: Declare.
590 (aarch64_linux_new_process): Turn into...
591 (aarch64_target::low_new_process): ...this.
592 (aarch64_linux_delete_process): Turn into...
593 (aarch64_target::low_delete_process): ...this.
594 (aarch64_target::low_new_thread): Define.
595 (aarch64_target::low_delete_thread): Define.
596 (aarch64_linux_new_fork): Turn into...
597 (aarch64_target::low_new_fork): ...this.
598 (the_low_target): Remove the op fields.
599 * linux-arm-low.cc (class arm_target) <low_new_process>
600 <low_delete_process>
601 <low_new_thread>
602 <low_delete_thread>
603 <low_new_fork>: Declare.
604 (arm_new_process): Turn into...
605 (arm_target::low_new_process): ...this.
606 (arm_delete_process): Turn into...
607 (arm_target::low_delete_process): ...this.
608 (arm_new_thread): Turn into...
609 (arm_target::low_new_thread): ...this.
610 (arm_delete_thread): Turn into...
611 (arm_target::low_delete_thread): ...this.
612 (arm_new_fork): Turn into...
613 (arm_target::low_new_fork): ...this.
614 (the_low_target): Remove the op fields.
615 * linux-mips-low.cc (class mips_target) <low_new_process>
616 <low_delete_process>
617 <low_new_thread>
618 <low_delete_thread>
619 <low_new_fork>: Declare.
620 (mips_linux_new_process): Turn into...
621 (mips_target::low_new_process): ...this.
622 (mips_linux_delete_process): Turn into...
623 (mips_target::low_delete_process): ...this.
624 (mips_linux_new_thread): Turn into...
625 (mips_target::low_new_thread): ...this.
626 (mips_linux_delete_thread): Turn into...
627 (mips_target::low_delete_thread): ...this.
628 (mips_linux_new_fork): Turn into...
629 (mips_target::low_new_fork): ...this.
630 (the_low_target): Remove the op fields.
631 * linux-bfin-low.cc (the_low_target): Remove the op fields.
632 * linux-crisv32-low.cc (the_low_target): Ditto.
633 * linux-m32r-low.cc (the_low_target): Ditto.
634 * linux-m68k-low.cc (the_low_target): Ditto.
635 * linux-ppc-low.cc (the_low_target): Ditto.
636 * linux-s390-low.cc (the_low_target): Ditto.
637 * linux-sh-low.cc (the_low_target): Ditto.
638 * linux-tic6x-low.cc (the_low_target): Ditto.
639 * linux-tile-low.cc (the_low_target): Ditto.
640 * linux-xtensa-low.cc (the_low_target): Ditto.
641
642 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
643
644 Turn the 'siginfo_fixup' linux target op into a method of
645 linux_process_target.
646
647 * linux-low.h (struct linux_target_ops): Remove the op.
648 (class linux_process_target) <siginfo_fixup>
649 <low_siginfo_fixup>: Declare.
650 * linux-low.cc (siginfo_fixup): Turn into...
651 (linux_process_target::siginfo_fixup): ...this.
652 (linux_process_target::low_siginfo_fixup): Define.
653 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
654 (x86_siginfo_fixup): Turn into...
655 (x86_target::low_siginfo_fixup): ...this.
656 (the_low_target): Remove the op field.
657 * linux-aarch64-low.cc (class aarch64_target):
658 <low_siginfo_fixup>: Declare.
659 (aarch64_linux_siginfo_fixup): Turn into...
660 (aarch64_target::low_siginfo_fixup): ...this.
661 (the_low_target): Remove the op field.
662 * linux-arm-low.cc (the_low_target): Remove the op field.
663 * linux-bfin-low.cc (the_low_target): Ditto.
664 * linux-crisv32-low.cc (the_low_target): Ditto.
665 * linux-m32r-low.cc (the_low_target): Ditto.
666 * linux-m68k-low.cc (the_low_target): Ditto.
667 * linux-mips-low.cc (the_low_target): Ditto.
668 * linux-ppc-low.cc (the_low_target): Ditto.
669 * linux-s390-low.cc (the_low_target): Ditto.
670 * linux-sh-low.cc (the_low_target): Ditto.
671 * linux-tic6x-low.cc (the_low_target): Ditto.
672 * linux-tile-low.cc (the_low_target): Ditto.
673 * linux-xtensa-low.cc (the_low_target): Ditto.
674
675 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
676
677 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
678 linux target ops into methods of linux_process_target.
679
680 * linux-low.h (struct linux_target_ops): Remove the ops.
681 (class linux_process_target) <low_collect_ptrace_register>
682 <low_store_ptrace_register>: Declare.
683 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
684 (linux_process_target::low_supply_ptrace_register): Define.
685
686 Update the callers below.
687
688 (linux_process_target::fetch_register)
689 (linux_process_target::store_register)
690
691 * linux-x86-low.cc (the_low_target): Remove the op fields.
692 * linux-aarch64-low.cc (the_low_target): Ditto.
693 * linux-arm-low.cc (the_low_target): Ditto.
694 * linux-bfin-low.cc (the_low_target): Ditto.
695 * linux-crisv32-low.cc (the_low_target): Ditto.
696 * linux-m32r-low.cc (the_low_target): Ditto.
697 * linux-m68k-low.cc (the_low_target): Ditto.
698 * linux-sh-low.cc (the_low_target): Ditto.
699 * linux-sparc-low.cc (the_low_target): Ditto.
700 * linux-tic6x-low.cc (the_low_target): Ditto.
701 * linux-tile-low.cc (the_low_target): Ditto.
702 * linux-xtensa-low.cc (the_low_target): Ditto.
703 * linux-mips-low.cc (class mips_target)
704 <low_collect_ptrace_register>
705 <low_supply_ptrace_register>: Declare.
706 (mips_collect_ptrace_register): Turn into ...
707 (mips_target::low_collect_ptrace_register): ...this.
708 (mips_supply_ptrace_register): Turn into...
709 (mips_target::low_supply_ptrace_register): ...this.
710 (the_low_target): Remove the op fields.
711 * linux-ppc-low.cc (class ppc_target)
712 <low_collect_ptrace_register>
713 <low_supply_ptrace_register>: Declare.
714 (ppc_collect_ptrace_register): Turn into ...
715 (ppc_target::low_collect_ptrace_register): ...this.
716 (ppc_supply_ptrace_register): Turn into ...
717 (ppc_target::low_supply_ptrace_register): ...this.
718 (ppc_fill_gregset): Update for the calls to
719 low_collect_ptrace_register.
720 (the_low_target): Remove the op fields.
721 * linux-s390-low.cc (class s390_target)
722 <low_collect_ptrace_register>
723 <low_supply_ptrace_register>: Declare.
724 (s390_collect_ptrace_register): Turn into ...
725 (s390_target::low_collect_ptrace_register): ...this.
726 (s390_supply_ptrace_register): Turn into ...
727 (s390_target::low_supply_ptrace_register): ...this.
728 (s390_fill_gregset): Update for the calls to
729 low_collect_ptrace_register.
730 (the_low_target): Remove the op fields.
731
732 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
733
734 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
735 target ops into methods of linux_process_target.
736
737 * linux-low.h (struct linux_target_ops): Remove the ops.
738 (class linux_process_target) <check_stopped_by_watchpoint>
739 <low_stopped_by_watchpoint>
740 <low_stopped_data_address>: Declare.
741 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
742 (linux_process_target::check_stopped_by_watchpoint): ...this.
743 (linux_process_target::low_stopped_by_watchpoint): Define.
744 (linux_process_target::low_stopped_data_address): Define.
745 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
746 <low_stopped_data_address>: Declare.
747 (x86_stopped_by_watchpoint): Turn into...
748 (x86_target::low_stopped_by_watchpoint): ...this.
749 (x86_stopped_data_address): Turn into...
750 (x86_target::low_stopped_data_address): ...this.
751 (the_low_target): Remove the op fields.
752 * linux-aarch64-low.cc (class aarch64_target)
753 <low_stopped_by_watchpoint>
754 <low_stopped_data_address>: Declare.
755 (aarch64_stopped_by_watchpoint): Turn into...
756 (aarch64_target::low_stopped_by_watchpoint): ...this.
757 (aarch64_stopped_data_address): Turn into...
758 (aarch64_target::low_stopped_data_address): ...this.
759 (the_low_target): Remove the op fields.
760 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
761 <low_stopped_data_address>: Declare.
762 (arm_stopped_by_watchpoint): Turn into...
763 (arm_target::low_stopped_by_watchpoint): ...this.
764 (arm_stopped_data_address): Turn into...
765 (arm_target::low_stopped_data_address): ...this.
766 (the_low_target): Remove the op fields.
767 * linux-crisv32-low.cc (class crisv32_target)
768 <low_stopped_by_watchpoint>
769 <low_stopped_data_address>: Declare.
770 (cris_stopped_by_watchpoint): Turn into...
771 (crisv32_target::low_stopped_by_watchpoint): ...this.
772 (cris_stopped_data_address): Turn into...
773 (crisv32_target::low_stopped_data_address): ...this.
774 (the_low_target): Remove the op fields.
775 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
776 <low_stopped_data_address>: Declare.
777 (mips_stopped_by_watchpoint): Turn into...
778 (mips_target::low_stopped_by_watchpoint): ...this.
779 (mips_stopped_data_address): Turn into...
780 (mips_target::low_stopped_data_address): ...this.
781 (the_low_target): Remove the op fields.
782 * linux-bfin-low.cc (the_low_target): Remove the op fields.
783 * linux-m32r-low.cc (the_low_target): Ditto.
784 * linux-m68k-low.cc (the_low_target): Ditto.
785 * linux-ppc-low.cc (the_low_target): Ditto.
786 * linux-s390-low.cc (the_low_target): Ditto.
787 * linux-sh-low.cc (the_low_target): Ditto.
788 * linux-sparc-low.cc (the_low_target): Ditto.
789 * linux-tic6x-low.cc (the_low_target): Ditto.
790 * linux-tile-low.cc (the_low_target): Ditto.
791 * linux-xtensa-low.cc (the_low_target): Ditto.
792
793 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
794
795 Turn the 'insert_point' and 'remove_point' linux target ops into
796 methods of linux_process_target.
797
798 * linux-low.h (struct linux_target_ops): Remove the ops.
799 (class linux_process_target) <low_insert_point>
800 <low_remove_point>: Declare.
801 * linux-low.cc (linux_process_target::low_insert_point)
802 (linux_process_target::low_remove_point): Define.
803 (linux_process_target::insert_point)
804 (linux_process_target::remove_point): Update for calls to
805 low_insert_point and low_remove_point.
806 * linux-x86-low.cc (class x86_target) <low_insert_point>
807 <low_remove_point>: Declare.
808 (x86_insert_point): Turn into...
809 (x86_target::low_insert_point): ...this.
810 (x86_remove_point): Turn into...
811 (x86_target::low_remove_point): ...this.
812 (the_low_target): Remove the op fields.
813 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
814 <low_remove_point>: Declare.
815 (aarch64_insert_point): Turn into...
816 (aarch64_target::low_insert_point): ...this.
817 (aarch64_remove_point): Turn into...
818 (aarch64_target::low_remove_point): ...this.
819 (the_low_target): Remove the op fields.
820 * linux-arm-low.cc (class arm_target) <low_insert_point>
821 <low_remove_point>: Declare.
822 (arm_insert_point): Turn into...
823 (arm_target::low_insert_point): ...this.
824 (arm_remove_point): Turn into...
825 (arm_target::low_remove_point): ...this.
826 (the_low_target): Remove the op fields.
827 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
828 <low_remove_point>: Declare.
829 (crisv32_insert_point): Turn into...
830 (crisv32_target::low_insert_point): ...this.
831 (crisv32_remove_point): Turn into...
832 (crisv32_target::low_remove_point): ...this.
833 (the_low_target): Remove the op fields.
834 * linux-mips-low.cc (class mips_target) <low_insert_point>
835 <low_remove_point>: Declare.
836 (mips_insert_point): Turn into...
837 (mips_target::low_insert_point): ...this.
838 (mips_remove_point): Turn into...
839 (mips_target::low_remove_point): ...this.
840 (the_low_target): Remove the op fields.
841 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
842 <low_remove_point>: Declare.
843 (ppc_insert_point): Turn into...
844 (ppc_target::low_insert_point): ...this.
845 (ppc_remove_point): Turn into...
846 (ppc_target::low_remove_point): ...this.
847 (the_low_target): Remove the op fields.
848 * linux-bfin-low.cc (the_low_target): Remove the op fields.
849 * linux-m32r-low.cc (the_low_target): Ditto.
850 * linux-m68k-low.cc (the_low_target): Ditto.
851 * linux-s390-low.cc (the_low_target): Ditto.
852 * linux-sh-low.cc (the_low_target): Ditto.
853 * linux-sparc-low.cc (the_low_target): Ditto.
854 * linux-tic6x-low.cc (the_low_target): Ditto.
855 * linux-tile-low.cc (the_low_target): Ditto.
856 * linux-xtensa-low.cc (the_low_target): Ditto.
857
858 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
859
860 Remove the 'supports_z_point_type' linux target op and let the
861 concrete linux target define it by overriding the op declared in
862 process_stratum_target.
863
864 * linux-low.cc (linux_process_target::supports_z_point_type):
865 Remove.
866 * linux-low.h (struct linux_target_ops): Remove the op.
867 (class linux_process_target) <supports_z_point_type>: Remove.
868 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
869 Declare.
870 (x86_supports_z_point_type): Turn into...
871 (x86_target::supports_z_point_type): ...this.
872 (the_low_target): Remove the op field.
873 * linux-aarch64-low.cc (class aarch64_target)
874 <supports_z_point_type>: Declare.
875 (aarch64_supports_z_point_type): Turn into...
876 (aarch64_target::supports_z_point_type): ...this.
877 (the_low_target): Remove the op field.
878 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
879 Declare.
880 (arm_supports_z_point_type): Turn into...
881 (arm_target::supports_z_point_type): ...this.
882 (the_low_target): Remove the op field.
883 * linux-crisv32-low.cc (class crisv32_target)
884 <supports_z_point_type>: Declare.
885 (cris_supports_z_point_type): Turn into...
886 (crisv32_target::supports_z_point_type): ...this.
887 (the_low_target): Remove the op field.
888 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
889 Declare.
890 (mips_supports_z_point_type): Turn into...
891 (mips_target::supports_z_point_type): ...this.
892 (the_low_target): Remove the op field.
893 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
894 Declare.
895 (ppc_supports_z_point_type): Turn into...
896 (ppc_target::supports_z_point_type): ...this.
897 (the_low_target): Remove the op field.
898 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
899 Declare.
900 (s390_supports_z_point_type): Turn into...
901 (s390_target::supports_z_point_type): ...this.
902 (the_low_target): Remove the op field.
903 * linux-bfin-low.cc (the_low_target): Remove the op field.
904 * linux-m32r-low.cc (the_low_target): Ditto.
905 * linux-m68k-low.cc (the_low_target): Ditto.
906 * linux-sh-low.cc (the_low_target): Ditto.
907 * linux-sparc-low.cc (the_low_target): Ditto.
908 * linux-tic6x-low.cc (the_low_target): Ditto.
909 * linux-tile-low.cc (the_low_target): Ditto.
910 * linux-xtensa-low.cc (the_low_target): Ditto.
911
912 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
913
914 Turn the 'breakpoint_at' linux target op into a method of
915 linux_process_target.
916
917 * linux-low.h (struct linux_target_ops): Remove the op.
918 (class linux_process_target) <low_breakpoint_at>: Declare.
919
920 Update the callers below:
921
922 * linux-low.cc (linux_process_target::save_stop_reason)
923 (linux_process_target::thread_still_has_status_pending)
924 (linux_process_target::wait_1)
925
926 * linux-x86-low.cc (class x86_target)
927 <low_breakpoint_at>: Declare.
928 (x86_breakpoint_at): Turn into...
929 (x86_target::low_breakpoint_at): ...this.
930 (the_low_target): Remove the op field.
931 * linux-aarch64-low.cc (class aarch64_target)
932 <low_breakpoint_at>: Declare.
933 (aarch64_breakpoint_at): Turn into...
934 (aarch64_target::low_breakpoint_at): ...this.
935 (the_low_target): Remove the op field.
936 * linux-arm-low.cc (class arm_target)
937 <low_breakpoint_at>: Declare.
938 (arm_target::low_breakpoint_at): Define.
939 (the_low_target): Remove the op field.
940 * linux-bfin-low.cc (class bfin_target)
941 <low_breakpoint_at>: Declare.
942 (bfin_breakpoint_at): Turn into...
943 (bfin_target::low_breakpoint_at): ...this.
944 (the_low_target): Remove the op field.
945 * linux-cris-low.cc (class cris_target)
946 <low_breakpoint_at>: Declare.
947 (cris_breakpoint_at): Turn into...
948 (cris_target::low_breakpoint_at): ...this.
949 (the_low_target): Remove the op field.
950 * linux-crisv32-low.cc (class crisv32_target)
951 <low_breakpoint_at>: Declare.
952 (crisv32_breakpoint_at): Turn into...
953 (crisv32_target::low_breakpoint_at): ...this.
954 (the_low_target): Remove the op field.
955 * linux-ia64-low.cc (class ia64_target)
956 <low_breakpoint_at>: Declare.
957 (ia64_target::low_breakpoint_at): Define.
958 * linux-m32r-low.cc (class m32r_target)
959 <low_breakpoint_at>: Declare.
960 (m32r_breakpoint_at): Turn into...
961 (m32r_target::low_breakpoint_at): ...this.
962 (the_low_target): Remove the op field.
963 * linux-m68k-low.cc (class m68k_target)
964 <low_breakpoint_at>: Declare.
965 (m68k_breakpoint_at): Turn into...
966 (m68k_target::low_breakpoint_at): ...this.
967 (the_low_target): Remove the op field.
968 * linux-mips-low.cc (class mips_target)
969 <low_breakpoint_at>: Declare.
970 (mips_breakpoint_at): Turn into...
971 (mips_target::low_breakpoint_at): ...this.
972 (the_low_target): Remove the op field.
973 * linux-nios2-low.cc (class nios2_target)
974 <low_breakpoint_at>: Declare.
975 (nios2_breakpoint_at): Turn into...
976 (nios2_target::low_breakpoint_at): ...this.
977 (the_low_target): Remove the op field.
978 * linux-ppc-low.cc (class ppc_target)
979 <low_breakpoint_at>: Declare.
980 (ppc_breakpoint_at): Turn into...
981 (ppc_target::low_breakpoint_at): ...this.
982 (the_low_target): Remove the op field.
983 * linux-riscv-low.cc (class riscv_target)
984 <low_breakpoint_at>: Declare.
985 (riscv_breakpoint_at): Turn into...
986 (riscv_target::low_breakpoint_at): ...this.
987 (the_low_target): Remove the op field.
988 * linux-s390-low.cc (class s390_target)
989 <low_breakpoint_at>: Declare.
990 (s390_breakpoint_at): Turn into...
991 (s390_target::low_breakpoint_at): ...this.
992 (the_low_target): Remove the op field.
993 * linux-sh-low.cc (class sh_target)
994 <low_breakpoint_at>: Declare.
995 (sh_breakpoint_at): Turn into...
996 (sh_target::low_breakpoint_at): ...this.
997 (the_low_target): Remove the op field.
998 * linux-sparc-low.cc (class sparc_target)
999 <low_breakpoint_at>: Declare.
1000 (sparc_breakpoint_at): Turn into...
1001 (sparc_target::low_breakpoint_at): ...this.
1002 (the_low_target): Remove the op field.
1003 * linux-tic6x-low.cc (class tic6x_target)
1004 <low_breakpoint_at>: Declare.
1005 (tic6x_breakpoint_at): Turn into...
1006 (tic6x_target::low_breakpoint_at): ...this.
1007 (the_low_target): Remove the op field.
1008 * linux-tile-low.cc (class tile_target)
1009 <low_breakpoint_at>: Declare.
1010 (tile_breakpoint_at): Turn into...
1011 (tile_target::low_breakpoint_at): ...this.
1012 (the_low_target): Remove the op field.
1013 * linux-xtensa-low.cc (class xtensa_target)
1014 <low_breakpoint_at>: Declare.
1015 (xtensa_breakpoint_at): Turn into...
1016 (xtensa_target::low_breakpoint_at): ...this.
1017 (the_low_target): Remove the op field.
1018
1019 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1020
1021 Turn the 'decr_pc_after_break' linux_target_ops field into
1022 a method of linux_process_target.
1023
1024 * linux-low.h (struct linux_target_ops)
1025 <decr_pc_after_break>: Remove.
1026 (class linux_process_target) <low_decr_pc_after_break>: New method
1027 declaration.
1028 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1029 New method implementation.
1030
1031 Update the users below.
1032
1033 (linux_process_target::save_stop_reason)
1034 (linux_process_target::wait_1)
1035 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1036 New declaration.
1037 (x86_target::low_decr_pc_after_break): New method implementation.
1038 (the_low_target): Remove the field.
1039 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1040 New declaration.
1041 (bfin_target::low_decr_pc_after_break): New method implementation.
1042 (the_low_target): Remove the field.
1043 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1044 New declaration.
1045 (m68k_target::low_decr_pc_after_break): New method implementation.
1046 (the_low_target): Remove the field.
1047 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1048 New declaration.
1049 (s390_target::low_decr_pc_after_break): New method implementation.
1050 (the_low_target): Remove the field.
1051 * linux-aarch64-low.cc (the_low_target): Remove the field.
1052 * linux-arm-low.cc (the_low_target): Remove the field.
1053 * linux-cris-low.cc (the_low_target): Remove the field.
1054 * linux-crisv32-low.cc (the_low_target): Remove the field.
1055 * linux-m32r-low.cc (the_low_target): Remove the field.
1056 * linux-mips-low.cc (the_low_target): Remove the field.
1057 * linux-nios2-low.cc (the_low_target): Remove the field.
1058 * linux-ppc-low.cc (the_low_target): Remove the field.
1059 * linux-riscv-low.cc (the_low_target): Remove the field.
1060 * linux-sh-low.cc (the_low_target): Remove the field.
1061 * linux-sparc-low.cc (the_low_target): Remove the field.
1062 * linux-tic6x-low.cc (the_low_target): Remove the field.
1063 * linux-tile-low.cc (the_low_target): Remove the field.
1064 * linux-xtensa-low.cc (the_low_target): Remove the field.
1065
1066 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1067
1068 Remove the 'supports_software_single_step' linux target op and let
1069 the concrete linux target define it by overriding the op in
1070 process_stratum_target.
1071 Turn the 'get_next_pcs' linux target op into a method of
1072 linux_process_target.
1073
1074 * linux-low.h (struct linux_target_ops): Remove the ops.
1075 (class linux_process_target) <supports_software_single_step>:
1076 Remove.
1077 <low_get_next_pcs>: Declare.
1078 * linux-low.cc (can_software_single_step): Remove.
1079 (linux_process_target::low_get_next_pcs): Define.
1080 (linux_process_target::supports_software_single_step): Remove.
1081
1082 Update the callers below.
1083
1084 (linux_process_target::handle_extended_wait)
1085 (linux_process_target::wait_1)
1086 (linux_process_target::install_software_single_step_breakpoints)
1087 (linux_process_target::single_step)
1088 (linux_process_target::thread_needs_step_over)
1089 (linux_process_target::proceed_one_lwp)
1090 (linux_process_target::supports_range_stepping)
1091
1092 * linux-x86-low.cc (the_low_target): Remove the op field.
1093 * linux-aarch64-low.cc (the_low_target): Ditto.
1094 * linux-bfin-low.cc (the_low_target): Ditto.
1095 * linux-cris-low.cc (the_low_target): Ditto.
1096 * linux-crisv32-low.cc (the_low_target): Ditto.
1097 * linux-m32r-low.cc (the_low_target): Ditto.
1098 * linux-m68k-low.cc (the_low_target): Ditto.
1099 * linux-mips-low.cc (the_low_target): Ditto.
1100 * linux-nios2-low.cc (the_low_target): Ditto.
1101 * linux-ppc-low.cc (the_low_target): Ditto.
1102 * linux-riscv-low.cc (the_low_target): Ditto.
1103 * linux-s390-low.cc (the_low_target): Ditto.
1104 * linux-sh-low.cc (the_low_target): Ditto.
1105 * linux-sparc-low.cc (the_low_target): Ditto.
1106 * linux-tic6x-low.cc (the_low_target): Ditto.
1107 * linux-tile-low.cc (the_low_target): Ditto.
1108 * linux-xtensa-low.cc (the_low_target): Ditto.
1109 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1110 <supports_software_single_step>: Declare.
1111 (arm_target::supports_software_single_step): Define.
1112 (arm_gdbserver_get_next_pcs): Turn into...
1113 (arm_target::low_get_next_pcs): ...this.
1114 (the_low_target): Remove the op field.
1115
1116 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1117
1118 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1119 the concrete linux target define it by overriding the op
1120 in process_stratum_target.
1121
1122 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1123 Remove.
1124 * linux-low.h (struct linux_target_ops): Remove the op.
1125 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1126 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1127 Declare.
1128 (x86_sw_breakpoint_from_kind): Turn into...
1129 (x86_target::sw_breakpoint_from_kind): ...this.
1130 (the_low_target): Remove the op field.
1131 * linux-aarch64-low.cc (class aarch64_target)
1132 <sw_breakpoint_from_kind>: Declare.
1133 (aarch64_sw_breakpoint_from_kind): Turn into...
1134 (aarch64_target::sw_breakpoint_from_kind): ...this.
1135 (the_low_target): Remove the op field.
1136 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1137 Declare.
1138 (arm_target::sw_breakpoint_from_kind): Define.
1139 (the_low_target): Remove the op field.
1140 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1141 Declare.
1142 (bfin_sw_breakpoint_from_kind): Turn into...
1143 (bfin_target::sw_breakpoint_from_kind): ...this.
1144 (the_low_target): Remove the op field.
1145 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1146 Declare.
1147 (cris_sw_breakpoint_from_kind): Turn into...
1148 (cris_target::sw_breakpoint_from_kind): ...this.
1149 (the_low_target): Remove the op field.
1150 * linux-crisv32-low.cc (class crisv32_target)
1151 <sw_breakpoint_from_kind>: Declare.
1152 (cris_sw_breakpoint_from_kind): Turn into...
1153 (crisv32_target::sw_breakpoint_from_kind): ...this.
1154 (the_low_target): Remove the op field.
1155 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1156 Declare.
1157 (ia64_target::sw_breakpoint_from_kind): Define.
1158 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1159 Declare.
1160 (m32r_sw_breakpoint_from_kind): Turn into...
1161 (m32r_target::sw_breakpoint_from_kind): ...this.
1162 (the_low_target): Remove the op field.
1163 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1164 Declare.
1165 (m68k_sw_breakpoint_from_kind): Turn into...
1166 (m68k_target::sw_breakpoint_from_kind): ...this.
1167 (the_low_target): Remove the op field.
1168 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1169 Declare.
1170 (mips_sw_breakpoint_from_kind): Turn into...
1171 (mips_target::sw_breakpoint_from_kind): ...this.
1172 (the_low_target): Remove the op field.
1173 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1174 Declare.
1175 (nios2_sw_breakpoint_from_kind): Turn into...
1176 (nios2_target::sw_breakpoint_from_kind): ...this.
1177 (the_low_target): Remove the op field.
1178 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1179 Declare.
1180 (ppc_sw_breakpoint_from_kind): Turn into...
1181 (ppc_target::sw_breakpoint_from_kind): ...this.
1182 (the_low_target): Remove the op field.
1183 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1184 Declare.
1185 (riscv_sw_breakpoint_from_kind): Turn into...
1186 (riscv_target::sw_breakpoint_from_kind): ...this.
1187 (the_low_target): Remove the op field.
1188 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1189 Declare.
1190 (s390_sw_breakpoint_from_kind): Turn into...
1191 (s390_target::sw_breakpoint_from_kind): ...this.
1192 (the_low_target): Remove the op field.
1193 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1194 Declare.
1195 (sh_sw_breakpoint_from_kind): Turn into...
1196 (sh_target::sw_breakpoint_from_kind): ...this.
1197 (the_low_target): Remove the op field.
1198 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1199 Declare.
1200 (sparc_sw_breakpoint_from_kind): Turn into...
1201 (sparc_target::sw_breakpoint_from_kind): ...this.
1202 (the_low_target): Remove the op field.
1203 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1204 Declare.
1205 (tic6x_sw_breakpoint_from_kind): Turn into...
1206 (tic6x_target::sw_breakpoint_from_kind): ...this.
1207 (the_low_target): Remove the op field.
1208 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1209 Declare.
1210 (tile_sw_breakpoint_from_kind): Turn into...
1211 (tile_target::sw_breakpoint_from_kind): ...this.
1212 (the_low_target): Remove the op field.
1213 * linux-xtensa-low.cc (class xtensa_target)
1214 <sw_breakpoint_from_kind>: Declare.
1215 (xtensa_sw_breakpoint_from_kind): Turn into...
1216 (xtensa_target::sw_breakpoint_from_kind): ...this.
1217 (the_low_target): Remove the op field.
1218
1219 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1220
1221 Remove the 'breakpoint_kind_from_pc' and
1222 'breakpoint_kind_from_current_state' linux target ops, and let the
1223 concrete linux target define them by overriding the ops of
1224 process_stratum_target.
1225
1226 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1227 Remove.
1228 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1229 * linux-low.h (struct linux_target_ops): Remove ops.
1230 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1231 <breakpoint_kind_from_current_state>: Remove.
1232 * linux-x86-low.cc (the_low_target): Remove the op fields.
1233 * linux-bfin-low.cc (the_low_target): Ditto.
1234 * linux-cris-low.cc (the_low_target): Ditto.
1235 * linux-crisv32-low.cc (the_low_target): Ditto.
1236 * linux-m32r-low.cc (the_low_target): Ditto.
1237 * linux-m68k-low.cc (the_low_target): Ditto.
1238 * linux-mips-low.cc (the_low_target): Ditto.
1239 * linux-nios2-low.cc (the_low_target): Ditto.
1240 * linux-ppc-low.cc (the_low_target): Ditto.
1241 * linux-s390-low.cc (the_low_target): Ditto.
1242 * linux-sh-low.cc (the_low_target): Ditto.
1243 * linux-sparc-low.cc (the_low_target): Ditto.
1244 * linux-tic6x-low.cc (the_low_target): Ditto.
1245 * linux-tile-low.cc (the_low_target): Ditto.
1246 * linux-xtensa-low.cc (the_low_target): Ditto.
1247 * linux-aarch64-low.cc (class aarch64_target)
1248 <breakpoint_kind_from_pc>
1249 <breakpoint_kind_from_current_state>: Declare.
1250 (aarch64_breakpoint_kind_from_pc): Turn into...
1251 (aarch64_target::breakpoint_kind_from_pc): ...this.
1252 (aarch64_breakpoint_kind_from_current_state): Turn into...
1253 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1254 (the_low_target): Remove the op fields.
1255 * linux-arm-low.cc (class arm_target):
1256 <breakpoint_kind_from_pc>
1257 <breakpoint_kind_from_current_state>: Declare.
1258 (arm_target::breakpoint_kind_from_pc): Define.
1259 (arm_target::breakpoint_kind_from_current_state): Define.
1260 (the_low_target): Remove the op fields.
1261 * linux-riscv-low.cc (class riscv_target):
1262 <breakpoint_kind_from_pc>: Declare.
1263 (riscv_breakpoint_kind_from_pc): Turn into...
1264 (riscv_target::breakpoint_kind_from_pc): ...this.
1265 (the_low_target): Remove the op fields.
1266
1267 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1268
1269 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1270 of linux_process_target.
1271
1272 * linux-low.h (struct linux_target_ops): Remove the ops.
1273 (class linux_process_target) <low_supports_breakpoints>
1274 <low_get_pc>
1275 <low_set_pc>: Declare.
1276 * linux-low.cc (supports_breakpoints): Turn into...
1277 (linux_process_target::low_supports_breakpoints): ...this.
1278 (linux_process_target::low_get_pc): Define.
1279 (linux_process_target::low_set_pc): Define.
1280
1281 Update the callers below.
1282
1283 (linux_process_target::get_pc)
1284 (linux_process_target::save_stop_reason)
1285 (linux_process_target::maybe_move_out_of_jump_pad)
1286 (linux_process_target::wait_1)
1287 (linux_process_target::resume_one_lwp_throw)
1288 (linux_process_target::resume)
1289 (linux_process_target::proceed_all_lwps)
1290 (linux_process_target::read_pc)
1291 (linux_process_target::write_pc)
1292
1293 * linux-x86-low.cc (class linux_process_target)
1294 <low_supports_breakpoints>
1295 <low_get_pc>
1296 <low_set_pc>: Declare.
1297 (x86_target::low_supports_breakpoints): Define.
1298 (x86_get_pc): Turn into...
1299 (x86_target::low_get_pc): ...this.
1300 (x86_set_pc): Turn into...
1301 (x86_target::low_set_pc): ...this.
1302 (the_low_target): Remove the op fields.
1303 * linux-arm-low.cc (class arm_target)
1304 <low_supports_breakpoints>
1305 <low_get_pc>
1306 <low_set_pc>: Declare.
1307 (arm_target::low_supports_breakpoints)
1308 (arm_target::low_get_pc)
1309 (arm_target::low_set_pc): Define.
1310 (the_low_target): Remove the op fields.
1311 * linux-bfin-low.cc (class bfin_target)
1312 <low_supports_breakpoints>
1313 <low_get_pc>
1314 <low_set_pc>: Declare.
1315 (bfin_target::low_supports_breakpoints)
1316 (bfin_target::low_get_pc)
1317 (bfin_target::low_set_pc): Define.
1318 (the_low_target): Remove the op fields.
1319 * linux-cris-low.cc (class cris_target)
1320 <low_supports_breakpoints>
1321 <low_get_pc>
1322 <low_set_pc>: Declare.
1323 (cris_target::low_supports_breakpoints)
1324 (cris_target::low_get_pc)
1325 (cris_target::low_set_pc): Define.
1326 (the_low_target): Remove the op fields.
1327 * linux-crisv32-low.cc (class crisv32_target)
1328 <low_supports_breakpoints>
1329 <low_get_pc>
1330 <low_set_pc>: Declare.
1331 (crisv32_target::low_supports_breakpoints)
1332 (crisv32_target::low_get_pc)
1333 (crisv32_target::low_set_pc): Define.
1334 (the_low_target): Remove the op fields.
1335 * linux-m32r-low.cc (class m32r_target)
1336 <low_supports_breakpoints>
1337 <low_get_pc>
1338 <low_set_pc>: Declare.
1339 (m32r_target::low_supports_breakpoints)
1340 (m32r_target::low_get_pc)
1341 (m32r_target::low_set_pc): Define.
1342 (the_low_target): Remove the op fields.
1343 * linux-m68k-low.cc (class m68k_target)
1344 <low_supports_breakpoints>
1345 <low_get_pc>
1346 <low_set_pc>: Declare.
1347 (m68k_target::low_supports_breakpoints)
1348 (m68k_target::low_get_pc)
1349 (m68k_target::low_set_pc): Define.
1350 (the_low_target): Remove the op fields.
1351 * linux-nios2-low.cc (class nios2_target)
1352 <low_supports_breakpoints>
1353 <low_get_pc>
1354 <low_set_pc>: Declare.
1355 (nios2_target::low_supports_breakpoints)
1356 (nios2_target::low_get_pc)
1357 (nios2_target::low_set_pc): Define.
1358 (the_low_target): Remove the op fields.
1359 * linux-sh-low.cc (class sh_target)
1360 <low_supports_breakpoints>
1361 <low_get_pc>
1362 <low_set_pc>: Declare.
1363 (sh_target::low_supports_breakpoints)
1364 (sh_target::low_get_pc)
1365 (sh_target::low_set_pc): Define.
1366 (the_low_target): Remove the op fields.
1367 * linux-xtensa-low.cc (class xtensa_target)
1368 <low_supports_breakpoints>
1369 <low_get_pc>
1370 <low_set_pc>: Declare.
1371 (xtensa_target::low_supports_breakpoints)
1372 (xtensa_target::low_get_pc)
1373 (xtensa_target::low_set_pc): Define.
1374 (the_low_target): Remove the op fields.
1375 * linux-sparc-low.cc (class sparc_target)
1376 <low_supports_breakpoints>
1377 <low_get_pc>: Declare.
1378 (sparc_target::low_supports_breakpoints)
1379 (sparc_target::low_get_pc): Define.
1380 (the_low_target): Remove the op fields.
1381 * linux-tile-low.cc (class tile_target)
1382 <low_supports_breakpoints>
1383 <low_get_pc>
1384 <low_set_pc>: Declare.
1385 (tile_target::low_supports_breakpoints)
1386 (tile_target::low_get_pc)
1387 (tile_target::low_set_pc): Define.
1388 (the_low_target): Remove the op fields.
1389 * linux-aarch64-low.cc (class aarch64_target)
1390 <low_supports_breakpoints>
1391 <low_get_pc>
1392 <low_set_pc>: Declare.
1393 (aarch64_target::low_supports_breakpoints): Define.
1394 (aarch64_get_pc): Turn into...
1395 (aarch64_target::low_get_pc): ...this.
1396 (aarch64_set_pc): Turn into...
1397 (aarch64_target::low_set_pc): ...this.
1398 (the_low_target): Remove the op fields.
1399 * linux-mips-low.cc (class mips_target)
1400 <low_supports_breakpoints>
1401 <low_get_pc>
1402 <low_set_pc>: Declare.
1403 (mips_target::low_supports_breakpoints): Define.
1404 (mips_get_pc): Turn into...
1405 (mips_target::low_get_pc): ...this.
1406 (mips_set_pc): Turn into...
1407 (mips_target::low_set_pc): ...this.
1408 (the_low_target): Remove the op fields.
1409 * linux-ppc-low.cc (class ppc_target)
1410 <low_supports_breakpoints>
1411 <low_get_pc>
1412 <low_set_pc>: Declare.
1413 (ppc_target::low_supports_breakpoints): Define.
1414 (ppc_get_pc): Turn into...
1415 (ppc_target::low_get_pc): ...this.
1416 (ppc_set_pc): Turn into...
1417 (ppc_target::low_set_pc): ...this.
1418 (the_low_target): Remove the op fields.
1419 * linux-riscv-low.cc (class riscv_target)
1420 <low_supports_breakpoints>
1421 <low_get_pc>
1422 <low_set_pc>: Declare.
1423 (riscv_target::low_supports_breakpoints): Define.
1424 (riscv_get_pc): Turn into...
1425 (riscv_target::low_get_pc): ...this.
1426 (riscv_set_pc): Turn into...
1427 (riscv_target::low_set_pc): ...this.
1428 (the_low_target): Remove the op fields.
1429 * linux-s390-low.cc (class s390_target)
1430 <low_supports_breakpoints>
1431 <low_get_pc>
1432 <low_set_pc>: Declare.
1433 (s390_target::low_supports_breakpoints): Define.
1434 (s390_get_pc): Turn into...
1435 (s390_target::low_get_pc): ...this.
1436 (s390_set_pc): Turn into...
1437 (s390_target::low_set_pc): ...this.
1438 (the_low_target): Remove the op fields.
1439 * linux-tic6x-low.cc (class tic6x_target)
1440 <low_supports_breakpoints>
1441 <low_get_pc>
1442 <low_set_pc>: Declare.
1443 (tic6x_target::low_supports_breakpoints): Define.
1444 (tic6x_get_pc): Turn into...
1445 (tic6x_target::low_get_pc): ...this.
1446 (tic6x_set_pc): Turn into...
1447 (tic6x_target::low_set_pc): ...this.
1448 (the_low_target): Remove the op fields.
1449
1450 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1451
1452 Turn some more static methods in linux-low into private methods
1453 of linux_process_target.
1454
1455 * linux-low.cc (get_pc): Turn into...
1456 (linux_process_target::get_pc): ...this.
1457 (save_stop_reason): Turn into...
1458 (linux_process_target::save_stop_reason): ...this.
1459 (thread_still_has_status_pending_p): Turn into...
1460 (linux_process_target::thread_still_has_status_pending): ...this.
1461 (status_pending_p_callback): Turn into...
1462 (linux_process_target::status_pending_p_callback): ...this.
1463 (resume_stopped_resumed_lwps): Turn into...
1464 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1465 (install_software_single_step_breakpoints): Turn into...
1466 (linux_process_target::install_software_single_step_breakpoints):
1467 ...this.
1468 (single_step): Turn into...
1469 (linux_process_target::single_step): ...this.
1470 (linux_resume_one_lwp_throw): Turn into...
1471 (linux_process_target::resume_one_lwp_throw): ...this.
1472 (linux_resume_one_lwp): Turn into...
1473 (linux_process_target::resume_one_lwp): ...this.
1474 (resume_status_pending_p): Turn into...
1475 (linux_process_target::resume_status_pending): ...this.
1476 (need_step_over_p): Turn into...
1477 (linux_process_target::thread_needs_step_over): ...this.
1478 (linux_resume_one_thread): Turn into...
1479 (linux_process_target::resume_one_thread): ...this.
1480 (proceed_one_lwp): Turn into...
1481 (linux_process_target::proceed_one_lwp): ...this.
1482 (unsuspend_and_proceed_one_lwp): Turn into...
1483 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1484
1485 Update the calls/references to the above functions below.
1486
1487 (linux_process_target::handle_extended_wait)
1488 (linux_process_target::filter_event)
1489 (linux_process_target::wait_for_event_filtered)
1490 (linux_process_target::wait_1)
1491 (linux_process_target::move_out_of_jump_pad)
1492 (linux_process_target::start_step_over)
1493 (linux_process_target::resume)
1494 (linux_process_target::proceed_all_lwps)
1495 (regsets_store_inferior_registers)
1496 (linux_process_target::store_register)
1497
1498 * linux-low.h (class linux_process_target)
1499 <get_pc>
1500 <save_stop_reason>
1501 <thread_still_has_status_pending>
1502 <status_pending_p_callback>
1503 <resume_stopped_resumed_lwps>
1504 <install_software_single_step_breakpoints>
1505 <single_step>
1506 <resume_one_lwp_throw>
1507 <resume_one_lwp>
1508 <resume_status_pending>
1509 <thread_needs_step_over>
1510 <resume_one_thread>
1511 <proceed_one_lwp>
1512 <unsuspend_and_proceed_one_lwp>: Declare.
1513
1514 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1515
1516 Turn the 'fetch_register' linux target op into a method of
1517 linux_process_target.
1518
1519 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1520 (class linux_process_target) <low_fetch_register>: Declare.
1521 * linux-x86-low.cc (the_low_target)
1522 * linux-aarch64-low.cc (the_low_target)
1523 * linux-arm-low.cc (the_low_target)
1524 * linux-bfin-low.cc (the_low_target)
1525 * linux-cris-low.cc (the_low_target)
1526 * linux-crisv32-low.cc (the_low_target)
1527 * linux-m32r-low.cc (the_low_target)
1528 * linux-m68k-low.cc (the_low_target)
1529 * linux-nios2-low.cc (the_low_target)
1530 * linux-ppc-low.cc (the_low_target)
1531 * linux-s390-low.cc (the_low_target)
1532 * linux-sh-low.cc (the_low_target)
1533 * linux-sparc-low.cc (the_low_target)
1534 * linux-tic6x-low.cc (the_low_target)
1535 * linux-tile-low.cc (the_low_target)
1536 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1537 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1538 Declare.
1539 (ia64_fetch_register): Turn into...
1540 (ia64_target::low_fetch_register): ...this.
1541 (the_low_target): Remove the op field.
1542 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1543 Declare.
1544 (mips_fetch_register): Turn into...
1545 (mips_target::low_fetch_register): ...this.
1546 (the_low_target): Remove the op field.
1547 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1548 Declare.
1549 (riscv_fetch_register): Turn into...
1550 (riscv_target::low_fetch_register): ...this.
1551 (the_low_target): Remove the op field.
1552
1553 Update the callers below.
1554
1555 * linux-low.cc (linux_process_target::fetch_registers)
1556 (linux_process_target::low_fetch_register)
1557
1558 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1559
1560 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1561 linux target ops into methods of linux_process_target.
1562
1563 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1564 (class linux_process_target) <fetch_register>
1565 <store_register>
1566 <usr_fetch_inferior_registers>
1567 <usr_store_inferior_registers>
1568 <low_cannot_fetch_register>
1569 <low_cannot_fetch_register> Declare.
1570 * linux-low.cc (fetch_register): Turn into...
1571 (linux_process_target::fetch_register): ...this.
1572 (store_register): Turn into ...
1573 (linux_process_target::store_register): ...this.
1574 (usr_fetch_inferior_registers): Turn into...
1575 (linux_process_target::usr_fetch_inferior_registers): ...this.
1576 (usr_store_inferior_registers): Turn into...
1577 (linux_process_target::usr_store_inferior_registers): ...this.
1578 * linux-x86-low.cc (class x86_target)
1579 <low_cannot_fetch_register>
1580 <low_cannot_store_register>: Declare.
1581 (x86_cannot_store_register): Turn into...
1582 (x86_target::low_cannot_store_register): ...this.
1583 (x86_cannot_fetch_register): Turn into...
1584 (x86_target::low_cannot_fetch_register): ...this.
1585 (the_low_target): Remove the target op fields.
1586 * linux-aarch64-low.cc (class aarch64_target)
1587 <low_cannot_fetch_register>
1588 <low_cannot_store_register>: Declare.
1589 (aarch64_target::low_cannot_fetch_register)
1590 (aarch64_target::low_cannot_store_register): Define.
1591 (the_low_target): Remove the op fields.
1592 * linux-arm-low.cc (class arm_target)
1593 <low_cannot_fetch_register>
1594 <low_cannot_store_register>: Declare.
1595 (arm_cannot_fetch_register): Turn into...
1596 (arm_target::low_cannot_fetch_register): ...this.
1597 (arm_cannot_store_register): Turn into...
1598 (arm_target::low_cannot_store_register): ...this.
1599 (the_low_target): Remove the op fields.
1600 * linux-bfin-low.cc (class bfin_target)
1601 <low_cannot_fetch_register>
1602 <low_cannot_store_register>: Declare.
1603 (bfin_cannot_fetch_register): Turn into...
1604 (bfin_target::low_cannot_fetch_register): ...this.
1605 (bfin_cannot_store_register): Turn into...
1606 (bfin_target::low_cannot_store_register): ...this.
1607 (the_low_target): Remove the op fields.
1608 * linux-cris-low.cc (class cris_target)
1609 <low_cannot_fetch_register>
1610 <low_cannot_store_register>: Declare.
1611 (cris_cannot_fetch_register): Turn into...
1612 (cris_target::low_cannot_fetch_register): ...this.
1613 (cris_cannot_store_register): Turn into...
1614 (cris_target::low_cannot_store_register): ...this.
1615 (the_low_target): Remove the op fields.
1616 * linux-crisv32-low.cc (class crisv32_target)
1617 <low_cannot_fetch_register>
1618 <low_cannot_store_register>: Declare.
1619 (crisv32_target::low_cannot_fetch_register)
1620 (crisv32_target::low_cannot_store_register): Define.
1621 (the_low_target): Remove the op fields.
1622 * linux-ia64-low.cc (class ia64_target)
1623 <low_cannot_fetch_register>
1624 <low_cannot_store_register>: Declare.
1625 (ia64_cannot_fetch_register): Turn into...
1626 (ia64_target::low_cannot_fetch_register): ...this.
1627 (ia64_cannot_store_register): Turn into...
1628 (ia64_target::low_cannot_store_register): ...this.
1629 (the_low_target): Remove the op fields.
1630 * linux-m32r-low.cc (class m32r_target)
1631 <low_cannot_fetch_register>
1632 <low_cannot_store_register>: Declare.
1633 (m32r_cannot_fetch_register): Turn into...
1634 (m32r_target::low_cannot_fetch_register): ...this.
1635 (m32r_cannot_store_register): Turn into...
1636 (m32r_target::low_cannot_store_register): ...this.
1637 (the_low_target): Remove the op fields.
1638 * linux-m68k-low.cc (class m68k_target)
1639 <low_cannot_fetch_register>
1640 <low_cannot_store_register>: Declare.
1641 (m68k_cannot_fetch_register): Turn into...
1642 (m68k_target::low_cannot_fetch_register): ...this.
1643 (m68k_cannot_store_register): Turn into...
1644 (m68k_target::low_cannot_store_register): ...this.
1645 (the_low_target): Remove the op fields.
1646 * linux-mips-low.cc (class mips_target)
1647 <low_cannot_fetch_register>
1648 <low_cannot_store_register>: Declare.
1649 (mips_cannot_fetch_register): Turn into...
1650 (mips_target::low_cannot_fetch_register): ...this.
1651 (mips_cannot_store_register): Turn into...
1652 (mips_target::low_cannot_store_register): ...this.
1653 (get_usrregs_info): Inline at the call sites in
1654 low_cannot_fetch_register and low_cannot_store_register,
1655 and remove.
1656 (the_low_target): Remove the op fields.
1657 * linux-nios2-low.cc (class nios2_target)
1658 <low_cannot_fetch_register>
1659 <low_cannot_store_register>: Declare.
1660 (nios2_cannot_fetch_register): Turn into...
1661 (nios2_target::low_cannot_fetch_register): ...this.
1662 (nios2_cannot_store_register): Turn into...
1663 (nios2_target::low_cannot_store_register): ...this.
1664 (the_low_target): Remove the op fields.
1665 * linux-ppc-low.cc (class ppc_target)
1666 <low_cannot_fetch_register>
1667 <low_cannot_store_register>: Declare.
1668 (ppc_cannot_fetch_register): Turn into...
1669 (ppc_target::low_cannot_fetch_register): ...this.
1670 (ppc_cannot_store_register): Turn into...
1671 (ppc_target::low_cannot_store_register): ...this.
1672 (the_low_target): Remove the op fields.
1673 * linux-riscv-low.cc (class riscv_target)
1674 <low_cannot_fetch_register>
1675 <low_cannot_store_register>: Declare.
1676 (riscv_target::low_cannot_fetch_register)
1677 (riscv_target::low_cannot_store_register): Define.
1678 (the_low_target): Remove the op fields.
1679 * linux-s390-low.cc (class s390_target)
1680 <low_cannot_fetch_register>
1681 <low_cannot_store_register>: Declare.
1682 (s390_cannot_fetch_register): Turn into...
1683 (s390_target::low_cannot_fetch_register): ...this.
1684 (s390_cannot_store_register): Turn into...
1685 (s390_target::low_cannot_store_register): ...this.
1686 (the_low_target): Remove the op fields.
1687 * linux-sh-low.cc (class sh_target)
1688 <low_cannot_fetch_register>
1689 <low_cannot_store_register>: Declare.
1690 (sh_cannot_fetch_register): Turn into...
1691 (sh_target::low_cannot_fetch_register): ...this.
1692 (sh_cannot_store_register): Turn into...
1693 (sh_target::low_cannot_store_register): ...this.
1694 (the_low_target): Remove the op fields.
1695 * linux-sparc-low.cc (class sparc_target)
1696 <low_cannot_fetch_register>
1697 <low_cannot_store_register>: Declare.
1698 (sparc_cannot_fetch_register): Turn into...
1699 (sparc_target::low_cannot_fetch_register): ...this.
1700 (sparc_cannot_store_register): Turn into...
1701 (sparc_target::low_cannot_store_register): ...this.
1702 (the_low_target): Remove the op fields.
1703 * linux-tic6x-low.cc (class tic6x_target)
1704 <low_cannot_fetch_register>
1705 <low_cannot_store_register>: Declare.
1706 (tic6x_cannot_fetch_register): Turn into...
1707 (tic6x_target::low_cannot_fetch_register): ...this.
1708 (tic6x_cannot_store_register): Turn into...
1709 (tic6x_target::low_cannot_store_register): ...this.
1710 (the_low_target): Remove the op fields.
1711 * linux-tile-low.cc (class tile_target)
1712 <low_cannot_fetch_register>
1713 <low_cannot_store_register>: Declare.
1714 (tile_cannot_fetch_register): Turn into...
1715 (tile_target::low_cannot_fetch_register): ...this.
1716 (tile_cannot_store_register): Turn into...
1717 (tile_target::low_cannot_store_register): ...this.
1718 (the_low_target): Remove the op fields.
1719 * linux-xtensa-low.cc (class xtensa_target)
1720 <low_cannot_fetch_register>
1721 <low_cannot_store_register>: Declare.
1722 (xtensa_target::low_cannot_fetch_register)
1723 (xtensa_target::low_cannot_store_register): Define.
1724 (the_low_target): Remove the op fields.
1725
1726 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1727
1728 Turn the 'regs_info' linux target op into a method of
1729 linux_process_target.
1730
1731 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1732 (class linux_process_target) <get_regs_info>: Define.
1733
1734 Update the callers below.
1735
1736 * linux-low.cc (linux_process_target::fetch_registers)
1737 (linux_process_target::store_registers)
1738 * proc-service.cc (gregset_info)
1739
1740 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1741 (x86_linux_regs_info): Turn into ...
1742 (x86_target::get_regs_info): ...this.
1743 (the_low_target): Remove the op field.
1744 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1745 Declare.
1746 (aarch64_regs_info): Turn into ...
1747 (aarch64_target::get_regs_info): ...this.
1748 (the_low_target): Remove the op field.
1749 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1750 (arm_regs_info): Turn into ...
1751 (arm_target::get_regs_info): ...this.
1752 (the_low_target): Remove the op field.
1753 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1754 (bfin_regs_info): Turn into ...
1755 (bfin_target::get_regs_info): ...this.
1756 (the_low_target): Remove the op field.
1757 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1758 (cris_regs_info): Turn into ...
1759 (cris_target::get_regs_info): ...this.
1760 (the_low_target): Remove the op field.
1761 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1762 Declare.
1763 (crisv32_regs_info): Turn into ...
1764 (crisv32_target::get_regs_info): ...this.
1765 (the_low_target): Remove the op field.
1766 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1767 (ia64_regs_info): Turn into ...
1768 (ia64_target::get_regs_info): ...this.
1769 (the_low_target): Remove the op field.
1770 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1771 (m32r_regs_info): Turn into ...
1772 (m32r_target::get_regs_info): ...this.
1773 (the_low_target): Remove the op field.
1774 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1775 (m68k_regs_info): Turn into ...
1776 (m68k_target::get_regs_info): ...this.
1777 (the_low_target): Remove the op field.
1778 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1779 (mips_regs_info): Turn into ...
1780 (mips_target::get_regs_info): ...this.
1781 (the_low_target): Remove the op field.
1782 (get_usrregs_info): Update the call to the op.
1783 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1784 (nios2_regs_info): Turn into ...
1785 (nios2_target::get_regs_info): ...this.
1786 (the_low_target): Remove the op field.
1787 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1788 (ppc_regs_info): Turn into ...
1789 (ppc_target::get_regs_info): ...this.
1790 (the_low_target): Remove the op field.
1791 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1792 (riscv_regs_info): Turn into ...
1793 (riscv_target::get_regs_info): ...this.
1794 (the_low_target): Remove the op field.
1795 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1796 (s390_regs_info): Turn into ...
1797 (s390_target::get_regs_info): ...this.
1798 (the_low_target): Remove the op field.
1799 (s390_collect_ptrace_register)
1800 (s390_supply_ptrace_register)
1801 (s390_fill_gregset): Update the call to the op.
1802 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1803 (sh_regs_info): Turn into ...
1804 (sh_target::get_regs_info): ...this.
1805 (the_low_target): Remove the op field.
1806 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1807 (sparc_regs_info): Turn into ...
1808 (sparc_target::get_regs_info): ...this.
1809 (the_low_target): Remove the op field.
1810 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1811 (tic6x_regs_info): Turn into ...
1812 (tic6x_target::get_regs_info): ...this.
1813 (the_low_target): Remove the op field.
1814 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1815 (tile_regs_info): Turn into ...
1816 (tile_target::get_regs_info): ...this.
1817 (the_low_target): Remove the op field.
1818 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1819 Declare.
1820 (xtensa_regs_info): Turn into ...
1821 (xtensa_target::get_regs_info): ...this.
1822 (the_low_target): Remove the op field.
1823
1824 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1825
1826 Turn the 'arch_setup' linux target op into a method of
1827 linux_process_target.
1828
1829 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1830 (class linux_process_target) <arch_setup_thread>
1831 <low_arch_setup>: New declarations.
1832 * linux-low.cc (linux_arch_setup): Delete.
1833 (linux_arch_setup_thread): Turn into...
1834 (linux_process_target::arch_setup_thread): ... this.
1835
1836 Update the callers below.
1837
1838 (linux_process_target::handle_extended_wait)
1839 (linux_process_target::post_create_inferior)
1840 (linux_process_target::filter_event)
1841
1842 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1843 declaration.
1844 (x86_linux_update_xmltarget): Turn into...
1845 (x86_target::update_xmltarget): ...this.
1846 (x86_linux_process_qsupported): Update the call to
1847 x86_linux_update_xmltarget.
1848 (x86_arch_setup): Turn into ...
1849 (x86_target::low_arch_setup): ...this.
1850 (the_low_target): Remove the op field.
1851 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1852 declaration.
1853 (aarch64_arch_setup): Turn into ...
1854 (aarch64_target::low_arch_setup): ...this.
1855 (the_low_target): Remove the op field.
1856 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1857 declaration.
1858 (arm_arch_setup): Turn into ...
1859 (arm_target::low_arch_setup): ...this.
1860 (the_low_target): Remove the op field.
1861 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1862 declaration.
1863 (bfin_arch_setup): Turn into ...
1864 (bfin_target::low_arch_setup): ...this.
1865 (the_low_target): Remove the op field.
1866 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1867 declaration.
1868 (cris_arch_setup): Turn into ...
1869 (cris_target::low_arch_setup): ...this.
1870 (the_low_target): Remove the op field.
1871 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1872 declaration.
1873 (crisv32_arch_setup): Turn into ...
1874 (crisv32_target::low_arch_setup): ...this.
1875 (the_low_target): Remove the op field.
1876 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1877 declaration.
1878 (ia64_arch_setup): Turn into ...
1879 (ia64_target::low_arch_setup): ...this.
1880 (the_low_target): Remove the op field.
1881 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1882 declaration.
1883 (m32r_arch_setup): Turn into ...
1884 (m32r_target::low_arch_setup): ...this.
1885 (the_low_target): Remove the op field.
1886 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1887 declaration.
1888 (m68k_arch_setup): Turn into ...
1889 (m68k_target::low_arch_setup): ...this.
1890 (the_low_target): Remove the op field.
1891 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1892 declaration.
1893 (mips_arch_setup): Turn into ...
1894 (mips_target::low_arch_setup): ...this.
1895 (the_low_target): Remove the op field.
1896 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1897 declaration.
1898 (nios2_arch_setup): Turn into ...
1899 (nios2_target::low_arch_setup): ...this.
1900 (the_low_target): Remove the op field.
1901 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1902 declaration.
1903 (ppc_arch_setup): Turn into ...
1904 (ppc_target::low_arch_setup): ...this.
1905 (the_low_target): Remove the op field.
1906 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1907 declaration.
1908 (riscv_arch_setup): Turn into ...
1909 (riscv_target::low_arch_setup): ...this.
1910 (the_low_target): Remove the op field.
1911 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1912 declaration.
1913 (s390_arch_setup): Turn into ...
1914 (s390_target::low_arch_setup): ...this.
1915 (the_low_target): Remove the op field.
1916 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1917 declaration.
1918 (sh_arch_setup): Turn into ...
1919 (sh_target::low_arch_setup): ...this.
1920 (the_low_target): Remove the op field.
1921 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1922 declaration.
1923 (sparc_arch_setup): Turn into ...
1924 (sparc_target::low_arch_setup): ...this.
1925 (the_low_target): Remove the op field.
1926 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1927 declaration.
1928 (tic6x_arch_setup): Turn into ...
1929 (tic6x_target::low_arch_setup): ...this.
1930 (the_low_target): Remove the op field.
1931 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1932 declaration.
1933 (tile_arch_setup): Turn into ...
1934 (tile_target::low_arch_setup): ...this.
1935 (the_low_target): Remove the op field.
1936 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1937 declaration.
1938 (xtensa_arch_setup): Turn into ...
1939 (xtensa_target::low_arch_setup): ...this.
1940 (the_low_target): Remove the op field.
1941
1942 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1943
1944 * linux-low.h (the_linux_target): New extern declaration.
1945 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
1946 'the_target'.
1947 (the_linux_target): Remove.
1948 * linux-x86-low.cc (class x86_target): New class.
1949 (the_x86_target): New static object.
1950 (the_linux_target): Define as pointer to the_x86_target.
1951 * linux-aarch64-low.cc (class aarch64_target): New class.
1952 (the_aarch64_target): New static object.
1953 (the_linux_target): Define as pointer to the_aarch64_target.
1954 * linux-arm-low.cc (class arm_target): New class.
1955 (the_arm_target): New static object.
1956 (the_linux_target): Define as pointer to the_arm_target.
1957 * linux-bfin-low.cc (class bfin_target): New class.
1958 (the_bfin_target): New static object.
1959 (the_linux_target): Define as pointer to the_bfin_target.
1960 * linux-cris-low.cc (class cris_target): New class.
1961 (the_cris_target): New static object.
1962 (the_linux_target): Define as pointer to the_cris_target.
1963 * linux-crisv32-low.cc (class crisv32_target): New class.
1964 (the_crisv32_target): New static object.
1965 (the_linux_target): Define as pointer to the_crisv32_target.
1966 * linux-ia64-low.cc (class ia64_target): New class.
1967 (the_ia64_target): New static object.
1968 (the_linux_target): Define as pointer to the_ia64_target.
1969 * linux-m32r-low.cc (class m32r_target): New class.
1970 (the_m32r_target): New static object.
1971 (the_linux_target): Define as pointer to the_m32r_target.
1972 * linux-m68k-low.cc (class m68k_target): New class.
1973 (the_m68k_target): New static object.
1974 (the_linux_target): Define as pointer to the_m68k_target.
1975 * linux-mips-low.cc (class mips_target): New class.
1976 (the_mips_target): New static object.
1977 (the_linux_target): Define as pointer to the_mips_target.
1978 * linux-nios2-low.cc (class nios2_target): New class.
1979 (the_nios2_target): New static object.
1980 (the_linux_target): Define as pointer to the_nios2_target.
1981 * linux-ppc-low.cc (class ppc_target): New class.
1982 (the_ppc_target): New static object.
1983 (the_linux_target): Define as pointer to the_ppc_target.
1984 * linux-riscv-low.cc (class riscv_target): New class.
1985 (the_riscv_target): New static object.
1986 (the_linux_target): Define as pointer to the_riscv_target.
1987 * linux-s390-low.cc (class s390_target): New class.
1988 (the_s390_target): New static object.
1989 (the_linux_target): Define as pointer to the_s390_target.
1990 * linux-sh-low.cc (class sh_target): New class.
1991 (the_sh_target): New static object.
1992 (the_linux_target): Define as pointer to the_sh_target.
1993 * linux-sparc-low.cc (class sparc_target): New class.
1994 (the_sparc_target): New static object.
1995 (the_linux_target): Define as pointer to the_sparc_target.
1996 * linux-tic6x-low.cc (class tic6x_target): New class.
1997 (the_tic6x_target): New static object.
1998 (the_linux_target): Define as pointer to the_tic6x_target.
1999 * linux-tile-low.cc (class tile_target): New class.
2000 (the_tile_target): New static object.
2001 (the_linux_target): Define as pointer to the_tile_target.
2002 * linux-xtensa-low.cc (class xtensa_target): New class.
2003 (the_xtensa_target): New static object.
2004 (the_linux_target): Define as pointer to the_xtensa_target.
2005
2006 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2007
2008 Turn some static functions in linux-low.cc into private methods of
2009 linux_process_target.
2010
2011 * linux-low.cc (handle_extended_wait): Turn into ...
2012 (linux_process_target::handle_extended_wait): ...this. Call
2013 'mourn' on 'this' object instead of 'the_target'.
2014 (maybe_move_out_of_jump_pad): Turn into...
2015 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2016 (linux_low_filter_event): Turn into...
2017 (linux_process_target::filter_event): ...this.
2018 (linux_wait_for_event_filtered): Turn into...
2019 (linux_process_target::wait_for_event_filtered): ...this.
2020 (linux_wait_for_event): Turn into...
2021 (linux_process_target::wait_for_event): ...this.
2022 (linux_wait_1): Turn into...
2023 (linux_process_target::wait_1): ...this.
2024 (wait_for_sigstop): Turn into...
2025 (linux_process_target::wait_for_sigstop): ...this.
2026 (move_out_of_jump_pad_callback): Turn into...
2027 (linux_process_target::move_out_of_jump_pad): ...this.
2028 (stop_all_lwps): Turn into...
2029 (linux_process_target::stop_all_lwps): ...this.
2030 (start_step_over): Turn into...
2031 (linux_process_target::start_step_over): ...this.
2032 (complete_ongoing_step_over): Turn into...
2033 (linux_process_target::complete_ongoing_step_over): ...this.
2034 (proceed_all_lwps): Turn into...
2035 (linux_process_target::proceed_all_lwps): ...this.
2036 (unstop_all_lwps): Turn into...
2037 (linux_process_target::unstop_all_lwps): ...this.
2038
2039 * linux-low.h (class linux_process_target)
2040 <handle_extended_wait>
2041 <maybe_move_out_of_jump_pad>
2042 filter_event>
2043 <wait_for_event_filtered>
2044 <wait_for_event>
2045 <wait_1>
2046 <wait_for_sigstop>
2047 <move_out_of_jump_pad>
2048 <stop_all_lwps>
2049 <start_step_over>
2050 <complete_ongoing_step_over>
2051 <proceed_all_lwps>
2052 <unstop_all_lwps>: Declare.
2053
2054 Update the callers below.
2055
2056 * linux-low.cc (linux_process_target::attach): Update.
2057 (linux_process_target::stabilize_threads): Ditto.
2058 (linux_process_target::wait): Ditto.
2059
2060 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2061
2062 * linux-low.h (struct linux_target_ops): Update the comment for
2063 'cannot_store_register' to return 0 or 1.
2064 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2065 of 2.
2066
2067 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2068
2069 * config.in: Re-generate.
2070 * configure: Re-generate.
2071
2072 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2073
2074 * regcache.cc (find_register_by_number): Update.
2075 * tdesc.cc (init_target_desc): Likewise.
2076 * tdesc.h (target_desc::reg_defs): Likewise.
2077
2078 2020-03-12 Tom Tromey <tom@tromey.com>
2079
2080 * configure: Rebuild.
2081 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2082 (WIN32APILIBS): New subst.
2083 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2084 gdbsupport files.
2085 (gdbsupport/%.o): Remove target.
2086 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2087 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2088 (WIN32APILIBS): New variable.
2089 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2090 (gdbreplay$(EXEEXT)): Likewise.
2091
2092 2020-03-12 Tom Tromey <tom@tromey.com>
2093
2094 * config.in, configure: Rebuild.
2095 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2096 * acinclude.m4: Include gettext-sister.m4.
2097 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2098 variables.
2099 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2100 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2101
2102 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2103
2104 * acinclude.m4: Update path to selftest.m4.
2105
2106 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2107
2108 * configure.ac: Don't source bfd/development.sh, move
2109 GDB_AC_COMMON higher.
2110 * configure: Re-generate.
2111
2112 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2113
2114 * configure: Re-generate.
2115
2116 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2117
2118 * configure: Re-generate.
2119
2120 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2121
2122 * .dir-locals.el: New file.
2123
2124 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2125
2126 * .gitattributes: New file.
2127
2128 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2129
2130 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2131 reply into an S reply.
2132 * server.cc (disable_packet_T): New global.
2133 (captured_main): Set new global when appropriate.
2134 * server.h (disable_packet_T): Declare.
2135
2136 2020-02-21 Tom Tromey <tom@tromey.com>
2137
2138 * Makefile.in (mostlyclean): New target.
2139
2140 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2141
2142 * target.h (struct process_stratum_target): Remove.
2143 (class process_target): Rename to ...
2144 (class process_stratum_target): ... this.
2145 * linux-low.h (class linux_process_target): Derive from
2146 'process_stratum_target'.
2147 * linux-low.cc (linux_target_ops): Remove.
2148 (initialize_low): Set the_target to the singleton instance of
2149 linux_process_target.
2150 * lynx-low.h (class lynx_process_target): Derive from
2151 'process_stratum_target'.
2152 * lynx-low.cc (lynx_target_ops): Remove.
2153 (initialize_low): Set the_target to the singleton instance of
2154 lynx_process_target.
2155 * nto-low.h (class nto_process_target): Derive from
2156 'process_stratum_target'.
2157 * nto-low.cc (nto_target_ops): Remove.
2158 (initialize_low): Set the_target to the singleton instance of
2159 nto_process_target.
2160 * win32-low.h (class win32_process_target): Derive from
2161 'process_stratum_target'.
2162 * win32-low.cc (win32_target_ops): Remove.
2163 (initialize_low): Set the_target to the singleton instance of
2164 win32_process_target.
2165
2166 Replace 'the_target->pt' with 'the_target' in the uses below.
2167
2168 * hostio.cc (hostio_error)
2169 (handle_setfs)
2170 (handle_open)
2171 (handle_unlink)
2172 (handle_readlink)
2173 * linux-aarch32-low.cc (arm_breakpoint_at)
2174 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2175 * linux-arm-low.cc (arm_sigreturn_next_pc)
2176 (arm_get_hwcap)
2177 (arm_get_syscall_trapinfo)
2178 * linux-cris-low.cc (cris_breakpoint_at)
2179 * linux-crisv32-low.cc (cris_breakpoint_at)
2180 * linux-low.cc (handle_extended_wait)
2181 (linux_wait_1)
2182 (linux_read_memory)
2183 (linux_process_target::breakpoint_kind_from_pc)
2184 (linux_get_auxv)
2185 * linux-m32r-low.cc (m32r_breakpoint_at)
2186 * linux-mips-low.cc (mips_breakpoint_at)
2187 * linux-nios2-low.cc (nios2_breakpoint_at)
2188 * linux-ppc-low.cc (ppc_breakpoint_at)
2189 * linux-s390-low.cc (s390_get_hwcap)
2190 * linux-sh-low.cc (sh_breakpoint_at)
2191 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2192 (sparc_store_gregset_from_stack)
2193 (sparc_breakpoint_at)
2194 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2195 * linux-tile-low.cc (tile_breakpoint_at)
2196 * linux-x86-low.cc (x86_breakpoint_at)
2197 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2198 * mem-break.cc (bp_size)
2199 (bp_opcode)
2200 (insert_memory_breakpoint)
2201 (set_raw_breakpoint_at)
2202 (delete_raw_breakpoint)
2203 (z_type_supported)
2204 (uninsert_raw_breakpoint)
2205 (reinsert_raw_breakpoint)
2206 (validate_inserted_breakpoint)
2207 * regcache.cc (regcache_read_pc)
2208 (regcache_write_pc)
2209 * remote-utils.cc (putpkt_binary_1)
2210 (input_interrupt)
2211 (getpkt)
2212 (prepare_resume_reply)
2213 * server.cc (handle_general_set)
2214 (handle_detach)
2215 (handle_qxfer_auxv)
2216 (handle_qxfer_exec_file)
2217 (handle_qxfer_libraries_svr4)
2218 (handle_qxfer_osdata)
2219 (handle_qxfer_siginfo)
2220 (handle_qxfer_fdpic)
2221 (handle_query)
2222 (resume)
2223 (handle_v_requests)
2224 (queue_stop_reply_callback)
2225 (captured_main)
2226 * target.cc (prepare_to_access_memory)
2227 (done_accessing_memory)
2228 (read_inferior_memory)
2229 (target_write_memory)
2230 (target_stop_and_wait)
2231 (target_wait)
2232 (target_mourn_inferior)
2233 (target_continue_no_signal)
2234 (target_continue)
2235 (target_supports_multi_process)
2236 (kill_inferior)
2237 * target.h
2238 (target_create_inferior)
2239 (target_post_create_inferior)
2240 (myattach)
2241 (target_supports_fork_events)
2242 (target_supports_vfork_events)
2243 (target_supports_exec_events)
2244 (target_handle_new_gdb_connection)
2245 (detach_inferior)
2246 (mythread_alive)
2247 (fetch_inferior_registers)
2248 (store_inferior_registers)
2249 (join_inferior)
2250 (target_supports_non_stop)
2251 (target_async)
2252 (target_process_qsupported)
2253 (target_supports_catch_syscall)
2254 (target_get_ipa_tdesc_idx)
2255 (target_supports_tracepoints)
2256 (target_supports_fast_tracepoints)
2257 (target_get_min_fast_tracepoint_insn_len)
2258 (target_thread_stopped)
2259 (target_pause_all)
2260 (target_unpause_all)
2261 (target_stabilize_threads)
2262 (target_install_fast_tracepoint_jump_pad)
2263 (target_emit_ops)
2264 (target_supports_disable_randomization)
2265 (target_supports_agent)
2266 (target_enable_btrace)
2267 (target_disable_btrace)
2268 (target_read_btrace)
2269 (target_read_btrace_conf)
2270 (target_supports_range_stepping)
2271 (target_supports_stopped_by_sw_breakpoint)
2272 (target_stopped_by_sw_breakpoint)
2273 (target_supports_stopped_by_hw_breakpoint)
2274 (target_supports_hardware_single_step)
2275 (target_stopped_by_hw_breakpoint)
2276 (target_breakpoint_kind_from_pc)
2277 (target_breakpoint_kind_from_current_state)
2278 (target_supports_software_single_step)
2279 (target_core_of_thread)
2280 (target_thread_name)
2281 (target_thread_handle)
2282 * win32-low.cc (do_initial_child_stuff)
2283
2284 Rename target op default definitions listed below.
2285
2286 * target.cc (process_target::post_create_inferior): Rename as ...
2287 (process_stratum_target::post_create_inferior): ... this.
2288 (process_target::prepare_to_access_memory): Rename as ...
2289 (process_stratum_target::prepare_to_access_memory): ... this.
2290 (process_target::done_accessing_memory): Rename as ...
2291 (process_stratum_target::done_accessing_memory): ... this.
2292 (process_target::look_up_symbols): Rename as ...
2293 (process_stratum_target::look_up_symbols): ... this.
2294 (process_target::supports_read_auxv): Rename as ...
2295 (process_stratum_target::supports_read_auxv): ... this.
2296 (process_target::read_auxv): Rename as ...
2297 (process_stratum_target::read_auxv): ... this.
2298 (process_target::supports_z_point_type): Rename as ...
2299 (process_stratum_target::supports_z_point_type): ... this.
2300 (process_target::insert_point): Rename as ...
2301 (process_stratum_target::insert_point): ... this.
2302 (process_target::remove_point): Rename as ...
2303 (process_stratum_target::remove_point): ... this.
2304 (process_target::stopped_by_sw_breakpoint): Rename as ...
2305 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2306 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2307 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2308 (process_target::stopped_by_hw_breakpoint): Rename as ...
2309 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2310 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2311 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2312 (process_target::supports_hardware_single_step): Rename as ...
2313 (process_stratum_target::supports_hardware_single_step): ... this.
2314 (process_target::stopped_by_watchpoint): Rename as ...
2315 (process_stratum_target::stopped_by_watchpoint): ... this.
2316 (process_target::stopped_data_address): Rename as ...
2317 (process_stratum_target::stopped_data_address): ... this.
2318 (process_target::supports_read_offsets): Rename as ...
2319 (process_stratum_target::supports_read_offsets): ... this.
2320 (process_target::read_offsets): Rename as ...
2321 (process_stratum_target::read_offsets): ... this.
2322 (process_target::supports_get_tls_address): Rename as ...
2323 (process_stratum_target::supports_get_tls_address): ... this.
2324 (process_target::get_tls_address): Rename as ...
2325 (process_stratum_target::get_tls_address): ... this.
2326 (process_target::hostio_last_error): Rename as ...
2327 (process_stratum_target::hostio_last_error): ... this.
2328 (process_target::supports_qxfer_osdata): Rename as ...
2329 (process_stratum_target::supports_qxfer_osdata): ... this.
2330 (process_target::qxfer_osdata): Rename as ...
2331 (process_stratum_target::qxfer_osdata): ... this.
2332 (process_target::supports_qxfer_siginfo): Rename as ...
2333 (process_stratum_target::supports_qxfer_siginfo): ... this.
2334 (process_target::qxfer_siginfo): Rename as ...
2335 (process_stratum_target::qxfer_siginfo): ... this.
2336 (process_target::supports_non_stop): Rename as ...
2337 (process_stratum_target::supports_non_stop): ... this.
2338 (process_target::async): Rename as ...
2339 (process_stratum_target::async): ... this.
2340 (process_target::start_non_stop): Rename as ...
2341 (process_stratum_target::start_non_stop): ... this.
2342 (process_target::supports_multi_process): Rename as ...
2343 (process_stratum_target::supports_multi_process): ... this.
2344 (process_target::supports_fork_events): Rename as ...
2345 (process_stratum_target::supports_fork_events): ... this.
2346 (process_target::supports_vfork_events): Rename as ...
2347 (process_stratum_target::supports_vfork_events): ... this.
2348 (process_target::supports_exec_events): Rename as ...
2349 (process_stratum_target::supports_exec_events): ... this.
2350 (process_target::handle_new_gdb_connection): Rename as ...
2351 (process_stratum_target::handle_new_gdb_connection): ... this.
2352 (process_target::handle_monitor_command): Rename as ...
2353 (process_stratum_target::handle_monitor_command): ... this.
2354 (process_target::core_of_thread): Rename as ...
2355 (process_stratum_target::core_of_thread): ... this.
2356 (process_target::supports_read_loadmap): Rename as ...
2357 (process_stratum_target::supports_read_loadmap): ... this.
2358 (process_target::read_loadmap): Rename as ...
2359 (process_stratum_target::read_loadmap): ... this.
2360 (process_target::process_qsupported): Rename as ...
2361 (process_stratum_target::process_qsupported): ... this.
2362 (process_target::supports_tracepoints): Rename as ...
2363 (process_stratum_target::supports_tracepoints): ... this.
2364 (process_target::read_pc): Rename as ...
2365 (process_stratum_target::read_pc): ... this.
2366 (process_target::write_pc): Rename as ...
2367 (process_stratum_target::write_pc): ... this.
2368 (process_target::supports_thread_stopped): Rename as ...
2369 (process_stratum_target::supports_thread_stopped): ... this.
2370 (process_target::thread_stopped): Rename as ...
2371 (process_stratum_target::thread_stopped): ... this.
2372 (process_target::supports_get_tib_address): Rename as ...
2373 (process_stratum_target::supports_get_tib_address): ... this.
2374 (process_target::get_tib_address): Rename as ...
2375 (process_stratum_target::get_tib_address): ... this.
2376 (process_target::pause_all): Rename as ...
2377 (process_stratum_target::pause_all): ... this.
2378 (process_target::unpause_all): Rename as ...
2379 (process_stratum_target::unpause_all): ... this.
2380 (process_target::stabilize_threads): Rename as ...
2381 (process_stratum_target::stabilize_threads): ... this.
2382 (process_target::supports_fast_tracepoints): Rename as ...
2383 (process_stratum_target::supports_fast_tracepoints): ... this.
2384 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2385 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2386 (process_target::emit_ops): Rename as ...
2387 (process_stratum_target::emit_ops): ... this.
2388 (process_target::supports_disable_randomization): Rename as ...
2389 (process_stratum_target::supports_disable_randomization): ... this.
2390 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2391 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2392 (process_target::qxfer_libraries_svr4): Rename as ...
2393 (process_stratum_target::qxfer_libraries_svr4): ... this.
2394 (process_target::supports_agent): Rename as ...
2395 (process_stratum_target::supports_agent): ... this.
2396 (process_target::enable_btrace): Rename as ...
2397 (process_stratum_target::enable_btrace): ... this.
2398 (process_target::disable_btrace): Rename as ...
2399 (process_stratum_target::disable_btrace): ... this.
2400 (process_target::read_btrace): Rename as ...
2401 (process_stratum_target::read_btrace): ... this.
2402 (process_target::read_btrace_conf): Rename as ...
2403 (process_stratum_target::read_btrace_conf): ... this.
2404 (process_target::supports_range_stepping): Rename as ...
2405 (process_stratum_target::supports_range_stepping): ... this.
2406 (process_target::supports_pid_to_exec_file): Rename as ...
2407 (process_stratum_target::supports_pid_to_exec_file): ... this.
2408 (process_target::pid_to_exec_file): Rename as ...
2409 (process_stratum_target::pid_to_exec_file): ... this.
2410 (process_target::supports_multifs): Rename as ...
2411 (process_stratum_target::supports_multifs): ... this.
2412 (process_target::multifs_open): Rename as ...
2413 (process_stratum_target::multifs_open): ... this.
2414 (process_target::multifs_unlink): Rename as ...
2415 (process_stratum_target::multifs_unlink): ... this.
2416 (process_target::multifs_readlink): Rename as ...
2417 (process_stratum_target::multifs_readlink): ... this.
2418 (process_target::breakpoint_kind_from_pc): Rename as ...
2419 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2420 (process_target::breakpoint_kind_from_current_state): Rename as ...
2421 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2422 (process_target::thread_name): Rename as ...
2423 (process_stratum_target::thread_name): ... this.
2424 (process_target::thread_handle): Rename as ...
2425 (process_stratum_target::thread_handle): ... this.
2426 (process_target::supports_software_single_step): Rename as ...
2427 (process_stratum_target::supports_software_single_step): ... this.
2428 (process_target::supports_catch_syscall): Rename as ...
2429 (process_stratum_target::supports_catch_syscall): ... this.
2430 (process_target::get_ipa_tdesc_idx): Rename as ...
2431 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2432
2433 2020-02-20 Pedro Alves <palves@redhat.com>
2434
2435 * target.cc (set_target_ops): Simply copy the given target pointer
2436 instead of creating a copy of the pointed object.
2437
2438 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2439
2440 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2441 of process_target.
2442
2443 * target.h (struct process_stratum_target): Remove the target op.
2444 (class process_target): Add the target op.
2445 (target_get_ipa_tdesc_idx): Update the macro.
2446 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2447
2448 Update the derived classes and callers below.
2449
2450 * linux-low.cc (linux_target_ops): Update.
2451 (linux_get_ipa_tdesc_idx): Turn into ...
2452 (linux_process_target::get_ipa_tdesc_idx): ... this.
2453 * linux-low.h (class linux_process_target): Update.
2454 * lynx-low.cc (lynx_target_ops): Update.
2455 * nto-low.cc (nto_target_ops): Update.
2456 * win32-low.cc (win32_target_ops): Update.
2457
2458 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2459
2460 Turn process_stratum_target's supports_catch_syscall op into a
2461 method of process_target.
2462
2463 * target.h (struct process_stratum_target): Remove the target op.
2464 (class process_target): Add the target op.
2465 (target_supports_catch_syscall): Update the macro.
2466 * target.cc (process_target::supports_catch_syscall): Define.
2467
2468 Update the derived classes and callers below.
2469
2470 * linux-low.cc (linux_target_ops): Update.
2471 (linux_supports_catch_syscall): Turn into ...
2472 (linux_process_target::supports_catch_syscall): ... this.
2473 * linux-low.h (class linux_process_target): Update.
2474 * lynx-low.cc (lynx_target_ops): Update.
2475 * nto-low.cc (nto_target_ops): Update.
2476 * win32-low.cc (win32_target_ops): Update.
2477
2478 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2479
2480 Turn process_stratum_target's supports_software_single_step op
2481 into a method of process_target.
2482
2483 * target.h (struct process_stratum_target): Remove the target op.
2484 (class process_target): Add the target op.
2485 (target_supports_software_single_step): Update the macro.
2486 * target.cc (process_target::supports_software_single_step): Define.
2487
2488 Update the derived classes and callers below.
2489
2490 * linux-low.cc (linux_target_ops): Update.
2491 (linux_supports_software_single_step): Turn into ...
2492 (linux_process_target::supports_software_single_step): ... this.
2493 * linux-low.h (class linux_process_target): Update.
2494 * lynx-low.cc (lynx_target_ops): Update.
2495 * nto-low.cc (nto_target_ops): Update.
2496 * win32-low.cc (win32_target_ops): Update.
2497
2498 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2499
2500 Turn process_stratum_target's thread_name and thread_handle ops
2501 into methods of process_target.
2502
2503 * target.h (struct process_stratum_target): Remove the target ops.
2504 (class process_target): Add the target ops.
2505 (target_thread_name): Update the macro.
2506 (target_thread_handle): Update the macro.
2507 * target.cc (process_target::thread_name): Define.
2508 (process_target::thread_handle): Define.
2509
2510 Update the derived classes and callers below.
2511
2512 * linux-low.cc (linux_target_ops): Update.
2513 (linux_process_target::thread_name): Define.
2514 (linux_process_target::thread_handle): Define.
2515 * linux-low.h (class linux_process_target): Update.
2516 * lynx-low.cc (lynx_target_ops): Update.
2517 * nto-low.cc (nto_target_ops): Update.
2518 * win32-low.cc (win32_target_ops): Update.
2519
2520 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2521
2522 Turn process_stratum_target's breakpoint_kind_from_pc,
2523 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2524 ops into methods of process_target.
2525
2526 * target.h (struct process_stratum_target): Remove the target op.
2527 (class process_target): Add the target op.
2528 (target_breakpoint_kind_from_pc): Update the macro.
2529 (target_breakpoint_kind_from_current_state): Update the macro.
2530 (default_breakpoint_kind_from_pc): Remove declaration.
2531 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2532 (process_target::breakpoint_kind_from_pc): ... this.
2533 (process_target::breakpoint_kind_from_current_state): Define.
2534
2535 Update the derived classes and callers below.
2536
2537 * mem-break.cc (bp_size): Update.
2538 (bp_opcode): Update.
2539 * linux-low.cc (linux_target_ops): Update.
2540 (linux_wait_1): Update.
2541 (linux_breakpoint_kind_from_pc): Turn into ...
2542 (linux_process_target::breakpoint_kind_from_pc): ... this.
2543 (linux_sw_breakpoint_from_kind): Turn into ...
2544 (linux_process_target::sw_breakpoint_from_kind): ... this.
2545 (linux_breakpoint_kind_from_current_state): Turn into ...
2546 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2547 * linux-low.h (class linux_process_target): Update.
2548 * lynx-low.cc (lynx_target_ops): Update.
2549 (lynx_process_target::sw_breakpoint_from_kind): Define.
2550 * lynx-low.h (class lynx_process_target): Update.
2551 * nto-low.cc (nto_target_ops): Update.
2552 (nto_sw_breakpoint_from_kind): Turn into ...
2553 (nto_process_target::sw_breakpoint_from_kind): ... this.
2554 * nto-low.h (class nto_process_target): Update.
2555 * win32-low.cc (win32_target_ops): Update.
2556 (win32_sw_breakpoint_from_kind): Turn into ...
2557 (win32_process_target::sw_breakpoint_from_kind): ... this.
2558 * win32-low.h (class win32_process_target): Update.
2559
2560 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2561
2562 Turn process_stratum_target's multifs_open, multifs_readlink,
2563 multifs_unlink ops into methods of process_target.
2564
2565 * target.h (struct process_stratum_target): Remove the target ops.
2566 (class process_target): Add the target ops. Also add
2567 'supports_multifs'.
2568 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2569 "sys/stat.h".
2570 (process_target::supports_multifs): Define.
2571 (process_target::multifs_open): Define.
2572 (process_target::multifs_readlink): Define.
2573 (process_target::multifs_unlink): Define.
2574
2575 Update the derived classes and callers below.
2576
2577 * hostio.cc (handle_setfs): Update.
2578 (handle_open): Update.
2579 (handle_unlink): Update.
2580 (handle_readlink): Update.
2581 * linux-low.cc (linux_target_ops): Update.
2582 (linux_process_target::supports_multifs): Define.
2583 (linux_process_target::multifs_open): Define.
2584 (linux_process_target::multifs_readlink): Define.
2585 (linux_process_target::multifs_unlink): Define.
2586 * linux-low.h (class linux_process_target): Update.
2587 * lynx-low.cc (lynx_target_ops): Update.
2588 * nto-low.cc (nto_target_ops): Update.
2589 * win32-low.cc (win32_target_ops): Update.
2590
2591 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2592
2593 Turn process_stratum_target's pid_to_exec_file op into a method
2594 of process_target.
2595
2596 * target.h (struct process_stratum_target): Remove the target op.
2597 (class process_target): Add the target op. Also add
2598 'supports_pid_to_exec_file'.
2599 * target.cc (process_target::pid_to_exec_file): Define.
2600 (process_target::supports_pid_to_exec_file): Define.
2601
2602 Update the derived classes and callers below.
2603
2604 * server.cc (handle_qxfer_exec_file): Update.
2605 (handle_query): Update.
2606 * linux-low.cc (linux_target_ops): Update.
2607 (linux_process_target::supports_pid_to_exec_file): Define.
2608 (linux_process_target::pid_to_exec_file): Define.
2609 * linux-low.h (class linux_process_target): Update.
2610 * lynx-low.cc (lynx_target_ops): Update.
2611 * nto-low.cc (nto_target_ops): Update.
2612 * win32-low.cc (win32_target_ops): Update.
2613
2614 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2615
2616 Turn process_stratum_target's supports_range_stepping op into a
2617 method of process_target.
2618
2619 * target.h (struct process_stratum_target): Remove the target op.
2620 (class process_target): Add the target op.
2621 (target_supports_range_stepping): Update the macro.
2622 * target.cc (process_target::supports_range_stepping): Define.
2623
2624 Update the derived classes and callers below.
2625
2626 * linux-low.cc (linux_target_ops): Update.
2627 (linux_supports_range_stepping): Turn into ...
2628 (linux_process_target::supports_range_stepping): ... this.
2629 * linux-low.h (class linux_process_target): Update.
2630 * lynx-low.cc (lynx_target_ops): Update.
2631 * nto-low.cc (nto_target_ops): Update.
2632 * win32-low.cc (win32_target_ops): Update.
2633
2634 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2635
2636 Turn process_stratum_target's btrace-related ops (enable_btrace,
2637 disable_btrace, read_btrace, read_btrace_conf) into methods of
2638 process_target.
2639
2640 * target.h (struct process_stratum_target): Remove the target ops.
2641 (class process_target): Add the target ops.
2642 (target_enable_btrace): Update.
2643 (target_disable_btrace): Update.
2644 (target_read_btrace): Update.
2645 (target_read_btrace_conf): Update.
2646 * target.cc (process_target::enable_btrace): Define.
2647 (process_target::disable_btrace): Define.
2648 (process_target::read_btrace): Define.
2649 (process_target::read_btrace_conf): Define.
2650
2651 Update the derived classes and callers below.
2652
2653 * linux-low.cc (linux_target_ops): Update.
2654 (linux_process_target:enable_btrace): Define as a wrapper around
2655 linux_enable_btrace.
2656 (linux_low_disable_btrace): Turn into ...
2657 (linux_process_target::disable_btrace): ... this.
2658 (linux_low_read_btrace): Turn into ...
2659 (linux_process_target::read_btrace): ... this.
2660 (linux_low_btrace_conf): Turn into ...
2661 (linux_process_target::read_btrace_conf): ... this.
2662 * linux-low.h (class linux_process_target): Update.
2663 * lynx-low.cc (lynx_target_ops): Update.
2664 * nto-low.cc (nto_target_ops): Update.
2665 * win32-low.cc (win32_target_ops): Update.
2666
2667 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2668
2669 Turn process_stratum_target's supports_agent op into a method of
2670 process_target.
2671
2672 * target.h (struct process_stratum_target): Remove the target op.
2673 (class process_target): Add the target op.
2674 (target_supports_agent): Update the macro.
2675 * target.cc (process_target::supports_agent): Define.
2676
2677 Update the derived classes and callers below.
2678
2679 * linux-low.cc (linux_target_ops): Update.
2680 (linux_supports_agent): Turn into ...
2681 (linux_process_target::supports_agent): ... this.
2682 * linux-low.h (class linux_process_target): Update.
2683 * lynx-low.cc (lynx_target_ops): Update.
2684 * nto-low.cc (nto_target_ops): Update.
2685 * win32-low.cc (win32_target_ops): Update.
2686
2687 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2688
2689 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2690 method of process_target.
2691
2692 * target.h (struct process_stratum_target): Remove the target op.
2693 (class process_target): Add the target op. Also add
2694 'supports_qxfer_libraries_svr4'.
2695 * target.cc (process_target::qxfer_libraries_svr4): Define.
2696 (process_target::supports_qxfer_libraries_svr4): Define.
2697
2698 Update the derived classes and callers below.
2699
2700 * server.cc (handle_qxfer_libraries_svr4): Update.
2701 (handle_query): Update.
2702 * linux-low.cc (linux_target_ops): Update.
2703 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2704 (linux_qxfer_libraries_svr4): Turn into ...
2705 (linux_process_target::qxfer_libraries_svr4): ... this.
2706 * linux-low.h (class linux_process_target): Update.
2707 * lynx-low.cc (lynx_target_ops): Update.
2708 * nto-low.cc (nto_target_ops): Update.
2709 * win32-low.cc (win32_target_ops): Update.
2710
2711 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2712
2713 Turn process_stratum_target's supports_disable_randomization op
2714 into a method of process_target.
2715
2716 * target.h (struct process_stratum_target): Remove the target op.
2717 (class process_target): Add the target op.
2718 (target_supports_disable_randomization): Update the macro.
2719 * target.cc (process_target::supports_disable_randomization): Define.
2720
2721 Update the derived classes and callers below.
2722
2723 * linux-low.cc (linux_target_ops): Update.
2724 (linux_supports_disable_randomization): Turn into ...
2725 (linux_process_target::supports_disable_randomization): ... this.
2726 * linux-low.h (class linux_process_target): Update.
2727 * lynx-low.cc (lynx_target_ops): Update.
2728 * nto-low.cc (nto_target_ops): Update.
2729 * win32-low.cc (win32_target_ops): Update.
2730
2731 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2732
2733 Turn process_stratum_target's emit_ops op into a method of
2734 process_target.
2735
2736 * target.h (struct process_stratum_target): Remove the target op.
2737 (class process_target): Add the target op.
2738 (target_emit_ops): Update the macro.
2739 * target.cc (process_target::emit_ops): Define.
2740
2741 Update the derived classes and callers below.
2742
2743 * linux-low.cc (linux_target_ops): Update.
2744 (linux_emit_ops): Turn into ...
2745 (linux_process_target::emit_ops): ... this.
2746 * linux-low.h (class linux_process_target): Update.
2747 * lynx-low.cc (lynx_target_ops): Update.
2748 * nto-low.cc (nto_target_ops): Update.
2749 * win32-low.cc (win32_target_ops): Update.
2750
2751 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2752
2753 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2754 and get_min_fast_tracepoint_insn_len ops into methods of
2755 process_target.
2756
2757 * target.h (struct process_stratum_target): Remove the target ops.
2758 (class process_target): Add the target ops. Also add
2759 'supports_fast_tracepoints'.
2760 (target_supports_fast_tracepoints): Update the macro.
2761 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2762 (install_fast_tracepoint_jump_pad): Update and rename the macro
2763 to ...
2764 (target_install_fast_tracepoint_jump_pad): ... this.
2765 * target.cc (process_target::supports_fast_tracepoints): Define.
2766 (process_target::install_fast_tracepoint_jump_pad): Define.
2767 (process_target::get_min_fast_tracepoint_insn_len): Define.
2768
2769 Update the derived classes and callers below.
2770
2771 * tracepoint.cc (install_fast_tracepoint): Update.
2772 * linux-low.cc (linux_target_ops): Update.
2773 (linux_process_target::supports_fast_tracepoints): Define.
2774 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2775 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2776 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2777 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2778 * linux-low.h (class linux_process_target): Update.
2779 * lynx-low.cc (lynx_target_ops): Update.
2780 * nto-low.cc (nto_target_ops): Update.
2781 * win32-low.cc (win32_target_ops): Update.
2782
2783 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2784
2785 Turn process_stratum_target's stabilize_threads op into a
2786 method of process_target.
2787
2788 * target.h (struct process_stratum_target): Remove the target op.
2789 (class process_target): Add the target op.
2790 (target_stabilize_threads): Update the macro.
2791 * target.cc (process_target::stabilize_threads): Define.
2792
2793 Update the derived classes and callers below.
2794
2795 * server.cc (handle_status): Update.
2796 * tracepoint.cc (cmd_qtdp): Update.
2797 (cmd_qtstart): Update.
2798 * linux-low.cc (linux_target_ops): Update.
2799 (linux_stabilize_threads): Turn into ...
2800 (linux_process_target::stabilize_threads): ... this.
2801 (linux_wait_1): Update.
2802 * linux-low.h (class linux_process_target): Update.
2803 * lynx-low.cc (lynx_target_ops): Update.
2804 * nto-low.cc (nto_target_ops): Update.
2805 * win32-low.cc (win32_target_ops): Update.
2806
2807 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2808
2809 Turn process_stratum_target's pause_all and unpause_all ops
2810 into methods of process_target.
2811
2812 * target.h (struct process_stratum_target): Remove the target ops.
2813 (class process_target): Add the target ops.
2814 (pause_all): Update the macro and rename to...
2815 (target_pause_all): ... this.
2816 (unpause_all): Update the macro and rename to...
2817 (target_unpause_all): ... this.
2818 * target.cc (process_target::pause_all): Define.
2819 (process_target::unpause_all): Define.
2820
2821 Update the derived classes and callers below.
2822
2823 * server.cc (handle_status): Update.
2824 * tracepoint.cc (clear_installed_tracepoints): Update.
2825 (cmd_qtdp): Update.
2826 (cmd_qtstart): Update.
2827 (stop_tracing): Update.
2828 (cmd_qtstatus): Update.
2829 (upload_fast_traceframes): Update.
2830 (run_inferior_command): Update.
2831 * linux-low.cc (linux_target_ops): Update.
2832 (linux_pause_all): Turn into ...
2833 (linux_process_target::pause_all): ... this.
2834 (linux_unpause_all): Turn into ...
2835 (linux_process_target::unpause_all): ... this.
2836 (linux_process_target::prepare_to_access_memory): Update.
2837 (linux_process_target::done_accessing_memory): Update.
2838 * linux-low.h (class linux_process_target): Update.
2839 * lynx-low.cc (lynx_target_ops): Update.
2840 * nto-low.cc (nto_target_ops): Update.
2841 * win32-low.cc (win32_target_ops): Update.
2842
2843 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2844
2845 Turn process_stratum_target's get_tib_address op into a method of
2846 process_target.
2847
2848 * target.h (struct process_stratum_target): Remove the target op.
2849 (class process_target): Add the target op. Also add
2850 'supports_get_tib_address'.
2851 * target.cc (process_target::get_tib_address): Define.
2852 (process_target::supports_get_tib_address): Define.
2853
2854 Update the derived classes and callers below.
2855
2856 * server.cc (handle_query): Update.
2857 * linux-low.cc (win32_target_ops): Update.
2858 * lynx-low.cc (lynx_target_ops): Update.
2859 * nto-low.cc (nto_target_ops): Update.
2860 * win32-low.cc (win32_target_ops): Update.
2861 (win32_process_target::supports_get_tib_address): Define.
2862 (win32_get_tib_address): Turn into ...
2863 (win32_process_target::get_tib_address): ... this.
2864 * win32-low.h (class win32_process_target): Update.
2865
2866 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2867
2868 Turn process_stratum_target's thread_stopped op into a method of
2869 process_target.
2870
2871 * target.h (struct process_stratum_target): Remove the target op.
2872 (class process_target): Add the target op. Also add
2873 'supports_thread_stopped'.
2874 (target_thread_stopped): Update the macro.
2875 * target.cc (process_target::thread_stopped): Define.
2876 (process_target::supports_thread_stopped): Define.
2877 (prepare_to_access_memory): Update.
2878
2879 Update the derived classes and callers below.
2880
2881 * server.cc (queue_stop_reply_callback): Update.
2882 * linux-low.cc (linux_target_ops): Update.
2883 (linux_process_target::supports_thread_stopped): Define.
2884 (linux_thread_stopped): Turn into ...
2885 (linux_process_target::thread_stopped): ... this.
2886 * linux-low.h (class linux_process_target): Update.
2887 * lynx-low.cc (lynx_target_ops): Update.
2888 * nto-low.cc (nto_target_ops): Update.
2889 * win32-low.cc (win32_target_ops): Update.
2890
2891 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2892
2893 Turn process_stratum_target's read_pc and write_pc ops into
2894 methods of process_target.
2895
2896 * target.h (struct process_stratum_target): Remove the target ops.
2897 (class process_target): Add the target ops.
2898 * target.cc (process_target::read_pc): Define.
2899 (process_target::write_pc): Define.
2900
2901 Update the derived classes and callers below.
2902
2903 * regcache.cc (regcache_read_pc): Update.
2904 (regcache_write_pc): Update.
2905 * linux-low.cc (linux_target_ops): Update.
2906 (linux_read_pc): Turn into ...
2907 (linux_process_target::read_pc): ... this.
2908 (linux_write_pc): Turn into ...
2909 (linux_process_target::write_pc): ... this.
2910 * linux-low.h (class linux_process_target): Update.
2911 * lynx-low.cc (lynx_target_ops): Update.
2912 * nto-low.cc (nto_target_ops): Update.
2913 * win32-low.cc (win32_target_ops): Update.
2914
2915 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2916
2917 Turn process_stratum_target's supports_tracepoints op into a
2918 method of process_target.
2919
2920 * target.h (struct process_stratum_target): Remove the target op.
2921 (class process_target): Add the target op.
2922 (target_supports_tracepoints): Update the macro.
2923 * target.cc (process_target::supports_tracepoints): Define.
2924
2925 Update the derived classes and callers below.
2926
2927 * linux-low.cc (linux_target_ops): Update.
2928 (linux_supports_tracepoints): Turn into ...
2929 (linux_process_target::supports_tracepoints): ... this.
2930 * linux-low.h (class linux_process_target): Update.
2931 * lynx-low.cc (lynx_target_ops): Update.
2932 * nto-low.cc (nto_target_ops): Update.
2933 * win32-low.cc (win32_target_ops): Update.
2934
2935 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2936
2937 Turn process_stratum_target's process_qsupported op into a method
2938 of process_target.
2939
2940 * target.h (struct process_stratum_target): Remove the target op.
2941 (class process_target): Add the target op.
2942 (target_process_qsupported): Update the macro.
2943 * target.cc (process_target::process_qsupported): Define.
2944
2945 Update the derived classes and callers below.
2946
2947 * linux-low.cc (linux_target_ops): Update.
2948 (linux_process_qsupported): Turn into ...
2949 (linux_process_target::process_qsupported): ... this.
2950 * linux-low.h (class linux_process_target): Update.
2951 * lynx-low.cc (lynx_target_ops): Update.
2952 * nto-low.cc (nto_target_ops): Update.
2953 * win32-low.cc (win32_target_ops): Update.
2954
2955 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2956
2957 Turn process_stratum_target's read_loadmap op into a method of
2958 process_target.
2959
2960 * target.h (struct process_stratum_target): Remove the target op.
2961 (class process_target): Add the target op. Also add
2962 'supports_read_loadmap'.
2963 * target.cc (process_target::read_loadmap): Define.
2964 (process_target::supports_read_loadmap): Define.
2965
2966 Update the derived classes and callers below.
2967
2968 * server.cc (handle_qxfer_fdpic): Update.
2969 (handle_query): Update.
2970 * linux-low.cc (linux_target_ops): Update.
2971 (linux_process_target::supports_read_loadmap): Define.
2972 (linux_read_loadmap): Turn into ...
2973 (linux_process_target::read_loadmap): ... this.
2974 * linux-low.h (class linux_process_target): Update.
2975 * lynx-low.cc (lynx_target_ops): Update.
2976 * nto-low.cc (nto_target_ops): Update.
2977 * win32-low.cc (win32_target_ops): Update.
2978
2979 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2980
2981 Turn process_stratum_target's core_of_thread op into a method of
2982 process_target.
2983
2984 * target.h (struct process_stratum_target): Remove the target op.
2985 (class process_target): Add the target op.
2986 (target_core_of_thread): Update the macro.
2987 * target.cc (process_target::core_of_thread): Define.
2988
2989 Update the derived classes and callers below.
2990
2991 * linux-low.cc (linux_target_ops): Update.
2992 (linux_process_target::core_of_thread): Define.
2993 * linux-low.h (class linux_process_target): Update.
2994 * lynx-low.cc (lynx_target_ops): Update.
2995 * nto-low.cc (nto_target_ops): Update.
2996 * win32-low.cc (win32_target_ops): Update.
2997
2998 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2999
3000 Turn process_stratum_target's handle_monitor_command op into a
3001 method of process_target.
3002
3003 * target.h (struct process_stratum_target): Remove the target op.
3004 (class process_target): Add the target op.
3005 (target_handle_monitor_command): Update the macro.
3006 * target.cc (process_target::handle_monitor_command): Define.
3007
3008 Update the derived classes and callers below.
3009
3010 * server.cc (handle_query): Update.
3011 * linux-low.cc (linux_target_ops): Update.
3012 (linux_process_target::handle_monitor_command): Define.
3013 * linux-low.h (class linux_process_target): Update.
3014 * lynx-low.cc (lynx_target_ops): Update.
3015 * nto-low.cc (nto_target_ops): Update.
3016 * win32-low.cc (win32_target_ops): Update.
3017
3018 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3019
3020 Turn process_stratum_target's handle_new_gdb_connection op into a
3021 method of process_target.
3022
3023 * target.h (struct process_stratum_target): Remove the target op.
3024 (class process_target): Add the target op.
3025 (target_handle_new_gdb_connection): Update the macro.
3026 * target.cc (process_target::handle_new_gdb_connection): Define.
3027
3028 Update the derived classes and callers below.
3029
3030 * linux-low.cc (linux_target_ops): Update.
3031 (linux_handle_new_gdb_connection): Turn into ...
3032 (linux_process_target::handle_new_gdb_connection): ... 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
3038 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3039
3040 Turn process_stratum_target's supports_fork_events,
3041 supports_vfork_events, and supports_exec_events ops into methods
3042 of process_target.
3043
3044 * target.h (struct process_stratum_target): Remove the target ops.
3045 (class process_target): Add the target ops.
3046 (target_supports_fork_events): Update the macro.
3047 (target_supports_vfork_events): Update the macro.
3048 (target_supports_exec_events): Update the macro.
3049 * target.cc (process_target::supports_fork_events): Define.
3050 (process_target::supports_vfork_events): Define.
3051 (process_target::supports_exec_events): Define.
3052
3053 Update the derived classes and callers below.
3054
3055 * linux-low.cc (linux_target_ops): Update.
3056 (linux_supports_fork_events): Turn into ...
3057 (linux_process_target::supports_fork_events): ... this.
3058 (linux_supports_vfork_events): Turn into ...
3059 (linux_process_target::supports_vfork_events): ... this.
3060 (linux_supports_exec_events): Turn into ...
3061 (linux_process_target::supports_exec_events): ... this.
3062 * linux-low.h (class linux_process_target): Update.
3063 * lynx-low.cc (lynx_target_ops): Update.
3064 * nto-low.cc (nto_target_ops): Update.
3065 * win32-low.cc (win32_target_ops): Update.
3066
3067 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3068
3069 Turn process_stratum_target's supports_multi_process op into a
3070 method of process_target.
3071
3072 * target.h (struct process_stratum_target): Remove the target op.
3073 (class process_target): Add the target op.
3074 * target.cc (process_target::supports_multi_process): Define.
3075 (target_supports_multi_process): Update.
3076
3077 Update the derived classes and callers below.
3078
3079 * linux-low.cc (linux_target_ops): Update.
3080 (linux_supports_multi_process): Turn into ...
3081 (linux_process_target::supports_multi_process): ... this.
3082 * linux-low.h (class linux_process_target): Update.
3083 * lynx-low.cc (lynx_target_ops): Update.
3084 * nto-low.cc (nto_target_ops): Update.
3085 * win32-low.cc (win32_target_ops): Update.
3086
3087 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3088
3089 Turn process_stratum_target's supports_non_stop, async, and
3090 start_non_stop ops into methods of process_target.
3091
3092 * target.h (struct process_stratum_target): Remove the target ops.
3093 (class process_target): Add the target ops.
3094 (target_supports_non_stop): Update the macro.
3095 (target_async): Update the macro.
3096 (start_non_stop): Remove declaration.
3097 * target.cc (process_target::supports_non_stop): Define.
3098 (process_target::async): Define.
3099 (process_target::start_non_stop): Define.
3100 (start_non_stop): Remove.
3101
3102 Update the derived classes and callers below.
3103
3104 * server.cc (handle_qxfer_siginfo): Update.
3105 (handle_query): Update.
3106 * linux-low.cc (linux_target_ops): Update.
3107 (linux_supports_non_stop): Turn into ...
3108 (linux_process_target::supports_non_stop): ... this.
3109 (linux_async): Turn into ...
3110 (linux_process_target::async): ... this.
3111 (linux_start_non_stop): Turn into ...
3112 (linux_process_target::start_non_stop): ... this.
3113 * linux-low.h (class linux_process_target): Update.
3114 * lynx-low.cc (lynx_target_ops): Update.
3115 * nto-low.cc (nto_target_ops): Update.
3116 (nto_supports_non_stop): Remove; rely on the default behavior
3117 instead.
3118 * win32-low.cc (win32_target_ops): Update.
3119
3120 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3121
3122 Turn process_stratum_target's qxfer_siginfo op into a method of
3123 process_target.
3124
3125 * target.h (struct process_stratum_target): Remove the target op.
3126 (class process_target): Add the target op. Also add
3127 'supports_qxfer_siginfo'.
3128 * target.cc (process_target::qxfer_siginfo): Define.
3129 (process_target::supports_qxfer_siginfo): Define.
3130
3131 Update the derived classes and callers below.
3132
3133 * server.cc (handle_qxfer_siginfo): Update.
3134 (handle_query): Update.
3135 * linux-low.cc (linux_target_ops): Update.
3136 (linux_process_target::supports_qxfer_siginfo): Define.
3137 (linux_xfer_siginfo): Turn into ...
3138 (linux_process_target::qxfer_siginfo): ... this.
3139 * linux-low.h (class linux_process_target): Update.
3140 * lynx-low.cc (lynx_target_ops): Update.
3141 * nto-low.cc (nto_target_ops): Update.
3142 * win32-low.cc (win32_target_ops): Update.
3143
3144 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3145
3146 Turn process_stratum_target's qxfer_osdata op into a method of
3147 process_target.
3148
3149 * target.h (struct process_stratum_target): Remove the target op.
3150 (class process_target): Add the target op. Also add
3151 'supports_qxfer_osdata'.
3152 * target.cc (process_target::qxfer_osdata): Define.
3153 (process_target::supports_qxfer_osdata): Define.
3154
3155 Update the derived classes and callers below.
3156
3157 * server.cc (handle_qxfer_osdata): Update.
3158 (handle_query): Update.
3159 * linux-low.cc (linux_target_ops): Update.
3160 (linux_process_target::supports_qxfer_osdata): Define.
3161 (linux_qxfer_osdata): Turn into ...
3162 (linux_process_target::qxfer_osdata): ... this.
3163 * linux-low.h (class linux_process_target): Update.
3164 * lynx-low.cc (lynx_target_ops): Update.
3165 * nto-low.cc (nto_target_ops): Update.
3166 * win32-low.cc (win32_target_ops): Update.
3167
3168 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3169
3170 Turn process_stratum_target's hostio_last_error op into a
3171 method of process_target.
3172
3173 * target.h (struct process_stratum_target): Remove the target op.
3174 (class process_target): Add the target op.
3175 * target.cc: Add "hostio.h" to includes.
3176 (process_target::hostio_last_error): Define.
3177
3178 Update the derived classes and callers below.
3179
3180 * hostio.cc (hostio_error): Update.
3181 * linux-low.cc: Remove "hostio.h" from includes.
3182 (linux_target_ops): Update.
3183 * lynx-low.cc (lynx_target_ops): Update.
3184 * nto-low.cc (nto_target_ops): Update.
3185 * win32-low.h (class win32_process_target): Update.
3186 * win32-low.cc (win32_target_ops): Update.
3187 (wince_hostio_last_error): Turn into ...
3188 (win32_process_target::hostio_last_error): ... this.
3189
3190 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3191
3192 Turn process_stratum_target's get_tls_address op into a method of
3193 process_target.
3194
3195 * target.h (struct process_stratum_target): Remove the target op.
3196 (class process_target): Add the target op. Also add
3197 'supports_get_tls_address'.
3198 * target.cc (process_target::get_tls_address): Define.
3199 (process_target::supports_get_tls_address): Define.
3200
3201 Update the derived classes and callers below.
3202
3203 * server.cc (handle_query): Update.
3204 * linux-low.cc (linux_target_ops): Update.
3205 (linux_process_target::supports_get_tls_address): Define.
3206 (linux_process_target::get_tls_address): Define.
3207 * linux-low.h (class linux_process_target): Update.
3208 * lynx-low.cc (lynx_target_ops): Update.
3209 * nto-low.cc (nto_target_ops): Update.
3210 * win32-low.cc (win32_target_ops): Update.
3211
3212 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3213
3214 Turn process_stratum_target's read_offsets op into a method of
3215 process_target.
3216
3217 * target.h (struct process_stratum_target): Remove the target op.
3218 (class process_target): Add the target op. Also add
3219 'supports_read_offsets'.
3220 * target.cc (process_target::read_offsets): Define.
3221 (process_target::supports_read_offsets): Define.
3222
3223 Update the derived classes and callers below.
3224
3225 * server.cc (handle_query): Update.
3226 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3227 (linux_target_ops): Update.
3228 (linux_process_target::supports_read_offsets): Define.
3229 (linux_read_offsets): Turn into ...
3230 (linux_process_target::read_offsets): ... this.
3231 * linux-low.h (class linux_process_target): Update.
3232 * lynx-low.cc (lynx_target_ops): Update.
3233 * nto-low.cc (nto_target_ops): Update.
3234 * win32-low.cc (win32_target_ops): Update.
3235
3236 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3237
3238 Turn process_stratum_target's stopped_by_watchpoint and
3239 stopped_data_address ops into methods of process_target.
3240
3241 * target.h (struct process_stratum_target): Remove the target ops.
3242 (class process_target): Add the target ops.
3243 * target.cc (process_target::stopped_by_watchpoint): Define.
3244 (process_target::stopped_data_address): Define.
3245
3246 Update the derived classes and callers below.
3247
3248 * remote-utils.cc (prepare_resume_reply): Update.
3249 * linux-low.cc (linux_target_ops): Update.
3250 (linux_stopped_by_watchpoint): Turn into ...
3251 (linux_process_target::stopped_by_watchpoint): ... this.
3252 (linux_stopped_data_address): Turn into ...
3253 (linux_process_target::stopped_data_address): ... this.
3254 * linux-low.h (class linux_process_target): Update.
3255 * lynx-low.cc (lynx_target_ops): Update.
3256 * nto-low.cc (nto_target_ops): Update.
3257 (nto_stopped_by_watchpoint): Turn into ...
3258 (nto_process_target::stopped_by_watchpoint): ... this.
3259 (nto_stopped_data_address): Turn into ...
3260 (nto_process_target::stopped_data_address): ... this.
3261 * nto-low.h (class nto_process_target): Update.
3262 * win32-low.cc (win32_target_ops): Update.
3263 (win32_stopped_by_watchpoint): Turn into ...
3264 (win32_process_target::stopped_by_watchpoint): ... this.
3265 (win32_stopped_data_address): Turn into ...
3266 (win32_process_target::stopped_data_address): ... this.
3267 * win32-low.h (class win32_process_target): Update.
3268
3269 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3270
3271 Turn process_stratum_target's supports_hardware_single_step op into
3272 a method of process_target.
3273
3274 * target.h (struct process_stratum_target): Remove the target op.
3275 (class process_target): Add the target op.
3276 (target_supports_hardware_single_step): Update the macro.
3277 (target_can_do_hardware_single_step): Remove declaration.
3278 * target.cc (process_target::supports_hardware_single_step): Define.
3279 (target_can_do_hardware_single_step): Remove.
3280
3281 Update the derived classes and callers below.
3282
3283 * linux-low.h (class linux_process_target): Update.
3284 * linux-low.cc (linux_target_ops): Update.
3285 (linux_supports_hardware_single_step): Turn into ...
3286 (linux_process_target::supports_hardware_single_step): ... this.
3287 * lynx-low.h (class lynx_process_target): Update.
3288 * lynx-low.cc (lynx_target_ops): Update.
3289 (lynx_process_target::supports_hardware_single_step): Define.
3290 * nto-low.h (class nto_process_target): Update.
3291 * nto-low.cc (nto_target_ops): Update.
3292 (nto_process_target::supports_hardware_single_step): Define.
3293 * win32-low.h (class win32_process_target): Update.
3294 * win32-low.cc (win32_target_ops): Update.
3295 (win32_process_target::supports_hardware_single_step): Define.
3296
3297 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3298
3299 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3300 ops into methods of process_target.
3301
3302 * target.h (struct process_stratum_target): Remove the target ops.
3303 (class process_target): Add the target ops.
3304 (target_stopped_by_hw_breakpoint): Update the macro.
3305 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3306 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3307 (process_target::supports_stopped_by_hw_breakpoint): Define.
3308
3309 Update the derived classes and callers below.
3310
3311 * linux-low.cc (linux_target_ops): Update.
3312 (linux_stopped_by_hw_breakpoint): Turn into ...
3313 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3314 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3315 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3316 * linux-low.h (class linux_process_target): Update.
3317 * lynx-low.cc (lynx_target_ops): Update.
3318 * nto-low.cc (nto_target_ops): Update.
3319 * win32-low.cc (win32_target_ops): Update.
3320
3321 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3322
3323 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3324 ops into methods of process_target.
3325
3326 * target.h (struct process_stratum_target): Remove the target ops.
3327 (class process_target): Add the target ops.
3328 (target_stopped_by_sw_breakpoint): Update the macro.
3329 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3330 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3331 (process_target::supports_stopped_by_sw_breakpoint): Define.
3332
3333 Update the derived classes and callers below.
3334
3335 * linux-low.cc (linux_target_ops): Update.
3336 (linux_stopped_by_sw_breakpoint): Turn into ...
3337 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3338 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3339 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3340 * linux-low.h (class linux_process_target): Update.
3341 * lynx-low.cc (lynx_target_ops): Update.
3342 * nto-low.cc (nto_target_ops): Update.
3343 * win32-low.cc (win32_target_ops): Update.
3344
3345 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3346
3347 Turn process_stratum_target's insert_point and remove_point ops
3348 into methods of process_target.
3349
3350 * target.h (struct process_stratum_target): Remove the target ops.
3351 (class process_target): Add the target ops.
3352 * target.cc (process_target::insert_point): Define.
3353 (process_target::remove_point): Define.
3354
3355 Update the derived classes and callers below.
3356
3357 * mem-break.cc (set_raw_breakpoint_at): Update.
3358 (delete_raw_breakpoint): Update.
3359 (uninsert_raw_breakpoint): Update.
3360 (reinsert_raw_breakpoint): Update.
3361 * linux-low.cc (linux_target_ops): Update.
3362 (linux_insert_point): Turn into ...
3363 (linux_process_target::insert_point): ... this.
3364 (linux_remove_point): Turn into ...
3365 (linux_process_target::remove_point): ... this.
3366 * linux-low.h (class linux_process_target): Update.
3367 * lynx-low.cc (lynx_target_ops): Update.
3368 * nto-low.cc (nto_target_ops): Update.
3369 (nto_insert_point): Turn into ...
3370 (nto_process_target::insert_point): ... this.
3371 (nto_remove_point): Turn into ...
3372 (nto_process_target::remove_point): ... this.
3373 * nto-low.h (class nto_process_target): Update.
3374 * win32-low.cc (win32_target_ops): Update.
3375 (win32_insert_point): Turn into ...
3376 (win32_process_target::insert_point): ... this.
3377 (win32_remove_point): Turn into ...
3378 (win32_process_target::remove_point): ... this.
3379 * win32-low.h (class win32_process_target): Update.
3380
3381 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3382
3383 Turn process_stratum_target's supports_z_point_type op into a
3384 method of process_target.
3385
3386 * target.h (struct process_stratum_target): Remove the target op.
3387 (class process_target): Add the target op.
3388 * target.cc (process_target::supports_z_point_type): Define.
3389
3390 Update the derived classes and callers below.
3391
3392 * mem-break.cc (z_type_supported): Update.
3393 * linux-low.cc (linux_target_ops): Update.
3394 (linux_supports_z_point_type): Turn into ...
3395 (linux_process_target::supports_z_point_type): ... this.
3396 * linux-low.h (class linux_process_target): Update.
3397 * lynx-low.cc (lynx_target_ops): Update.
3398 * nto-low.cc (nto_target_ops): Update.
3399 (nto_supports_z_point_type): Turn into ...
3400 (nto_process_target::supports_z_point_type): ... this.
3401 * nto-low.h (class nto_process_target): Update.
3402 * win32-low.cc (win32_target_ops): Update.
3403 (win32_supports_z_point_type): Turn into ...
3404 (win32_process_target::supports_z_point_type): ... this.
3405 * win32-low.h (class win32_process_target): Update.
3406
3407 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3408
3409 Turn process_stratum_target's read_auxv op into a method of
3410 process_target.
3411
3412 * target.h (class process_stratum_target): Remove the target op.
3413 (struct process_target): Add the target op. Also add
3414 'supports_read_auxv'.
3415 * target.cc (process_target::read_auxv): Define.
3416 (process_target::supports_read_auxv): Define.
3417
3418 Update the derived classes and callers below.
3419
3420 * server.cc (handle_qxfer_auxv): Update.
3421 (handle_query): Update.
3422 * linux-low.cc (linux_target_ops): Update.
3423 (linux_process_target::supports_read_auxv): Define.
3424 (linux_read_auxv): Turn into ...
3425 (linux_process_target::read_auxv): ... this.
3426 * linux-low.h (class linux_process_target): Update.
3427 * lynx-low.cc (lynx_target_ops): Update.
3428 * nto-low.cc (nto_target_ops): Update.
3429 (nto_process_target::supports_read_auxv): Define.
3430 (nto_read_auxv): Turn into ...
3431 (nto_process_target::read_auxv): ... this.
3432 * nto-low.h (class nto_process_target): Update.
3433 * win32-low.cc (win32_target_ops): Update.
3434
3435 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3436
3437 Turn process_stratum_target's request_interrupt op into a method of
3438 process_target.
3439
3440 * target.h (struct process_stratum_target): Remove the target op.
3441 (class process_target): Add the target op.
3442
3443 Update the derived classes and callers below.
3444
3445 * remote-utils.cc (putpkt_binary_1): Update.
3446 (input_interrupt): Update.
3447 (getpkt): Update.
3448 * server.cc (handle_v_requests): Update.
3449 * linux-low.cc (linux_target_ops): Update.
3450 (linux_request_interrupt): Turn into ...
3451 (linux_process_target::request_interrupt): ... this.
3452 * linux-low.h (class linux_process_target): Update.
3453 * lynx-low.cc (lynx_target_ops): Update.
3454 (lynx_request_interrupt): Turn into ...
3455 (lynx_process_target::request_interrupt): ... this.
3456 * lynx-low.h (class lynx_process_target): Update.
3457 * nto-low.cc (nto_target_ops): Update.
3458 (nto_request_interrupt): Turn into ...
3459 (nto_process_target::request_interrupt): ... this.
3460 * nto-low.h (class nto_process_target): Update.
3461 * win32-low.cc (win32_target_ops): Update.
3462 (win32_request_interrupt): Turn into ...
3463 (win32_process_target::request_interrupt): ... this.
3464 * win32-low.h (class win32_process_target): Update.
3465
3466 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3467
3468 Turn process_stratum_target's look_up_symbols op into a method of
3469 process_target.
3470
3471 * target.h (struct process_stratum_target): Remove the target op.
3472 (class process_target): Add the target op.
3473 * target.cc (process_target::look_up_symbols): Define.
3474
3475 Update the derived classes and callers below.
3476
3477 * server.cc (handle_query): Update.
3478 * linux-low.cc (linux_target_ops): Update.
3479 (linux_look_up_symbols): Turn into ...
3480 (linux_process_target::look_up_symbols): ... this.
3481 * linux-low.h (class linux_process_target): Update.
3482 * lynx-low.cc (lynx_target_ops): Update.
3483 * nto-low.cc (nto_target_ops): Update.
3484 * win32-low.cc (win32_target_ops): Update.
3485
3486 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3487
3488 Turn process_stratum_target's read_memory and write_memory
3489 ops into methods of process_target.
3490
3491 * target.h (struct process_stratum_target): Remove the target ops.
3492 (class process_target): Add the target ops.
3493
3494 Update the derived classes and callers below.
3495
3496 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3497 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3498 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3499 (arm_get_syscall_trapinfo): Update.
3500 * linux-cris-low.cc (cris_breakpoint_at): Update.
3501 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3502 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3503 * linux-mips-low.cc (mips_breakpoint_at): Update.
3504 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3505 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3506 * linux-sh-low.cc (sh_breakpoint_at): Update.
3507 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3508 (sparc_store_gregset_from_stack): Update.
3509 (sparc_breakpoint_at): Update.
3510 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3511 * linux-tile-low.cc (tile_breakpoint_at): Update.
3512 * linux-x86-low.cc (x86_breakpoint_at): Update.
3513 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3514 * mem-brea.cc (insert_memory_breakpoint): Update.
3515 (validate_inserted_breakpoint): Update.
3516 * target.cc (read_inferior_memory): Update.
3517 (target_write_memory): Update.
3518 * linux-low.cc (linux_target_ops): Update.
3519 (linux_read_memory): Make a wrapper around the read_memory target
3520 op call.
3521 (linux_process_target::read_memory): Rename from linux_read_memory.
3522 (linux_write_memory): Turn into ...
3523 (linux_process_target::write_memory): ... this.
3524 * linux-low.h (class linux_process_target): Update.
3525 * lynx-low.cc (lynx_target_ops): Update.
3526 (lynx_read_memory): Turn into ...
3527 (lynx_process_target::read_memory): ... this.
3528 (lynx_write_memory): Turn into ...
3529 (lynx_process_target::write_memory): ... this.
3530 * lynx-low.h (class lynx_process_target): Update.
3531 * nto-low.cc (nto_target_ops): Update.
3532 (nto_read_memory): Turn into ...
3533 (nto_process_target::read_memory): ... this.
3534 (nto_write_memory): Turn into ...
3535 (nto_process_target::write_memory): ... this.
3536 * nto-low.h (class nto_process_target): Update.
3537 * win32-low.cc (win32_target_ops): Update.
3538 (win32_read_inferior_memory): Turn into ...
3539 (win32_process_target::read_memory): ... this.
3540 (win32_write_inferior_memory): Turn into ...
3541 (win32_process_target::write_memory): ... this.
3542 * win32-low.h (class win32_process_target): Update.
3543
3544 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3545
3546 Turn process_stratum_target's prepare_to_access_memory and
3547 done_accessing_memory ops into methods of process_target.
3548
3549 * target.h (struct process_stratum_target): Remove the target ops.
3550 (class process_target): Add the target ops.
3551 * target.cc (process_target::prepare_to_access_memory): Define.
3552 (process_target::done_accessing_memory): Define.
3553 (prepare_to_access_memory): Update.
3554 (done_accessing_memory): Update.
3555
3556 Update the derived classes and callers below.
3557
3558 * linux-low.cc (linux_target_ops): Update.
3559 (linux_prepare_to_access_memory): Turn into ...
3560 (linux_process_target::prepare_to_access_memory): ... this.
3561 (linux_done_accessing_memory): Turn into ...
3562 (linux_process_target::done_accessing_memory): ... this.
3563 * linux-low.h (class linux_process_target): Update.
3564 * lynx-low.cc (lynx_target_ops): Update.
3565 * nto-low.cc (nto_target_ops): Update.
3566 * win32-low.cc (win32_target_ops): Update.
3567
3568 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3569
3570 Turn process_stratum_target's fetch_registers and store_registers
3571 ops into methods of process_target.
3572
3573 * target.h (struct process_stratum_target): Remove the target ops.
3574 (class process_target): Add the target ops.
3575 (fetch_inferior_registers): Update the macro.
3576 (store_inferior_registers): Update the macro.
3577
3578 Update the derived classes and callers below.
3579
3580 * linux-low.cc (linux_target_ops): Update.
3581 (linux_fetch_registers): Turn into ...
3582 (linux_process_target::fetch_registers): ... this.
3583 (linux_store_registers): Turn into ...
3584 (linux_process_target::store_registers): ... this.
3585 * linux-low.h (class linux_process_target): Update.
3586 * lynx-low.cc (lynx_target_ops): Update.
3587 (lynx_fetch_registers): Turn into ...
3588 (lynx_process_target::fetch_registers): ... this.
3589 (lynx_store_registers): Turn into ...
3590 (lynx_process_target::store_registers): ... this.
3591 * lynx-low.h (class lynx_process_target): Update.
3592 * nto-low.cc (nto_target_ops): Update.
3593 (nto_fetch_registers): Turn into ...
3594 (nto_process_target::fetch_registers): ... this.
3595 (nto_store_registers): Turn into ...
3596 (nto_process_target::store_registers): ... this.
3597 * nto-low.h (class nto_process_target): Update.
3598 * win32-low.cc (win32_target_ops): Update.
3599 (win32_fetch_inferior_registers): Turn into ...
3600 (win32_process_target::fetch_registers): ... this.
3601 (win32_store_inferior_registers): Turn into ...
3602 (win32_process_target::store_registers): ... this.
3603 * win32-low.h (class win32_process_target): Update.
3604
3605 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3606
3607 Turn process_stratum_target's wait op into a method of
3608 process_target.
3609
3610 * target.h (struct process_stratum_target): Remove the target op.
3611 (class process_target): Add the target op.
3612
3613 Update the derived classes and callers below.
3614
3615 * target.cc (target_wait): Update.
3616 * linux-low.cc (linux_target_ops): Update.
3617 (linux_wait): Turn into ...
3618 (linux_process_target::wait): ... this.
3619 * linux-low.h (class linux_process_target): Update.
3620 * lynx-low.cc (lynx_target_ops): Update.
3621 (lynx_wait): Turn into ...
3622 (lynx_process_target::wait): ... this.
3623 * lynx-low.h (class lynx_process_target): Update.
3624 * nto-low.cc (nto_target_ops): Update.
3625 (nto_wait): Turn into ...
3626 (nto_process_target::wait): ... this.
3627 * nto-low.h (class nto_process_target): Update.
3628 * win32-low.cc (win32_target_ops): Update.
3629 (win32_wait): Turn into ...
3630 (win32_process_target::wait): ... this.
3631 (do_initial_child_stuff): Update.
3632 * win32-low.h (class win32_process_target): Update.
3633
3634 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3635
3636 Turn process_stratum_target's resume op into a method of
3637 process_target.
3638
3639 * target.h (struct process_stratum_target): Remove the target op.
3640 (class process_target): Add the target op.
3641
3642 Update the derived classes and callers below.
3643
3644 * server.cc (resume): Update.
3645 * target.cc (target_stop_and_wait): Update.
3646 (target_continue_no_signal): Update.
3647 (target_continue): Update.
3648 * linux-low.cc (linux_target_ops): Update.
3649 (linux_resume): Turn into ...
3650 (linux_process_target::resume): ... this.
3651 * linux-low.h (class linux_process_target): Update.
3652 * lynx-low.cc (lynx_target_ops): Update.
3653 (lynx_resume): Turn into ...
3654 (lynx_process_target::resume): ... this.
3655 * lynx-low.h (class lynx_process_target): Update.
3656 * nto-low.cc (nto_target_ops): Update.
3657 (nto_resume): Turn into ...
3658 (nto_process_target::resume): ... this.
3659 * nto-low.h (class nto_process_target): Update.
3660 * win32-low.cc (win32_target_ops): Update.
3661 (win32_resume): Turn into ...
3662 (win32_process_target::resume): ... this.
3663 (win32_process_target::detach): Update.
3664 (do_initial_child_stuff): Update.
3665 * win32-low.h (class win32_process_target): Update.
3666
3667 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3668
3669 Turn process_stratum_target's thread_alive op into a method of
3670 process_target.
3671
3672 * target.h (struct process_stratum_target): Remove the target op.
3673 (class process_target): Add the target op.
3674 (mythread_alive): Update the macro.
3675
3676 Update the derived classes and callers below.
3677
3678 * linux-low.cc (linux_target_ops): Update.
3679 (linux_thread_alive): Turn into ...
3680 (linux_process_target::thread_alive): ... this.
3681 (wait_for_sigstop): Update.
3682 * linux-low.h (class linux_process_target): Update.
3683 * lynx-low.cc (lynx_target_ops): Update.
3684 (lynx_thread_alive): Turn into ...
3685 (lynx_process_target::thread_alive): ... this.
3686 * lynx-low.h (class lynx_process_target): Update.
3687 * nto-low.cc (nto_target_ops): Update.
3688 (nto_thread_alive): Turn into ...
3689 (nto_process_target::thread_alive): ... this.
3690 * nto-low.h (class nto_process_target): Update.
3691 * win32-low.cc (win32_target_ops): Update.
3692 (win32_thread_alive): Turn into ...
3693 (win32_process_target::thread_alive): ... this.
3694 * win32-low.h (class win32_process_target): Update.
3695
3696 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3697
3698 Turn process_stratum_target's join op into a method of
3699 process_target.
3700
3701 * target.h (struct process_stratum_target): Remove the target op.
3702 (class process_target): Add the target op.
3703 (join_inferior): Update the macro.
3704
3705 Update the derived classes and callers below.
3706
3707 * linux-low.cc (linux_target_ops): Update.
3708 (linux_join): Turn into ...
3709 (linux_process_target::join): ... this.
3710 * linux-low.h (class linux_process_target): Update.
3711 * lynx-low.cc (lynx_target_ops): Update.
3712 (lynx_join): Turn into ...
3713 (lynx_process_target::join): ... this.
3714 * lynx-low.h (class lynx_process_target): Update.
3715 * nto-low.cc (nto_target_ops): Update.
3716 (nto_process_target::join): Define.
3717 * nto-low.h (class nto_process_target): Update.
3718 * win32-low.cc (win32_target_ops): Update.
3719 (win32_join): Turn into ...
3720 (win32_process_target::join): ... this.
3721 * win32-low.h (class win32_process_target): Update.
3722
3723 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3724
3725 Turn process_stratum_target's mourn op into a method of
3726 process_target.
3727
3728 * target.h (struct process_stratum_target): Remove the target op.
3729 (class process_target): Add the target op.
3730
3731 Update the derived classes and callers below.
3732
3733 * target.cc (target_mourn_inferior): Update.
3734 * linux-low.cc (linux_target_ops): Update.
3735 (linux_mourn): Turn into ...
3736 (linux_process_target::mourn): ... this.
3737 (handle_extended_wait): Update.
3738 (linux_process_target::kill): Update.
3739 (linux_process_target::detach): Update.
3740 * linux-low.h (class linux_process_target): Update.
3741 * lynx-low.cc (lynx_target_ops): Update.
3742 (lynx_mourn): Turn into ...
3743 (lynx_process_target::mourn): ... this.
3744 * lynx-low.h (class lynx_process_target): Update.
3745 * nto-low.cc (nto_target_ops): Update.
3746 (nto_mourn): Turn into ...
3747 (nto_process_target::mourn): ... this.
3748 * nto-low.h (class nto_process_target): Update.
3749 * win32-low.cc (win32_target_ops): Update.
3750 (win32_mourn): Turn into ...
3751 (win32_process_target::mourn): ... this.
3752 * win32-low.h (class win32_process_target): Update.
3753
3754 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3755
3756 Turn process_stratum_target's detach op into a method of
3757 process_target.
3758
3759 * target.h (struct process_stratum_target): Remove the target op.
3760 (class process_target): Add the target op.
3761 (detach_inferior): Update the macro.
3762
3763 Update the derived classes and callers below.
3764
3765 * linux-low.cc (linux_target_ops): Update.
3766 (linux_detach): Turn into ...
3767 (linux_process_target::detach): ... this.
3768 * linux-low.h (class linux_process_target): Update.
3769 * lynx-low.cc (lynx_target_ops): Update.
3770 (lynx_detach): Turn into ...
3771 (lynx_process_target::detach): ... this.
3772 * lynx-low.h (class lynx_process_target): Update.
3773 * nto-low.cc (nto_target_ops): Update.
3774 (nto_detach): Turn into ...
3775 (nto_process_target::detach): ... this.
3776 * nto-low.h (class nto_process_target): Update.
3777 * win32-low.cc (win32_target_ops): Update.
3778 (win32_detach): Turn into ...
3779 (win32_process_target::detach): ... this.
3780 * win32-low.h (class win32_process_target): Update.
3781
3782 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3783
3784 Turn process_stratum_target's kill op into a method of
3785 process_target.
3786
3787 * target.h (struct process_stratum_target): Remove the target op.
3788 (class process_target): Add the target op.
3789
3790 Update the derived classes and callers below.
3791
3792 * target.cc (kill_inferior): Update.
3793 * linux-low.cc (linux_target_ops): Update.
3794 (linux_kill): Turn into ...
3795 (linux_process_target::kill): ... this.
3796 * linux-low.h (class linux_process_target): Update.
3797 * lynx-low.cc (lynx_target_ops): Update.
3798 (lynx_kill): Turn into ...
3799 (lynx_process_target::kill): ... this.
3800 * lynx-low.h (class lynx_process_target): Update.
3801 * nto-low.cc (nto_target_ops): Update.
3802 (nto_kill): Turn into ...
3803 (nto_process_target::kill): ... this.
3804 * nto-low.h (class nto_process_target): Update.
3805 * win32-low.cc (win32_target_ops): Update.
3806 (win32_kill): Turn into ...
3807 (win32_process_target::kill): ... this.
3808 * win32-low.h (class win32_process_target): Update.
3809
3810 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3811
3812 Turn process_stratum_target's attach op into a method of
3813 process_target.
3814
3815 * target.h (struct process_stratum_target): Remove the target op.
3816 (class process_target): Add the target op.
3817 (myattach): Update the macro.
3818
3819 Update the derived classes and callers below.
3820
3821 * linux-low.cc (linux_target_ops): Update.
3822 (linux_attach): Turn into ...
3823 (linux_process_target::attach): ... this.
3824 * linux-low.h (class linux_process_target): Update.
3825 * lynx-low.cc (lynx_target_ops): Update.
3826 (lynx_attach): Turn into ...
3827 (lynx_process_target::attach): ... this.
3828 * lynx-low.h (class lynx_process_target): Update.
3829 * nto-low.cc (nto_target_ops): Update.
3830 (nto_attach): Turn into ...
3831 (nto_process_target::attach): ... this.
3832 * nto-low.h (class nto_process_target): Update.
3833 * win32-low.cc (win32_target_ops): Update.
3834 (win32_attach): Turn into ...
3835 (win32_process_target::attach): ... this.
3836 * win32-low.h (class win32_process_target): Update.
3837
3838 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3839
3840 Turn process_stratum_target's post_create_inferior op into a method
3841 of process_target.
3842
3843 * target.h (struct process_stratum_target): Remove the target op.
3844 (class process_target): Add the target op.
3845 (target_post_create_inferior): Update the macro.
3846 * target.cc (process_target::post_create_inferior): Define.
3847
3848 Update the derived classes and callers below.
3849
3850 * linux-low.cc (linux_target_ops): Update.
3851 (linux_post_create_inferior): Turn into ...
3852 (linux_process_target::post_create_inferior): ... this.
3853 * linux-low.h (class linux_process_target): Update.
3854 * lynx-low.cc (lynx_target_ops): Update.
3855 * nto-low.cc (nto_target_ops): Update.
3856 * win32-low.cc (win32_target_ops): Update.
3857
3858 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3859
3860 Turn process_stratum_target's create_inferior op into a method of
3861 process_target.
3862
3863 * target.h (struct process_stratum_target): Remove the target op.
3864 (class process_target): Add the target op.
3865 (create_inferior): Rename the macro to ...
3866 (target_create_inferior): ... this.
3867
3868 Update the derived classes and callers below.
3869
3870 * server.cc (handle_v_run): Update.
3871 (captured_main): Update.
3872 (process_serial_event): Update.
3873 * linux-low.cc (linux_target_ops): Update.
3874 (linux_create_inferior): Turn into ...
3875 (linux_process_target::create_inferior): ... this.
3876 * linux-low.h (class linux_process_target): Update.
3877 * lynx-low.cc (lynx_target_ops): Update.
3878 (lynx_create_inferior): Turn into ...
3879 (lynx_process_target::create_inferior): ... this.
3880 * lynx-low.h (class lynx_process_target): Update.
3881 * nto-low.cc (nto_target_ops): Update.
3882 (nto_create_inferior): Turn into ...
3883 (nto_process_target::create_inferior): ... this.
3884 * nto-low.h (class nto_process_target): Update.
3885 * win32-low.cc (win32_target_ops): Update.
3886 (win32_create_inferior): Turn into ...
3887 (win32_process_target::create_inferior): ... this.
3888 * win32-low.h (class win32_process_target): Update.
3889
3890 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3891
3892 * target.h (class process_target): New class definition.
3893 (struct process_stratum_target) <pt>: New field with type
3894 'process_target*'.
3895 * linux-low.h (class linux_process_target): Define as a derived
3896 class of 'process_target'.
3897 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3898 as the 'pt' field.
3899 * lynx-low.h (class lynx_process_target): Define as a derived
3900 class of 'process_target'.
3901 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3902 as the 'pt' field.
3903 * nto-low.h (class nto_process_target): Define as a derived
3904 class of 'process_target'.
3905 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3906 as the 'pt' field.
3907 * win32-low.h (class win32_process_target): Define as a derived
3908 class of 'process_target'.
3909 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3910 as the 'pt' field.
3911
3912 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3913
3914 * configure: Regenerate.
3915
3916 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
3917 Andrew Burgess <andrew.burgess@embecosm.com>
3918
3919 * linux-riscv-low.cc: New file.
3920 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3921 and nat/riscv-linux-tdesc.c.
3922 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3923 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3924 Define.
3925
3926 2020-02-14 Tom Tromey <tom@tromey.com>
3927
3928 * acinclude.m4: Don't include acx_configure_dir.m4.
3929 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3930 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3931 (all, install-only, uninstall, clean-info, clean)
3932 (maintainer-clean): Don't recurse.
3933 (subdir_do, all-lib): Remove.
3934 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3935 (GNULIB_H): Remove.
3936 (generated_files): Update.
3937 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3938 * configure: Rebuild.
3939 * configure.ac: Don't configure gnulib or libiberty.
3940 (GNULIB): Update.
3941
3942 2020-02-14 Eli Zaretskii <eliz@gnu.org>
3943
3944 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
3945 preparing the command line for CreateProcess.
3946 (win32_create_inferior): Reflect the program name in debugging
3947 output that shows the process and its command line.
3948
3949 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3950
3951 * Makefile.in: Rename source files from .c to .cc.
3952 * %.c: Rename to %.cc.
3953 * configure.ac: Rename server.c to server.cc.
3954 * configure: Re-generate.
3955
3956 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3957
3958 * Makefile.in: Rename gdbsupport source files from .c to .cc.
3959
3960 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
3961
3962 * win32-low.c (win32_create_inferior): Set signal_pid.
3963
3964 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
3965 Pedro Alves <palves@redhat.com>
3966
3967 Skip building gdbserver in a cross-configuration.
3968 * configure.srv: Set $gdbserver_host depending on whether $target
3969 is $host. Use $gdbserver_host instead of $host.
3970
3971 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3972
3973 * configure: Re-generate.
3974
3975 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3976
3977 * configure: Re-generate.
3978
3979 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3980
3981 * acinclude.m4: Update warning.m4 path.
3982
3983 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
3984
3985 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
3986 (handle_exception): Set siginfo_er.
3987 (win32_xfer_siginfo): New function.
3988
3989 2020-02-07 Tom Tromey <tom@tromey.com>
3990 Pedro Alves <palves@redhat.com>
3991
3992 * README: Update build documentation.
3993 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
3994 host, not target.
3995 * configure.ac: Update paths.
3996 * configure: Rebuild.
3997 * acinclude.m4: Update paths.
3998 * Makefile.in: Update include paths.
3999 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4000 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4001 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4002 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4003 (%-generated.c): Update paths.
4004 * Move entire directory from ../gdb/gdbserver.
4005
4006 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4007
4008 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4009
4010 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4011
4012 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4013 assignment instead of srv_linux_obj.
4014
4015 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4016
4017 * server.c (handle_qxfer_libraries): Write segment-address with
4018 paddress.
4019
4020 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4021
4022 * Makefile.in (install-strip): New target.
4023 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4024 * aclocal.m4: Regenerate.
4025 * configure: Regenerate.
4026 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4027
4028 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4029
4030 * Makefile.in (SFILES): Adjust paths to point to real files.
4031 (OBS): Move waitstatus.o to target/waitstatus.o.
4032 (TAGS): Transform paths appropriately.
4033 (%.o): Rename to...
4034 (nat/%.o): ... this pattern rule.
4035 (%.o): Rename to...
4036 (target/%.o): ... this pattern rule.
4037 * configure.srv: Adjust paths throughout to include nat/ prefix
4038 with the revant files.
4039 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4040 * configure: Regenerate.
4041
4042 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4043
4044 * Makefile.in (TAGS): Remove config files from the recipe.
4045
4046 2020-01-14 Tom Tromey <tom@tromey.com>
4047
4048 * configure: Rebuild.
4049 * configure.ac: Remove any checks that were added to common.m4.
4050 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4051 lib-link.m4.
4052
4053 2020-01-14 Tom Tromey <tom@tromey.com>
4054
4055 * server.h: Include config.h.
4056 * gdbreplay.c: Include config.h.
4057 * configure: Rebuild.
4058 * configure.ac: Don't source common.host.
4059 * acinclude.m4: Update path.
4060 * Makefile.in (INCSUPPORT): New variable.
4061 (INCLUDE_CFLAGS): Add INCSUPPORT.
4062 (SFILES): Update paths.
4063 (version-generated.c): Update path to create-version.sh.
4064 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4065
4066 2020-01-14 Tom Tromey <tom@tromey.com>
4067
4068 * configure.ac (LIBS): Use WIN32APILIBS.
4069 (USE_WIN32API): Don't define.
4070 * configure: Rebuild.
4071
4072 2020-01-14 Tom Tromey <tom@tromey.com>
4073
4074 * configure: Rebuild.
4075
4076 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4077
4078 * Makefile.in (%-generated.c): Remove rule for files from
4079 regformats/i386.
4080
4081 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4082
4083 * configure: Re-generate.
4084
4085 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4086
4087 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4088 Define to static.
4089 * tracepoint.c (stop_tracing, flush_trace_buffer,
4090 about_to_request_buffer_space, get_trace_state_variable_value,
4091 set_trace_state_variable_value, gdb_collect): Add declaration.
4092
4093 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4094
4095 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4096 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4097 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4098 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4099 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4100 static.
4101
4102 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4103
4104 * inferiors.c: Include gdbsupport/common-inferior.h.
4105
4106 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4107
4108 * hostio-errno.c: Include hostio.h.
4109
4110 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4111
4112 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4113 prerequisite.
4114
4115 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4116
4117 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4118 * linux-arm-tdesc.h: Include arch/arm.h.
4119
4120 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4121
4122 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4123
4124 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4125
4126 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4127 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4128
4129 2020-01-10 Pedro Alves <palves@redhat.com>
4130
4131 * fork-child.c (post_fork_inferior): Pass target down to
4132 startup_inferior.
4133 * inferiors.c (switch_to_thread): Add process_stratum_target
4134 parameter.
4135 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4136 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4137 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4138 * remote-utils.c (prepare_resume_reply): Pass the target to
4139 switch_to_thread.
4140 * target.c (the_target): Now a process_stratum_target.
4141 (done_accessing_memory): Pass the target to switch_to_thread.
4142 (set_target_ops): Ajust to use process_stratum_target.
4143 * target.h (struct target_ops): Rename to ...
4144 (struct process_stratum_target): ... this.
4145 (the_target, set_target_ops): Adjust.
4146 (prepare_to_access_memory): Adjust comment.
4147 * win32-low.c (child_xfer_memory): Adjust to use
4148 process_stratum_target.
4149 (win32_target_ops): Now a process_stratum_target.
4150
4151 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4152 Pedro Alves <palves@redhat.com>
4153
4154 * win32-low.c (get_child_debug_event): Extract the fatal exception
4155 from the exit status and convert to the equivalent Posix signal
4156 number.
4157 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4158 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4159
4160 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4161
4162 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4163
4164 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4165
4166 * server.c (gdbserver_version): Change copyright year to 2020.
4167 * gdbreplay.c (gdbreplay_version): Likewise.
4168
4169 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4170
4171 * configure: Regenerate.
4172 * configure.ac: Quote variable arguments of test.
4173
4174 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4175
4176 * Makefile.in: Fix build with GNU Make 3.81
4177
4178 2019-12-16 Tom Tromey <tromey@adacore.com>
4179
4180 * server.c (get_exec_file): Constify result.
4181
4182 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4183
4184 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4185 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4186 * config.in: Regenerate.
4187 * configure: Regenerate.
4188 * configure.ac: Don't check for strerror.
4189 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4190 Call safe_strerror instead of strerror.
4191 * server.h (strerror): Remove this now-unnecessary declaration.
4192 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4193 strerror.
4194 (gdb_agent_helper_thread): Likewise.
4195 * utils.c (perror_with_name): Likewise.
4196
4197 2019-11-26 Tom Tromey <tom@tromey.com>
4198
4199 * configure, config.in: Rebuild.
4200
4201 2019-11-26 Tom Tromey <tom@tromey.com>
4202
4203 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4204 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4205 gdb_sigmask.
4206 * configure, config.in: Rebuild.
4207
4208 2019-11-26 Tom Tromey <tom@tromey.com>
4209
4210 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4211 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4212 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4213 * acinclude.m4: Include ax_pthread.m4.
4214 * config.in, configure: Rebuild.
4215
4216 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4217
4218 * debug.c (debug_set_output): Call safe_strerror instead of
4219 strerror.
4220 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4221 (linux_kill_one_lwp): Likewise.
4222 (linux_detach_one_lwp): Likewise.
4223 (linux_wait_for_event_filtered): Likewise.
4224 (store_register): Likewise.
4225 * lynx-low.c (lynx_attach): Likewise.
4226 * mem-break.c (insert_memory_breakpoint): Likewise.
4227 (remove_memory_breakpoint): Likewise.
4228 (delete_fast_tracepoint_jump): Likewise.
4229 (set_fast_tracepoint_jump): Likewise.
4230 (uninsert_fast_tracepoint_jumps_at): Likewise.
4231 (reinsert_fast_tracepoint_jumps_at): Likewise.
4232 * nto-low.c (nto_xfer_memory): Likewise.
4233 (nto_resume): Likewise.
4234
4235 2019-11-20 Luis Machado <luis.machado@linaro.org>
4236
4237 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4238 instead of register count.
4239 * tdesc.c (tdesc_contains_feature): New function.
4240 * tdesc.h (tdesc_contains_feature): New prototype.
4241
4242 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4243
4244 * Makefile.in: Add safe-strerror.c.
4245 * configure: Regenerate.
4246 * configure.ac: Don't source common.host.
4247
4248 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4249
4250 * config.in: Regenerate.
4251 * configure: Regenerate.
4252
4253 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4254
4255 * ax.c (ax_printf): Handle size_t_arg.
4256
4257 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4258
4259 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4260 * mi/mi-main.c (output_cores): Likewise.
4261 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4262 (linux_xfer_osdata_modules): Likewise.
4263 * remote.c (register_remote_support_xml): Likewise.
4264 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4265 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4266
4267 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4268
4269 * configure: Regenerate.
4270 * configure.ac: Remove check for strerror_r.
4271
4272 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4273
4274 * config.in: Regenerate.
4275 * configure: Regenerate.
4276 * configure.ac: Also check for strerror_r.
4277
4278 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4279
4280 * ax.h (debug_agent): Remove duplicate declaration.
4281
4282 2019-10-26 Tom de Vries <tdevries@suse.de>
4283
4284 * linux-aarch64-low.c: Fix typos in comments.
4285 * linux-arm-low.c: Same.
4286 * linux-low.c: Same.
4287 * linux-ppc-low.c: Same.
4288 * proc-service.c: Same.
4289 * regcache.h: Same.
4290 * server.c: Same.
4291 * tracepoint.c: Same.
4292 * win32-low.c: Same.
4293
4294 2019-10-25 Tom Tromey <tromey@adacore.com>
4295
4296 * utils.c (xstrdup): Remove.
4297
4298 2019-10-23 Tom Tromey <tom@tromey.com>
4299
4300 * configure, config.in: Rebuild.
4301
4302 2019-10-23 Tom Tromey <tom@tromey.com>
4303
4304 * configure: Rebuild.
4305 * acinclude.m4: Use m4_include, not sinclude.
4306
4307 2019-10-17 Tom Tromey <tromey@adacore.com>
4308
4309 * configure: Rebuild.
4310 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4311 in AC_CONFIG_FILES invocation.
4312 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4313 invocation.
4314
4315 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4316
4317 * server.c: Include xml-builtin.h.
4318 (get_xml_features): Don't declare xml_builtins here.
4319
4320 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4321
4322 * Makefile.in: Remove references to vec-ipa.o.
4323
4324 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4325
4326 * Makefile.in: Remove references to vec.c.
4327
4328 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4329
4330 * server.c (server_waiting): Change to bool.
4331 (extended_protocol): Likewise.
4332 (response_needed): Likewise.
4333 (exit_requested): Likewise.
4334 (run_once): Likewise.
4335 (report_no_resumed): Likewise.
4336 (non_stop): Likewise.
4337 (disable_packet_vCont): Likewise.
4338 (disable_packet_Tthread): Likewise.
4339 (disable_packet_qC): Likewise.
4340 (disable_packet_qfThreadInfo): Likewise.
4341 (handle_general_set): Update.
4342 (handle_detach): Update.
4343 (handle_monitor_command): Update.
4344 (handle_query): Update.
4345 (captured_main): Update.
4346 (process_serial_event): Update.
4347 * server.h (server_waiting): Change to bool.
4348 (disable_packet_vCont): Likewise.
4349 (disable_packet_Tthread): Likewise.
4350 (disable_packet_qC): Likewise.
4351 (disable_packet_qfThreadInfo): Likewise.
4352 (run_once): Likewise.
4353 (non_stop): Likewise.
4354 * target.c (target_stop_and_wait): Update.
4355
4356 2019-10-02 Tom Tromey <tromey@adacore.com>
4357
4358 * Makefile.in (SFILES): Add common-inferior.c.
4359 (OBS): Add common-inferior.o.
4360 * server.c (startup_with_shell): Don't define.
4361
4362 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4363
4364 * linux-low.c (linux_low_read_btrace): Update for change to
4365 std::vector.
4366
4367 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4368
4369 * debug.c (debug_threads): Remove comment in favor of the header.
4370 * debug.h (using_threads): Add declaration.
4371 (debug_threads): Add comment.
4372 * linux-aarch64-low.c: Include debug.h and remove declaration of
4373 debug_threads.
4374 * nto-low.c: Likewise.
4375 * remote-utils.c: Likewise.
4376 * thread-db.c: Likewise.
4377
4378 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4379
4380 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4381 and powerpc-cell64l-ipa.o.
4382 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4383 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4384 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4385 (spu*-*-*): Remove.
4386
4387 * spu-low.c: Remove file.
4388
4389 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4390 (parse_spufs_run): Remove.
4391 (ppc_get_pc): Remove Cell/B.E. support.
4392 (ppc_set_pc): Likewise.
4393 (ppc_breakpoint_at): Likewise.
4394 (ppc_arch_setup): Likewise.
4395 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4396 tdesc_powerpc_cell32l.
4397 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4398 or init_registers_powerpc_cell32l.
4399 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4400 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4401 or init_registers_powerpc_cell32l.
4402 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4403 (init_registers_powerpc_cell32l): Remove prototype.
4404 (init_registers_powerpc_cell64l): Likewise.
4405
4406 * target.h (struct target_ops): Remove qxfer_spu member.
4407 * server.c (handle_qxfer_spu): Remove.
4408 (qxfer_packets): Remove entry for "spu".
4409 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4410 * linux-low.c (SPUFS_MAGIC): Remove.
4411 (spu_enumerate_spu_ids): Remove.
4412 (linux_qxfer_spu): Remove.
4413 (linux_target_ops): Remove qxfer_spu member.
4414 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4415 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4416 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4417
4418 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4419
4420 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4421 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4422 * config.in: Regenerate.
4423 * configure: Regenerate.
4424
4425 2019-08-15 Tom Tromey <tromey@adacore.com>
4426
4427 * target.c (target_write_memory): Use gdb::byte_vector.
4428
4429 2019-08-15 Tom Tromey <tromey@adacore.com>
4430
4431 * tracepoint.c (write_inferior_data_pointer)
4432 (write_inferior_integer, write_inferior_int8)
4433 (write_inferior_uinteger, m_tracepoint_action_download)
4434 (r_tracepoint_action_download, x_tracepoint_action_download)
4435 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4436 (download_agent_expr, download_tracepoint_1)
4437 (download_trace_state_variables, upload_fast_traceframes): Update.
4438 * server.c (gdb_write_memory): Update.
4439 * remote-utils.c (relocate_instruction): Update.
4440 * proc-service.c (ps_pdwrite): Update.
4441 * mem-break.c (remove_memory_breakpoint)
4442 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4443 (uninsert_fast_tracepoint_jumps_at)
4444 (reinsert_fast_tracepoint_jumps_at): Update.
4445 * linux-x86-low.c (append_insns)
4446 (i386_install_fast_tracepoint_jump_pad)
4447 (amd64_write_goto_address, i386_write_goto_address): Update.
4448 * linux-s390-low.c (append_insns, s390_write_goto_address):
4449 Update.
4450 * linux-ppc-low.c (ppc_relocate_instruction)
4451 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4452 (ppc_write_goto_address): Update.
4453 * linux-aarch64-low.c (append_insns): Update.
4454 * target.h (struct target_ops): Update.
4455 (write_inferior_memory): Don't declare.
4456 * target.c (target_write_memory): Rename from
4457 write_inferior_memory. Remove old target_write_memory.
4458
4459 2019-08-15 Tom Tromey <tromey@adacore.com>
4460
4461 * target.c (write_inferior_memory): Use std::vector.
4462
4463 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4464
4465 PR build/24886
4466 * configure.ac: Drop enable-libmcheck support.
4467 * configure, config.in: Rebuild.
4468 * acinclude.m4: Don't include it.
4469
4470 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4471
4472 * configure.srv: Remove Arm xml files.
4473
4474 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4475
4476 * configure.srv: Add new files. Remove xml generated files.
4477 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4478 registers.
4479 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4480 * linux-aarch32-tdesc.c: New file.
4481 * linux-aarch32-tdesc.h: New file.
4482 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4483 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4484 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4485 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4486 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4487 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4488 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4489 (arm_read_description): Call arm_linux_read_description.
4490 (initialize_low_arch): Don't init registers.
4491 * linux-arm-tdesc.c: New file.
4492 * linux-arm-tdesc.h: New file.
4493
4494 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4495
4496 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4497 Move counter inside for.
4498 (arm_read_description): Check ptrace earlier.
4499 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4500
4501 2019-07-09 Tom Tromey <tom@tromey.com>
4502
4503 * configure: Rebuild.
4504 * configure.ac: Change common to gdbsupport.
4505 * acinclude.m4: Change common to gdbsupport.
4506 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4507 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4508 common to gdbsupport.
4509 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4510 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4511 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4512 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4513 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4514 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4515 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4516 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4517 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4518 common to gdbsupport.
4519
4520 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4521
4522 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4523 defines.
4524 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4525
4526 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4527
4528 * configure.srv: Remove legacy xml.
4529 * linux-aarch64-low.c (initialize_low_arch): Remove
4530 initialize_low_tdesc call.
4531 * linux-aarch64-tdesc-selftest.c: Remove file.
4532 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4533 * linux-x86-low.c (initialize_low_arch): Remove
4534 initialize_low_tdesc call.
4535 * linux-x86-tdesc-selftest.c: Remove file.
4536 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4537
4538 2019-06-20 Tom de Vries <tdevries@suse.de>
4539
4540 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4541 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4542
4543 2019-06-19 Tom de Vries <tdevries@suse.de>
4544
4545 * debug.h (debug_write): Change return type to ssize_t.
4546 * debug.c (debug_write): Same.
4547
4548 2019-06-14 Tom Tromey <tom@tromey.com>
4549
4550 * configure.ac: Use new path to gnulib.
4551 * configure: Rebuild.
4552 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4553 to gnulib.
4554
4555 2019-06-11 Tom Tromey <tom@tromey.com>
4556
4557 * Makefile.in (SFILES): Add alloc.c.
4558 (OBS): Add alloc.o.
4559 (IPA_OBJS): Add alloc-ipa.o.
4560 (alloc-ipa.o): New target.
4561 (%.o: ../%.c): New pattern rule.
4562
4563 2019-06-10 Tom Tromey <tromey@adacore.com>
4564
4565 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4566 end warning with a newline.
4567 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4568 newline.
4569 * thread-db.c (attach_thread): Don't end warning with a newline.
4570 (thread_db_notice_clone): Likewise.
4571 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4572 newline.
4573 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4574 end warning with a newline.
4575
4576 2019-06-04 Pedro Alves <palves@redhat.com>
4577
4578 * server.c (captured_main): Use make_unique_xstrdup.
4579
4580 2019-06-02 Tom Tromey <tom@tromey.com>
4581
4582 * gdbreplay.c (fromhex): Remove.
4583 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4584
4585 2019-05-29 Tom Tromey <tromey@adacore.com>
4586
4587 * configure: Rebuild.
4588
4589 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4590
4591 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4592 sign extension code on 32-bit builds.
4593
4594 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4595
4596 * remote-utils.c:
4597 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4598
4599 2019-04-19 Tom Tromey <tom@tromey.com>
4600
4601 * server.c (struct vstop_notif): Derive from notif_event.
4602 <base>: Remove.
4603 (queue_stop_reply): Update.
4604 (remove_all_on_match_ptid): Change type. Rewrite.
4605 (discard_queued_stop_replies): Rewrite.
4606 (in_queued_stop_replies_ptid): Change type.
4607 (in_queued_stop_replies): Rewrite.
4608 (notif_stop): Update.
4609 (queue_stop_reply_callback): Update.
4610 (captured_main): Don't call initialize_notif.
4611 (push_stop_notification): Update.
4612 * notif.c (notif_write_event, handle_notif_ack)
4613 (notif_event_enque, notif_push): Update.
4614 (notif_event_xfree, initialize_notif): Remove.
4615 * notif.h (struct notif_event): Include <list>, not
4616 "common/queue.h".
4617 (struct notif_server) <queue>: Now a std::list.
4618 (notif_event_p): Remove typedef.
4619 (initialize_notif): Don't declare.
4620 (struct notif_event): Add virtual destructor.
4621
4622 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4623
4624 * ax.c (ax_vdebug): Call debug_printf.
4625 * debug.c (debug_write): New function.
4626 * debug.h (debug_write): New declaration.
4627 * linux-low.c (sigchld_handler): Call debug_write.
4628
4629 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4630
4631 * debug.c (debug_set_output): New function.
4632 (debug_vprintf): Send output to debug_file.
4633 (debug_flush): Likewise.
4634 * debug.h (debug_set_output): New declaration.
4635 * server.c (handle_monitor_command): Add debug-file option.
4636 (captured_main): Likewise.
4637
4638 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4639
4640 * debug.c (remote_debug): Add definition.
4641 * debug.h (remote_debug): Add declaration.
4642 * hostio.c (remote_debug): Remove declaration.
4643 * remote-utils.c (struct ui_file): Likewise.
4644 (remote_debug): Likewise.
4645 * remote-utils.h (remote_debug): Likewise,
4646 * server.c (remote_debug): Remove definition.
4647
4648 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4649
4650 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4651 when using a 64-bit gdbserver.
4652
4653 2019-04-09 Tom Tromey <tromey@adacore.com>
4654
4655 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4656
4657 2019-04-08 Tom Tromey <tom@tromey.com>
4658
4659 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4660 throw.
4661 (linux_resume_one_lwp): Likewise.
4662
4663 2019-04-08 Tom Tromey <tom@tromey.com>
4664
4665 * gdbreplay.c: Update.
4666 * linux-low.c: Update.
4667 * server.c: Update.
4668
4669 2019-04-08 Tom Tromey <tom@tromey.com>
4670
4671 * server.c: Use C++ exception handling.
4672 * linux-low.c: Use C++ exception handling.
4673 * gdbreplay.c: Use C++ exception handling.
4674
4675 2019-04-08 Tom Tromey <tom@tromey.com>
4676
4677 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4678 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4679 (captured_main, main): Update.
4680 * gdbreplay.c (main): Update.
4681
4682 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4683
4684 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4685 value in argument pointer, return 1 if the entry is found and 0
4686 otherwise. Move comment.
4687 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4688 * linux-low.h (linux_get_auxv): Declare.
4689 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4690
4691 2019-04-05 Tom Tromey <tromey@adacore.com>
4692
4693 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4694 variables.
4695
4696 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4697
4698 * linux-low.c (AT_HWCAP2): Add define if not already included.
4699
4700 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4701
4702 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4703 (aarch64_arch_setup): Call linux_get_hwcap.
4704 * linux-arm-low.c (arm_get_hwcap): Remove function.
4705 (arm_read_description): Call linux_get_hwcap.
4706 * linux-low.c (linux_get_auxv): New function.
4707 (linux_get_hwcap): Likewise.
4708 (linux_get_hwcap2): Likewise.
4709 * linux-low.h (linux_get_hwcap): New declaration.
4710 (linux_get_hwcap2): Likewise.
4711 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4712 (ppc_arch_setup): Call linux_get_hwcap.
4713 * linux-s390-low.c (s390_get_hwcap): Remove function.
4714 (s390_arch_setup): Call linux_get_hwcap.
4715
4716 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4717 Jiong Wang <jiong.wang@arm.com>
4718
4719 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4720 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4721 to fail.
4722 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4723
4724 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4725 Jiong Wang <jiong.wang@arm.com>
4726
4727 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4728 (aarch64_get_hwcap): New function.
4729 (aarch64_arch_setup): Read APIA hwcap.
4730
4731 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4732 Jiong Wang <jiong.wang@arm.com>
4733
4734 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4735 (initialize_low_tracepoint): Likewise.
4736 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4737 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4738 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4739 (aarch64_linux_read_description): Likewise.
4740 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4741
4742 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4743
4744 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4745 i386_create_target_description for 'segments' parameter.
4746 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4747 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4748 * win32-i386-low.c (i386_arch_setup): Likewise.
4749
4750 2019-03-12 Tom Tromey <tromey@adacore.com>
4751
4752 * linux-low.c (iterate_over_lwps): Update.
4753
4754 2019-03-06 Tom Tromey <tom@tromey.com>
4755
4756 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4757 (captured_main): Use SCOPE_EXIT.
4758
4759 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4760
4761 * configure.srv: Use '$enable_unittest' instead of '$development'
4762 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4763 case.
4764
4765 2019-02-27 Tom Tromey <tromey@adacore.com>
4766
4767 * gdbreplay.c (logchar): Handle \r\n.
4768
4769 2019-02-07 Alan Hayward <alan.hayward@arm.com>
4770
4771 * linux-low.c (linux_attach): Add process before lwp.
4772 * server.c (attach_inferior): Check if already attached.
4773
4774 2019-02-07 Tom Tromey <tom@tromey.com>
4775
4776 * x86-tdesc.h: Rename include guard.
4777 * x86-low.h: Add include guard.
4778 * wincecompat.h: Rename include guard.
4779 * win32-low.h: Add include guard.
4780 * utils.h: Rename include guard.
4781 * tracepoint.h: Rename include guard.
4782 * tdesc.h: Rename include guard.
4783 * target.h: Rename include guard.
4784 * server.h: Rename include guard.
4785 * remote-utils.h: Rename include guard.
4786 * regcache.h: Rename include guard.
4787 * nto-low.h: Rename include guard.
4788 * notif.h: Add include guard.
4789 * mem-break.h: Rename include guard.
4790 * lynx-low.h: Add include guard.
4791 * linux-x86-tdesc.h: Add include guard.
4792 * linux-s390-tdesc.h: Add include guard.
4793 * linux-ppc-tdesc-init.h: Add include guard.
4794 * linux-low.h: Add include guard.
4795 * linux-aarch64-tdesc.h: Add include guard.
4796 * linux-aarch32-low.h: Add include guard.
4797 * inferiors.h: Rename include guard.
4798 * i387-fp.h: Rename include guard.
4799 * hostio.h: Rename include guard.
4800 * gdbthread.h: Rename include guard.
4801 * gdb_proc_service.h: Rename include guard.
4802 * event-loop.h: Rename include guard.
4803 * dll.h: Rename include guard.
4804 * debug.h: Rename include guard.
4805 * ax.h: Rename include guard.
4806
4807 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4808
4809 PR gdb/23985
4810 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4811 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4812
4813 2019-01-25 Tom Tromey <tom@tromey.com>
4814
4815 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4816
4817 2019-01-25 Tom Tromey <tom@tromey.com>
4818
4819 * win32-low.c: Fix common/ includes.
4820 * win32-i386-low.c: Fix common/ includes.
4821 * tracepoint.c: Fix common/ includes.
4822 * thread-db.c: Fix common/ includes.
4823 * target.h: Fix common/ includes.
4824 * symbol.c: Fix common/ includes.
4825 * spu-low.c: Fix common/ includes.
4826 * server.h: Fix common/ includes.
4827 * server.c: Fix common/ includes.
4828 * remote-utils.c: Fix common/ includes.
4829 * regcache.h: Fix common/ includes.
4830 * regcache.c: Fix common/ includes.
4831 * nto-x86-low.c: Fix common/ includes.
4832 * notif.h: Fix common/ includes.
4833 * mem-break.h: Fix common/ includes.
4834 * lynx-low.c: Fix common/ includes.
4835 * lynx-i386-low.c: Fix common/ includes.
4836 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4837 * linux-x86-low.c: Fix common/ includes.
4838 * linux-low.c: Fix common/ includes.
4839 * inferiors.h: Fix common/ includes.
4840 * i387-fp.c: Fix common/ includes.
4841 * hostio.c: Fix common/ includes.
4842 * hostio-errno.c: Fix common/ includes.
4843 * gdbthread.h: Fix common/ includes.
4844 * gdbreplay.c: Fix common/ includes.
4845 * fork-child.c: Fix common/ includes.
4846 * event-loop.c: Fix common/ includes.
4847 * ax.c:
4848 (enum gdb_agent_op): Fix common/ includes.
4849
4850 2019-01-21 Tom Tromey <tom@tromey.com>
4851
4852 * tracepoint.c: Fix includes.
4853 * remote-utils.c: Fix includes.
4854 * linux-x86-low.c: Fix includes.
4855
4856 2019-01-01 Joel Brobecker <brobecker@adacore.com>
4857
4858 * gdbreplay.c (gdbreplay_version): Update copyright year in
4859 version message.
4860 * server.c (gdbserver_version): Likewise.
4861
4862 2018-12-05 Alan Hayward <alan.hayward@arm.com>
4863
4864 * linux-low.c (add_lwp): Switch ordering.
4865
4866 2018-11-29 Tom Tromey <tom@tromey.com>
4867
4868 * win32-low.c (win32_join): Take pid, not process.
4869 * target.h (struct target_ops) <join>: Change argument type.
4870 (join_inferior): Change argument name.
4871 * spu-low.c (spu_join): Take pid, not process.
4872 * server.c (handle_detach): Preserve pid before destroying
4873 process.
4874 * lynx-low.c (lynx_join): Take pid, not process.
4875 * linux-low.c (linux_join): Take pid, not process.
4876
4877 2018-11-23 Alan Hayward <alan.hayward@arm.com>
4878
4879 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4880 (aarch64_cannot_fetch_register): Likewise.
4881 (struct linux_target_ops): Update references.
4882
4883 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4884
4885 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4886
4887 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4888
4889 * configure.srv (ipa_ppc_linux_regobj): Add
4890 powerpc-isa207-htm-vsx32l-ipa.o and
4891 powerpc-isa207-htm-vsx64l-ipa.o.
4892 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4893 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4894 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4895 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4896 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4897 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4898 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4899 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4900 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4901 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4902 (init_registers_powerpc_isa207_htm_vsx32l)
4903 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4904 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4905 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4906 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4907 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4908 (ppc_store_tm_ctarregset): New functions.
4909 (ppc_regsets): Add entries for HTM regsets.
4910 (ppc_arch_setup): Set htm in features struct when needed. Set
4911 sizes for the HTM regsets.
4912 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4913 (initialize_low_arch): Call
4914 init_registers_powerpc_isa207_htm_vsx32l and
4915 init_registers_powerpc_isa207_htm_vsx64l.
4916 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4917 PPC_TDESC_ISA207_HTM_VSX.
4918 (initialize_low_tracepoint): Call
4919 init_registers_powerpc_isa207_htm_vsx32l and
4920 init_registers_powerpc_isa207_htm_vsx64l.
4921
4922 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4923
4924 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4925 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4926 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4927 (ppc_store_pmuregset): New functions.
4928 (ppc_regsets): Add entries for ebb and pmu regsets.
4929 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4930 pmu regsets are available. Set sizes for these regsets.
4931
4932 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4933
4934 * configure.srv (ipa_ppc_linux_regobj): Add
4935 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4936 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4937 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4938 rs6000/powerpc-isa207-vsx32l.xml, and
4939 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
4940 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4941 <PPC_TDESC_ISA207_VSX>: New enum value.
4942 (init_registers_powerpc_isa207_vsx32l): Declare.
4943 (init_registers_powerpc_isa207_vsx64l): Declare.
4944 * linux-ppc-low.c (ppc_fill_tarregset): New function.
4945 (ppc_store_tarregset): New function.
4946 (ppc_regsets): Add entry for the TAR regset.
4947 (ppc_arch_setup): Set isa207 in features struct when needed. Set
4948 size for the TAR regsets.
4949 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
4950 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
4951 and init_registers_powerpc_isa207_vsx64l.
4952 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
4953 (initialize_low_tracepoint): Call
4954 init_registers_powerpc_isa207_vsx32l and
4955 init_registers_powerpc_isa207_vsx64l.
4956
4957 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4958 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4959
4960 * configure.srv (ipa_ppc_linux_regobj): Add
4961 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
4962 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
4963 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
4964 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
4965 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
4966 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
4967 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
4968 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4969 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
4970 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
4971 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
4972 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
4973 (ppc_hwcap): Add comment.
4974 (ppc_hwcap2): New global.
4975 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
4976 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
4977 (ppc_regsets): Add entries for the DSCR and PPR regsets.
4978 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
4979 when needed. Set sizes for the the DSCR and PPR regsets.
4980 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
4981 (initialize_low_arch): Call
4982 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4983 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4984 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4985 PPC_TDESC_ISA205_PPR_DSCR_VSX.
4986 (initialize_low_tracepoint): Call
4987 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4988 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4989
4990 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4991
4992 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
4993
4994 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
4995 Simon Marchi <simark@simark.ca>
4996
4997 * acinclude.m4: Include "../selftest.m4".
4998 * configure: Regenerate.
4999 * configure.ac: Use "GDB_AC_SELFTEST".
5000 * configure.srv: Use "$enable_unittests" instead of
5001 "$development" when checking whether unit tests have been
5002 enabled.
5003 * server.c (captured_main): Update message informing that
5004 selftests have been disabled.
5005
5006 2018-10-04 Tom Tromey <tom@tromey.com>
5007
5008 * configure: Rebuild.
5009
5010 2018-10-04 Tom Tromey <tom@tromey.com>
5011
5012 * server.c (handle_status): Rename inner "thread".
5013 (process_serial_event): Declare "res" in 'm' case.
5014 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5015 (iterate_over_lwps): Rename inner "thread".
5016 (linux_qxfer_libraries_svr4): Rename inner "len".
5017 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5018
5019 2018-10-01 Gary Benson <gbenson@redhat.com>
5020
5021 * gdb_proc_service.h: Moved common code to
5022 common/gdb_proc_service.h.
5023
5024 2018-10-01 Gary Benson <gbenson@redhat.com>
5025
5026 * gdb_proc_service.h: Synchronize comments and whitespace with
5027 GDB's version of this file.
5028
5029 2018-09-25 Tom Tromey <tom@tromey.com>
5030
5031 * configure: Rebuild.
5032 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5033
5034 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5035
5036 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5037 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5038 ($(IPA_LIB)): Sort IPA_OBJS.
5039
5040 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5041
5042 * Makefile.in: Remove references to $(ADD_DEPS).
5043
5044 2018-09-16 Tom Tromey <tom@tromey.com>
5045
5046 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5047 variables.
5048 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5049 variables.
5050
5051 2018-09-05 Tom Tromey <tom@tromey.com>
5052
5053 * configure: Rebuild.
5054
5055 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5056
5057 PR build/23399
5058 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5059
5060 2018-08-27 Tom Tromey <tom@tromey.com>
5061
5062 PR build/23087:
5063 * configure: Rebuild.
5064
5065 2018-08-27 Tom Tromey <tom@tromey.com>
5066
5067 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5068 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5069 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5070 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5071 (s390x_emit_stack_adjust): Add casts to unsigned char.
5072
5073 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5074
5075 PR gdb/23374
5076 PR gdb/23375
5077 * server.h (struct client_state) <disable_randomization>:
5078 Initialize to 1.
5079
5080 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5081
5082 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5083 variable.
5084 (mips_supply_ptrace_register): Likewise.
5085
5086 2018-07-22 Tom Tromey <tom@tromey.com>
5087
5088 * configure: Rebuild.
5089
5090 2018-07-22 Tom Tromey <tom@tromey.com>
5091
5092 * win32-low.c (win32_create_inferior): Remove unused variables.
5093 * gdbreplay.c (remote_open): Remove unused variable.
5094 * remote-utils.c (remote_prepare): Remove unused variable.
5095 * x86-tdesc.h (X86_TDESC_H): Define.
5096 (amd64_expedite_regs): Define conditionally.
5097 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5098 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5099 * remote-utils.c (readchar): Remove unused variable.
5100
5101 2018-07-13 Pedro Alves <palves@redhat.com>
5102
5103 * linux-low.c (linux_kill): Change parameter to process_info
5104 pointer instead of pid. Adjust.
5105 * lynx-low.c (lynx_kill): Likewise.
5106 * nto-low.c (nto_kill): Likewise.
5107 * spu-low.c (spu_kill): Likewise.
5108 * win32-low.c (win32_kill): Likewise.
5109 * server.c (handle_v_kill, kill_inferior_callback)
5110 (detach_or_kill_for_exit): Adjust.
5111 * target.c (kill_inferior): Change parameter to process_info
5112 pointer instead of pid. Adjust.
5113 * target.h (struct target_ops) <kill>: Change parameter to
5114 process_info pointer instead of pid. Adjust all implementations
5115 and callers.
5116 (kill_inferior): Likewise.
5117
5118 2018-07-13 Pedro Alves <palves@redhat.com>
5119
5120 * linux-low.c (linux_detach, linux_join): Change parameter to
5121 process_info pointer instead of pid. Adjust.
5122 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5123 * nto-low.c (nto_detach): Likewise.
5124 * spu-low.c (spu_detach, spu_join): Likewise.
5125 * win32-low.c (win32_detach, win32_join): Likewise.
5126 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5127 * target.h (struct target_ops) <detach, join>: Change parameter to
5128 process_info pointer instead of pid. Adjust all implementations
5129 and callers.
5130 (detach_inferior, join_inferior): Rename 'pid' parameter to
5131 'proc'.
5132
5133 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5134 Jan Kratochvil <jan.kratochvil@redhat.com>
5135 Paul Fertser <fercerpav@gmail.com>
5136 Tsutomu Seki <sekiriki@gmail.com>
5137
5138 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5139 (OBS): Add 'common/netstuff.o'.
5140 (GDBREPLAY_OBS): Likewise.
5141 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5142 (remote_open): Implement support for IPv6
5143 connections.
5144 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5145 and 'wspiapi.h'.
5146 (handle_accept_event): Accept connections from IPv6 sources.
5147 (remote_prepare): Handle IPv6-style hostnames; implement
5148 support for IPv6 connections.
5149 (remote_open): Implement support for printing connections from
5150 IPv6 sources.
5151
5152 2018-07-11 Pedro Alves <palves@redhat.com>
5153
5154 PR gdb/23377
5155 * mem-break.c (any_persistent_commands): Add process_info
5156 parameter and use it instead of relying on the current process.
5157 Change return type to bool.
5158 * mem-break.h (any_persistent_commands): Add process_info
5159 parameter and change return type to bool.
5160 * server.c (handle_detach): Remove require_running_or_return call.
5161 Look up the process_info for the process we're about to detach.
5162 If not found, return back error to GDB. Adjust
5163 any_persistent_commands call to pass down a process pointer.
5164
5165 2018-07-11 Pedro Alves <palves@redhat.com>
5166
5167 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5168 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5169 instead of collect_register_by_name.
5170 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5171 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5172
5173 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5174 Pedro Alves <palves@redhat.com>
5175
5176 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5177
5178 2018-07-03 Tom Tromey <tom@tromey.com>
5179
5180 * linux-low.c: Update.
5181 * lynx-low.c: Update.
5182 * mem-break.c: Update.
5183 * nto-low.c: Update.
5184 * remote-utils.c: Update.
5185 * server.c: Update.
5186 * spu-low.c: Update.
5187 * target.c: Update.
5188 * win32-low.c: Update.
5189
5190 2018-07-03 Tom Tromey <tom@tromey.com>
5191
5192 * server.c: Update.
5193
5194 2018-07-03 Tom Tromey <tom@tromey.com>
5195
5196 * linux-low.c: Update.
5197
5198 2018-07-03 Tom Tromey <tom@tromey.com>
5199
5200 * target.c: Update.
5201
5202 2018-07-03 Tom Tromey <tom@tromey.com>
5203
5204 * linux-low.c: Update.
5205 * linux-mips-low.c: Update.
5206 * lynx-low.c: Update.
5207 * nto-low.c: Update.
5208 * remote-utils.c: Update.
5209 * server.c: Update.
5210 * spu-low.c: Update.
5211 * target.c: Update.
5212 * thread-db.c: Update.
5213
5214 2018-07-03 Tom Tromey <tom@tromey.com>
5215
5216 * linux-low.c: Update.
5217 * linux-mips-low.c: Update.
5218 * lynx-low.c: Update.
5219 * mem-break.c: Update.
5220 * nto-low.c: Update.
5221 * remote-utils.c: Update.
5222 * server.c: Update.
5223 * spu-low.c: Update.
5224 * target.c: Update.
5225 * tracepoint.c: Update.
5226
5227 2018-07-03 Tom Tromey <tom@tromey.com>
5228
5229 * linux-low.c: Update.
5230 * linux-ppc-low.c: Update.
5231 * linux-x86-low.c: Update.
5232 * proc-service.c: Update.
5233 * server.c: Update.
5234 * spu-low.c: Update.
5235 * thread-db.c: Update.
5236 * win32-low.c: Update.
5237
5238 2018-07-03 Tom Tromey <tom@tromey.com>
5239
5240 * linux-low.c: Update.
5241 * lynx-low.c: Update.
5242 * nto-low.c: Update.
5243 * remote-utils.c: Update.
5244 * spu-low.c: Update.
5245 * thread-db.c: Update.
5246 * win32-low.c: Update.
5247
5248 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5249
5250 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5251 parameter in call to 'amd64_create_target_description'.
5252
5253 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5254
5255 * x86-tdesc.h: Remove executable permission flag.
5256
5257 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5258
5259 * configure.ac: Remove AC_PREREQ, add missing quoting.
5260 * configure: Re-generate.
5261 * config.in: Re-generate.
5262 * aclocal.m4: Re-generate.
5263
5264 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5265
5266 * tracepoint.h (current_traceframe): Remove declaration.
5267
5268 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5269
5270 * linux-aarch64-low.c (is_sve_tdesc): New function.
5271 (aarch64_sve_regs_copy_to_regcache): Likewise.
5272 (aarch64_sve_regs_copy_from_regcache): Likewise.
5273 (aarch64_regs_info): Add SVE checks.
5274 (initialize_low_arch): Initialize SVE.
5275
5276 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5277
5278 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5279
5280 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5281
5282 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5283 (initialize_low_tracepoint): Likewise
5284 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5285 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5286 param.
5287 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5288 checks.
5289 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5290
5291 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5292
5293 * server.h (PBUFSIZ): Increase size
5294
5295 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5296
5297 * regcache.c (regcache::raw_compare): New function.
5298 * regcache.h (regcache::raw_compare): New declaration.
5299
5300 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5301
5302 * regcache.c (new_register_cache): Use new.
5303 (free_register_cache): Use delete.
5304 (register_data): Use const.
5305 (supply_register): Move body inside regcache.
5306 (regcache::raw_supply): New override function.
5307 (collect_register): Move body inside regcache.
5308 (regcache::raw_collect): New override function.
5309 (regcache::get_register_status): New override function.
5310 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5311
5312 2018-06-09 Tom Tromey <tom@tromey.com>
5313
5314 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5315 declare queue.
5316 (event_queue): Use std::queue.
5317 (gdb_event_xfree): Remove.
5318 (initialize_event_loop, process_event, wait_for_event): Update.
5319
5320 2018-06-08 Stan Cox <scox@redhat.com>
5321
5322 * win32-low.c (win32_create_inferior): last_ptid and last_status
5323 moved to client_state.
5324
5325 2018-06-08 Pedro Alves <palves@redhat.com>
5326
5327 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5328 common/common-exceptions.o, common/common-utils.o,
5329 common/errors.o, common/print-utils.o and utils.o.
5330 * gdbreplay.c: Include "common-defs.h" instead of the two
5331 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5332 string.h or alloca.h.
5333 (perror_with_name): Delete.
5334 (remote_open): Use xstrdup instead of strdup.
5335 (main): Rename to ...
5336 (captured_main): ... this.
5337 (main): New.
5338
5339 2018-06-08 Tom Tromey <tom@tromey.com>
5340
5341 * linux-low.c (linux_low_read_btrace): Update.
5342
5343 2018-06-04 Stan Cox <scox@redhat.com>
5344
5345 * server.h (struct client_state): New.
5346 * server.c (cont_thread, general_thread, multi_process)
5347 (report_fork_events, report_vfork_events, report_exec_events)
5348 (report_thread_events, swbreak_feature, hwbreak_feature)
5349 (vCont_supported, disable_randomization, pass_signals)
5350 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5351 Moved to client_state.
5352 * remote-utils.c (remote_debug, noack_mode)
5353 (transport_is_reliable): Moved to client_state.
5354 * tracepoint.c (current_traceframe): Moved to client_state.
5355
5356 Update all callers.
5357 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5358 linux-low.c, remote-utils.h, target.c: Use client_state.
5359
5360 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5361
5362 * configure.srv: Add new c/h file.
5363
5364 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5365
5366 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5367 null VQ.
5368
5369 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5370
5371 * gdb.arch/mips-fpregset-core.exp: New test.
5372 * gdb.arch/mips-fpregset-core.c: New test source.
5373
5374 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5375
5376 PR server/23198
5377 * hostio.c (require_int): Do not report overflow for integers
5378 between 0xfffffff and 0x7fffffff.
5379
5380 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5381
5382 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5383 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5384 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5385 functions.
5386 (the_low_target): Wire them.
5387
5388 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5389
5390 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5391 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5392 mode. Call collect_register_by_name with vscr using
5393 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5394 (ppc_store_vrregset): Add and set vscr_offset variable as in
5395 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5396 vscr_offset.
5397
5398 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5399
5400 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5401 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5402 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5403
5404 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5405
5406 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5407 (ppc_store_vsxregset): Likewise.
5408 (ppc_fill_vrregset): Likewise.
5409 (ppc_store_vrregset): Likewise.
5410 (ppc_fill_evrregset): Likewise.
5411 (ppc_store_evrregset): Likewise.
5412 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5413 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5414 needed.
5415
5416 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5417
5418 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5419 wordsize of the inferior. Call ppc_linux_target_wordsize.
5420
5421 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5422
5423 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5424 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5425 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5426 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5427 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5428 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5429 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5430 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5431 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5432 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5433 (tdesc_powerpc_e500l): Remove.
5434 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5435 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5436 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5437 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5438 linux-ppc-tdesc.h.
5439 (ppc_arch_setup): Remove target description matching code. Fill a
5440 ppc_linux_features struct and call ppc_linux_match_description
5441 with it.
5442
5443 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5444
5445 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5446 width of the requested register exceeds the width of the
5447 `ptrace' data type.
5448 (mips_cannot_store_register): Likewise.
5449
5450 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5451
5452 * linux-mips-low.c (mips_fetch_register): New function. Update
5453 preceding comment.
5454 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5455 (the_low_target): Wire `mips_fetch_register'.
5456
5457 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5458
5459 * lynx-i386-low.c (LYNXOS_178): New macro.
5460 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5461 the layout on LynxOS-178.
5462 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5463 handle floating point registers that are not supported by
5464 LynxOS-178.
5465
5466 2018-05-10 Tom Tromey <tom@tromey.com>
5467
5468 * configure: Rebuild.
5469
5470 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5471
5472 PR server/23158:
5473 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5474 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5475 Use it to set the expedite_regs field in the given tdesc.
5476 * x86-tdesc.h: New file.
5477 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5478 Adjust following the addition of the new expedite_regs parameter
5479 to init_target_desc.
5480 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5481 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5482 (i386_linux_read_description, amd64_linux_read_description):
5483 Adjust following the addition of the new expedite_regs parameter
5484 to init_target_desc.
5485 * lynx-i386-low.c: #include "x86-tdesc.h".
5486 (lynx_i386_arch_setup): Adjust following the addition of the new
5487 expedite_regs parameter to init_target_desc.
5488 * nto-x86-low.c: #include "x86-tdesc.h".
5489 (nto_x86_arch_setup): Adjust following the addition of the new
5490 expedite_regs parameter to init_target_desc.
5491 * win32-i386-low.c: #include "x86-tdesc.h".
5492 (i386_arch_setup): Adjust following the addition of the new
5493 expedite_regs parameter to init_target_desc.
5494
5495 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5496
5497 PR server/23158:
5498 * win32-low.c (win32_create_inferior): Add call to my_wait
5499 setting last_status global.
5500
5501 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5502
5503 PR server/23158:
5504 * win32-low.c (create_process): Only call gdb_tilde_expand if
5505 inferior_cwd is not NULL.
5506
5507 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5508
5509 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5510 registers to the cache if their values have changed.
5511 (i387_xsave_to_cache): Provide default values for x87 control
5512 registers when these features are available, but disabled.
5513 * regcache.c (supply_register_by_name_zeroed): New function.
5514 * regcache.h (supply_register_by_name_zeroed): Declare new
5515 function.
5516
5517 2018-05-07 Tom Tromey <tom@tromey.com>
5518
5519 * configure: Rebuild.
5520
5521 2018-05-04 Tom Tromey <tom@tromey.com>
5522
5523 * configure: Rebuild.
5524
5525 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5526 Pedro Alves <palves@redhat.com>
5527
5528 * linux-aarch64-low.c (aarch64_stopped_data_address):
5529 Likewise.
5530
5531 2018-04-27 Tom Tromey <tom@tromey.com>
5532
5533 * configure: Rebuild.
5534
5535 2018-04-23 Tom Tromey <tom@tromey.com>
5536
5537 * configure: Rebuild.
5538
5539 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5540
5541 * Makefile.in (depcomp): Add "..".
5542 (all_deps_files): New and use it.
5543
5544 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5545
5546 * configure.srv (aarch64*-*-linux*): Don't include xml.
5547 (i[34567]86-*-cygwin*): Likewise.
5548 (i[34567]86-*-linux*): Likewise.
5549 (i[34567]86-*-lynxos*): Likewise.
5550 (i[34567]86-*-mingw32ce*): Likewise.
5551 (i[34567]86-*-mingw*): Likewise.
5552 (i[34567]86-*-nto*): Likewise.
5553 (tic6x-*-uclinux): Likewise.
5554 (x86_64-*-linux*): Likewise.
5555 (x86_64-*-mingw*): Likewise.
5556 (x86_64-*-cygwin*): Likewise.
5557
5558 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5559
5560 * tdesc.c: Remove xml parameter.
5561
5562 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5563
5564 * server.c (get_features_xml): Remove cast.
5565 * tdesc.c (void target_desc::accept): Fill in function.
5566 (tdesc_get_features_xml): Remove old xml creation.
5567 (print_xml_feature::visit_pre): Add xml vistor.
5568 * tdesc.h (struct target_desc): Make xmltarget mutable.
5569 (tdesc_get_features_xml): Remove declaration.
5570
5571 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5572
5573 * tdesc.c (tdesc_architecture_name): Add new function.
5574 (tdesc_osabi_name): Likewise.
5575 (tdesc_get_features_xml): Use new functions.
5576
5577 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5578
5579 * tdesc.c (tdesc_create_flags): Remove.
5580 (tdesc_add_flag): Likewise.
5581 (tdesc_named_type): Likewise.
5582 (tdesc_create_union): Likewise.
5583 (tdesc_create_struct): Likewise.
5584 (tdesc_create_vector): Likewise.
5585 (tdesc_add_bitfield): Likewise.
5586 (tdesc_add_field): Likewise.
5587 (tdesc_set_struct_size): Likewise.
5588
5589 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5590
5591 * tdesc.c (~target_desc): Remove implictly deleted items.
5592 (init_target_desc): Iterate all features.
5593 (tdesc_get_features_xml): Use vector.
5594 (tdesc_create_feature): Create feature.
5595 * tdesc.h (tdesc_feature) Remove
5596 (target_desc): Add features.
5597
5598 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5599
5600 * Makefile.in: Add common/tdesc.c
5601 * tdesc.c (init_target_desc): init all reg_defs from register
5602 vector.
5603 (tdesc_create_reg): Create tdesc_reg.
5604 * tdesc.h (tdesc_feature): Add register vector.
5605
5606 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5607
5608 * tdesc.h (struct target_desc) <features>: Change type to
5609 std::vector<std::string>.
5610 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5611 changes.
5612 (tdesc_get_features_xml): Likewise.
5613 (tdesc_create_feature): Likewise.
5614
5615 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5616
5617 * regcache.c (find_register_by_number): Return a ref.
5618 (find_regno): Use references.
5619 (register_size): Likewise.
5620 (register_data): Likewise.
5621 * tdesc.c (target_desc::~target_desc): Remove free calls.
5622 (target_desc::operator==): Use std::vector compare.
5623 (init_target_desc): Use reference.
5624 (tdesc_create_reg): Use reg constructors.
5625 * tdesc.h (struct target_desc): Replace pointer with object.
5626
5627 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5628
5629 * regcache.c (find_register_by_number): Make static.
5630 (find_regno): Use find_register_by_number
5631 * regcache.h (struct reg): Remove declaration.
5632
5633 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5634
5635 * tdesc.c (target_desc::~target_desc): Move to here.
5636 (target_desc::operator==): Likewise.
5637 * tdesc.h (target_desc::~target_desc): Move from here.
5638 (target_desc::operator==): Likewise.
5639
5640 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5641
5642 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5643
5644 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5645
5646 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5647 S390_TDESC_GS.
5648 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5649 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5650 and init_registers_s390_gs_linux64.
5651
5652 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5653
5654 * linux-s390-low.c (s390_fill_gs): Remove function.
5655 (s390_fill_gsbc): Remove function.
5656 (s390_regsets): Set fill functions for the guarded storage regsets
5657 to NULL.
5658
5659 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5660
5661 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5662 the word size. Add comment.
5663 (s390_get_wordsize): New function.
5664 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5665 pswm with it. Instead, use s390_get_wordsize to determine the
5666 word size first and derive the correct tdesc from that directly.
5667
5668 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5669
5670 * Makefile.in: Include silent-rules.mk.
5671 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5672 (COMPILE): Add ECHO_CXX.
5673 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5674 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5675 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5676 (version-generated.c): Add ECHO_GEN.
5677 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5678 (IPAGENT_COMPILE): Add ECHO_CXX.
5679 (%-generated.c): Add ECHO_REGDAT.
5680
5681 2018-03-14 Tom Tromey <tom@tromey.com>
5682
5683 PR cli/14977:
5684 * ax.c (ax_printf): Special case for NULL.
5685
5686 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5687
5688 * linux-low.c (linux_qxfer_libraries_svr4): Use
5689 xml_escape_text_append.
5690
5691 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5692
5693 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5694
5695 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5696
5697 * server.c (handle_general_set): Remove unnecessary xstrdup.
5698
5699 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5700
5701 * server.c (parse_debug_format_options): Adjust to
5702 delim_string_to_char_ptr_vec changes.
5703 * thread-db.c (thread_db_load_search): Adjust to
5704 dirnames_to_char_ptr_vec changes.
5705
5706 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5707
5708 * target.h (target_enable_btrace, target_disable_btrace)
5709 (target_read_btrace, target_read_btrace_conf): Turn macro into
5710 inline function. Throw error if target method is not defined.
5711 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5712 check for btrace target method. Be prepared to handle exceptions
5713 from btrace target methods.
5714
5715 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5716
5717 * server.c (captured_main): Change order of error message printed
5718 when the current working directory cannot be found.
5719
5720 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5721
5722 * server.c: Include "filenames.h" and "pathstuff.h".
5723 (program_name): Delete variable.
5724 (program_path): New anonymous class.
5725 (get_exec_wrapper): Use "program_path" instead of
5726 "program_name".
5727 (handle_v_run): Likewise.
5728 (captured_main): Likewise.
5729 (process_serial_event): Likewise.
5730
5731 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5732
5733 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5734 (OBJS): Add "pathstuff.o".
5735 * server.c (current_directory): New global variable.
5736 (captured_main): Initialize "current_directory".
5737
5738 2018-02-26 Alan Hayward <alan.hayward@arm.com>
5739
5740 * tdesc.c: Use common/tdesc.h.
5741 * tdesc.h: Likewise.
5742
5743 2018-02-20 Alan Hayward <alan.hayward@arm.com>
5744 Simon Marchi <simon.marchi@ericsson.com>
5745
5746 * Makefile.in: Switch order of make rules.
5747
5748 2018-02-19 Alan Hayward <alan.hayward@arm.com>
5749
5750 * Makefile.in: Add common directory in build.
5751 * configure.ac: Add common reference.
5752 * configure: Regenerate.
5753
5754 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5755
5756 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5757 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5758 * spu-low.c (spu_target_ops): Likewise.
5759 * win32-low.c (win32_target_ops): Likewise.
5760 * server.c (supported_btrace_packets): Report packets unconditionally.
5761 * target.h (target_ops) <supports_btrace>: Remove.
5762 (target_supports_btrace): Remove.
5763
5764 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5765
5766 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5767 (handle_btrace_disable): Change return type to void. Use exceptions
5768 to report errors.
5769 (handle_btrace_general_set): Catch exception and copy message to
5770 return message.
5771
5772 2018-02-08 Tom Tromey <tom@tromey.com>
5773
5774 * linux-low.c (install_software_single_step_breakpoints): Use
5775 make_scoped_restore.
5776 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5777 (do_restore_current_thread_cleanup): Remove.
5778 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5779 declare.
5780
5781 2018-02-08 Tom Tromey <tom@tromey.com>
5782
5783 * mem-break.c (set_raw_breakpoint_at): Use
5784 gdb::unique_xmalloc_ptr.
5785
5786 2018-01-30 Pedro Alves <palves@redhat.com>
5787
5788 PR gdb/13211
5789 * target.c (target_terminal::terminal_state): Rename to ...
5790 (target_terminal::m_terminal_state): ... this.
5791
5792 2018-01-19 James Clarke <jrtc27@jrtc27.com>
5793
5794 * linux-low.c (handle_extended_wait): Surround call to
5795 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5796
5797 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5798
5799 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5800 linux_ptrace_attach_fail_reason_string now returning an
5801 std::string.
5802 (linux_attach): Likewise.
5803 * thread-db.c (attach_thread): Likewise.
5804
5805 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5806
5807 PR gdb/21559
5808 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5809 checking for fs_base/gs_base fields in struct user_regs_struct.
5810 * configure: Regenerate.
5811
5812 2018-01-16 Yao Qi <yao.qi@linaro.org>
5813
5814 PR gdb/18749
5815 * linux-low.c (fetch_register): Call supply_register instead of
5816 error.
5817
5818 2018-01-08 Yao Qi <yao.qi@linaro.org>
5819 Simon Marchi <simon.marchi@ericsson.com>
5820
5821 * Makefile.in (OBS): Remove selftest.o.
5822 * configure.ac: Set srv_selftest_objs if $development is true.
5823 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5824 * configure: Re-generated.
5825 * server.c (captured_main): Wrap variable selftest_filter with
5826 GDB_SELF_TEST.
5827
5828 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5829
5830 * server.c (parse_debug_format_options): Return std::string.
5831 (handle_monitor_command, captured_main): Adjust.
5832
5833 2018-01-05 Pedro Alves <palves@redhat.com>
5834
5835 PR gdb/18653
5836 * server.c (captured_main): Pass quiet=false to
5837 save_original_signals_state.
5838
5839 2018-01-01 Joel Brobecker <brobecker@adacore.com>
5840
5841 * gdbreplay.c (gdbreplay_version): Update copyright year in
5842 version message.
5843 * server.c (gdbserver_version): Likewise.
5844
5845 2017-12-08 Tom Tromey <tom@tromey.com>
5846
5847 * ax.c (ax_printf): Update.
5848
5849 2017-12-07 Yao Qi <yao.qi@linaro.org>
5850
5851 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5852 aarch64_linux_read_description.
5853 * linux-amd64-ipa.c (idx2mask): New array.
5854 (get_ipa_tdesc): Move idx2mask out.
5855 (initialize_low_tracepoint): Initialize target descriptions.
5856 * linux-i386-ipa.c (idx2mask): New array.
5857 (get_ipa_tdesc): Move idx2mask out.
5858 (initialize_low_tracepoint): Initialize target descriptions.
5859
5860 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5861
5862 * tdesc.c (struct tdesc_type): Change return type.
5863 (tdesc_add_flag): Change parameter type.
5864 (tdesc_add_bitfield): Likewise.
5865 (tdesc_add_field): Likewise.
5866 (tdesc_set_struct_size): Likewise.
5867
5868 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5869
5870 * regcache.c (registers_to_string): Remove unused variable.
5871
5872 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5873
5874 * inferiors.c (for_each_inferior_with_data): Remove.
5875 * inferiors.h (for_each_inferior_with_data): Remove.
5876 * server.c (handle_qxfer_threads_worker): Change parameter type.
5877 (handle_qxfer_threads_proper): Use for_each_thread.
5878
5879 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5880
5881 * inferiors.c (for_each_inferior): Remove.
5882 (clear_inferiors): Use for_each_thread.
5883 * inferiors.h (for_each_inferior): Remove.
5884 * linux-low.c (linux_wait_for_event_filtered): Use
5885 for_each_thread.
5886 (linux_stabilize_threads): Likewise.
5887 * regcache.c (regcache_release): Likewise.
5888 * server.c (gdb_wants_all_threads_stopped): Likewise.
5889 (clear_pending_status_callback): Remove.
5890 (handle_status): Use for_each_thread.
5891 (captured_main): Likewise.
5892 * win32-low.c (child_init_thread_list): Likewise.
5893 (win32_clear_inferiors): Likewise.
5894 (fake_breakpoint_event): Likewise.
5895
5896 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5897
5898 * inferiors.h (find_inferior): Remove.
5899 * inferiors.c (find_inferior): Remove.
5900
5901 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5902
5903 * linux-low.c (resume_status_pending_p): Update comment.
5904 (need_step_over_p): Update comment.
5905
5906 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5907
5908 * linux-low.c (proceed_one_lwp): Return void, change parameter
5909 type.
5910 (unsuspend_and_proceed_one_lwp): Likewise.
5911 (proceed_all_lwps): Use for_each_thread.
5912 (unstop_all_lwps): Likewise.
5913
5914 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5915
5916 * linux-low.c (linux_resume_one_thread): Return void, take
5917 parameter directly.
5918 (linux_resume): Use for_each_thread.
5919
5920 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5921
5922 * linux-low.c (send_sigstop_callback): Return void, change
5923 parameter type. Rename to...
5924 (send_sigstop): ... this.
5925 (suspend_and_send_sigstop_callback): Return void, change parameter
5926 type. Rename to...
5927 (suspend_and_send_sigstop): ... this.
5928 (stop_all_lwps): Use for_each_thread.
5929
5930 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5931
5932 * linux-low.c (lwp_running): Return bool, remove unused
5933 argument.
5934 (linux_stabilize_threads): Use find_thread.
5935
5936 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5937
5938 * linux-low.c (select_singlestep_lwp_callback): Remove.
5939 (count_events_callback): Remove.
5940 (select_event_lwp_callback): Remove.
5941 (select_event_lwp): Use find_thread/for_each_thread.
5942
5943 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5944
5945 * linux-low.c (not_stopped_callback): Return bool, take filter
5946 argument directly.
5947 (linux_wait_for_event_filtered): Use find_thread.
5948 (linux_wait_1): Likewise.
5949
5950 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5951
5952 * linux-low.c (same_lwp): Remove.
5953 (find_lwp_pid): Use find_thread.
5954
5955 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5956
5957 * linux-low.c (delete_lwp_callback): Remove.
5958 (linux_mourn): Use for_each_thread.
5959
5960 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5961
5962 * linux-low.c (linux_detach_lwp_callback): Return void, remove
5963 args parameter, don't check for pid.
5964 (linux_detach): Use for_each_thread.
5965
5966 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5967
5968 * linux-low.c (struct counter): Remove.
5969 (second_thread_of_pid_p): Remove.
5970 (last_thread_of_process_p): Use find_thread.
5971
5972 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5973
5974 * inferiors.c (find_inferior_in_random): Remove.
5975 * inferiors.h (find_inferior_in_random): Remove.
5976 * linux-low.c (status_pending_p_callback): Return bool, accept
5977 parameter ptid directly.
5978 (linux_wait_for_event_filtered): Use find_thread_in_random.
5979 (linux_wait_1): Likewise.
5980
5981 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5982
5983 * inferiors.c (find_inferior_id): Remove.
5984 (find_thread_ptid): Move implemention from find_inferior_id to
5985 here.
5986 * inferiors.h (find_inferior_id): Remove.
5987 * server.c (handle_status): Use find_thread_ptid.
5988 (process_serial_event): Likewise.
5989 * thread-db.c (find_one_thread): Likewise.
5990 (thread_db_thread_handle): Likewise.
5991 * win32-low.c (thread_rec): Likewise.
5992 (child_delete_thread): Likewise.
5993 (win32_thread_alive): Likewise.
5994 (get_child_debug_event): Likewise.
5995
5996 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5997
5998 * linux-mips-low.c (update_watch_registers_callback): Return
5999 void, remove pid_p parameter, don't check for pid.
6000 (mips_insert_point, mips_remove_point): Use for_each_thread.
6001
6002 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6003
6004 * lynx.low (lynx_delete_thread_callback): Remove.
6005 (lynx_mourn): Use for_each_thread.
6006
6007 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6008
6009 * regcache.c (regcache_invalidate_one): Remove.
6010 (regcache_invalidate_pid): use for_each_thread.
6011
6012 2017-11-26 Tom Tromey <tom@tromey.com>
6013
6014 * linux-low.c (linux_create_inferior): Update.
6015
6016 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6017
6018 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6019
6020 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6021
6022 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6023 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6024 * linux-aarch64-tdesc-selftest.c: New file.
6025 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6026
6027 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6028
6029 * configure.srv: Add new file.
6030 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6031 * linux-aarch64-tdesc-selftest.c: New file.
6032 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6033
6034 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6035
6036 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6037 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6038 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6039
6040 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6041
6042 * configure.srv: Add new files.
6043 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6044 aarch64_linux_read_description.
6045 * linux-aarch64-low.c (aarch64_linux_read_description):
6046 Merge with aarch64_arch_setup.
6047 (aarch64_arch_setup): Call aarch64_linux_read_description.
6048 * linux-aarch64-tdesc.c: New file.
6049 * linux-aarch64-tdesc.h: New file.
6050
6051 2017-11-24 Yao Qi <yao.qi@linaro.org>
6052
6053 * configure.srv: Set $srv_regobj for tic6x-linux.
6054 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6055 (tic6x_read_description): Move some code to tic6x_arch_setup.
6056 (tic6x_tdesc_test): New function.
6057 (initialize_low_arch): Call selftests::register_test.
6058
6059 2017-11-22 Yao Qi <yao.qi@linaro.org>
6060
6061 * remote-utils.c (prepare_resume_reply): Use memcpy.
6062
6063 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6064
6065 * linux-low.c (kill_one_lwp_callback): Return void, take
6066 argument directly, don't filter on pid.
6067 (linux_kill): Use for_each_thread.
6068
6069 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6070
6071 * linux-low.c (need_step_over_p): Return bool, remove dummy
6072 argument.
6073 (linux_resume, proceed_all_lwps): Use find_thread.
6074
6075 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6076
6077 * linux-low.c (resume_status_pending_p): Return bool, remove
6078 flag_p argument.
6079 (linux_resume): Use find_thread.
6080
6081 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6082
6083 * linux-low.c (struct thread_resume_array): Remove.
6084 (linux_set_resume_request): Return void, take arguments
6085 directly.
6086 (linux_resume): Use for_each_thread.
6087
6088 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6089
6090 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6091 return bool, remove data argument.
6092 (linux_stabilize_threads): Use find_thread.
6093
6094 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6095
6096 * linux-low.c (unsuspend_one_lwp): Remove.
6097 (unsuspend_all_lwps): Use for_each_thread, inline code from
6098 unsuspend_one_lwp.
6099
6100 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6101
6102 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6103 * linux-low.c (struct iterate_over_lwps_args): Remove.
6104 (iterate_over_lwps_filter): Remove.
6105 (iterate_over_lwps): Use find_thread.
6106
6107 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6108
6109 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6110 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6111 code from reset_lwp_ptrace_options_callback.
6112
6113 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6114
6115 * linux-arm-low.c (struct update_registers_data): Remove.
6116 (update_registers_callback): Return void, take arguments
6117 directly, don't check thread's pid.
6118 (arm_insert_point, arm_remove_point): Use for_each_thread.
6119
6120 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6121
6122 * win32-low.c (continue_one_thread): Return void, take argument
6123 directly.
6124 (child_continue): Use for_each_thread.
6125
6126 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6127
6128 * win32-i386-low.c (update_debug_registers_callback): Rename
6129 to ...
6130 (update_debug_registers): ... this, return void, remove pid_p arg.
6131 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6132
6133 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6134
6135 * inferiors.h (struct process_info): Add constructor, initialize
6136 fields..
6137 <syscalls_to_catch>: Change type to std::vector<int>.
6138 * inferiors.c (add_process): Allocate process_info with new.
6139 (remove_process): Free process_info with delete.
6140 * linux-low.c (handle_extended_wait): Adjust.
6141 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6142 * server.c (handle_general_set): Adjust.
6143
6144 2017-11-16 Pedro Alves <palves@redhat.com>
6145
6146 * remote-utils.c (remote_close): Block SIGIO signals instead of
6147 uninstalling the SIGIO handler.
6148
6149 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6150
6151 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6152
6153 2017-11-16 Yao Qi <yao.qi@linaro.org>
6154
6155 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6156 (tic6x_store_gregset): Likewise.
6157 (tic6x_usrregs_info): Move it up.
6158
6159 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6160
6161 * Makefile.in: Update arch rules.
6162 * configure.srv: Explicitly mark arch/ files.
6163
6164 2017-11-13 Andreas Schwab <schwab@suse.de>
6165
6166 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6167 function.
6168 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6169
6170 2017-11-06 Pedro Alves <palves@redhat.com>
6171
6172 * config.in, configure: Regenerate.
6173
6174 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6175
6176 * target.c (struct thread_search): Remove.
6177 (thread_search_callback): Remove.
6178 (prepare_to_access_memory): Use for_each_thread instead of
6179 find_inferior. Inline code from thread_search_callback.
6180
6181 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6182
6183 * server.c (struct visit_actioned_threads_data): Remove.
6184 (visit_actioned_threads): Change prototype to take arguments
6185 directly.
6186 (resume): Use find_thread instead of find_inferior.
6187
6188 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6189
6190 * server.c (queue_stop_reply_callback): Change prototype, return
6191 void.
6192 (find_status_pending_thread_callback): Remove.
6193 (handle_status): Replace find_inferior with find_thread and
6194 for_each_thread.
6195
6196 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6197
6198 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6199 with REGNO.
6200 (aarch64_store_gregset): Likewise.
6201 (aarch64_fill_fpregset): Likewise.
6202 (aarch64_store_fpregset): Likewise.
6203
6204 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6205
6206 * gdbthread.h (find_thread, for_each_thread): New functions.
6207 * inferiors.c (thread_of_pid): Remove.
6208 (find_any_thread_of_pid): Use find_thread.
6209 * linux-low.c (num_lwps): Use for_each_thread.
6210
6211 2017-10-17 Yao Qi <yao.qi@linaro.org>
6212
6213 * Makefile.in: Remove one rule.
6214 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6215
6216 2017-10-17 Yao Qi <yao.qi@linaro.org>
6217
6218 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6219 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6220
6221 2017-10-17 Yao Qi <yao.qi@linaro.org>
6222
6223 * configure.srv: Rename arm.o with arch/arm.o.
6224
6225 2017-10-17 Yao Qi <yao.qi@linaro.org>
6226
6227 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6228 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6229 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6230 (arch-i386.o, arch-amd64.o): Remove rules.
6231 (arch/%.o): New rule.
6232 Update POSTCOMPILE and COMPILE.pre.
6233 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6234 * configure: Re-generated.
6235 * configure.srv: Replace arch-i386.o with arch/i386.o.
6236 Replace arch-amd64.o with arch/amd64.o.
6237
6238 2017-10-16 Yao Qi <yao.qi@linaro.org>
6239
6240 * configure: Regenerated.
6241
6242 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6243
6244 * inferiors.h: (struct inferior_list): Remove.
6245 (struct inferior_list_entry); Remove.
6246 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6247 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6248 get_first_inferior): Remove.
6249 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6250 find_inferior_id, find_inferior_in_random): Change signature.
6251 * inferiors.c (all_threads): Change type to
6252 std::list<thread_info *>.
6253 (get_thread): Remove macro.
6254 (find_inferior, find_inferior_id): Change signature, implement
6255 using find_thread.
6256 (find_inferior_in_random): Change signature, implement using
6257 find_thread_in_random.
6258 (for_each_inferior, for_each_inferior_with_data): Change
6259 signature, implement using for_each_thread.
6260 (add_inferior_to_list, remove_inferior): Remove.
6261 (add_thread, get_first_thread, thread_of_pid,
6262 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6263 (get_first_inferior, one_inferior_p, clear_inferior_list):
6264 Remove.
6265 (clear_inferiors, get_thread_process): Update.
6266 * gdbthread.h: Include <list>.
6267 (struct thread_info) <entry>: Remove field.
6268 <id>: New field.
6269 (all_threads): Change type to std::list<thread_info *>.
6270 (get_first_inferior): Add doc.
6271 (find_thread, for_each_thread, find_thread_in_random): New
6272 functions.
6273 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6274 * linux-arm-low.c (update_registers_callback): Update.
6275 * linux-low.c (second_thread_of_pid_p): Update.
6276 (kill_one_lwp_callback, linux_detach_lwp_callback,
6277 delete_lwp_callback, status_pending_p_callback, same_lwp,
6278 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6279 iterate_over_lwps, not_stopped_callback,
6280 resume_stopped_resumed_lwps, count_events_callback,
6281 select_singlestep_lwp_callback, select_event_lwp_callback,
6282 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6283 suspend_and_send_sigstop_callback, wait_for_sigstop,
6284 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6285 lwp_running, linux_set_resume_request, resume_status_pending_p,
6286 need_step_over_p, start_step_over, linux_resume_one_thread,
6287 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6288 reset_lwp_ptrace_options_callback): Update.
6289 * linux-mips-low.c (update_watch_registers_callback): Update.
6290 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6291 Update.
6292 (free_register_cache_thread_one): Remove.
6293 (regcache_release): Update.
6294 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6295 handle_qxfer_threads_worker): Update.
6296 (handle_query): Update, use list iterator.
6297 (visit_actioned_threads, handle_pending_status,
6298 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6299 clear_pending_status_callback, set_pending_status_callback,
6300 find_status_pending_thread_callback, handle_status,
6301 process_serial_event): Update.
6302 * target.c (thread_search_callback): Update.
6303 * thread-db.c (thread_db_get_tls_address): Update.
6304 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6305 Update.
6306 * win32-i386-low.c (update_debug_registers_callback): Update.
6307 * win32-low.c (delete_thread_info, child_delete_thread,
6308 continue_one_thread, suspend_one_thread,
6309 get_child_debug_event): Adjust.
6310
6311 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6312
6313 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6314 * inferiors.h: Include <list>.
6315 (struct process_info) <entry>: Remove field.
6316 <pid>: New field.
6317 (pid_of): Change macro to function.
6318 (ptid_of, lwpid_of): Remove macro.
6319 (all_processes): Change type to std::list<process_info *>.
6320 (ALL_PROCESSES): Remove macro.
6321 (for_each_process, find_process): New function.
6322 * inferiors.c (all_processes): Change type to
6323 std::list<process_info *>.
6324 (find_thread_process): Adjust.
6325 (add_process): Likewise.
6326 (remove_process): Likewise.
6327 (find_process_pid): Likewise.
6328 (get_first_process): Likewise.
6329 (started_inferior_callback): Remove.
6330 (have_started_inferiors_p): Adjust.
6331 (attached_inferior_callback): Remove.
6332 (have_attached_inferiors_p): Adjust.
6333 * linux-low.c (check_zombie_leaders): Likewise.
6334 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6335 (x86_linux_update_xmltarget): Adjust.
6336 * server.c (handle_query): Likewise.
6337 (gdb_reattached_process): Remove.
6338 (handle_status): Adjust.
6339 (kill_inferior_callback): Likewise.
6340 (detach_or_kill_inferior): Remove.
6341 (print_started_pid): Likewise.
6342 (print_attached_pid): Likewise.
6343 (detach_or_kill_for_exit): Update.
6344 (process_serial_event): Likewise.
6345 * linux-arm-low.c (arm_new_fork): Likewise.
6346
6347 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6348
6349 * dll.h: Include <list>.
6350 (struct dll_info): Add constructor.
6351 <entry>: Remove field.
6352 (all_dlls): Change type to std::list<dll_info>.
6353 * dll.c: Include <algorithm>.
6354 (get_dll): Remove macro.
6355 (all_dlls): Change type to std::list<dll_info *>.
6356 (free_one_dll): Remove.
6357 (match_dll): Likewise.
6358 (loaded_dll): Adjust.
6359 (unloaded_dll): Adjust to all_dlls type change, use
6360 std::find_if. Inline code from match_dll.
6361 (clear_dlls): Adjust to all_dlls type change.
6362 * server.c (emit_dll_description): Remove.
6363 (handle_qxfer_libraries): Adjust to all_dlls type change,
6364 integrate emit_dll_description's functionality.
6365
6366 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6367
6368 * linux-low.h (struct linux_target_ops) <delete_process>: New
6369 field.
6370 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6371 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6372 (struct linux_target_ops): Add delete_process callback.
6373 * linux-arm-low.c (arm_delete_process): New.
6374 (struct linux_target_ops): Add delete_process callback.
6375 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6376 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6377 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6378 * linux-mips-low.c (mips_linux_delete_process): New.
6379 (struct linux_target_ops): Add delete_process callback.
6380 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6381 * linux-s390-low.c (struct linux_target_ops): Likewise.
6382 * linux-sh-low.c (struct linux_target_ops): Likewise.
6383 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6384 * linux-tile-low.c (struct linux_target_ops): Likewise.
6385 * linux-x86-low.c (x86_linux_delete_process): New.
6386 (struct linux_target_ops): Add delete_process callback.
6387 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6388
6389 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6390
6391 * linux-aarch64-low.c (the_low_target): Add thread delete
6392 callback.
6393 * linux-arm-low.c (arm_delete_thread): New function.
6394 (the_low_target): Add thread delete callback.
6395 * linux-bfin-low.c (the_low_target): Likewise.
6396 * linux-crisv32-low.c (the_low_target): Likewise.
6397 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6398 set.
6399 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6400 field.
6401 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6402 * linux-mips-low.c (mips_linux_delete_thread): New function.
6403 (the_low_target): Add thread delete callback.
6404 * linux-ppc-low.c (the_low_target): Likewise.
6405 * linux-s390-low.c (the_low_target): Likewise.
6406 * linux-sh-low.c (the_low_target): Likewise.
6407 * linux-tic6x-low.c (the_low_target): Likewise.
6408 * linux-tile-low.c (the_low_target): Likewise.
6409 * linux-x86-low.c (the_low_target): Likewise.
6410 * linux-xtensa-low.c (the_low_target): Likewise.
6411
6412 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6413
6414 * win32-low.c: Include "common-inferior.h".
6415
6416 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6417
6418 * inferiors.c (set_inferior_cwd): New function.
6419 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6420 (handle_query): Inform that QSetWorkingDir is supported.
6421 * win32-low.c (create_process): Pass the inferior's cwd to
6422 CreateProcess.
6423
6424 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6425
6426 * inferiors.c (current_inferior_cwd): New global variable.
6427 (get_inferior_cwd): New function.
6428 * inferiors.h (struct process_info) <cwd>: New field.
6429
6430 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6431
6432 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6433 (OBS): Add gdb_tilde_expand.o.
6434
6435 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6436
6437 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6438 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6439
6440 2017-09-29 Pedro Alves <palves@redhat.com>
6441
6442 * ax.c (gdb_parse_agent_expr): Constify.
6443 * ax.h (gdb_parse_agent_expr): Constify.
6444 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6445 Constify.
6446 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6447 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6448 * remote-utils.h (read_ptid): Constify.
6449 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6450 (process_point_options, process_serial_event): Constify.
6451 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6452 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6453 (cmd_qtbuffer): Constify.
6454
6455 2017-09-29 Pedro Alves <palves@redhat.com>
6456
6457 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6458 fails.
6459
6460 2017-09-29 Pedro Alves <palves@redhat.com>
6461
6462 * linux-low.c (handle_extended_wait): Pass parent thread instead
6463 of process to thread_db_notice_clone.
6464 * linux-low.h (thread_db_notice_clone): Replace parent process
6465 parameter with parent thread parameter.
6466 * thread-db.c (find_one_thread): Add comment.
6467 (thread_db_notice_clone): Replace parent process parameter with
6468 parent thread parameter. Temporarily switch to the parent thread.
6469
6470 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6471
6472 * gdbthread.h: Include "common-gdbthread.h".
6473 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6474 "if" when validating the ptid.
6475 * remote-utils.c: Include "gdbthread.h".
6476 (prepare_resume_reply): Use "switch_to_thread".
6477 * target.c (done_accessing_memory): Likewise.
6478
6479 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6480
6481 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6482 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6483 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6484 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6485 s390x-gs-linux64-ipa.o to ipa_obj.
6486 * linux-s390-low.c (HWCAP_S390_GS): New define.
6487 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6488 New functions.
6489 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6490 (s390_arch_setup): Check for guarded-storage support and choose
6491 appropriate tdesc.
6492 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6493 init_registers_s390x_gs_linux64.
6494 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6495 enum value.
6496 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6497 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6498
6499 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6500
6501 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6502
6503 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6504
6505 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6506 (thread_db_thread_handle): Declare.
6507 * linux-low.c (linux_target_ops): Initialize thread_handle.
6508 * server.c (handle_qxfer_threads_worker): Add support for
6509 "handle" attribute.
6510 * target.h (struct target_ops): Add new function pointer,
6511 thread_handle.
6512 (target_thread_handle): Define.
6513 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6514 field in lwp.
6515 (thread_db_thread_handle): New function.
6516
6517 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6518
6519 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6520 * linux-low.h (thread_db_notice_clone): Declare.
6521 * thread-db.c (thread_db_notice_clone): New function.
6522
6523 2017-09-21 Pedro Alves <palves@redhat.com>
6524
6525 * server.c (gdb_read_memory, handle_status, process_serial_event)
6526 (handle_serial_event, handle_target_event): Adjust to
6527 set_desired_thread prototype change.
6528 * target.c (set_desired_thread): Remove 'use_general' parameter
6529 and adjust.
6530 * target.h (set_desired_thread): Remove 'use_general' parameter.
6531
6532 2017-09-20 Tom Tromey <tom@tromey.com>
6533
6534 * target.c (target_terminal::terminal_state): Define.
6535 (target_terminal::init): Rename from target_terminal_init.
6536 (target_terminal::inferior): Rename from
6537 target_terminal_inferior.
6538 (target_terminal::ours): Rename from target_terminal_ours.
6539 (target_terminal::ours_for_output, target_terminal::info): New.
6540
6541 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6542
6543 * server.c (accumulate_file_name_length): Remove.
6544 (emit_dll_description): Adjust to std::string change.
6545 (handle_qxfer_libraries): Use std::string to hold document.
6546
6547 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6548
6549 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6550 return type of xml_escape_text.
6551 * server.c (emit_dll_description): Likewise.
6552
6553 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6554
6555 * server.c (captured_main): Accept argument for --selftest.
6556 Update run_tests call.
6557 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6558 when registering selftests.
6559
6560 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6561
6562 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6563 instead of "VEC" for "target_desc.reg_defs".
6564 (regcache_cpy): Likewise.
6565 (registers_to_string): Likewise.
6566 (registers_from_string): Likewise.
6567 (find_regno): Likewise.
6568 (supply_regblock): Likewise.
6569 (regcache_raw_read_unsigned): Likewise.
6570 * tdesc.c (init_target_desc): Likewise.
6571 (tdesc_create_reg): Likewise.
6572 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6573 (struct target_desc) <reg_defs>: Convert to "std::vector".
6574 (target_desc): Do not initialize "reg_defs".
6575 (~target_desc): Update code to use "std::vector" instead of "VEC"
6576 for "target_desc.reg_defs".
6577 (operator==): Likewise.
6578
6579 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6580
6581 * inferiors.h (thread_to_gdb_id): Remove.
6582 * inferiors.c (thread_to_gdb_id): Remove.
6583 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6584 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6585 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6586 Likewise.
6587 * nto-low.c (nto_fetch_registers, nto_store_registers,
6588 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6589
6590 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6591
6592 * inferiors.h (gdb_id_to_thread_id): Remove.
6593 * inferiors.c (gdb_id_to_thread_id): Remove.
6594 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6595 removal. Move pid declaration closer to where it's used.
6596
6597 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6598
6599 * server.c (handle_detach): New function.
6600 (process_serial_event): Move code out, call handle_detach.
6601
6602 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6603
6604 * server.c (require_running): Rename to ...
6605 (require_running_or_return): ... this ...
6606 (require_running_or_break): ... and this.
6607 (handle_query, process_serial_event): Adjust.
6608
6609 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6610
6611 * linux-low.c (linux_set_resume_request): Remove unused
6612 variables.
6613
6614 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6615
6616 * server.c (first_thread_of): Remove.
6617 (process_serial_event): Replace usage of first_thread_of with
6618 find_any_thread_of_pid.
6619 * tracepoint.c (same_process_p): Remove.
6620 (gdb_agent_about_to_close): Replace usage of same_process_p with
6621 find_any_thread_of_pid.
6622 * linux-x86-low.c (same_process_callback): Remove.
6623 (x86_arch_setup_process_callback): Replace usage of
6624 same_process_callback with find_any_thread_of_pid.
6625 * thread-db.c (any_thread_of): Remove.
6626 (switch_to_process): Replace usage of any_thread_of with
6627 find_any_thread_of_pid.
6628 * inferiors.c (thread_pid_matches_callback): Remove.
6629 (find_thread_process): Adjust to use find_any_thread_of_pid.
6630
6631 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6632
6633 * regcache.c (get_thread_regcache): Guard calls to "memset"
6634 with "!VEC_empty".
6635
6636 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6637
6638 * linux-low.c (handle_extended_wait): Use
6639 "allocate_target_description" instead of "XNEW".
6640 * linux-x86-low.c (initialize_low_arch): Likewise.
6641
6642 2017-09-05 Yao Qi <yao.qi@linaro.org>
6643
6644 * configure.srv (srv_i386_regobj): Remove.
6645 (srv_amd64_regobj): Remove.
6646 (srv_regobj): Set it to "" for x86 non-linux targets.
6647 * linux-x86-tdesc.c (i386_linux_read_description):
6648 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6649 (init_registers_i386): Remove the declaration.
6650 (tdesc_i386): Remove the declaration.
6651 (lynx_i386_arch_setup): Call i386_create_target_description.
6652 * nto-x86-low.c: Likewise.
6653 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6654 [!__x86_64__]: include arch/i386.h.
6655 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6656
6657 2017-09-05 Yao Qi <yao.qi@linaro.org>
6658
6659 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6660 i386/amd64-XXX-linux from it.
6661
6662 2017-09-05 Yao Qi <yao.qi@linaro.org>
6663
6664 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6665 false.
6666 (ipa_amd64_linux_regobj): Remove.
6667 (ipa_x32_linux_regobj): Remove.
6668
6669 2017-09-05 Yao Qi <yao.qi@linaro.org>
6670
6671 * Makefile.in (arch-amd64.o): New rule.
6672 * configure.srv: Append arch-amd64.o.
6673 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6674 (get_ipa_tdesc): Call amd64_linux_read_description.
6675 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6676 and init_registers_amd64_XXX.
6677 * linux-x86-low.c (x86_linux_read_description): Call
6678 amd64_linux_read_description.
6679 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6680 (initialize_low_arch): Don't call init_registers_x32_XXX and
6681 init_registers_amd64_XXX.
6682 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6683 and tdesc_amd64_XXX.
6684 [__x86_64__] (amd64_tdesc_test): New function.
6685 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6686 and init_registers_amd64_XXX.
6687 * linux-x86-tdesc.c: Include arch/amd64.h.
6688 (xcr0_to_tdesc_idx): New function.
6689 (i386_linux_read_description): New function.
6690 (amd64_get_ipa_tdesc_idx): New function.
6691 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6692 (amd64_get_ipa_tdesc): Declare.
6693
6694 2017-09-05 Yao Qi <yao.qi@linaro.org>
6695
6696 * configure.srv (srv_i386_linux_xmlfiles): Remove
6697 i386/i386-XXX-linux.xml from it.
6698
6699 2017-09-05 Yao Qi <yao.qi@linaro.org>
6700
6701 * configure.srv: Set srv_i386_linux_regobj empty if $development
6702 is false.
6703 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6704 initialize_low_tdesc.
6705 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6706 with #if initialize_low_tdesc.
6707 * linux-x86-tdesc-selftest.c: New file.
6708 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6709
6710 2017-09-05 Yao Qi <yao.qi@linaro.org>
6711
6712 * Makefile.in (arch-i386.o): New rule.
6713 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6714 (x86_64-*-linux*): Likewise.
6715 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6716 include arch/i386.h.
6717 (i386_linux_read_description): Remove code and call
6718 i386_create_target_description.
6719 * tdesc.c (allocate_target_description): New function.
6720 * tdesc.h (set_tdesc_architecture): Remove declaration.
6721 (set_tdesc_osabi): Likewise.
6722
6723 2017-09-05 Yao Qi <yao.qi@linaro.org>
6724
6725 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6726 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6727 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6728 .xmltarget.
6729 * server.c (get_features_xml): Call tdesc_get_features_xml.
6730 * tdesc.c (set_tdesc_architecture): New function.
6731 (set_tdesc_osabi): New function.
6732 (tdesc_get_features_xml): New function.
6733 (tdesc_create_feature): Add an argument.
6734 * tdesc.h (struct target_desc) <features>: New field.
6735 <arch, osabi>: New field.
6736 (~target_desc): xfree features, arch, and osabi.
6737 (target_desc::oerator==): Don't compare .xmltarget.
6738 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6739 (set_tdesc_osabi): Likewise.
6740 (tdesc_get_features_xml): Likewise.
6741
6742 2017-09-05 Yao Qi <yao.qi@linaro.org>
6743
6744 * linux-x86-tdesc.c: Include selftest.h.
6745 (i386_tdesc_test): New function.
6746 (initialize_low_tdesc): Call selftests::register_test.
6747 * tdesc.h: Include regdef.h.
6748 (target_desc): Override operator == and !=.
6749
6750 2017-09-05 Yao Qi <yao.qi@linaro.org>
6751
6752 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6753 (ipa_obj): Likewise.
6754 * linux-i386-ipa.c: Include common/x86-xstate.h
6755 (get_ipa_tdesc): Call i386_linux_read_description.
6756 (initialize_low_tracepoint): Don't call init_registers_XXX
6757 functions, call initialize_low_tdesc instead.
6758 * linux-x86-low.c (x86_linux_read_description): Call
6759 i386_linux_read_description.
6760 (initialize_low_arch): Don't call init_registers_i386_XXX
6761 functions, call initialize_low_tdesc.
6762 * linux-x86-tdesc.c: New file.
6763 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6764 (i386_get_ipa_tdesc_idx): Declare.
6765 (i386_get_ipa_tdesc): Declare.
6766 (initialize_low_tdesc): Declare.
6767
6768 2017-09-05 Yao Qi <yao.qi@linaro.org>
6769
6770 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6771 instead of 0.
6772
6773 2017-09-05 Yao Qi <yao.qi@linaro.org>
6774
6775 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6776 * regcache.c (get_thread_regcache): Use VEC_length.
6777 (init_register_cache): Likewise.
6778 (regcache_cpy): Likewise.
6779 (registers_to_string): Iterate reg_defs via VEC_iterate.
6780 (find_regno): Likewise.
6781 (find_register_by_number): Use VEC_index.
6782 (register_size): Call find_register_by_number.
6783 (register_data): Call find_register_by_number.
6784 (supply_regblock): Use VEC_length.
6785 (regcache_raw_read_unsigned): Likewise.
6786 * tdesc.c (init_target_desc): Iterate reg_defs via
6787 VEC_iterate.
6788 (default_description): Update initializer.
6789 (copy_target_description): Don't update field num_registers.
6790 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6791 <num_registers>: Remove.
6792
6793 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6794
6795 * Makefile.in (.SECONDARY): Define target.
6796
6797 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6798
6799 * linux-low.c (linux_wait_1): Adjust.
6800 * server.c (queue_stop_reply_callback): Adjust.
6801
6802 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6803
6804 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6805 QEnvironmentUnset and QEnvironmentReset packets.
6806 (handle_query): Inform remote that QEnvironmentHexEncoded,
6807 QEnvironmentUnset and QEnvironmentReset are supported.
6808
6809 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6810
6811 * inferiors.h (inferior_target_data): Rename to ...
6812 (thread_target_data): ... this.
6813 (inferior_regcache_data): Rename to ...
6814 (thread_regcache_data): ... this.
6815 (set_inferior_regcache_data): Rename to ...
6816 (set_thread_regcache_data): ... this.
6817 * inferiors.c (inferior_target_data): Rename to ...
6818 (thread_target_data): ... this.
6819 (inferior_regcache_data): Rename to ...
6820 (thread_regcache_data): ... this.
6821 (set_inferior_regcache_data): Rename to ...
6822 (set_thread_regcache_data): ... this.
6823 (free_one_thread): Update.
6824 * linux-low.h (get_thread_lwp): Update.
6825 * regcache.c (get_thread_regcache): Update.
6826 (regcache_invalidate_thread): Update.
6827 (free_register_cache_thread): Update.
6828 * win32-i386-low.c (update_debug_registers_callback): Update.
6829 (win32_get_current_dr): Update.
6830 * win32-low.c (thread_rec): Update.
6831 (delete_thread_info): Update.
6832 (continue_one_thread): Update.
6833 (suspend_one_thread): Update.
6834
6835 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6836
6837 * inferiors.c (set_inferior_target_data): Remove.
6838 * inferiors.h (set_inferior_target_data): Remove.
6839
6840 2017-08-18 Yao Qi <yao.qi@linaro.org>
6841
6842 * Makefile.in (OBS): Add selftest.o.
6843 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6844 * configure, config.in: Re-generated.
6845 * server.c: Include common/sefltest.h.
6846 (captured_main): Handle option --selftest.
6847
6848 2017-08-09 Yao Qi <yao.qi@linaro.org>
6849
6850 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6851 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6852 i386-avx-mpx.o and i386-mmx.o.
6853 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6854 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6855 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6856 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6857 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6858 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6859 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6860 i386/amd64-avx-mpx.xml.
6861
6862 2017-08-09 Yao Qi <yao.qi@linaro.org>
6863
6864 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6865 and x32-avx-avx512.o.
6866 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6867 i386/x32-avx-avx512.xml.
6868
6869 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6870
6871 * tracepoint.h (enum class fast_tpoint_collect_result): New
6872 enumeration.
6873 (fast_tracepoint_collecting): Change return type to
6874 fast_tpoint_collect_result.
6875 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6876 * linux-low.h: Include tracepoint.h.
6877 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6878 fast_tpoint_collect_result.
6879 * linux-low.c (handle_tracepoints): Adjust.
6880 (linux_fast_tracepoint_collecting): Change return type to
6881 fast_tpoint_collect_result.
6882 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6883 linux_wait_1, stuck_in_jump_pad_callback,
6884 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6885 proceed_one_lwp): Adjust to type change.
6886
6887 2017-07-10 Yao Qi <yao.qi@linaro.org>
6888
6889 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6890
6891 2017-06-29 Yao Qi <yao.qi@linaro.org>
6892
6893 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6894 Remove.
6895 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6896
6897 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6898
6899 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6900
6901 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6902
6903 * linux-low.c (linux_create_inferior): Adjust code to access the
6904 environment information via 'gdb_environ' class.
6905 * lynx-low.c (lynx_create_inferior): Likewise.
6906 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6907 (get_environ): Return a pointer to 'our_environ'.
6908 (captured_main): Initialize 'our_environ'.
6909 * server.h (get_environ): Adjust prototype.
6910 * spu-low.c (spu_create_inferior): Adjust code to access the
6911 environment information via 'gdb_environ' class.
6912
6913 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6914
6915 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6916 usage of "register" keyword.
6917
6918 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6919
6920 * configure: Re-generate.
6921
6922 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6923
6924 * configure: Re-generate.
6925
6926 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6927
6928 * Makefile.in (COMPILE.pre): Add "-x c++".
6929
6930 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6931
6932 * fork-child.c: Conditionally include <signal.h>.
6933
6934 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6935
6936 * server.c (handle_general_set): Handle new packet
6937 "QStartupWithShell".
6938 (handle_query): Add "QStartupWithShell" to the list of supported
6939 packets.
6940 (gdbserver_usage): Add help text explaining the
6941 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6942 options.
6943 (captured_main): Recognize and act upon the presence of the new
6944 CLI options.
6945
6946 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6947 Pedro Alves <palves@redhat.com>
6948
6949 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
6950 * configure: Regenerate.
6951 * configure.srv (srv_linux_obj): Add "fork-child.o" and
6952 "fork-inferior.o".
6953 (i[34567]86-*-lynxos*): Likewise.
6954 (spu*-*-*): Likewise.
6955 * fork-child.c: New file.
6956 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
6957 and "environ.h".
6958 (linux_ptrace_fun): New function.
6959 (linux_create_inferior): Adjust function prototype to reflect
6960 change on "target.h". Adjust function code to use
6961 "fork_inferior".
6962 (linux_request_interrupt): Delete "signal_pid".
6963 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6964 (lynx_ptrace_fun): New function.
6965 (lynx_create_inferior): Adjust function prototype to reflect
6966 change on "target.h". Adjust function code to use
6967 "fork_inferior".
6968 * nto-low.c (nto_create_inferior): Adjust function prototype and
6969 code to reflect change on "target.h". Update comments.
6970 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
6971 "common-terminal.h" and "environ.h".
6972 (terminal_fd): Moved to fork-child.c.
6973 (old_foreground_pgrp): Likewise.
6974 (restore_old_foreground_pgrp): Likewise.
6975 (last_status): Make it global.
6976 (last_ptid): Likewise.
6977 (our_environ): New variable.
6978 (startup_with_shell): Likewise.
6979 (program_name): Likewise.
6980 (program_argv): Rename to...
6981 (program_args): ...this.
6982 (wrapper_argv): New variable.
6983 (start_inferior): Delete function.
6984 (get_exec_wrapper): New function.
6985 (get_exec_file): Likewise.
6986 (get_environ): Likewise.
6987 (prefork_hook): Likewise.
6988 (post_fork_inferior): Likewise.
6989 (postfork_hook): Likewise.
6990 (postfork_child_hook): Likewise.
6991 (handle_v_run): Update code to deal with arguments coming from the
6992 remote host. Update calls from "start_inferior" to
6993 "create_inferior".
6994 (captured_main): Likewise. Initialize environment variable. Call
6995 "have_job_control".
6996 * server.h (post_fork_inferior): New prototype.
6997 (get_environ): Likewise.
6998 (last_status): Declare.
6999 (last_ptid): Likewise.
7000 (signal_pid): Likewise.
7001 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7002 (spu_ptrace_fun): New function.
7003 (spu_create_inferior): Adjust function prototype to reflect change
7004 on "target.h". Adjust function code to use "fork_inferior".
7005 * target.c (target_terminal_init): New function.
7006 (target_terminal_inferior): Likewise.
7007 (target_terminal_ours): Likewise.
7008 * target.h: Include <vector>.
7009 (struct target_ops) <create_inferior>: Update prototype.
7010 (create_inferior): Update macro.
7011 * utils.c (gdb_flush_out_err): New function.
7012 * win32-low.c (win32_create_inferior): Adjust function prototype
7013 and code to reflect change on "target.h".
7014
7015 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7016
7017 * inferiors.c (switch_to_thread): New function.
7018
7019 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7020
7021 * Makefile.in (SFILE): Add "common/job-control.c".
7022 (OBS): Add "job-control.o".
7023
7024 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7025
7026 * Makefile: Remove "@host_makefile_frag@".
7027
7028 2017-05-05 Pedro Alves <palves@redhat.com>
7029
7030 * configure: Regenerate.
7031
7032 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7033
7034 * configure: Regenerate.
7035
7036 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7037
7038 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7039 software_single_step change of return type to
7040 std::vector<CORE_ADDR>.
7041 * linux-low.c (install_software_single_step_breakpoints):
7042 Likewise.
7043 * linux-low.h (install_software_single_step_breakpoints):
7044 Likewise.
7045
7046 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7047
7048 * remote-utils.c: Include "gdb_termios.h" instead of
7049 "terminal.h".
7050 * terminal.h: Delete file.
7051
7052 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7053
7054 * server.c: Include <vector>.
7055 <program_argv, wrapper_argv>: Convert to std::vector.
7056 (start_inferior): Rewrite function to use C++.
7057 (handle_v_run): Likewise. Update code that calculates the argv
7058 based on the vRun packet; use C++.
7059 (captured_main): Likewise.
7060
7061 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7062
7063 * server.c (handle_v_cont): Initialize thread_resume::thread
7064 with null_ptid.
7065
7066 2017-04-05 Pedro Alves <palves@redhat.com>
7067
7068 * configure: Regenerate.
7069
7070 2017-04-05 Pedro Alves <palves@redhat.com>
7071
7072 * gdbreplay.c (sync_error): Constify.
7073 * linux-x86-low.c (push_opcode): Constify.
7074
7075 2017-04-05 Pedro Alves <palves@redhat.com>
7076
7077 * win32-low.c (get_child_debug_event)
7078 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7079 Report TARGET_WAITKIND_SPURIOUS instead.
7080
7081 2017-04-05 Pedro Alves <palves@redhat.com>
7082
7083 * remote-utils.c (remote_prepare, remote_open): Constify.
7084 * remote-utils.h (remote_prepare, remote_open): Constify.
7085 * server.c (captured_main): Constify 'port' handling.
7086
7087 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7088
7089 * Makefile.in (clean): Clear .deps.
7090
7091 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7092
7093 * .gitignore: Remove generated files, replace with wildcard.
7094 * (clean): Replace removal of generated files with wildcard.
7095 (version.c): Replace with...
7096 (version-generated.c): ...this.
7097 (xml-builtin.c): Replace with...
7098 (xml-builtin-generated.c): ...this.
7099 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7100 (%.c: *regformats*): Replace with...
7101 (%-generated.c: *regformats*): ...this.
7102
7103 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7104
7105 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7106 (xtensa_fill_gregset): Call collect_register_by_name for
7107 threadptr register.
7108 (xtensa_store_gregset): Call supply_register_by_name for
7109 threadptr register.
7110
7111 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7112
7113 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7114 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7115 (xtensa_store_gregset): Call supply_register for all registers in
7116 a0_regnum..a0_regnum + C0_NREGS range.
7117
7118 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7119
7120 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7121 (ax-ipa.o: ax.c): Remove.
7122 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7123 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7124 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7125 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7126 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7127
7128 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7129
7130 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7131 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7132 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7133 (errors-ipa.o: ../common/errors.c): Remove.
7134 (format-ipa.o: ../common/format.c): Remove.
7135 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7136
7137 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7138
7139 * Makefile.in (%-ipa.o: %.c): New rule.
7140 (tracepoint-ipa.o: tracepoint.c): Remove.
7141 (utils-ipa.o: utils.c): Remove.
7142 (remote-utils-ipa.o: remote-utils.c): Remove.
7143 (regcache-ipa.o: regcache.c): Remove.
7144 (i386-linux-ipa.o: i386-linux.c): Remove.
7145 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7146 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7147 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7148 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7149 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7150 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7151 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7152 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7153 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7154 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7155 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7156 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7157 (aarch64-ipa.o: aarch64.c): Remove.
7158 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7159 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7160 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7161 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7162 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7163 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7164 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7165 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7166 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7167 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7168 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7169 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7170 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7171 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7172 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7173 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7174 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7175 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7176 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7177 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7178 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7179 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7180 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7181 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7182 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7183 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7184 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7185 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7186 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7187 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7188 (tdesc-ipa.o: tdesc.c): Remove.
7189 (x32-linux-ipa.o: x32-linux.c): Remove.
7190 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7191 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7192
7193 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7194
7195 * Makefile.in (%.o: ../arch/%.c): New rule.
7196 (arm.o: ../arch/arm.c): Remove.
7197 (arm-linux.o: ../arch/arm-linux.c): Remove.
7198 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7199 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7200
7201 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7202
7203 * Makefile.in (%.o: ../nat/%.c): New rule.
7204 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7205 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7206 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7207 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7208 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7209 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7210 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7211 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7212 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7213 (linux-personality.o: ../nat/linux-personality.c): Remove.
7214 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7215 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7216 (x86-linux.o: ../nat/x86-linux.c): Remove.
7217 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7218 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7219
7220 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7221
7222 * Makefile.in (%.o: ../common/%.c): New rule.
7223 (signals.o: ../common/signals.c): Remove.
7224 (print-utils.o: ../common/print-utils.c): Remove.
7225 (rsp-low.o: ../common/rsp-low.c): Remove.
7226 (common-utils.o: ../common/common-utils.c): Remove.
7227 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7228 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7229 (vec.o: ../common/vec.c): Remove.
7230 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7231 (xml-utils.o: ../common/xml-utils.c): Remove.
7232 (ptid.o: ../common/ptid.c): Remove.
7233 (buffer.o: ../common/buffer.c): Remove.
7234 (format.o: ../common/format.c): Remove.
7235 (filestuff.o: ../common/filestuff.c): Remove.
7236 (agent.o: ../common/agent.c): Remove.
7237 (errors.o: ../common/errors.c): Remove.
7238 (environ.o: ../common/environ.c): Remove.
7239 (common-debug.o: ../common/common-debug.c): Remove.
7240 (cleanups.o: ../common/cleanups.c): Remove.
7241 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7242 (fileio.o: ../common/fileio.c): Remove.
7243 (common-regcache.o: ../common/common-regcache.c): Remove.
7244 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7245 (new-op.o: ../common/new-op.c): Remove.
7246 (btrace-common.o: ../common/btrace-common.c): Remove.
7247
7248 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7249
7250 * Makefile.in (%.o: ../target/%.c): New rule.
7251 (waitstatus.o: ../target/waitstatus.c): Remove.
7252
7253 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7254
7255 * Makefile.in
7256 (%.c: ../regformats/%.dat,
7257 (%.c: ../regformats/arm/%.dat,
7258 (%.c: ../regformats/i386/%.dat,
7259 (%.c: ../regformats/rs6000/%.dat): New rules.
7260 (aarch64.c): Remove.
7261 (reg-arm.c): Remove.
7262 (arm-with-iwmmxt.c): Remove.
7263 (arm-with-vfpv2.c): Remove.
7264 (arm-with-vfpv3.c): Remove.
7265 (arm-with-neon.c): Remove.
7266 (reg-bfin.c): Remove.
7267 (reg-cris.c): Remove.
7268 (reg-crisv32.c): Remove.
7269 (i386.c): Remove.
7270 (i386-linux.c): Remove.
7271 (i386-avx.c): Remove.
7272 (i386-avx-linux.c): Remove.
7273 (i386-avx-avx512.c): Remove.
7274 (i386-avx-avx512-linux.c): Remove.
7275 (i386-mpx.c): Remove.
7276 (i386-mpx-linux.c): Remove.
7277 (i386-avx-mpx-avx512-pku.c): Remove.
7278 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7279 (i386-avx-mpx.c): Remove.
7280 (i386-avx-mpx-linux.c): Remove.
7281 (i386-mmx.c): Remove.
7282 (i386-mmx-linux.c): Remove.
7283 (reg-ia64.c): Remove.
7284 (reg-m32r.c): Remove.
7285 (reg-m68k.c): Remove.
7286 (reg-cf.c): Remove.
7287 (mips-linux.c): Remove.
7288 (mips-dsp-linux.c): Remove.
7289 (mips64-linux.c): Remove.
7290 (mips64-dsp-linux.c): Remove.
7291 (nios2-linux.c): Remove.
7292 (powerpc-32.c): Remove.
7293 (powerpc-32l.c): Remove.
7294 (powerpc-altivec32l.c): Remove.
7295 (powerpc-cell32l.c): Remove.
7296 (powerpc-vsx32l.c): Remove.
7297 (powerpc-isa205-32l.c): Remove.
7298 (powerpc-isa205-altivec32l.c): Remove.
7299 (powerpc-isa205-vsx32l.c): Remove.
7300 (powerpc-e500l.c): Remove.
7301 (powerpc-64l.c): Remove.
7302 (powerpc-altivec64l.c): Remove.
7303 (powerpc-cell64l.c): Remove.
7304 (powerpc-vsx64l.c): Remove.
7305 (powerpc-isa205-64l.c): Remove.
7306 (powerpc-isa205-altivec64l.c): Remove.
7307 (powerpc-isa205-vsx64l.c): Remove.
7308 (s390-linux32.c): Remove.
7309 (s390-linux32v1.c): Remove.
7310 (s390-linux32v2.c): Remove.
7311 (s390-linux64.c): Remove.
7312 (s390-linux64v1.c): Remove.
7313 (s390-linux64v2.c): Remove.
7314 (s390-te-linux64.c): Remove.
7315 (s390-vx-linux64.c): Remove.
7316 (s390-tevx-linux64.c): Remove.
7317 (s390x-linux64.c): Remove.
7318 (s390x-linux64v1.c): Remove.
7319 (s390x-linux64v2.c): Remove.
7320 (s390x-te-linux64.c): Remove.
7321 (s390x-vx-linux64.c): Remove.
7322 (s390x-tevx-linux64.c): Remove.
7323 (tic6x-c64xp-linux.c): Remove.
7324 (tic6x-c64x-linux.c): Remove.
7325 (tic6x-c62x-linux.c): Remove.
7326 (reg-sh.c): Remove.
7327 (reg-sparc64.c): Remove.
7328 (reg-spu.c): Remove.
7329 (amd64.c): Remove.
7330 (amd64-linux.c): Remove.
7331 (amd64-avx.c): Remove.
7332 (amd64-avx-linux.c): Remove.
7333 (amd64-avx-avx512.c): Remove.
7334 (amd64-avx-avx512-linux.c): Remove.
7335 (amd64-mpx.c): Remove.
7336 (amd64-mpx-linux.c): Remove.
7337 (amd64-avx-mpx-avx512-pku.c): Remove.
7338 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7339 (amd64-avx-mpx.c): Remove.
7340 (amd64-avx-mpx-linux.c): Remove.
7341 (x32.c): Remove.
7342 (x32-linux.c): Remove.
7343 (x32-avx.c): Remove.
7344 (x32-avx-linux.c): Remove.
7345 (x32-avx-avx512.c): Remove.
7346 (x32-avx-avx512-linux.c): Remove.
7347 (reg-xtensa.c): Remove.
7348 (reg-tilegx.c): Remove.
7349 (reg-tilegx32.c): Remove.
7350
7351 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7352
7353 * Makefile.in (SFILES): Add "common/environ.c".
7354 (OBJS): Add "common/environ.h".
7355
7356 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7357
7358 * configure.ac: Check if the fs_base and gs_base members of
7359 `struct user_regs_struct' exist.
7360 * config.in: Regenerated.
7361 * configure: Likewise.
7362
7363 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7364
7365 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7366 target_read_memory.
7367 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7368 (get_next_pcs_syscall_next_pc): Likewise.
7369
7370 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7371
7372 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7373 * nto-x86-low.c: Likewise.
7374
7375 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7376
7377 * Makefile.in: Include disable-implicit-rules.mk.
7378
7379 2016-11-23 Pedro Alves <palves@redhat.com>
7380
7381 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7382 (debug_vprintf): Use std::chrono::steady_clock instead of
7383 gettimeofday. Use '.' instead of ':'.
7384 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7385 (get_timestamp): Use std::chrono::steady_clock instead of
7386 gettimeofday.
7387
7388 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7389
7390 * Makefile.in: Fix whitespace formatting.
7391
7392 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7393
7394 * Makefile.in (SFILES, OBS): Flatten list and order
7395 alphabetically.
7396
7397 2016-11-23 Pedro Alves <palves@redhat.com>
7398
7399 * event-loop.c (handle_file_event): Use warning.
7400 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7401 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7402 Use warning.
7403
7404 2016-11-23 Pedro Alves <palves@redhat.com>
7405
7406 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7407 output.
7408 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7409 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7410 debug_printf and debug_flush for debug output.
7411 * server.c (handle_general_set): Likewise.
7412 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7413 output.
7414
7415 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7416
7417 * Makefile.in (.c.o): Replace rule with ...
7418 (%.o: %.c): ... this one.
7419
7420 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7421
7422 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7423 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7424 make.
7425 * configure.ac: Remove checks for the make program.
7426 * configure: Re-generate.
7427
7428 2016-10-28 Pedro Alves <palves@redhat.com>
7429
7430 * Makefile.in (CXX_DIALECT): Get from configure.
7431 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7432 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7433 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7434 * config.in: Regenerate.
7435 * configure: Regenerate.
7436
7437 2016-10-27 Yao Qi <yao.qi@linaro.org>
7438
7439 * linux-low.c (linux_supports_range_stepping): Return true if
7440 can_software_single_step return true.
7441
7442 2016-10-27 Yao Qi <yao.qi@linaro.org>
7443
7444 * inferiors.c (find_inferior_in_random): New function.
7445 * inferiors.h (find_inferior_in_random): Declare.
7446 * linux-low.c (linux_wait_for_event_filtered): Call
7447 find_inferior_in_random instead of find_inferior.
7448
7449 2016-10-27 Yao Qi <yao.qi@linaro.org>
7450
7451 * linux-low.c (linux_wait_1): If single-step breakpoints are
7452 inserted, remove them.
7453
7454 2016-10-26 Pedro Alves <palves@redhat.com>
7455
7456 * linux-low.c (handle_extended_wait): Link parent/child fork
7457 threads.
7458 (linux_wait_1): Unlink them.
7459 (linux_set_resume_request): Ignore resume requests for
7460 already-resumed and unhandled fork child threads.
7461 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7462 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7463 New functions.
7464 (handle_v_requests) <vCont>: Don't call require_running.
7465 * server.h (in_queued_stop_replies): New declaration.
7466
7467 2016-10-24 Yao Qi <yao.qi@linaro.org>
7468
7469 PR server/20733
7470 * linux-aarch64-low.c (append_insns): Cast the return value to
7471 'uint32_t *'.
7472
7473 2016-10-10 Yao Qi <yao.qi@linaro.org>
7474
7475 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7476
7477 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7478
7479 * target.c (target_supports_multi_process): New function, moved
7480 from...
7481 * target.h (target_supports_multi_process): ... here. Remove
7482 macro.
7483
7484 2016-10-05 Tom Tromey <tom@tromey.com>
7485
7486 PR remote/20655:
7487 * tracepoint.c (handle_tracepoint_bkpts): Check
7488 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7489
7490 2016-10-05 Yao Qi <yao.qi@linaro.org>
7491
7492 * configure.srv: Update the path of arm-*.xml files.
7493
7494 2016-10-05 Terry Guo <terry.guo@arm.com>
7495 Yao Qi <yao.qi@linaro.org>
7496
7497 * Makefile.in: Adjust the path of rules.
7498 * configure.srv: Update the path of xml files.
7499 * regformats/arm-with-iwmmxt.dat: Regenerated.
7500 * regformats/arm-with-neon.dat: Likewise.
7501 * regformats/arm-with-vfpv2.dat: Likewise.
7502 * regformats/arm-with-vfpv3.dat Likewise.
7503
7504 2016-09-30 Yao Qi <yao.qi@linaro.org>
7505
7506 PR gdbserver/20627
7507 * target.c (target_stop_and_wait): Don't call
7508 target_continue_no_signal, use resume_stop instead.
7509
7510 2016-09-26 Yao Qi <yao.qi@linaro.org>
7511
7512 * linux-low.c (linux_wait_1): Call debug_exit.
7513
7514 2016-09-23 Pedro Alves <palves@redhat.com>
7515
7516 * Makefile.in (SFILES): Add common/new-op.c.
7517 (OBS): Add common/new-op.o.
7518 (new-op.o): New rule.
7519
7520 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7521
7522 * .gitinore: Ignore more files.
7523
7524 2016-09-21 Yao Qi <yao.qi@linaro.org>
7525
7526 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7527 23.
7528
7529 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7530
7531 * server.c (start_inferior): Call target_mourn_inferior instead of
7532 mourn_inferior; pass ptid_t argument to it.
7533 (resume): Likewise.
7534 (handle_target_event): Likewise.
7535 * target.c (target_mourn_inferior): New function.
7536 * target.h (mourn_inferior): Delete macro.
7537
7538 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7539
7540 * linux-low.c (lwp_is_stepping): New function.
7541
7542 2016-09-06 Carl Love <cel@us.ibm.com>
7543
7544 * server.c (start_inferior): Fixed comment, requested comment change
7545 didn't get updated correctly. Removed reference to ptrace () call as
7546 it is only true on Linux systems.
7547
7548 2016-09-06 Carl Love <cel@us.ibm.com>
7549
7550 * server.c (start_inferior): Do not call
7551 function target_post_create_inferior () if the
7552 inferior process has already exited.
7553
7554 2016-09-05 Pedro Alves <palves@redhat.com>
7555
7556 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7557 (COMPILE.pre, CC_LD): Use CXX directly.
7558 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7559 * acinclude.m4: Don't include build-with-cxx.m4.
7560 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7561 * configure: Regenerate.
7562
7563 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7564
7565 PR gdb/19495
7566 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7567 call writing data to own_buf.
7568
7569 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7570
7571 * target.c (mywait): Call target_wait instead of
7572 the_target->wait.
7573 (target_wait): New function.
7574
7575 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7576
7577 * server.c (start_inferior): New variable 'ptid'. Replace calls
7578 to the_target->resume by target_continue{,_no_signal}, depending
7579 on the case.
7580 * target.c (target_stop_and_wait): Call target_continue_no_signal
7581 instead of the_target->resume.
7582 (target_continue): New function.
7583
7584 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7585
7586 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7587
7588 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7589
7590 PR server/20491
7591 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7592 ps_prochandle.
7593 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7594 * linux-arm-low.c (ps_get_thread_area): Likewise.
7595 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7596 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7597 * linux-mips-low.c (ps_get_thread_area): Likewise.
7598 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7599 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7600 * linux-x86-low.c (ps_get_thread_area): Likewise.
7601 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7602
7603 2016-08-19 Pedro Alves <palves@redhat.com>
7604
7605 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7606
7607 2016-08-19 Pedro Alves <palves@redhat.com>
7608
7609 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7610 comment. Use memcpy instead of casting through unsigned long.
7611
7612 2016-08-19 Pedro Alves <palves@redhat.com>
7613
7614 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7615 allocating around 0x80000000.
7616
7617 2016-08-19 Pedro Alves <palves@redhat.com>
7618
7619 PR gdb/20415
7620 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7621 (x32-avx512-linux-ipa.o): New rules.
7622 * configure.ac (x86_64-*-linux*): New x32 check.
7623 * configure.srv (ipa_x32_linux_regobj): New.
7624 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7625 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7626 descriptions.
7627 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7628 descriptions.
7629 * configure: Regenerate.
7630
7631 2016-08-09 Pedro Alves <palves@redhat.com>
7632
7633 PR gdb/18653
7634 * Makefile.in (OBS): Add signals-state-save-restore.o.
7635 (signals-state-save-restore.o): New rule.
7636 * config.in: Regenerate.
7637 * configure: Regenerate.
7638 * linux-low.c: Include "signals-state-save-restore.h".
7639 (linux_create_inferior): Call
7640 restore_original_signals_state.
7641 * server.c: Include "dispositions-save-restore.h".
7642 (captured_main): Call save_original_signals_state.
7643
7644 2016-08-05 Pedro Alves <palves@redhat.com>
7645
7646 * configure: Regenerate.
7647
7648 2016-08-04 Yao Qi <yao.qi@linaro.org>
7649
7650 * linux-low.c (regsets_fetch_inferior_registers): Check
7651 errno is ESRCH or not.
7652
7653 2016-08-02 Yao Qi <yao.qi@linaro.org>
7654
7655 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7656 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7657 (thread_db_load_search): Update.
7658 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7659 td_ta_set_event and td_ta_event_getmsg.
7660
7661 2016-07-26 Pedro Alves <palves@redhat.com>
7662
7663 PR server/20414
7664 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7665 of unsigned long for 64-bit registers and use uint32_t instead of
7666 unsigned int for 32-bit registers.
7667
7668 2016-07-26 Pedro Alves <palves@redhat.com>
7669
7670 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7671 to 'ptrace'.
7672
7673 2016-07-21 Tom Tromey <tom@tromey.com>
7674
7675 * configure: Rebuild.
7676
7677 2016-07-21 Yao Qi <yao.qi@linaro.org>
7678
7679 * mem-break.c (find_gdb_breakpoint): Cast bp to
7680 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7681
7682 2016-07-21 Yao Qi <yao.qi@linaro.org>
7683
7684 * server.c (handle_v_requests): Support s and S actions
7685 if target_supports_software_single_step return true.
7686
7687 2016-07-21 Yao Qi <yao.qi@linaro.org>
7688
7689 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7690 is resume_step, call maybe_hw_step.
7691 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7692 and unstop them.
7693 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7694 breakpoints or not.
7695 (proceed_one_lwp): If resume request is resume_step, install
7696 reinsert breakpoints and call maybe_hw_step.
7697
7698 2016-07-21 Yao Qi <yao.qi@linaro.org>
7699
7700 * linux-low.c (proceed_one_lwp): Declare.
7701 (linux_resume_one_thread): Remove local variable 'step'.
7702 Lift code enqueue signal. Call proceed_one_lwp instead of
7703 linux_resume_one_lwp.
7704
7705 2016-07-21 Yao Qi <yao.qi@linaro.org>
7706
7707 * linux-low.c (linux_resume_one_thread): Call
7708 enqueue_pending_signal.
7709
7710 2016-07-21 Yao Qi <yao.qi@linaro.org>
7711
7712 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7713 * inferiors.c (do_restore_current_thread_cleanup): New function.
7714 (make_cleanup_restore_current_thread): Likewise.
7715 * linux-low.c (install_software_single_step_breakpoints): Call
7716 make_cleanup_restore_current_thread. Switch current_thread to
7717 thread.
7718
7719 2016-07-21 Yao Qi <yao.qi@linaro.org>
7720
7721 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7722 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7723 (clone_one_breakpoint): Likewise.
7724 (delete_reinsert_breakpoints): Change parameter to thread.
7725 Callers updated.
7726 (has_reinsert_breakpoints): Likewise.
7727 (uninsert_reinsert_breakpoints): Likewise.
7728 (reinsert_reinsert_breakpoints): Likewise.
7729 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7730 (delete_reinsert_breakpoints): Likewise.
7731 (reinsert_reinsert_breakpoints): Likewise.
7732 (uninsert_reinsert_breakpoints): Likewise.
7733 (has_reinsert_breakpoints): Likewise.
7734
7735 2016-07-21 Yao Qi <yao.qi@linaro.org>
7736
7737 * inferiors.c (get_thread_process): Make parameter const.
7738 * inferiors.h (get_thread_process): Update declaration.
7739 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7740 Add new parameters child_thread and parent_thread. Callers
7741 updated.
7742 * mem-break.h (clone_all_breakpoints): Update declaration.
7743
7744 2016-07-21 Yao Qi <yao.qi@linaro.org>
7745
7746 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7747 <command_list, handler>: Remove.
7748 (struct gdb_breakpoint): New.
7749 (struct other_breakpoint): New.
7750 (struct reinsert_breakpoint): New.
7751 (is_gdb_breakpoint): New function.
7752 (any_persistent_commands): Update command_list if
7753 is_gdb_breakpoint returns true.
7754 (set_breakpoint): Create breakpoints according to their types.
7755 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7756 (set_gdb_breakpoint_1): Likewise.
7757 (set_gdb_breakpoint): Likewise.
7758 (clear_breakpoint_conditions): Change parameter type to
7759 'struct gdb_breakpoint *'.
7760 (clear_breakpoint_commands): Likewise.
7761 (clear_breakpoint_conditions_and_commands): Likewise.
7762 (add_condition_to_breakpoint): Likewise.
7763 (add_breakpoint_condition): Likewise.
7764 (add_commands_to_breakpoint): Likewise.
7765 (check_breakpoints): Check other_breakpoint.
7766 (clone_one_breakpoint): Clone breakpopint according to its type.
7767 * mem-break.h (struct gdb_breakpoint): Declare.
7768 (set_gdb_breakpoint): Update declaration.
7769 (clear_breakpoint_conditions_and_commands): Likewise.
7770 (add_breakpoint_condition): Likewise.
7771 (add_breakpoint_commands): Likewise.
7772 * server.c (process_point_options): Change parameter type to
7773 'struct gdb_breakpoint *'.
7774
7775 2016-07-21 Yao Qi <yao.qi@linaro.org>
7776
7777 * mem-break.c (set_breakpoint_at): Rename it to ...
7778 (set_breakpoint_type_at): ... it.
7779 (set_breakpoint_at): Call set_breakpoint_type_at.
7780 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7781 * mem-break.h (set_breakpoint_at): Update comments.
7782
7783 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7784
7785 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7786 to buf parameter.
7787 (nios2_store_gregset): Likewise.
7788
7789 2016-07-01 Pedro Alves <palves@redhat.com>
7790 Antoine Tremblay <antoine.tremblay@ericsson.com>
7791
7792 * linux-low.c: Change interface to take the target lwp_info
7793 pointer directly and return void. Handle detaching from a zombie
7794 thread.
7795 (linux_detach_lwp_callback): New function.
7796 (linux_detach): Detach from the leader thread after detaching from
7797 the clone threads.
7798
7799 2016-06-28 Yao Qi <yao.qi@linaro.org>
7800
7801 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7802 for variable new_offset.
7803 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7804 (aarch64_ftrace_insn_reloc_cb): Likewise.
7805 (aarch64_ftrace_insn_reloc_tb): Likewise.
7806 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7807 PRIx64 instead of PRIx32.
7808
7809 2016-06-28 Yao Qi <yao.qi@linaro.org>
7810
7811 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7812 (the_low_target): Install arm_get_syscall_trapinfo.
7813
7814 2016-06-28 Yao Qi <yao.qi@linaro.org>
7815
7816 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7817 function.
7818 (the_low_target): Install aarch64_get_syscall_trapinfo.
7819
7820 2016-06-28 Yao Qi <yao.qi@linaro.org>
7821
7822 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7823 Callers updated.
7824 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7825 Remove parameter sysno.
7826 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7827 sysret.
7828
7829 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7830
7831 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7832 (s390_emit_ne_goto): Likewise.
7833 (s390_emit_lt_goto): Likewise.
7834 (s390_emit_le_goto): Likewise.
7835 (s390_emit_gt_goto): Likewise.
7836 (s390_emit_ge_goto): Likewise.
7837 (s390x_emit_eq_goto): Likewise.
7838 (s390x_emit_ne_goto): Likewise.
7839 (s390x_emit_lt_goto): Likewise.
7840 (s390x_emit_le_goto): Likewise.
7841 (s390x_emit_gt_goto): Likewise.
7842 (s390x_emit_ge_goto): Likewise.
7843 (s390_emit_ops_impl): Mark variable static.
7844 (s390x_emit_ops): Likewise.
7845
7846 2016-06-17 Yao Qi <yao.qi@linaro.org>
7847
7848 * linux-low.c (handle_extended_wait): Call
7849 uninsert_reinsert_breakpoints for the parent process. Remove
7850 reinsert breakpoints from the child process. Reinsert them to
7851 the parent process when vfork is done.
7852 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7853 (reinsert_reinsert_breakpoints): New function.
7854 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7855 (reinsert_reinsert_breakpoints): Declare.
7856
7857 2016-06-17 Yao Qi <yao.qi@linaro.org>
7858
7859 * linux-low.c (handle_extended_wait): If the parent is doing
7860 step-over, remove the reinsert breakpoints from the forked child.
7861
7862 2016-06-17 Yao Qi <yao.qi@linaro.org>
7863
7864 * linux-low.c (unsuspend_all_lwps): Declare.
7865 (linux_low_filter_event): If thread exited, call finish_step_over.
7866 If step-over is finished, unsuspend other threads.
7867
7868 2016-06-17 Yao Qi <yao.qi@linaro.org>
7869
7870 * linux-low.c (linux_resume_one_lwp_throw): Assert
7871 has_reinsert_breakpoints returns false.
7872 * mem-break.c (delete_disabled_breakpoints): Assert
7873 bp type isn't reinsert_breakpoint.
7874
7875 2016-06-17 Yao Qi <yao.qi@linaro.org>
7876
7877 * linux-low.c (maybe_hw_step): New function.
7878 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7879 (finish_step_over): Switch current_thread to lwp temporarily,
7880 and assert has_reinsert_breakpoints returns true.
7881 (proceed_one_lwp): Call maybe_hw_step.
7882 * mem-break.c (has_reinsert_breakpoints): New function.
7883 * mem-break.h (has_reinsert_breakpoints): Declare.
7884
7885 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7886
7887 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7888
7889 2016-05-17 Yao Qi <yao.qi@linaro.org>
7890
7891 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7892 instead of find_inferior.
7893
7894 2016-05-05 Yao Qi <yao.qi@linaro.org>
7895
7896 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7897 Initialize res to zero.
7898
7899 2016-05-05 Yao Qi <yao.qi@linaro.org>
7900
7901 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7902 to uint32_t.
7903
7904 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7905
7906 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7907 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7908 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7909
7910 2016-04-28 Par Olsson <par.olsson@windriver.com>
7911 Simon Marchi <simon.marchi@ericsson.com>
7912
7913 * tracepoint.c (write_inferior_int8): New function.
7914 (cmd_qtenable_disable): Write enable flag using
7915 write_inferior_int8.
7916
7917 2016-04-25 Yao Qi <yao.qi@linaro.org>
7918
7919 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7920 (need_step_over_p): Return zero if the LWP has pending signals
7921 can be delivered on software single step target.
7922
7923 2016-04-25 Yao Qi <yao.qi@linaro.org>
7924
7925 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7926 return instead of error.
7927
7928 2016-04-22 Yao Qi <yao.qi@linaro.org>
7929
7930 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7931 to 23.
7932
7933 2016-04-22 Yao Qi <yao.qi@linaro.org>
7934
7935 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7936 signal when stepping over breakpoint with software single
7937 step.
7938
7939 2016-04-21 Pedro Alves <palves@redhat.com>
7940
7941 * linux-s390-low.c (s390_collect_ptrace_register)
7942 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7943 add casts.
7944 (s390_check_regset): Use void * instead of gdb_byte *.
7945
7946 2016-04-20 Pedro Alves <palves@redhat.com>
7947
7948 * configure: Renegerate.
7949
7950 2016-04-20 Yao Qi <yao.qi@linaro.org>
7951
7952 * linux-aarch32-low.c: Include "arch/arm-linux.h".
7953 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
7954 number 16.
7955 (arm_store_gregset): Likewise.
7956
7957 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
7958
7959 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
7960 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
7961 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
7962 (amd64-avx-mpx-linux.c): New rules.
7963 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
7964 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
7965 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
7966 (srv_amd64_regobj): Add amd64-avx-mpx.o.
7967 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
7968 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
7969 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
7970 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
7971 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
7972 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
7973 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
7974 * linux-x86-low.c (x86_linux_read_description): Add case for
7975 X86_XSTATE_AVX_MPX_MASK.
7976 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
7977 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
7978 init_registers_i386_avx_mpx_linux.
7979 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7980 (initialize_low_tracepoint): Call
7981 init_registers_i386_avx_mpx_linux.
7982 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7983 (initialize_low_tracepoint): Call
7984 init_registers_amd64_avx_mpx_linux.
7985 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
7986 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
7987 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
7988 declarations.
7989
7990 2016-04-18 Pedro Alves <palves@redhat.com>
7991
7992 * configure: Regenerate.
7993
7994 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
7995
7996 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
7997 (aarch64_emit_sub): Likewise.
7998
7999 2016-04-12 Pedro Alves <palves@redhat.com>
8000
8001 * utils.c (prepare_to_throw_exception): Delete.
8002
8003 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8004
8005 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8006
8007 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8008
8009 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8010
8011 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8012
8013 * linux-aarch64-ipa.c: Add <elf.h> include.
8014 * linux-ppc-ipa.c: Add <elf.h> include.
8015 * linux-s390-ipa.c: Add <elf.h> include.
8016
8017 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8018
8019 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8020 (get_raw_reg_ptr): Likewise.
8021 (get_trace_state_variable_value_ptr): Likewise.
8022 (set_trace_state_variable_value_ptr): Likewise.
8023 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8024 char *.
8025
8026 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8027 Marcin Kościelnicki <koriakin@0x04.net>
8028
8029 PR/17221
8030 * linux-ppc-low.c (emit_insns): New function.
8031 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8032 (ppc_emit_prologue): New function.
8033 (ppc_emit_epilogue): New function.
8034 (ppc_emit_add): New function.
8035 (ppc_emit_sub): New function.
8036 (ppc_emit_mul): New function.
8037 (ppc_emit_lsh): New function.
8038 (ppc_emit_rsh_signed): New function.
8039 (ppc_emit_rsh_unsigned): New function.
8040 (ppc_emit_ext): New function.
8041 (ppc_emit_zero_ext): New function.
8042 (ppc_emit_log_not): New function.
8043 (ppc_emit_bit_and): New function.
8044 (ppc_emit_bit_or): New function.
8045 (ppc_emit_bit_xor): New function.
8046 (ppc_emit_bit_not): New function.
8047 (ppc_emit_equal): New function.
8048 (ppc_emit_less_signed): New function.
8049 (ppc_emit_less_unsigned): New function.
8050 (ppc_emit_ref): New function.
8051 (ppc_emit_const): New function.
8052 (ppc_emit_reg): New function.
8053 (ppc_emit_pop): New function.
8054 (ppc_emit_stack_flush): New function.
8055 (ppc_emit_swap): New function.
8056 (ppc_emit_stack_adjust): New function.
8057 (ppc_emit_call): New function.
8058 (ppc_emit_int_call_1): New function.
8059 (ppc_emit_void_call_2): New function.
8060 (ppc_emit_if_goto): New function.
8061 (ppc_emit_goto): New function.
8062 (ppc_emit_eq_goto): New function.
8063 (ppc_emit_ne_goto): New function.
8064 (ppc_emit_lt_goto): New function.
8065 (ppc_emit_le_goto): New function.
8066 (ppc_emit_gt_goto): New function.
8067 (ppc_emit_ge_goto): New function.
8068 (ppc_write_goto_address): New function.
8069 (ppc_emit_ops_impl): New static variable.
8070 (ppc64v1_emit_prologue): New function.
8071 (ppc64v2_emit_prologue): New function.
8072 (ppc64_emit_epilogue): New function.
8073 (ppc64_emit_add): New function.
8074 (ppc64_emit_sub): New function.
8075 (ppc64_emit_mul): New function.
8076 (ppc64_emit_lsh): New function.
8077 (ppc64_emit_rsh_signed): New function.
8078 (ppc64_emit_rsh_unsigned): New function.
8079 (ppc64_emit_ext): New function.
8080 (ppc64_emit_zero_ext): New function.
8081 (ppc64_emit_log_not): New function.
8082 (ppc64_emit_bit_and): New function.
8083 (ppc64_emit_bit_or): New function.
8084 (ppc64_emit_bit_xor): New function.
8085 (ppc64_emit_bit_not): New function.
8086 (ppc64_emit_equal): New function.
8087 (ppc64_emit_less_signed): New function.
8088 (ppc64_emit_less_unsigned): New function.
8089 (ppc64_emit_ref): New function.
8090 (ppc64_emit_const): New function.
8091 (ppc64v1_emit_reg): New function.
8092 (ppc64v2_emit_reg): New function.
8093 (ppc64_emit_pop): New function.
8094 (ppc64_emit_stack_flush): New function.
8095 (ppc64_emit_swap): New function.
8096 (ppc64v1_emit_call): New function.
8097 (ppc64v2_emit_call): New function.
8098 (ppc64v1_emit_int_call_1): New function.
8099 (ppc64v2_emit_int_call_1): New function.
8100 (ppc64v1_emit_void_call_2): New function.
8101 (ppc64v2_emit_void_call_2): New function.
8102 (ppc64_emit_if_goto): New function.
8103 (ppc64_emit_eq_goto): New function.
8104 (ppc64_emit_ne_goto): New function.
8105 (ppc64_emit_lt_goto): New function.
8106 (ppc64_emit_le_goto): New function.
8107 (ppc64_emit_gt_goto): New function.
8108 (ppc64_emit_ge_goto): New function.
8109 (ppc64v1_emit_ops_impl): New static variable.
8110 (ppc64v2_emit_ops_impl): New static variable.
8111 (ppc_emit_ops): New function.
8112 (linux_low_target): Wire in ppc_emit_ops.
8113
8114 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8115 Marcin Kościelnicki <koriakin@0x04.net>
8116
8117 PR/17221
8118 * Makefile.in: Add powerpc-*-ipa.o
8119 * configure.srv: Add ipa_obj for powerpc*-linux.
8120 * linux-ppc-ipa.c: New file.
8121 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8122 includes.
8123 (PPC_FIELD): New macro.
8124 (PPC_SEXT): New macro.
8125 (PPC_OP6): New macro.
8126 (PPC_BO): New macro.
8127 (PPC_LI): New macro.
8128 (PPC_BD): New macro.
8129 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8130 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8131 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8132 (ppc_get_thread_area): New function.
8133 (is_elfv2_inferior): New function.
8134 (gen_ds_form): New function.
8135 (GEN_STD): New macro.
8136 (GEN_STDU): New macro.
8137 (GEN_LD): New macro.
8138 (GEN_LDU): New macro.
8139 (gen_d_form): New function.
8140 (GEN_ADDI): New macro.
8141 (GEN_ADDIS): New macro.
8142 (GEN_LI): New macro.
8143 (GEN_LIS): New macro.
8144 (GEN_ORI): New macro.
8145 (GEN_ORIS): New macro.
8146 (GEN_LWZ): New macro.
8147 (GEN_STW): New macro.
8148 (GEN_STWU): New macro.
8149 (gen_xfx_form): New function.
8150 (GEN_MFSPR): New macro.
8151 (GEN_MTSPR): New macro.
8152 (GEN_MFCR): New macro.
8153 (GEN_MTCR): New macro.
8154 (GEN_SYNC): New macro.
8155 (GEN_LWSYNC): New macro.
8156 (gen_x_form): New function.
8157 (GEN_OR): New macro.
8158 (GEN_MR): New macro.
8159 (GEN_LWARX): New macro.
8160 (GEN_STWCX): New macro.
8161 (GEN_CMPW): New macro.
8162 (gen_md_form): New function.
8163 (GEN_RLDICL): New macro.
8164 (GEN_RLDICR): New macro.
8165 (gen_i_form): New function.
8166 (GEN_B): New macro.
8167 (GEN_BL): New macro.
8168 (gen_b_form): New function.
8169 (GEN_BNE): New macro.
8170 (GEN_LOAD): New macro.
8171 (GEN_STORE): New macro.
8172 (gen_limm): New function.
8173 (gen_atomic_xchg): New function.
8174 (gen_call): New function.
8175 (ppc_relocate_instruction): New function.
8176 (ppc_install_fast_tracepoint_jump_pad): New function.
8177 (ppc_get_min_fast_tracepoint_insn_len): New function.
8178 (ppc_get_ipa_tdesc_idx): New function.
8179 (the_low_target): Wire in the new functions.
8180 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8181 tdescs.
8182 * linux-ppc-tdesc.h: New file.
8183
8184 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8185
8186 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8187 (alloc_jump_pad_buffer): New function.
8188 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8189 (alloc_jump_pad_buffer): New function.
8190 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8191 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8192 (alloc_jump_pad_buffer): New function.
8193 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8194 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8195 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8196 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8197
8198 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8199
8200 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8201 * linux-amd64-ipa.c: Likewise.
8202 * linux-i386-ipa.c: Likewise.
8203 * linux-s390-ipa.c: Likewise.
8204 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8205 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8206 set_trace_state_variable_value_ptr.
8207 (struct ipa_sym_addresses): Likewise.
8208 (symbol_list): Likewise.
8209 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8210 accessing gdb_collect directly.
8211 (gdb_collect_ptr_type): New typedef.
8212 (get_raw_reg_ptr_type): New typedef.
8213 (get_trace_state_variable_value_ptr_type): New typedef.
8214 (set_trace_state_variable_value_ptr_type): New typedef.
8215 (gdb_collect_ptr): New global.
8216 (get_raw_reg_ptr): New global.
8217 (get_trace_state_variable_value_ptr): New global.
8218 (set_trace_state_variable_value_ptr): New global.
8219 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8220 accessing get_raw_reg directly.
8221 (get_get_tsv_func_addr): Likewise for
8222 get_trace_state_variable_value_ptr.
8223 (get_set_tsv_func_addr): Likewise for
8224 set_trace_state_variable_value_ptr.
8225 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8226
8227 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8228
8229 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8230
8231 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8232
8233 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8234 packets.
8235 (relocate_instruction): Remove own_buf.
8236 * server.c (own_buf): Make global.
8237 (handle_v_requests): Make global.
8238 * server.h (own_buf): New declaration.
8239 (handle_v_requests): New prototype.
8240
8241 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8242
8243 PR 18377
8244 * linux-s390-low.c (add_insns): New function.
8245 (s390_emit_prologue): New function.
8246 (s390_emit_epilogue): New function.
8247 (s390_emit_add): New function.
8248 (s390_emit_sub): New function.
8249 (s390_emit_mul): New function.
8250 (s390_emit_lsh): New function.
8251 (s390_emit_rsh_signed): New function.
8252 (s390_emit_rsh_unsigned): New function.
8253 (s390_emit_ext): New function.
8254 (s390_emit_log_not): New function.
8255 (s390_emit_bit_and): New function.
8256 (s390_emit_bit_or): New function.
8257 (s390_emit_bit_xor): New function.
8258 (s390_emit_bit_not): New function.
8259 (s390_emit_equal): New function.
8260 (s390_emit_less_signed): New function.
8261 (s390_emit_less_unsigned): New function.
8262 (s390_emit_ref): New function.
8263 (s390_emit_if_goto): New function.
8264 (s390_emit_goto): New function.
8265 (s390_write_goto_address): New function.
8266 (s390_emit_litpool): New function.
8267 (s390_emit_const): New function.
8268 (s390_emit_call): New function.
8269 (s390_emit_reg): New function.
8270 (s390_emit_pop): New function.
8271 (s390_emit_stack_flush): New function.
8272 (s390_emit_zero_ext): New function.
8273 (s390_emit_swap): New function.
8274 (s390_emit_stack_adjust): New function.
8275 (s390_emit_set_r2): New function.
8276 (s390_emit_int_call_1): New function.
8277 (s390_emit_void_call_2): New function.
8278 (s390_emit_eq_goto): New function.
8279 (s390_emit_ne_goto): New function.
8280 (s390_emit_lt_goto): New function.
8281 (s390_emit_le_goto): New function.
8282 (s390_emit_gt_goto): New function.
8283 (s390_emit_ge_goto): New function.
8284 (s390x_emit_prologue): New function.
8285 (s390x_emit_epilogue): New function.
8286 (s390x_emit_add): New function.
8287 (s390x_emit_sub): New function.
8288 (s390x_emit_mul): New function.
8289 (s390x_emit_lsh): New function.
8290 (s390x_emit_rsh_signed): New function.
8291 (s390x_emit_rsh_unsigned): New function.
8292 (s390x_emit_ext): New function.
8293 (s390x_emit_log_not): New function.
8294 (s390x_emit_bit_and): New function.
8295 (s390x_emit_bit_or): New function.
8296 (s390x_emit_bit_xor): New function.
8297 (s390x_emit_bit_not): New function.
8298 (s390x_emit_equal): New function.
8299 (s390x_emit_less_signed): New function.
8300 (s390x_emit_less_unsigned): New function.
8301 (s390x_emit_ref): New function.
8302 (s390x_emit_if_goto): New function.
8303 (s390x_emit_const): New function.
8304 (s390x_emit_call): New function.
8305 (s390x_emit_reg): New function.
8306 (s390x_emit_pop): New function.
8307 (s390x_emit_stack_flush): New function.
8308 (s390x_emit_zero_ext): New function.
8309 (s390x_emit_swap): New function.
8310 (s390x_emit_stack_adjust): New function.
8311 (s390x_emit_int_call_1): New function.
8312 (s390x_emit_void_call_2): New function.
8313 (s390x_emit_eq_goto): New function.
8314 (s390x_emit_ne_goto): New function.
8315 (s390x_emit_lt_goto): New function.
8316 (s390x_emit_le_goto): New function.
8317 (s390x_emit_gt_goto): New function.
8318 (s390x_emit_ge_goto): New function.
8319 (s390_emit_ops): New function.
8320 (struct linux_target_ops): Fill in emit_ops hook.
8321
8322 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8323
8324 PR 18377
8325 * Makefile.in: Add s390 IPA files.
8326 * configure.srv: Build IPA for s390.
8327 * linux-s390-ipa.c: New file.
8328 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8329 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8330 (tdesc_s390_linux32): Likewise.
8331 (init_registers_s390_linux32v1): Likewise.
8332 (tdesc_s390_linux32v1): Likewise.
8333 (init_registers_s390_linux32v2): Likewise.
8334 (tdesc_s390_linux32v2): Likewise.
8335 (init_registers_s390_linux64): Likewise.
8336 (tdesc_s390_linux64): Likewise.
8337 (init_registers_s390_linux64v1): Likewise.
8338 (tdesc_s390_linux64v1): Likewise.
8339 (init_registers_s390_linux64v2): Likewise.
8340 (tdesc_s390_linux64v2): Likewise.
8341 (init_registers_s390_te_linux64): Likewise.
8342 (tdesc_s390_te_linux64): Likewise.
8343 (init_registers_s390_vx_linux64): Likewise.
8344 (tdesc_s390_vx_linux64): Likewise.
8345 (init_registers_s390_tevx_linux64): Likewise.
8346 (tdesc_s390_tevx_linux64): Likewise.
8347 (init_registers_s390x_linux64): Likewise.
8348 (tdesc_s390x_linux64): Likewise.
8349 (init_registers_s390x_linux64v1): Likewise.
8350 (tdesc_s390x_linux64v1): Likewise.
8351 (init_registers_s390x_linux64v2): Likewise.
8352 (tdesc_s390x_linux64v2): Likewise.
8353 (init_registers_s390x_te_linux64): Likewise.
8354 (tdesc_s390x_te_linux64): Likewise.
8355 (init_registers_s390x_vx_linux64): Likewise.
8356 (tdesc_s390x_vx_linux64): Likewise.
8357 (init_registers_s390x_tevx_linux64): Likewise.
8358 (tdesc_s390x_tevx_linux64): Likewise.
8359 (have_hwcap_s390_vx): New static variable.
8360 (s390_arch_setup): Fill have_hwcap_s390_vx.
8361 (s390_get_thread_area): New function.
8362 (s390_ft_entry_gpr_esa): New const.
8363 (s390_ft_entry_gpr_zarch): New const.
8364 (s390_ft_entry_misc): New const.
8365 (s390_ft_entry_fr): New const.
8366 (s390_ft_entry_vr): New const.
8367 (s390_ft_main_31): New const.
8368 (s390_ft_main_64): New const.
8369 (s390_ft_exit_fr): New const.
8370 (s390_ft_exit_vr): New const.
8371 (s390_ft_exit_misc): New const.
8372 (s390_ft_exit_gpr_esa): New const.
8373 (s390_ft_exit_gpr_zarch): New const.
8374 (append_insns): New function.
8375 (s390_relocate_instruction): New function.
8376 (s390_install_fast_tracepoint_jump_pad): New function.
8377 (s390_get_min_fast_tracepoint_insn_len): New function.
8378 (s390_get_ipa_tdesc_idx): New function.
8379 (struct linux_target_ops): Wire in the above functions.
8380 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8381 * linux-s390-tdesc.h: New file.
8382
8383 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8384
8385 * linux-s390-low.c (s390_supports_tracepoints): New function.
8386 (struct linux_target_ops): Fill supports_tracepoints hook.
8387
8388 2016-03-18 Yao Qi <yao.qi@linaro.org>
8389
8390 * linux-low.c (lwp_signal_can_be_delivered): New function.
8391 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8392
8393 2016-03-18 Yao Qi <yao.qi@linaro.org>
8394
8395 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8396 0 if signal is enqueued. Remove 'signal' from one debugging
8397 message. Move one debugging message to some lines below.
8398 Remove code setting 'signal' to 0.
8399
8400 2016-03-18 Yao Qi <yao.qi@linaro.org>
8401
8402 * linux-low.c (linux_low_filter_event): Remove redundant
8403 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8404
8405 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8406
8407 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8408 (struct linux_target_ops): Wire in the above.
8409
8410 2016-03-03 Yao Qi <yao.qi@linaro.org>
8411
8412 * linux-low.c: Update comments to start_step_over.
8413
8414 2016-03-03 Yao Qi <yao.qi@linaro.org>
8415
8416 PR server/19736
8417 * linux-low.c (handle_extended_wait): Set child suspended
8418 if event_lwp->bp_reinsert isn't zero.
8419
8420 2016-03-02 Yao Qi <yao.qi@linaro.org>
8421
8422 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8423 enqueue_pending_signal.
8424
8425 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8426
8427 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8428 is actually loaded.
8429
8430 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8431
8432 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8433 (s390_regmap_3264) [!__s390x__]: New global.
8434 (s390_collect_ptrace_register): Skip map entries containing -1.
8435 (s390_supply_ptrace_register): Ditto.
8436 (s390_fill_gprs_high): New function.
8437 (s390_store_gprs_high): New function.
8438 (s390_regsets): Add NT_S390_HIGH_GPRS.
8439 (s390_get_hwcap): Enable on 31-bit.
8440 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8441 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8442 Detect NT_S390_HIGH_GPRS.
8443 (s390_usrregs_info_3264): Enable on 31-bit.
8444 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8445 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8446
8447 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8448
8449 PR gdb/13808
8450 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8451 * configure.srv: Ditto.
8452 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8453 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8454 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8455 (init_registers_amd64_linux): Remove prototype.
8456 (tdesc_amd64_linux): Remove declaration.
8457 (get_ipa_tdesc): New function.
8458 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8459 initialize remaining tdescs.
8460 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8461 (init_registers_i386_linux): Remove prototype.
8462 (tdesc_i386_linux): Remove declaration.
8463 (get_ipa_tdesc): New function.
8464 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8465 initialize remaining tdescs.
8466 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8467 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8468 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8469 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8470 (x86_get_ipa_tdesc_idx): New function.
8471 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8472 * linux-x86-tdesc.h: New file.
8473 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8474 (target_get_ipa_tdesc_idx): New macro.
8475 * tracepoint.c (ipa_tdesc_idx): New macro.
8476 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8477 (symbol_list): Add ipa_tdesc_idx.
8478 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8479 (ipa_tdesc): Remove.
8480 (ipa_tdesc_idx): New variable.
8481 (get_context_regcache): Use get_ipa_tdesc.
8482 (gdb_collect): Ditto.
8483 (gdb_probe): Ditto.
8484 * tracepoint.h (get_ipa_tdesc): New prototype.
8485 (ipa_tdesc): Remove.
8486
8487 2016-02-24 Pedro Alves <palves@redhat.com>
8488
8489 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8490 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8491 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8492 Factor out common code between the USE_SIGTRAP_SIGINFO and
8493 !USE_SIGTRAP_SIGINFO blocks.
8494 (linux_low_filter_event): Call save_stop_reason instead of
8495 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8496 Update comments.
8497 (linux_wait_1): Update comments.
8498
8499 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8500
8501 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8502 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8503 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8504 ppc_insert_point, ppc_remove_point.
8505
8506 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8507
8508 * linux-s390-low.c (s390_supports_z_point_type): New function.
8509 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8510
8511 2016-02-16 Yao Qi <yao.qi@linaro.org>
8512
8513 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8514 PC. Get pc from regcache_read_pc.
8515
8516 2016-02-12 Yao Qi <yao.qi@linaro.org>
8517
8518 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8519 or linux_get_pc_32bit.
8520 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8521
8522 2016-02-12 Yao Qi <yao.qi@linaro.org>
8523
8524 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8525 arm_linux_get_next_pcs_fixup.
8526
8527 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8528
8529 * tracepoint.c (x_tracepoint_action_download): Change
8530 write_inferior_data_ptr to write_inferior_data_pointer.
8531 (cmd_qtstart): Likewise.
8532 (write_inferior_data_ptr): Remove.
8533 (download_agent_expr): Change write_inferior_data_ptr to
8534 write_inferior_data_pointer.
8535 (download_tracepoint_1): Likewise.
8536 (download_tracepoint): Likewise.
8537 (download_trace_state_variables): Likewise.
8538
8539 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8540 Marcin Kościelnicki <koriakin@0x04.net>
8541
8542 * tracepoint.c (struct tracepoint_action_ops): Remove.
8543 (struct tracepoint_action): Remove ops.
8544 (m_tracepoint_action_download, r_tracepoint_action_download)
8545 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8546 size and offset accordingly.
8547 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8548 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8549 (tracepoint_action_send, tracepoint_action_download): New functions.
8550 Helpers for trace action handlers.
8551 (add_tracepoint_action): Remove setup actions ops.
8552 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8553
8554 2016-02-10 Yao Qi <yao.qi@linaro.org>
8555
8556 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8557
8558 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8559
8560 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8561 to AC_OUTPUT.
8562 * configure: Regenerate.
8563
8564 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8565
8566 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8567 void * to gdb_byte *.
8568 * linux-low.c (siginfo_fixup): Likewise.
8569 (linux_xfer_siginfo): Likewise.
8570 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8571 Likewise.
8572 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8573
8574 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8575
8576 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8577 to srv_tgtobj.
8578 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8579 to srv_tgtobj.
8580 * linux-x86-low.c [__x86_64__]: Include
8581 "nat/amd64-linux-siginfo.h".
8582 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8583 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8584 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8585 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8586 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8587 (cpt_si_fd, si_timerid, si_overrun): Move from
8588 nat/amd64-linux-siginfo.c.
8589 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8590
8591 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8592
8593 * server.c (skip_to_semicolon): Remove.
8594 (process_point_options): Use strchrnul instead of
8595 skip_to_semicolon.
8596
8597 2016-01-26 Yao Qi <yao.qi@linaro.org>
8598
8599 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8600 * linux-low.c (install_software_single_step_breakpoints): Don't
8601 call regcache_read_pc.
8602 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8603 argument pc.
8604
8605 2016-01-26 Yao Qi <yao.qi@linaro.org>
8606
8607 * linux-low.c (install_software_single_step_breakpoints): Call
8608 regcache_read_pc instead of get_pc.
8609
8610 2016-01-26 Yao Qi <yao.qi@linaro.org>
8611
8612 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8613 (unblock_async_io): Rename to ...
8614 (block_unblock_async_io): ... it. New function.
8615 (enable_async_io): Don't install SIGIO handler. Unblock it
8616 instead.
8617 (disable_async_io): Don't ignore SIGIO. Block it instead.
8618 (initialize_async_io): Install SIGIO handler. Don't call
8619 unblock_async_io.
8620
8621 2016-01-26 Yao Qi <yao.qi@linaro.org>
8622
8623 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8624 first character is '\003', call *the_target->request_interrupt.
8625
8626 2016-01-25 Yao Qi <yao.qi@linaro.org>
8627
8628 * remote-utils.c (new_thread_notify): Remove.
8629 (dead_thread_notify): Likewise.
8630 * remote-utils.h (new_thread_notify): Remove declaration.
8631 (dead_thread_notify): Likewise.
8632
8633 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8634
8635 * gdb.trace/pending.exp: Fix expected message on continue.
8636
8637 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8638
8639 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8640 it works properly on big-endian machines where sizeof (CORE_ADDR)
8641 != sizeof (void *).
8642
8643 2016-01-21 Pedro Alves <palves@redhat.com>
8644
8645 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8646 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8647 * configure: Regenerate.
8648
8649 2016-01-21 Yao Qi <yao.qi@linaro.org>
8650
8651 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8652 is_thumb and set it according to CPSR saved on the stack.
8653 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8654 arm_sigreturn_next_pc.
8655
8656 2016-01-18 Yao Qi <yao.qi@linaro.org>
8657
8658 * linux-low.c (linux_set_pc_64bit): New function.
8659 (linux_get_pc_64bit): New function.
8660 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8661 Declare.
8662 * linux-sparc-low.c (debug_threads): Remove declaration.
8663 (sparc_get_pc): Remove.
8664 (the_low_target): Use linux_get_pc_64bit instead of
8665 sparc_get_pc.
8666 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8667 (the_low_target): Use linux_get_pc_64bit and
8668 linux_set_pc_64bit.
8669
8670 2016-01-18 Yao Qi <yao.qi@linaro.org>
8671
8672 * linux-arm-low.c (debug_threads): Remove declaration.
8673 (arm_get_pc, arm_set_pc): Remove.
8674 (the_low_target): Use linux_get_pc_32bit and
8675 linux_set_pc_32bit.
8676 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8677 (the_low_target): Use linux_get_pc_32bit and
8678 linux_set_pc_32bit.
8679 * linux-cris-low.c (debug_threads): Remove declaration.
8680 (cris_get_pc, cris_set_pc,): Remove.
8681 (the_low_target): Use linux_get_pc_32bit and
8682 linux_set_pc_32bit.
8683 * linux-crisv32-low.c (debug_threads): Remove declaration.
8684 (cris_get_pc, cris_set_pc): Remove.
8685 (the_low_target): Use linux_get_pc_32bit and
8686 linux_set_pc_32bit.
8687 * linux-low.c: Include inttypes.h.
8688 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8689 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8690 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8691 (the_low_target): Use linux_get_pc_32bit and
8692 linux_set_pc_32bit.
8693 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8694 (the_low_target): Use linux_get_pc_32bit and
8695 linux_set_pc_32bit.
8696 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8697 (the_low_target): Use linux_get_pc_32bit and
8698 linux_set_pc_32bit.
8699 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8700 (the_low_target): Use linux_get_pc_32bit and
8701 linux_set_pc_32bit.
8702 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8703 (the_low_target): Use linux_get_pc_32bit and
8704 linux_set_pc_32bit.
8705
8706 2016-01-18 Gary Benson <gbenson@redhat.com>
8707
8708 * configure.ac (AC_FUNC_FORK): New check.
8709 * config.in: Regenerate.
8710 * configure: Likewise.
8711
8712 2016-01-14 Yao Qi <yao.qi@linaro.org>
8713
8714 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8715 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8716 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8717 arm_get_next_pcs_ctor.
8718
8719 2016-01-12 Josh Stone <jistone@redhat.com>
8720 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8721
8722 * inferiors.h: Include "gdb_vecs.h".
8723 (struct process_info): Add syscalls_to_catch.
8724 * inferiors.c (remove_process): Free syscalls_to_catch.
8725 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8726 syscall_return stops.
8727 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8728 * server.c (handle_general_set): Handle QCatchSyscalls.
8729 (handle_query): Report support for QCatchSyscalls.
8730 * target.h (struct target_ops): Add supports_catch_syscall.
8731 (target_supports_catch_syscall): New macro.
8732 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8733 (struct lwp_info): Add syscall_state.
8734 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8735 Maintain syscall_state and syscalls_to_catch across exec.
8736 (get_syscall_trapinfo): New function, proxy to the_low_target.
8737 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8738 (linux_low_filter_event): Toggle syscall_state entry/return for
8739 syscall traps, and set it ignored for all others.
8740 (gdb_catching_syscalls_p): New function.
8741 (gdb_catch_this_syscall_p): New function.
8742 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8743 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8744 (linux_supports_catch_syscall): New function.
8745 (linux_target_ops): Install it.
8746 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8747 (the_low_target): Install it.
8748
8749 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8750
8751 * acinclude.m4: Include new ../warning.m4 file.
8752 * configure: Regenerated.
8753 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8754
8755 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8756
8757 * ax.c (is_goto_target): Mark static.
8758 * linux-low.c (register_addr): Likewise.
8759 (linux_fetch_registers, linux_store_registers): Likewise.
8760 * mem-break.c (any_persistent_commands): Fix old prototype.
8761 (add_commands_to_breakpoint): Mark static.
8762 * regcache.c (find_register_by_name): Delete unused func.
8763 * remote-utils.c (hex_or_minus_one): Mark static.
8764 * server.c (monitor_show_help): Mark static.
8765 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8766 handle_v_requests): Likewise.
8767
8768 2016-01-12 Pedro Alves <palves@redhat.com>
8769
8770 Remove use of the registered trademark symbol throughout.
8771
8772 2016-01-08 Yao Qi <yao.qi@linaro.org>
8773
8774 * remote-utils.c (getpkt): If c is '\003', call target hook
8775 request_interrupt.
8776
8777 2016-01-06 Yao Qi <yao.qi@linaro.org>
8778
8779 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8780 linux-aarch32-low.c.
8781 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8782 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8783 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8784 (thumb2_breakpoint): Declare.
8785 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8786 linux-aarch32-low.h.
8787 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8788 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8789 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8790
8791 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8792
8793 * gdbreplay.c (gdbreplay_version): Change copyright year in
8794 version message.
8795 * server.c (gdbserver_version): Likewise.
8796
8797 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8798
8799 * server.c (crc32_table): Delete.
8800 (crc32): Use libiberty's xcrc32 function.
8801
8802 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8803
8804 * lynx-low.c (lynx_delete_thread_callback): New function.
8805 (lynx_mourn): Properly delete our process and all of its
8806 threads. Remove call to clear_inferiors.
8807
8808 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8809
8810 * target.c (thread_search_callback): Add check that
8811 the thread_stopped target callback is not NULL before
8812 calling it.
8813
8814 2015-12-21 Yao Qi <yao.qi@linaro.org>
8815
8816 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8817 arm breakpoint.
8818
8819 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8820
8821 * server.c (handle_query): Call target_supports_software_single_step.
8822
8823 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8824
8825 * linux-low.c (single_step): New function.
8826 (linux_resume_one_lwp_throw): Call single_step.
8827 (start_step_over): Likewise.
8828
8829 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8830
8831 * Makefile.in (SFILES): Append arch/arm-linux.c,
8832 arch/arm-get-next-pcs.c.
8833 (arm-linux.o): New rule.
8834 (arm-get-next-pcs.o): New rule.
8835 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8836 arm-linux.o.
8837 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8838 to linux-aarch32-low.c.
8839 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8840 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8841 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8842 (thumb2_breakpoint_len): Likewise.
8843 (arm_is_thumb_mode): Make non-static.
8844 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8845 from linux-aarch32-low.c.
8846 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8847 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8848 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8849 (thumb2_breakpoint_len): Likewise.
8850 (arm_is_thumb_mode): New declaration.
8851 * linux-arm-low.c: Include arch/arm-linux.h
8852 aarch/arm-get-next-pcs.h, sys/syscall.h.
8853 (get_next_pcs_ops): New struct.
8854 (get_next_pcs_addr_bits_remove): New function.
8855 (get_next_pcs_is_thumb): New function.
8856 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8857 (arm_sigreturn_next_pc): Likewise.
8858 (get_next_pcs_syscall_next_pc): Likewise.
8859 (arm_gdbserver_get_next_pcs): Likewise.
8860 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8861 Initialize.
8862 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8863 * server.h: Include gdb_vecs.h.
8864
8865 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8866
8867 * Makefile.in (SFILES): Append common/common-regcache.c.
8868 (OBS): Append common-regcache.o.
8869 (common-regcache.o): New rule.
8870 * regcache.c (init_register_cache): Initialize cache to
8871 REG_UNAVAILABLE.
8872 (regcache_raw_read_unsigned): New function.
8873 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8874 register_status enum.
8875
8876 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8877
8878 * linux-aarch64-low.c (the_low_targets): Rename
8879 breakpoint_reinsert_addr to get_next_pcs.
8880 * linux-arm-low.c (the_low_targets): Likewise.
8881 * linux-bfin-low.c (the_low_targets): Likewise.
8882 * linux-cris-low.c (the_low_targets): Likewise.
8883 * linux-crisv32-low.c (the_low_targets): Likewise.
8884 * linux-low.c (can_software_single_step): Likewise.
8885 (install_software_single_step_breakpoints): New function.
8886 (start_step_over): Use install_software_single_step_breakpoints.
8887 * linux-low.h: New CORE_ADDR vector.
8888 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8889 get_next_pcs.
8890 * linux-mips-low.c (the_low_targets): Likewise.
8891 * linux-nios2-low.c (the_low_targets): Likewise.
8892 * linux-sparc-low.c (the_low_targets): Likewise.
8893
8894 2015-12-17 Pedro Alves <palves@redhat.com>
8895
8896 * linux-low.c (linux_kill_one_lwp): Remove references to
8897 LinuxThreads.
8898 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8899 to 'kill'.
8900 (linux_init_signals): Delete.
8901 (initialize_low): Adjust.
8902 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8903
8904 2015-12-16 Pedro Alves <palves@redhat.com>
8905
8906 * configure.ac (compiler warning flags): When testing a
8907 -Wno-foo option, check whether -Wfoo works instead.
8908 * configure: Regenerate.
8909
8910 2015-12-11 Don Breazeal <donb@codesourcery.com>
8911
8912 * server.c (process_serial_event): Don't exit from gdbserver
8913 in remote mode if there are still active inferiors.
8914
8915 2015-12-11 Yao Qi <yao.qi@linaro.org>
8916
8917 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8918 arm_breakpoint_at if the process is 32-bit.
8919
8920 2015-12-11 Yao Qi <yao.qi@linaro.org>
8921
8922 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8923 arm breakpoint.
8924
8925 2015-12-07 Yao Qi <yao.qi@linaro.org>
8926
8927 * configure.srv: Append arm.o to srv_tgtobj for
8928 aarch64*-*-linux* target.
8929 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8930 from linux-arm-low.c.
8931 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8932 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8933 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8934 (thumb2_breakpoint_len): Likewise.
8935 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8936 (arm_breakpoint_kinds): Likewise.
8937 (arm_breakpoint_kind_from_pc): Likewise.
8938 (arm_sw_breakpoint_from_kind): Likewise.
8939 (arm_breakpoint_kind_from_current_state): Likewise.
8940 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
8941 (arm_sw_breakpoint_from_kind): Declare.
8942 (arm_breakpoint_kind_from_current_state): Declare.
8943 (arm_breakpoint_at): Declare.
8944 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
8945 arm_sw_breakpoint_from_kind if process is 32-bit.
8946 (aarch64_breakpoint_kind_from_pc): New function.
8947 (aarch64_breakpoint_kind_from_current_state): New function.
8948 (the_low_target): Initialize fields breakpoint_kind_from_pc
8949 and breakpoint_kind_from_current_state.
8950 * linux-arm-low.c (arm_breakpoint_kinds): Move to
8951 linux-aarch32-low.c.
8952 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
8953 (arm_breakpoint, arm_breakpoint_len): Likewise.
8954 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
8955 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8956 (arm_is_thumb_mode): Likewise.
8957 (arm_breakpoint_at): Likewise.
8958 (arm_breakpoint_kind_from_pc): Likewise.
8959 (arm_sw_breakpoint_from_kind): Likewise.
8960 (arm_breakpoint_kind_from_current_state): Likewise.
8961
8962 Revert:
8963 2015-08-04 Yao Qi <yao.qi@linaro.org>
8964
8965 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8966 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8967 * server.c (extended_protocol): Remove "static".
8968 * server.h (extended_protocol): Declare it.
8969
8970 2015-12-04 Josh Stone <jistone@redhat.com>
8971
8972 * target.h (struct target_ops) <arch_setup>: Rename to ...
8973 (struct target_ops) <post_create_inferior>: ... this.
8974 (target_arch_setup): Rename to ...
8975 (target_post_create_inferior): ... this, calling post_create_inferior.
8976 * server.c (start_inferior): Update target_arch_setup calls to
8977 target_post_create_inferior.
8978 * linux-low.c (linux_low_ptrace_options): Forward declare.
8979 (linux_arch_setup): Update its comment for general use.
8980 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
8981 (struct linux_target_ops): Use linux_post_create_inferior.
8982 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
8983 to post_create_inferior.
8984 * nto-low.c (struct nto_target_ops): Likewise.
8985 * spu-low.c (struct spu_target_ops): Likewise.
8986 * win32-low.c (struct win32_target_ops): Likewise.
8987
8988 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
8989
8990 * linux-arm-low.c: Remove duplicate arch/arm.h include.
8991
8992 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8993
8994 * linux-arm-low.c (arm_reinsert_addr): Remove function.
8995 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
8996 * linux-cris-low.c (cris_reinsert_addr> Remove function.
8997 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8998 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
8999 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9000 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9001 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9002 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9003 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9004 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9005 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9006
9007 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9008
9009 * linux-low.c (linux_look_up_symbols): Don't call
9010 linux_supports_traceclone.
9011 * linux-low.h (thread_db_init): Remove use_events argument.
9012 * thread-db.c (thread_db_use_event): Remove global variable.
9013 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9014 (struct thread_db) <td_create_bp>: Remove field.
9015 (thread_db_create_event): Remove function.
9016 (thread_db_enable_reporting): Likewise.
9017 (find_one_thread): Don't check for thread_db_use_events.
9018 (attach_thread): Likewise.
9019 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9020 (try_thread_db_load_1): Don't check for thread_db_use_events.
9021 (thread_db_init): Remove use_events argument and thread events
9022 handling.
9023 (remove_thread_event_breakpoints): Remove function.
9024 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9025
9026 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9027
9028 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9029 New function.
9030 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9031 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9032 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9033 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9034 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9035 Initialize.
9036 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9037 New function.
9038 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9039 * linux-low.c (can_hardware_single_step): Use
9040 supports_hardware_single_step.
9041 (can_software_single_step): New function.
9042 (start_step_over): Call can_software_single_step.
9043 (linux_supports_hardware_single_step): New function.
9044 (struct target_ops) <supports_software_single_step>: Initialize.
9045 * linux-low.h (struct linux_target_ops)
9046 <supports_hardware_single_step>: Initialize.
9047 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9048 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9049 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9050 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9051 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9052 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9053 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9054 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9055 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9056 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9057 Initialize.
9058 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9059 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9060 Initialize.
9061 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9062 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9063 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9064 New function.
9065 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9066 * target.h (struct target_ops): <supports_software_single_step>:
9067 New field.
9068 (target_supports_software_single_step): New macro.
9069
9070 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9071
9072 * linux-low.c (linux_wait_1): Fix pc advance condition.
9073 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9074 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9075
9076 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9077
9078 * linux-arm-low.c (arm_is_thumb_mode): New function.
9079 (arm_breakpoint_at): Use arm_is_thumb_mode.
9080 (arm_breakpoint_kind_from_current_state): New function.
9081 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9082 Initialize.
9083 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9084 (linux_breakpoint_kind_from_current_state): New function.
9085 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9086 * linux-low.h (struct linux_target_ops)
9087 <breakpoint_kind_from_current_state>: New field.
9088 * target.h (struct target_ops): Likewise.
9089 (target_breakpoint_kind_from_current_state): New macro.
9090
9091 2015-11-30 Pedro Alves <palves@redhat.com>
9092
9093 * linux-low.c (linux_resume): Wake up the event loop before
9094 returning.
9095
9096 2015-11-30 Pedro Alves <palves@redhat.com>
9097
9098 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9099 check.
9100 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9101 to -1.
9102 * target.c (struct thread_search): New structure.
9103 (thread_search_callback): New function.
9104 (prev_general_thread): New global.
9105 (prepare_to_access_memory, done_accessing_memory): New functions.
9106 * target.h (prepare_to_access_memory, done_accessing_memory):
9107 Replace macros with function declarations.
9108
9109 2015-11-30 Pedro Alves <palves@redhat.com>
9110
9111 PR 14618
9112 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9113 report TARGET_WAITKIND_NO_RESUMED.
9114 * remote-utils.c (prepare_resume_reply): Handle
9115 TARGET_WAITKIND_NO_RESUMED.
9116 * server.c (report_no_resumed): New global.
9117 (handle_query) <qSupported>: Handle "no-resumed+". Report
9118 "no-resumed+" support.
9119 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9120 return error if the client doesn't support no-resumed events.
9121 (push_stop_notification): New function.
9122 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9123 events if the client supports them.
9124
9125 2015-11-30 Pedro Alves <palves@redhat.com>
9126
9127 * linux-low.c (thread_still_has_status_pending_p): Don't check
9128 vCont;t here.
9129 (lwp_resumed): New function.
9130 (status_pending_p_callback): Return early if the LWP is not
9131 supposed to be resumed.
9132
9133 2015-11-30 Pedro Alves <palves@redhat.com>
9134
9135 * linux-low.c (handle_extended_wait): Assert that the LWP's
9136 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9137 thread create events, leave the new child's status pending.
9138 (linux_low_filter_event): If GDB wants to hear about thread exit
9139 events, leave the LWP marked dead and don't delete it.
9140 (linux_wait_for_event_filtered): Don't check for thread exit.
9141 (filter_exit_event): New function.
9142 (linux_wait_1): Use it, when returning an exit event.
9143 (linux_resume_one_lwp_throw): Assert that the LWP's
9144 waitstatus is TARGET_WAITKIND_IGNORE.
9145 * remote-utils.c (prepare_resume_reply): Handle
9146 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9147 * server.c (report_thread_events): New global.
9148 (handle_general_set): Handle QThreadEvents.
9149 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9150 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9151 TARGET_WAITKIND_THREAD_EXITED.
9152 * server.h (report_thread_events): Declare.
9153
9154 2015-11-30 Pedro Alves <palves@redhat.com>
9155
9156 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9157 the thread's last_resume_kind was resume_stop.
9158
9159 2015-11-30 Pedro Alves <palves@redhat.com>
9160
9161 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9162 before returning.
9163
9164 2015-11-30 Pedro Alves <palves@redhat.com>
9165
9166 * server.c (handle_v_requests): Handle vCtrlC.
9167
9168 2015-11-30 Pedro Alves <palves@redhat.com>
9169
9170 * gdbthread.h (find_any_thread_of_pid): Declare.
9171 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9172 functions.
9173 * server.c (handle_query): If current_thread is NULL, look for
9174 another thread of the selected process.
9175
9176 2015-11-26 Daniel Colascione <dancol@dancol.org>
9177 Simon Marchi <simon.marchi@ericsson.com>
9178
9179 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9180 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9181 name in reply.
9182 * target.h (struct target_ops) <thread_name>: New field.
9183 (target_thread_name): New macro.
9184
9185 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9186
9187 * regcache.h (regcache_invalidate_pid): Add declaration.
9188 * regcache.c (regcache_invalidate_pid): New function, extracted
9189 from regcache_invalidate.
9190 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9191 Add trivial documentation comment.
9192 * lynx-low.c: Use regcache_invalidate_pid instead of
9193 regcache_invalidate.
9194
9195 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9196
9197 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9198 and Elf64_auxv_t if the target is Android.
9199
9200 2015-11-22 Doug Evans <xdje42@gmail.com>
9201
9202 * target.h: #include <sys/types.h>.
9203
9204 2015-11-19 Pedro Alves <palves@redhat.com>
9205
9206 * linux-low.c (linux_process_qsupported): Change prototype.
9207 Adjust.
9208 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9209 Change prototype.
9210 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9211 and adjust to loop over all features.
9212 * server.c (handle_query) <qSupported>: Adjust to call
9213 target_process_qsupported once, passing it a vector of unprocessed
9214 features.
9215 * target.h (struct target_ops) <process_qsupported>: Change
9216 prototype.
9217 (target_process_qsupported): Adjust.
9218
9219 2015-11-19 Pedro Alves <palves@redhat.com>
9220
9221 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9222 mode.
9223 * configure: Regenerate.
9224
9225 2015-11-19 Pedro Alves <palves@redhat.com>
9226
9227 * configure: Regenerate.
9228
9229 2015-11-19 Yao Qi <yao.qi@linaro.org>
9230
9231 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9232 type to uint32_t.
9233
9234 2015-11-19 Yao Qi <yao.qi@linaro.org>
9235
9236 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9237 (struct aarch64_operand): Move enum out.
9238
9239 2015-11-19 Yao Qi <yao.qi@linaro.org>
9240
9241 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9242 struct user_fpsimd_state *.
9243 (aarch64_store_fpregset): Likewise.
9244
9245 2015-11-19 Yao Qi <yao.qi@linaro.org>
9246
9247 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9248 struct user_pt_regs *.
9249 (aarch64_store_gregset): Likewise.
9250
9251 2015-11-18 Pedro Alves <palves@redhat.com>
9252
9253 * Makefile.in (all_object_files): Add $IPA_OBJS.
9254
9255 2015-11-17 Pedro Alves <palves@redhat.com>
9256
9257 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9258 GDB_SIGNAL_0 and gdb_signal_to_string.
9259
9260 2015-11-17 Pedro Alves <palves@redhat.com>
9261
9262 * win32-low.c (handle_output_debug_string): Remove parameter.
9263 (win32_kill): Remove our_status local and adjust call to
9264 handle_output_debug_string.
9265 (get_child_debug_event): Adjust call to
9266 handle_output_debug_string.
9267
9268 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9269
9270 * linux-mips-low.c (mips_fill_gregset): Add cast.
9271 (mips_store_gregset): Likewise.
9272 (mips_fill_fpregset): Likewise.
9273 (mips_store_fpregset): Likewise.
9274
9275 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9276
9277 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9278 priv.
9279
9280 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9281
9282 * linux-mips-low.c (mips_linux_new_thread): Change type of
9283 watch_type to enum target_hw_bp_type.
9284
9285 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9286
9287 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9288 Change return type to arm_hwbp_type.
9289
9290 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9291
9292 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9293 (arm_store_gregset): Likewise.
9294 * linux-arm-low.c (arm_get_hwcap): Likewise.
9295 (arm_read_description): Likewise.
9296
9297 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9298
9299 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9300
9301 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9302
9303 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9304 (ppc_fill_vsxregset): Likewise.
9305 (ppc_store_vsxregset): Likewise.
9306 (ppc_fill_vrregset): Likewise.
9307 (ppc_store_vrregset): Likewise.
9308 (ppc_fill_evrregset): Likewise.
9309 (ppc_store_evrregset): Likewise.
9310
9311 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9312
9313 * linux-ppc-low.c (ppc_usrregs_info): Remove
9314 forward-declaration.
9315 (ppc_arch_setup): Move lower in file.
9316
9317 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9318
9319 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9320 (ps_pdwrite): Likewise.
9321
9322 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9323
9324 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9325 to after assert checks.
9326
9327 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9328
9329 * proc-service.c (ps_pdread): Add/adjust casts.
9330 (ps_pdwrite): Add/adjust casts.
9331
9332 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9333
9334 * server.c (handle_search_memory_1): Cast return value of
9335 memmem.
9336
9337 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9338
9339 * server.c (write_qxfer_response): Change type of data to
9340 gdb_byte *.
9341
9342 2015-10-29 Pedro Alves <palves@redhat.com>
9343
9344 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9345
9346 2015-10-29 Pedro Alves <palves@redhat.com>
9347
9348 * tracepoint.c (clear_installed_tracepoints): Add casts.
9349
9350 2015-10-29 Pedro Alves <palves@redhat.com>
9351
9352 * server.c (handle_v_cont, process_serial_event): Add enum
9353 gdb_signal casts to signal parsing code.
9354
9355 2015-10-29 Pedro Alves <palves@redhat.com>
9356
9357 * linux-low.h (NULL_REGSET): Define.
9358 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9359 * linux-arm-low.c (arm_regsets): Likewise.
9360 * linux-crisv32-low.c (cris_regsets): Likewise.
9361 * linux-m68k-low.c (m68k_regsets): Likewise.
9362 * linux-mips-low.c (mips_regsets): Likewise.
9363 * linux-nios2-low.c (nios2_regsets): Likewise.
9364 * linux-ppc-low.c (ppc_regsets): Likewise.
9365 * linux-s390-low.c (s390_regsets): Likewise.
9366 * linux-sh-low.c (sh_regsets): Likewise.
9367 * linux-sparc-low.c (sparc_regsets): Likewise.
9368 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9369 * linux-tile-low.c (tile_regsets): Likewise.
9370 * linux-x86-low.c (x86_regsets): Likewise.
9371 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9372
9373 2015-10-29 Pedro Alves <palves@redhat.com>
9374
9375 * linux-low.h (NULL_REGSET): Define.
9376 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9377 * linux-arm-low.c (arm_regsets): Likewise.
9378 * linux-crisv32-low.c (cris_regsets): Likewise.
9379 * linux-m68k-low.c (m68k_regsets): Likewise.
9380 * linux-mips-low.c (mips_regsets): Likewise.
9381 * linux-nios2-low.c (nios2_regsets): Likewise.
9382 * linux-ppc-low.c (ppc_regsets): Likewise.
9383 * linux-s390-low.c (s390_regsets): Likewise.
9384 * linux-sh-low.c (sh_regsets): Likewise.
9385 * linux-sparc-low.c (sparc_regsets): Likewise.
9386 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9387 * linux-tile-low.c (tile_regsets): Likewise.
9388 * linux-x86-low.c (x86_regsets): Likewise.
9389 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9390
9391 2015-10-26 Doug Evans <dje@google.com>
9392
9393 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9394
9395 2015-10-26 Doug Evans <dje@google.com>
9396
9397 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9398
9399 2015-10-26 Doug Evans <dje@google.com>
9400
9401 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9402 for debug_printf.
9403 (attach_thread, find_new_threads_callback): Ditto.
9404
9405 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9406
9407 * mem-break.h (set_breakpoint_data): Remove.
9408
9409 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9410
9411 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9412 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9413 (initialize_low): Remove set_breakpoint_data call.
9414 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9415 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9416 (initialize_low): Remove set_breakpoint_data call.
9417 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9418 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9419 (initialize_low): Remove set_breakpoint_data call.
9420
9421 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9422
9423 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9424 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9425 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9426 * target.h (target_breakpoint_kind_from_pc): New macro.
9427
9428 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9429
9430 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9431 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9432 the default breakpoint kind.
9433
9434 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9435
9436 * linux-arm-low.c (arm_supports_z_point_type): Add software
9437 breakpoint support.
9438
9439 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9440
9441 * linux-arm-low.c: Refactor breakpoint definitions.
9442 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9443 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9444
9445 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9446
9447 * Makefile.in: Add arm.c/o.
9448 * configure.srv: Likewise.
9449 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9450 (arm_breakpoint_kind_from_pc): New function.
9451 (arm_sw_breakpoint_from_kind): Return proper kind.
9452 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9453
9454 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9455
9456 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9457 removal.
9458 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9459 (struct raw_breakpoint) <size>: Remove.
9460 (struct raw_breakpoint) <kind>: Add.
9461 (bp_size): New function.
9462 (bp_opcode): Likewise.
9463 (find_raw_breakpoint_at): Adjust for kind.
9464 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9465 (remove_memory_breakpoint): Adjust for kind call bp_size.
9466 (set_raw_breakpoint_at): Adjust for kind.
9467 (set_breakpoint): Likewise.
9468 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9469 (delete_raw_breakpoint): Adjust for kind.
9470 (delete_breakpoint): Likewise.
9471 (find_gdb_breakpoint): Likewise.
9472 (set_gdb_breakpoint_1): Likewise.
9473 (set_gdb_breakpoint): Likewise.
9474 (delete_gdb_breakpoint_1): Likewise.
9475 (delete_gdb_breakpoint): Likewise.
9476 (uninsert_raw_breakpoint): Likewise.
9477 (reinsert_raw_breakpoint): Likewise.
9478 (set_breakpoint_data): Remove.
9479 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9480 (check_mem_read): Adjust for kind call bp_size.
9481 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9482 (clone_one_breakpoint): Adjust for kind.
9483 * mem-break.h (set_gdb_breakpoint): Likewise.
9484 (delete_gdb_breakpoint): Likewise.
9485 * server.c (process_serial_event): Likewise.
9486
9487 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9488
9489 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9490 (struct linux_target_ops) <breakpoint>: Remove.
9491 (struct linux_target_ops) <breakpoint_len>: Remove.
9492 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9493 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9494 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9495 (arm_sw_breakpoint_from_kind): New function.
9496 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9497 (struct linux_target_ops) <breakpoint>: Remove.
9498 (struct linux_target_ops) <breakpoint_len>: Remove.
9499 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9500 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9501 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9502 (struct linux_target_ops) <breakpoint>: Remove.
9503 (struct linux_target_ops) <breakpoint_len>: Remove.
9504 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9505 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9506 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9507 (struct linux_target_ops) <breakpoint>: Remove.
9508 (struct linux_target_ops) <breakpoint_len>: Remove.
9509 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9510 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9511 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9512 and sw_breakpoint_from_kind to increment the pc.
9513 (linux_breakpoint_kind_from_pc): New function.
9514 (linux_sw_breakpoint_from_kind): New function.
9515 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9516 (initialize_low): Call breakpoint_kind_from_pc and
9517 sw_breakpoint_from_kind to replace breakpoint_data/len.
9518 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9519 New field.
9520 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9521 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9522 (struct linux_target_ops) <breakpoint>: Remove.
9523 (struct linux_target_ops) <breakpoint_len>: Remove.
9524 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9525 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9526 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9527 (struct linux_target_ops) <breakpoint>: Remove.
9528 (struct linux_target_ops) <breakpoint_len>: Remove.
9529 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9530 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9531 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9532 (struct linux_target_ops) <breakpoint>: Remove.
9533 (struct linux_target_ops) <breakpoint_len>: Remove.
9534 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9535 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9536 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9537 (struct linux_target_ops) <breakpoint>: Remove.
9538 (struct linux_target_ops) <breakpoint_len>: Remove.
9539 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9540 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9541 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9542 (struct linux_target_ops) <breakpoint>: Remove.
9543 (struct linux_target_ops) <breakpoint_len>: Remove.
9544 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9545 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9546 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9547 (struct linux_target_ops) <breakpoint>: Remove.
9548 (struct linux_target_ops) <breakpoint_len>: Remove.
9549 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9550 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9551 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9552 (struct linux_target_ops) <breakpoint>: Remove.
9553 (struct linux_target_ops) <breakpoint_len>: Remove.
9554 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9555 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9556 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9557 (struct linux_target_ops) <breakpoint>: Remove.
9558 (struct linux_target_ops) <breakpoint_len>: Remove.
9559 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9560 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9561 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9562 (struct linux_target_ops) <breakpoint>: Remove.
9563 (struct linux_target_ops) <breakpoint_len>: Remove.
9564 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9565 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9566 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9567 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9568 (struct linux_target_ops) <breakpoint>: Remove.
9569 (struct linux_target_ops) <breakpoint_len>: Remove.
9570 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9571 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9572 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9573 (struct linux_target_ops) <breakpoint>: Remove.
9574 (struct linux_target_ops) <breakpoint_len>: Remove.
9575 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9576 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9577
9578 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9579
9580 * linux-cris-low.c (cris_get_pc): Remove void arg.
9581
9582 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9583
9584 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9585 variable name.
9586
9587 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9588
9589 * inferiors.c (thread_pid_matches_callback): New function.
9590 (find_thread_process): New function.
9591 (remove_thread): Reset current_thread.
9592 (remove_process): Assert threads have been removed first.
9593
9594 2015-10-15 Yao Qi <yao.qi@linaro.org>
9595
9596 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9597 if it is 3.
9598 (aarch64_remove_point): Likewise.
9599 * regcache.c (regcache_register_size): New function.
9600
9601 2015-10-12 Yao Qi <yao.qi@linaro.org>
9602
9603 * linux-aarch64-low.c: Update all callers as emit_load_store
9604 is renamed to aarch64_emit_load_store.
9605
9606 2015-10-12 Yao Qi <yao.qi@linaro.org>
9607
9608 * linux-aarch64-low.c: Update all callers of function renaming
9609 from emit_insn to aarch64_emit_insn.
9610
9611 2015-10-12 Yao Qi <yao.qi@linaro.org>
9612
9613 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9614 arch/aarch64-insn.h.
9615 (struct aarch64_memory_operand): Likewise.
9616 (ENCODE): Likewise.
9617 (emit_insn): Move to arch/aarch64-insn.c.
9618 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9619 (emit_load_store): Move to arch/aarch64-insn.c.
9620 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9621 (can_encode_int32): Remove.
9622
9623 2015-10-12 Yao Qi <yao.qi@linaro.org>
9624
9625 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9626 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9627 (aarch64_relocate_instruction): Likewise.
9628 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9629 (struct aarch64_insn_visitor): Likewise.
9630
9631 2015-10-12 Yao Qi <yao.qi@linaro.org>
9632
9633 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9634 (struct aarch64_insn_visitor): New.
9635 (struct aarch64_insn_relocation_data): New.
9636 (aarch64_ftrace_insn_reloc_b): New function.
9637 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9638 (aarch64_ftrace_insn_reloc_cb): Likewise.
9639 (aarch64_ftrace_insn_reloc_tb): Likewise.
9640 (aarch64_ftrace_insn_reloc_adr): Likewise.
9641 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9642 (aarch64_ftrace_insn_reloc_others): Likewise.
9643 (visitor): New.
9644 (aarch64_relocate_instruction): Use visitor.
9645
9646 2015-10-12 Yao Qi <yao.qi@linaro.org>
9647
9648 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9649 int. Add argument buf.
9650 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9651 aarch64_relocate_instruction.
9652
9653 2015-10-12 Yao Qi <yao.qi@linaro.org>
9654
9655 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9656 argument insn. Remove local variable insn. Don't call
9657 target_read_uint32.
9658 (aarch64_install_fast_tracepoint_jump_pad): Call
9659 target_read_uint32.
9660
9661 2015-09-30 Yao Qi <yao.qi@linaro.org>
9662
9663 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9664 (emit_load_store_pair): Likewise.
9665
9666 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9667
9668 * dll.c (match_dll): Add cast(s).
9669 (unloaded_dll): Likewise.
9670 * linux-low.c (second_thread_of_pid_p): Likewise.
9671 (delete_lwp_callback): Likewise.
9672 (count_events_callback): Likewise.
9673 (select_event_lwp_callback): Likewise.
9674 (linux_set_resume_request): Likewise.
9675 * server.c (accumulate_file_name_length): Likewise.
9676 (emit_dll_description): Likewise.
9677 (handle_qxfer_threads_worker): Likewise.
9678 (visit_actioned_threads): Likewise.
9679 * thread-db.c (any_thread_of): Likewise.
9680 * tracepoint.c (same_process_p): Likewise.
9681 (match_blocktype): Likewise.
9682 (build_traceframe_info_xml): Likewise.
9683
9684 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9685
9686 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9687 assignment.
9688 (gdb_unparse_agent_expr): Likewise.
9689 * hostio.c (require_data): Likewise.
9690 (handle_pread): Likewise.
9691 * linux-low.c (disable_regset): Likewise.
9692 (fetch_register): Likewise.
9693 (store_register): Likewise.
9694 (get_dynamic): Likewise.
9695 (linux_qxfer_libraries_svr4): Likewise.
9696 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9697 (set_fast_tracepoint_jump): Likewise.
9698 (uninsert_fast_tracepoint_jumps_at): Likewise.
9699 (reinsert_fast_tracepoint_jumps_at): Likewise.
9700 (validate_inserted_breakpoint): Likewise.
9701 (clone_agent_expr): Likewise.
9702 * regcache.c (init_register_cache): Likewise.
9703 * remote-utils.c (putpkt_binary_1): Likewise.
9704 (decode_M_packet): Likewise.
9705 (decode_X_packet): Likewise.
9706 (look_up_one_symbol): Likewise.
9707 (relocate_instruction): Likewise.
9708 (monitor_output): Likewise.
9709 * server.c (handle_search_memory): Likewise.
9710 (handle_qxfer_exec_file): Likewise.
9711 (handle_qxfer_libraries): Likewise.
9712 (handle_qxfer): Likewise.
9713 (handle_query): Likewise.
9714 (handle_v_cont): Likewise.
9715 (handle_v_run): Likewise.
9716 (captured_main): Likewise.
9717 * target.c (write_inferior_memory): Likewise.
9718 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9719 * tracepoint.c (init_trace_buffer): Likewise.
9720 (add_tracepoint_action): Likewise.
9721 (add_traceframe): Likewise.
9722 (add_traceframe_block): Likewise.
9723 (cmd_qtdpsrc): Likewise.
9724 (cmd_qtdv): Likewise.
9725 (cmd_qtstatus): Likewise.
9726 (response_source): Likewise.
9727 (response_tsv): Likewise.
9728 (cmd_qtnotes): Likewise.
9729 (gdb_collect): Likewise.
9730 (initialize_tracepoint): Likewise.
9731
9732 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9733
9734 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9735 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9736 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9737 <NOP>: New.
9738 (enum aarch64_condition_codes): New enum.
9739 (w0): New static global.
9740 (fp): Likewise.
9741 (lr): Likewise.
9742 (struct aarch64_memory_operand) <type>: New
9743 MEMORY_OPERAND_POSTINDEX type.
9744 (postindex_memory_operand): New helper function.
9745 (emit_ret): New function.
9746 (emit_load_store_pair): New function, factored out of emit_stp
9747 with support for MEMORY_OPERAND_POSTINDEX.
9748 (emit_stp): Rewrite using emit_load_store_pair.
9749 (emit_ldp): New function.
9750 (emit_load_store): Likewise.
9751 (emit_ldr): Mention post-index instruction in comment.
9752 (emit_ldrh): New function.
9753 (emit_ldrb): New function.
9754 (emit_ldrsw): Mention post-index instruction in comment.
9755 (emit_str): Likewise.
9756 (emit_subs): New function.
9757 (emit_cmp): Likewise.
9758 (emit_and): Likewise.
9759 (emit_orr): Likewise.
9760 (emit_orn): Likewise.
9761 (emit_eor): Likewise.
9762 (emit_mvn): Likewise.
9763 (emit_lslv): Likewise.
9764 (emit_lsrv): Likewise.
9765 (emit_asrv): Likewise.
9766 (emit_mul): Likewise.
9767 (emit_sbfm): Likewise.
9768 (emit_sbfx): Likewise.
9769 (emit_ubfm): Likewise.
9770 (emit_ubfx): Likewise.
9771 (emit_csinc): Likewise.
9772 (emit_cset): Likewise.
9773 (emit_nop): Likewise.
9774 (emit_ops_insns): New helper function.
9775 (emit_pop): Likewise.
9776 (emit_push): Likewise.
9777 (aarch64_emit_prologue): New function.
9778 (aarch64_emit_epilogue): Likewise.
9779 (aarch64_emit_add): Likewise.
9780 (aarch64_emit_sub): Likewise.
9781 (aarch64_emit_mul): Likewise.
9782 (aarch64_emit_lsh): Likewise.
9783 (aarch64_emit_rsh_signed): Likewise.
9784 (aarch64_emit_rsh_unsigned): Likewise.
9785 (aarch64_emit_ext): Likewise.
9786 (aarch64_emit_log_not): Likewise.
9787 (aarch64_emit_bit_and): Likewise.
9788 (aarch64_emit_bit_or): Likewise.
9789 (aarch64_emit_bit_xor): Likewise.
9790 (aarch64_emit_bit_not): Likewise.
9791 (aarch64_emit_equal): Likewise.
9792 (aarch64_emit_less_signed): Likewise.
9793 (aarch64_emit_less_unsigned): Likewise.
9794 (aarch64_emit_ref): Likewise.
9795 (aarch64_emit_if_goto): Likewise.
9796 (aarch64_emit_goto): Likewise.
9797 (aarch64_write_goto_address): Likewise.
9798 (aarch64_emit_const): Likewise.
9799 (aarch64_emit_call): Likewise.
9800 (aarch64_emit_reg): Likewise.
9801 (aarch64_emit_pop): Likewise.
9802 (aarch64_emit_stack_flush): Likewise.
9803 (aarch64_emit_zero_ext): Likewise.
9804 (aarch64_emit_swap): Likewise.
9805 (aarch64_emit_stack_adjust): Likewise.
9806 (aarch64_emit_int_call_1): Likewise.
9807 (aarch64_emit_void_call_2): Likewise.
9808 (aarch64_emit_eq_goto): Likewise.
9809 (aarch64_emit_ne_goto): Likewise.
9810 (aarch64_emit_lt_goto): Likewise.
9811 (aarch64_emit_le_goto): Likewise.
9812 (aarch64_emit_gt_goto): Likewise.
9813 (aarch64_emit_ge_got): Likewise.
9814 (aarch64_emit_ops_impl): New static global variable.
9815 (aarch64_emit_ops): New target function, return
9816 &aarch64_emit_ops_impl.
9817 (struct linux_target_ops): Install it.
9818
9819 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9820
9821 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9822 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9823 aarch64-ipa.o.
9824 * linux-aarch64-ipa.c: New file.
9825 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9826 and endian.h.
9827 (aarch64_get_thread_area): New target method.
9828 (extract_signed_bitfield): New helper function.
9829 (aarch64_decode_ldr_literal): New function.
9830 (enum aarch64_opcodes): New enum.
9831 (struct aarch64_register): New struct.
9832 (struct aarch64_operand): New struct.
9833 (x0): New static global.
9834 (x1): Likewise.
9835 (x2): Likewise.
9836 (x3): Likewise.
9837 (x4): Likewise.
9838 (w2): Likewise.
9839 (ip0): Likewise.
9840 (sp): Likewise.
9841 (xzr): Likewise.
9842 (aarch64_register): New helper function.
9843 (register_operand): Likewise.
9844 (immediate_operand): Likewise.
9845 (struct aarch64_memory_operand): New struct.
9846 (offset_memory_operand): New helper function.
9847 (preindex_memory_operand): Likewise.
9848 (enum aarch64_system_control_registers): New enum.
9849 (ENCODE): New macro.
9850 (emit_insn): New helper function.
9851 (emit_b): New function.
9852 (emit_bcond): Likewise.
9853 (emit_cb): Likewise.
9854 (emit_tb): Likewise.
9855 (emit_blr): Likewise.
9856 (emit_stp): Likewise.
9857 (emit_ldp_q_offset): Likewise.
9858 (emit_stp_q_offset): Likewise.
9859 (emit_load_store): Likewise.
9860 (emit_ldr): Likewise.
9861 (emit_ldrsw): Likewise.
9862 (emit_str): Likewise.
9863 (emit_ldaxr): Likewise.
9864 (emit_stxr): Likewise.
9865 (emit_stlr): Likewise.
9866 (emit_data_processing_reg): Likewise.
9867 (emit_data_processing): Likewise.
9868 (emit_add): Likewise.
9869 (emit_sub): Likewise.
9870 (emit_mov): Likewise.
9871 (emit_movk): Likewise.
9872 (emit_mov_addr): Likewise.
9873 (emit_mrs): Likewise.
9874 (emit_msr): Likewise.
9875 (emit_sevl): Likewise.
9876 (emit_wfe): Likewise.
9877 (append_insns): Likewise.
9878 (can_encode_int32_in): New helper function.
9879 (aarch64_relocate_instruction): New function.
9880 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9881 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9882 (struct linux_target_ops): Install aarch64_get_thread_area,
9883 aarch64_install_fast_tracepoint_jump_pad and
9884 aarch64_get_min_fast_tracepoint_insn_len.
9885
9886 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9887
9888 * Makefile.in (aarch64-insn.o): New rule.
9889 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9890
9891 2015-09-21 Yao Qi <yao.qi@linaro.org>
9892
9893 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9894
9895 2015-09-21 Yao Qi <yao.qi@linaro.org>
9896
9897 * tracepoint.c (max_jump_pad_size): Remove.
9898
9899 2015-09-18 Yao Qi <yao.qi@linaro.org>
9900
9901 * linux-aarch64-low.c: Don't include sys/uio.h.
9902 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9903
9904 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
9905
9906 * tracepoint.c (eval_result_type): Change prototype.
9907 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9908
9909 2015-09-15 Pedro Alves <palves@redhat.com>
9910
9911 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9912 Check whether to report exec events instead of checking whether
9913 multiprocess is enabled.
9914
9915 2015-09-15 Pedro Alves <palves@redhat.com>
9916
9917 PR remote/18965
9918 * remote-utils.c (prepare_resume_reply): Merge
9919 TARGET_WAITKIND_VFORK_DONE switch case with the
9920 TARGET_WAITKIND_FORKED case.
9921
9922 2015-09-15 Yao Qi <yao.qi@linaro.org>
9923
9924 * server.c (handle_query): Check string comparison using
9925 "else if" instead of "if".
9926
9927 2015-09-15 Yao Qi <yao.qi@linaro.org>
9928
9929 * server.c (vCont_supported): New global variable.
9930 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9931 matches. Append ";vContSupported+" to own_buf.
9932 (handle_v_requests): Append ";s;S" to own_buf if target supports
9933 hardware single step or vCont_supported is false.
9934 (capture_main): Set vCont_supported to zero.
9935
9936 2015-09-15 Yao Qi <yao.qi@linaro.org>
9937
9938 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9939 it to ...
9940 (linux_supports_hardware_single_step): ... New function.
9941 (linux_target_ops): Update.
9942 * lynx-low.c (lynx_target_ops): Set field
9943 supports_hardware_single_step to target_can_do_hardware_single_step.
9944 * nto-low.c (nto_target_ops): Likewise.
9945 * spu-low.c (spu_target_ops): Likewise.
9946 * win32-low.c (win32_target_ops): Likewise.
9947 * target.c (target_can_do_hardware_single_step): New function.
9948 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9949 Remove. <supports_hardware_single_step>: New field.
9950 (target_supports_conditional_breakpoints): Remove.
9951 (target_supports_hardware_single_step): New macro.
9952 (target_can_do_hardware_single_step): Declare.
9953 * server.c (handle_query): Use target_supports_hardware_single_step
9954 instead of target_supports_conditional_breakpoints.
9955
9956 2015-09-15 Yao Qi <yao.qi@linaro.org>
9957
9958 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
9959 function.
9960 (struct linux_target_ops the_low_target): Install
9961 aarch64_linux_siginfo_fixup.
9962
9963 2015-09-11 Don Breazeal <donb@codesourcery.com>
9964 Luis Machado <lgustavo@codesourcery.com>
9965
9966 * linux-low.c (linux_mourn): Static declaration.
9967 (linux_arch_setup): Move in front of
9968 handle_extended_wait.
9969 (linux_arch_setup_thread): New function.
9970 (handle_extended_wait): Handle exec events. Call
9971 linux_arch_setup_thread. Make event_lwp argument a
9972 pointer-to-a-pointer.
9973 (check_zombie_leaders): Do not check stopped threads.
9974 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
9975 (linux_low_filter_event): Add lwp and thread for exec'ing
9976 non-leader thread if leader thread has been deleted.
9977 Refactor code into linux_arch_setup_thread and call it.
9978 Pass child lwp pointer by reference to handle_extended_wait.
9979 (linux_wait_for_event_filtered): Update comment.
9980 (linux_wait_1): Prevent clobbering exec event status.
9981 (linux_supports_exec_events): New function.
9982 (linux_target_ops) <supports_exec_events>: Initialize new member.
9983 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
9984 new member.
9985 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
9986 * server.c (report_exec_events): New global variable.
9987 (handle_query): Handle qSupported query for exec-events feature.
9988 (captured_main): Initialize report_exec_events.
9989 * server.h (report_exec_events): Declare new global variable.
9990 * target.h (struct target_ops) <supports_exec_events>: New
9991 member.
9992 (target_supports_exec_events): New macro.
9993 * win32-low.c (win32_target_ops) <supports_exec_events>:
9994 Initialize new member.
9995
9996 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
9997
9998 * linux-low.c (linux_low_enable_btrace): Remove.
9999 (linux_target_ops): Replace linux_low_enable_btrace with
10000 linux_enable_btrace.
10001
10002 2015-09-03 Yao Qi <yao.qi@linaro.org>
10003
10004 * linux-aarch64-low.c (aarch64_insert_point): Call
10005 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10006 returns true.
10007
10008 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10009
10010 * linux-low.c (check_stopped_by_breakpoint): Use
10011 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10012
10013 2015-08-27 Pedro Alves <palves@redhat.com>
10014
10015 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10016
10017 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10018
10019 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10020 the XNEW-family equivalent.
10021 (compile_bytecodes): Likewise.
10022 * dll.c (loaded_dll): Likewise.
10023 * event-loop.c (append_callback_event): Likewise.
10024 (create_file_handler): Likewise.
10025 (create_file_event): Likewise.
10026 * hostio.c (handle_open): Likewise.
10027 * inferiors.c (add_thread): Likewise.
10028 (add_process): Likewise.
10029 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10030 * linux-arm-low.c (arm_new_process): Likewise.
10031 (arm_new_thread): Likewise.
10032 * linux-low.c (add_to_pid_list): Likewise.
10033 (linux_add_process): Likewise.
10034 (handle_extended_wait): Likewise.
10035 (add_lwp): Likewise.
10036 (enqueue_one_deferred_signal): Likewise.
10037 (enqueue_pending_signal): Likewise.
10038 (linux_resume_one_lwp_throw): Likewise.
10039 (linux_resume_one_thread): Likewise.
10040 (linux_read_memory): Likewise.
10041 (linux_write_memory): Likewise.
10042 * linux-mips-low.c (mips_linux_new_process): Likewise.
10043 (mips_linux_new_thread): Likewise.
10044 (mips_add_watchpoint): Likewise.
10045 * linux-x86-low.c (initialize_low_arch): Likewise.
10046 * lynx-low.c (lynx_add_process): Likewise.
10047 * mem-break.c (set_raw_breakpoint_at): Likewise.
10048 (set_breakpoint): Likewise.
10049 (add_condition_to_breakpoint): Likewise.
10050 (add_commands_to_breakpoint): Likewise.
10051 (clone_agent_expr): Likewise.
10052 (clone_one_breakpoint): Likewise.
10053 * regcache.c (new_register_cache): Likewise.
10054 * remote-utils.c (look_up_one_symbol): Likewise.
10055 * server.c (queue_stop_reply): Likewise.
10056 (start_inferior): Likewise.
10057 (queue_stop_reply_callback): Likewise.
10058 (handle_target_event): Likewise.
10059 * spu-low.c (fetch_ppc_memory): Likewise.
10060 (store_ppc_memory): Likewise.
10061 * target.c (set_target_ops): Likewise.
10062 * thread-db.c (thread_db_load_search): Likewise.
10063 (try_thread_db_load_1): Likewise.
10064 * tracepoint.c (add_tracepoint): Likewise.
10065 (add_tracepoint_action): Likewise.
10066 (create_trace_state_variable): Likewise.
10067 (cmd_qtdpsrc): Likewise.
10068 (cmd_qtro): Likewise.
10069 (add_while_stepping_state): Likewise.
10070 * win32-low.c (child_add_thread): Likewise.
10071 (get_image_name): Likewise.
10072
10073 2015-08-25 Yao Qi <yao.qi@linaro.org>
10074
10075 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10076
10077 2015-08-25 Yao Qi <yao.qi@linaro.org>
10078
10079 * Makefile.in (aarch64-linux.o): New rule.
10080 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10081 srv_tgtobj.
10082 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10083 (aarch64_init_debug_reg_state): Make it extern.
10084 (aarch64_linux_prepare_to_resume): Remove.
10085
10086 2015-08-25 Yao Qi <yao.qi@linaro.org>
10087
10088 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10089 lwp_arch_private_info and ptid_of_lwp.
10090
10091 2015-08-25 Yao Qi <yao.qi@linaro.org>
10092
10093 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10094 Find proc_info by find_process_pid. All callers updated.
10095
10096 2015-08-25 Yao Qi <yao.qi@linaro.org>
10097
10098 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10099 Remove.
10100 (debug_reg_change_callback): Remove.
10101 (aarch64_notify_debug_reg_change): Remove.
10102
10103 2015-08-25 Yao Qi <yao.qi@linaro.org>
10104
10105 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10106 Call current_lwp_ptid.
10107
10108 2015-08-25 Yao Qi <yao.qi@linaro.org>
10109
10110 * linux-aarch64-low.c (debug_reg_change_callback): Use
10111 debug_printf.
10112
10113 2015-08-25 Yao Qi <yao.qi@linaro.org>
10114
10115 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10116
10117 2015-08-25 Yao Qi <yao.qi@linaro.org>
10118
10119 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10120
10121 2015-08-25 Yao Qi <yao.qi@linaro.org>
10122
10123 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10124 the code.
10125
10126 2015-08-25 Yao Qi <yao.qi@linaro.org>
10127
10128 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10129 Remove.
10130 (debug_reg_change_callback): Remove argument entry and add argument
10131 lwp. Remove local variable thread. Don't print thread id in the
10132 debugging output. Don't check whether pid of thread equals to pid.
10133 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10134 iterate_over_lwps instead find_inferior.
10135
10136 2015-08-24 Pedro Alves <palves@redhat.com>
10137
10138 * inferiors.c (get_first_process): New function.
10139 * inferiors.h (get_first_process): New declaration.
10140 * remote-utils.c (read_ptid): Default to the first process in the
10141 list, instead of to the current thread's process.
10142
10143 2015-08-24 Pedro Alves <palves@redhat.com>
10144
10145 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10146 * event-loop.c: Likewise.
10147 * remote-utils.c: Likewise.
10148 * tracepoint.c: Likewise.
10149
10150 2015-08-24 Pedro Alves <palves@redhat.com>
10151
10152 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10153 ptid_get_lwp.
10154
10155 2015-08-21 Pedro Alves <palves@redhat.com>
10156
10157 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10158 instead of literal 1.
10159
10160 2015-08-21 Pedro Alves <palves@redhat.com>
10161
10162 * tdesc.c (default_description): Explicitly zero-initialize.
10163
10164 2015-08-21 Pedro Alves <palves@redhat.com>
10165
10166 PR gdb/18749
10167 * inferiors.c (remove_thread): Discard any pending stop reply for
10168 this thread.
10169 * server.c (remove_all_on_match_pid): Rename to ...
10170 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10171 instead of a pid.
10172 (discard_queued_stop_replies): Change parameter to a ptid. Now
10173 extern.
10174 (handle_v_kill, kill_inferior_callback, captured_main)
10175 (process_serial_event): Adjust.
10176 * server.h (discard_queued_stop_replies): Declare.
10177
10178 2015-08-21 Pedro Alves <palves@redhat.com>
10179
10180 * linux-low.c (wait_for_sigstop): Always switch to no thread
10181 selected if the previously current thread dies.
10182 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10183 process instead of the current thread's.
10184 * remote-utils.c (input_interrupt): Don't check if there's no
10185 current thread.
10186 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10187 current thread to the general thread fails, error out.
10188 (handle_qxfer_auxv, handle_qxfer_libraries)
10189 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10190 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10191 (handle_query): Check if there's a thread selected instead of
10192 checking whether there's any thread in the thread list.
10193 (handle_qxfer_threads, handle_qxfer_btrace)
10194 (handle_qxfer_btrace_conf): Don't error out early if there's no
10195 thread in the thread list.
10196 (handle_v_cont, myresume): Don't set the current thread to the
10197 continue thread.
10198 (process_serial_event) <Hg handling>: Also set thread_id if the
10199 previous general thread is still alive.
10200 (process_serial_event) <g/G handling>: If setting the current
10201 thread to the general thread fails, error out.
10202 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10203 thread's lwp instead of the current thread's.
10204 * target.c (set_desired_thread): If the desired thread was not
10205 found, leave the current thread pointing to NULL. Return an int
10206 (boolean) indicating success.
10207 * target.h (set_desired_thread): Change return type to int.
10208
10209 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10210
10211 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10212 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10213 #includes.
10214 (ps_get_thread_area): New function.
10215
10216 2015-08-19 Gary Benson <gbenson@redhat.com>
10217
10218 * hostio.c (handle_pread): Do not attempt to read more data
10219 than hostio_reply_with_data can fit in a packet.
10220
10221 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10222
10223 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10224
10225 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10226
10227 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10228
10229 2015-08-06 Pedro Alves <palves@redhat.com>
10230
10231 * tracepoint.c (expr_eval_result): Now an int.
10232
10233 2015-08-06 Pedro Alves <palves@redhat.com>
10234
10235 * gdbthread.h (struct regcache): Forward declare.
10236 (struct thread_info) <regcache_data>: Now a struct regcache
10237 pointer.
10238 * inferiors.c (inferior_regcache_data)
10239 (set_inferior_regcache_data): Now work with struct regcache
10240 pointers.
10241 * inferiors.h (struct regcache): Forward declare.
10242 (inferior_regcache_data, set_inferior_regcache_data): Now work
10243 with struct regcache pointers.
10244 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10245 (free_register_cache_thread): Remove struct regcache pointer
10246 casts.
10247
10248 2015-08-06 Pedro Alves <palves@redhat.com>
10249
10250 * server.c (captured_main): On error, print the exception message
10251 to stderr, and if run_once is set, throw a quit.
10252
10253 2015-08-06 Pedro Alves <palves@redhat.com>
10254
10255 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10256 the current thread.
10257
10258 2015-08-06 Pedro Alves <palves@redhat.com>
10259
10260 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10261 reading beyond the passed in buffer length.
10262
10263 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10264
10265 * tracepoint.c (symbol_list) <required>: Remove.
10266
10267 2015-08-06 Pedro Alves <palves@redhat.com>
10268
10269 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10270 count if stopping and suspending threads.
10271 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10272 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10273 (linux_detach): Complete an ongoing step-over.
10274 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10275 throughout.
10276 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10277 (linux_wait_1): If passing a signal to the inferior after
10278 finishing a step-over, unsuspend and re-resume all lwps. If we
10279 see a single-step event but the thread should be continuing, don't
10280 pass the trap to gdb.
10281 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10282 internal_error instead of gdb_assert.
10283 (enqueue_pending_signal): New function.
10284 (check_ptrace_stopped_lwp_gone): Add debug output.
10285 (start_step_over): Use internal_error instead of gdb_assert.
10286 (complete_ongoing_step_over): New function.
10287 (linux_resume_one_thread): Don't resume a suspended thread.
10288 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10289 it stepping.
10290
10291 2015-08-06 Pedro Alves <palves@redhat.com>
10292
10293 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10294 (linux_thread_alive): Use lwp_is_marked_dead.
10295 (extended_event_reported): Delete.
10296 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10297 instead of extended_event_reported.
10298 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10299 as well.
10300 (lwp_is_marked_dead): New function.
10301 (lwp_running): Use lwp_is_marked_dead.
10302 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10303 comment.
10304
10305 2015-08-06 Pedro Alves <palves@redhat.com>
10306
10307 * linux-low.c (linux_wait_1): Move fork event output out of the
10308 !report_to_gdb check. Pass event_child->waitstatus to
10309 target_waitstatus_to_string instead of ourstatus.
10310
10311 2015-08-04 Yao Qi <yao.qi@linaro.org>
10312
10313 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10314 if current_thread is 32 bit.
10315
10316 2015-08-04 Yao Qi <yao.qi@linaro.org>
10317
10318 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10319 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10320 * server.c (extended_protocol): Remove "static".
10321 * server.h (extended_protocol): Declare it.
10322
10323 2015-08-04 Yao Qi <yao.qi@linaro.org>
10324
10325 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10326 both aarch64 and aarch32.
10327 (aarch64_set_pc): Likewise.
10328
10329 2015-08-04 Yao Qi <yao.qi@linaro.org>
10330
10331 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10332 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10333 arm-with-neon.xml to srv_xmlfiles.
10334 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10335 (is_64bit_tdesc): New function.
10336 (aarch64_linux_read_description): New function.
10337 (aarch64_arch_setup): Call aarch64_linux_read_description.
10338 (regs_info): Rename to regs_info_aarch64.
10339 (aarch64_regs_info): Return right regs_info.
10340 (initialize_low_arch): Call initialize_low_arch_aarch32.
10341
10342 2015-08-04 Yao Qi <yao.qi@linaro.org>
10343
10344 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10345 * linux-aarch32-low.c: New file.
10346 * linux-aarch32-low.h: New file.
10347 * linux-arm-low.c (arm_fill_gregset): Move it to
10348 linux-aarch32-low.c.
10349 (arm_store_gregset): Likewise.
10350 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10351 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10352 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10353 (regs_info): Rename to regs_info_arm.
10354 (arm_regs_info): Return regs_info_aarch32 if
10355 have_ptrace_getregset is 1 and target description is
10356 arm_with_neon or arm_with_vfpv3.
10357 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10358 Call initialize_low_arch_aarch32 instead.
10359
10360 2015-08-04 Yao Qi <yao.qi@linaro.org>
10361
10362 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10363 * linux-low.c: ... here.
10364 * linux-low.h (have_ptrace_getregset): Declare it.
10365
10366 2015-08-04 Pedro Alves <palves@redhat.com>
10367
10368 * thread-db.c (struct thread_db): Use new typedefs.
10369 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10370 CHK calls.
10371 (disable_thread_event_reporting): Cast result of dlsym to
10372 destination function pointer type.
10373 (thread_db_mourn): Use td_ta_delete_ftype.
10374
10375 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10376
10377 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10378 arch variant.
10379 (CDX_BREAKPOINT): Define for R2.
10380 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10381 (the_low_target): Add comments.
10382
10383 2015-07-30 Yao Qi <yao.qi@linaro.org>
10384
10385 * linux-arm-low.c (arm_hwcap): Remove it.
10386 (arm_read_description): New local variable arm_hwcap. Don't
10387 set arm_hwcap to zero.
10388
10389 2015-07-30 Yao Qi <yao.qi@linaro.org>
10390
10391 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10392 Use regcache->tdesc instead.
10393 (arm_store_wmmxregset): Likewise.
10394 (arm_fill_vfpregset): Likewise.
10395 (arm_store_vfpregset): Likewise.
10396
10397 2015-07-30 Yao Qi <yao.qi@linaro.org>
10398
10399 * linux-arm-low.c: Include arch/arm.h.
10400 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10401 (arm_store_gregset): Likewise.
10402
10403 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10404
10405 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10406 ptrace's 4th parameter.
10407
10408 2015-07-27 Yao Qi <yao.qi@linaro.org>
10409
10410 * configure.srv (case aarch64*-*-linux*): Don't set
10411 srv_linux_usrregs.
10412
10413 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10414
10415 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10416 sys/ptrace.h.
10417 * linux-arm-low.c: Likewise.
10418 * linux-cris-low.c: Likewise.
10419 * linux-crisv32-low.c: Likewise.
10420 * linux-low.c: Likewise.
10421 * linux-m68k-low.c: Likewise.
10422 * linux-mips-low.c: Likewise.
10423 * linux-nios2-low.c: Likewise.
10424 * linux-s390-low.c: Likewise.
10425 * linux-sparc-low.c: Likewise.
10426 * linux-tic6x-low.c: Likewise.
10427 * linux-tile-low.c: Likewise.
10428 * linux-x86-low.c: Likewise.
10429
10430 2015-07-24 Pedro Alves <palves@redhat.com>
10431
10432 * config.in: Regenerate.
10433 * configure: Regenerate.
10434
10435 2015-07-24 Pedro Alves <palves@redhat.com>
10436
10437 * acinclude.m4: Include ../ptrace.m4.
10438 * configure.ac: Call GDB_AC_PTRACE.
10439 * config.in, configure: Regenerate.
10440
10441 2015-07-24 Yao Qi <yao.qi@linaro.org>
10442
10443 * linux-low.c (linux_create_inferior): Remove setting to
10444 proc->priv->new_inferior.
10445 (linux_attach): Likewise.
10446 (linux_low_filter_event): Likewise.
10447 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10448
10449 2015-07-24 Yao Qi <yao.qi@linaro.org>
10450
10451 * linux-low.c (linux_arch_setup): New function.
10452 (linux_low_filter_event): If proc->tdesc is NULL and
10453 proc->attached is true, call the_low_target.arch_setup.
10454 Otherwise, keep status pending, and return.
10455 (linux_resume_one_lwp_throw): Don't call get_pc if
10456 thread->while_stepping isn't NULL. Don't call
10457 get_thread_regcache if proc->tdesc is NULL.
10458 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10459 (linux_target_ops): Install arch_setup.
10460 * server.c (start_inferior): Call the_target->arch_setup.
10461 * target.h (struct target_ops) <arch_setup>: New field.
10462 (target_arch_setup): New marco.
10463 * lynx-low.c (lynx_target_ops): Update.
10464 * nto-low.c (nto_target_ops): Update.
10465 * spu-low.c (spu_target_ops): Update.
10466 * win32-low.c (win32_target_ops): Update.
10467
10468 2015-07-24 Yao Qi <yao.qi@linaro.org>
10469
10470 * linux-low.c (linux_add_process): Don't set
10471 proc->priv->new_inferior.
10472 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10473 (linux_attach): Likewise.
10474
10475 2015-07-24 Yao Qi <yao.qi@linaro.org>
10476
10477 * server.c (start_inferior): Code refactor.
10478
10479 2015-07-24 Yao Qi <yao.qi@linaro.org>
10480
10481 * server.c (process_serial_event): Set general_thread.
10482
10483 2015-07-21 Yao Qi <yao.qi@linaro.org>
10484
10485 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10486 aarch64_linux_get_debug_reg_capacity.
10487
10488 2015-07-17 Yao Qi <yao.qi@linaro.org>
10489
10490 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10491 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10492 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10493 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10494 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10495 (AARCH64_HWP_ALIGNMENT): Likewise.
10496 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10497 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10498 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10499 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10500 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10501 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10502 (struct aarch64_debug_reg_state): Likewise.
10503 (struct arch_lwp_info): Likewise.
10504 (aarch64_align_watchpoint): Likewise.
10505 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10506 (aarch64_watchpoint_length): Likewise.
10507 (aarch64_point_encode_ctrl_reg): Likewise
10508 (aarch64_point_is_aligned): Likewise.
10509 (aarch64_align_watchpoint): Likewise.
10510 (aarch64_linux_set_debug_regs):
10511 (aarch64_dr_state_insert_one_point): Likewise.
10512 (aarch64_dr_state_remove_one_point): Likewise.
10513 (aarch64_handle_breakpoint): Likewise.
10514 (aarch64_handle_aligned_watchpoint): Likewise.
10515 (aarch64_handle_unaligned_watchpoint): Likewise.
10516 (aarch64_handle_watchpoint): Likewise.
10517
10518 2015-07-17 Yao Qi <yao.qi@linaro.org>
10519
10520 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10521 and don't aarch64_get_debug_reg_state. All callers update.
10522 (aarch64_handle_aligned_watchpoint): Likewise.
10523 (aarch64_handle_unaligned_watchpoint): Likewise.
10524 (aarch64_handle_watchpoint): Likewise.
10525 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10526 (aarch64_remove_point): Likewise.
10527
10528 2015-07-17 Yao Qi <yao.qi@linaro.org>
10529
10530 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10531 debug_printf.
10532 (aarch64_handle_unaligned_watchpoint): Likewise.
10533
10534 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10535
10536 Revert the previous 3 commits:
10537 Move gdb_regex* to common/
10538 Move linux_find_memory_regions_full & co.
10539 gdbserver build-id attribute generator
10540
10541 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10542 Jan Kratochvil <jan.kratochvil@redhat.com>
10543
10544 gdbserver build-id attribute generator.
10545 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10546 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10547 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10548 (find_phdr): New.
10549 (get_dynamic): Use find_pdhr to traverse program headers.
10550 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10551 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10552 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10553 (get_hex_build_id): New.
10554 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10555 to reply XML document.
10556
10557 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10558 Jan Kratochvil <jan.kratochvil@redhat.com>
10559
10560 * target.c: Include target/target-utils.h and fcntl.h.
10561 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10562 (target_fileio_read_stralloc): New functions.
10563
10564 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10565
10566 * Makefile.in (OBS): Add gdb_regex.o.
10567 (gdb_regex.o): New.
10568 * config.in: Rebuilt.
10569 * configure: Rebuilt.
10570
10571 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10572 Jan Kratochvil <jan.kratochvil@redhat.com>
10573
10574 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10575 * Makefile.in (OBS): Add target-utils.o.
10576 (linux-maps.o, target-utils.o): New.
10577 * configure.srv (srv_linux_obj): Add linux-maps.o.
10578
10579 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10580
10581 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10582 function, return 1.
10583 (the_low_target): Install it.
10584
10585 2015-07-14 Pedro Alves <palves@redhat.com>
10586
10587 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10588 Instead, ignore ECHILD, and throw an error for other errnos.
10589
10590 2015-07-10 Pedro Alves <palves@redhat.com>
10591
10592 * event-loop.c (struct callback_event) <data>: Change type to
10593 gdb_client_data instance instead of gdb_client_data pointer.
10594 (append_callback_event): Adjust.
10595
10596 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10597
10598 * linux-aarch64-low.c: Add comments for each linux_target_ops
10599 method. Remove comments already covered in target_ops and
10600 linux_target_ops definitions.
10601 (the_low_target): Add comments for each unimplemented method.
10602
10603 2015-07-09 Yao Qi <yao.qi@linaro.org>
10604
10605 * linux-aarch64-low.c (aarch64_regmap): Remove.
10606 (aarch64_usrregs_info): Remove.
10607 (regs_info): Set field usrregs to NULL.
10608
10609 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10610
10611 * linux-low.c: Include "rsp-low.h"
10612 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10613 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10614 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10615 (handle_btrace_enable_pt): New.
10616 (handle_btrace_general_set): Support "pt".
10617 (handle_btrace_conf_general_set): Support "pt:size".
10618
10619 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10620
10621 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10622 Z_PACKET_SW_BP.
10623
10624 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10625
10626 * linux-aarch64-low.c: Remove comment about endianness.
10627 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10628 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10629 memcmp.
10630
10631 2015-06-24 Gary Benson <gbenson@redhat.com>
10632
10633 * linux-i386-ipa.c (stdint.h): Do not include.
10634 * lynx-i386-low.c (stdint.h): Likewise.
10635 * lynx-ppc-low.c (stdint.h): Likewise.
10636 * mem-break.c (stdint.h): Likewise.
10637 * thread-db.c (stdint.h): Likewise.
10638 * tracepoint.c (stdint.h): Likewise.
10639 * win32-low.c (stdint.h): Likewise.
10640
10641 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10642
10643 * server.c (write_qxfer_response): Update call to
10644 remote_escape_output.
10645
10646 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10647 Jan Kratochvil <jan.kratochvil@redhat.com>
10648
10649 Merge multiple hex conversions.
10650 * gdbreplay.c (tohex): Rename to 'fromhex'.
10651 (logchar): Use fromhex.
10652
10653 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10654
10655 * server.c (handle_qxfer_libraries): Set `version' attribute for
10656 <library-list>.
10657
10658 2015-06-10 Gary Benson <gbenson@redhat.com>
10659
10660 * target.h (struct target_ops) <multifs_open>: New field.
10661 <multifs_unlink>: Likewise.
10662 <multifs_readlink>: Likewise.
10663 * linux-low.c (nat/linux-namespaces.h): New include.
10664 (linux_target_ops): Initialize the_target->multifs_open,
10665 the_target->multifs_unlink and the_target->multifs_readlink.
10666 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10667 * hostio.c (hostio_fs_pid): New static variable.
10668 (hostio_handle_new_gdb_connection): New function.
10669 (handle_setfs): Likewise.
10670 (handle_open): Use the_target->multifs_open as appropriate.
10671 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10672 (handle_readlink): Use the_target->multifs_readlink as
10673 appropriate.
10674 (handle_vFile): Handle vFile:setfs packets.
10675 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10676 after target_handle_new_gdb_connection.
10677
10678 2015-06-10 Gary Benson <gbenson@redhat.com>
10679
10680 * configure.ac (AC_CHECK_FUNCS): Add setns.
10681 * config.in: Regenerate.
10682 * configure: Likewise.
10683 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10684 (linux-namespaces.o): New rule.
10685 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10686
10687 2015-06-09 Gary Benson <gbenson@redhat.com>
10688
10689 * hostio.c (handle_open): Process mode argument with
10690 fileio_to_host_mode.
10691
10692 2015-06-01 Yao Qi <yao.qi@linaro.org>
10693
10694 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10695 * linux-x86-low.c: Likewise.
10696
10697 2015-05-28 Don Breazeal <donb@codesourcery.com>
10698
10699 * linux-low.c (handle_extended_wait): Initialize
10700 thread_info.last_resume_kind for new fork children.
10701
10702 2015-05-15 Pedro Alves <palves@redhat.com>
10703
10704 * target.h (target_handle_new_gdb_connection): Rewrite using if
10705 wrapped in do/while.
10706
10707 2015-05-14 Joel Brobecker <brobecker@adacore.com>
10708
10709 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10710 * configure, config.in: Regenerate.
10711 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10712 Declare typedef.
10713
10714 2015-05-12 Don Breazeal <donb@codesourcery.com>
10715
10716 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10717 PTRACE_EVENT_VFORK_DONE.
10718 (linux_low_ptrace_options, extended_event_reported): Add vfork
10719 events.
10720 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10721 and "vforkdone" for RSP 'T' Stop Reply Packet.
10722 * server.h (report_vfork_events): Declare
10723 global variable.
10724
10725 2015-05-12 Don Breazeal <donb@codesourcery.com>
10726
10727 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10728 (the_low_target) <new_fork>: Initialize new member.
10729 * linux-arm-low.c (arm_new_fork): New function.
10730 (the_low_target) <new_fork>: Initialize new member.
10731 * linux-low.c (handle_extended_wait): Call new target function
10732 new_fork.
10733 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10734 * linux-mips-low.c (mips_add_watchpoint): New function
10735 extracted from mips_insert_point.
10736 (the_low_target) <new_fork>: Initialize new member.
10737 (mips_linux_new_fork): New function.
10738 (mips_insert_point): Call mips_add_watchpoint.
10739 * linux-x86-low.c (x86_linux_new_fork): New function.
10740 (the_low_target) <new_fork>: Initialize new member.
10741
10742 2015-05-12 Don Breazeal <donb@codesourcery.com>
10743
10744 * linux-low.c (handle_extended_wait): Implement return value,
10745 rename argument 'event_child' to 'event_lwp', handle
10746 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10747 (linux_low_ptrace_options): New function.
10748 (linux_low_filter_event): Call linux_low_ptrace_options,
10749 use different argument fo linux_enable_event_reporting,
10750 use return value from handle_extended_wait.
10751 (extended_event_reported): New function.
10752 (linux_wait_1): Call extended_event_reported and set
10753 status to report fork events.
10754 (linux_write_memory): Add pid to debug message.
10755 (reset_lwp_ptrace_options_callback): New function.
10756 (linux_handle_new_gdb_connection): New function.
10757 (linux_target_ops): Initialize new structure member.
10758 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10759 * lynx-low.c: Initialize new structure member.
10760 * remote-utils.c (prepare_resume_reply): Implement stop reason
10761 "fork" for "T" stop message.
10762 * server.c (handle_query): Call handle_new_gdb_connection.
10763 * server.h (report_fork_events): Declare global flag.
10764 * target.h (struct target_ops) <handle_new_gdb_connection>:
10765 New member.
10766 (target_handle_new_gdb_connection): New macro.
10767 * win32-low.c: Initialize new structure member.
10768
10769 2015-05-12 Don Breazeal <donb@codesourcery.com>
10770
10771 * mem-break.c (APPEND_TO_LIST): Define macro.
10772 (clone_agent_expr): New function.
10773 (clone_one_breakpoint): New function.
10774 (clone_all_breakpoints): New function.
10775 * mem-break.h: Declare new functions.
10776
10777 2015-05-12 Don Breazeal <donb@codesourcery.com>
10778
10779 * linux-low.c (linux_supports_fork_events): New function.
10780 (linux_supports_vfork_events): New function.
10781 (linux_target_ops): Initialize new structure members.
10782 (initialize_low): Call linux_check_ptrace_features.
10783 * lynx-low.c (lynx_target_ops): Initialize new structure
10784 members.
10785 * server.c (report_fork_events, report_vfork_events):
10786 New global flags.
10787 (handle_query): Add new features to qSupported packet and
10788 response.
10789 (captured_main): Initialize new global variables.
10790 * target.h (struct target_ops) <supports_fork_events>:
10791 New member.
10792 <supports_vfork_events>: New member.
10793 (target_supports_fork_events): New macro.
10794 (target_supports_vfork_events): New macro.
10795 * win32-low.c (win32_target_ops): Initialize new structure
10796 members.
10797
10798 2015-05-12 Gary Benson <gbenson@redhat.com>
10799
10800 * server.c (handle_qxfer_exec_file): Use current process
10801 if annex is empty.
10802
10803 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10804
10805 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10806 Remove HAVE_PTRACE_GETREGS conditionals.
10807 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10808 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10809
10810 2015-05-08 Yao Qi <yao.qi@linaro.org>
10811
10812 * linux-low.c (linux_supports_conditional_breakpoints): New
10813 function.
10814 (linux_target_ops): Install new target method.
10815 * lynx-low.c (lynx_target_ops): Install NULL hook for
10816 supports_conditional_breakpoints.
10817 * nto-low.c (nto_target_ops): Likewise.
10818 * spu-low.c (spu_target_ops): Likewise.
10819 * win32-low.c (win32_target_ops): Likewise.
10820 * server.c (handle_query): Check
10821 target_supports_conditional_breakpoints.
10822 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10823 New field.
10824 (target_supports_conditional_breakpoints): New macro.
10825
10826 2015-05-06 Pedro Alves <palves@redhat.com>
10827
10828 PR server/18081
10829 * server.c (start_inferior): If the process exits, mourn it.
10830
10831 2015-04-21 Gary Benson <gbenson@redhat.com>
10832
10833 * hostio.c (fileio_open_flags_to_host): Factored out to
10834 fileio_to_host_openflags in common/fileio.c. Single use
10835 updated.
10836
10837 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10838
10839 * linux-xtensa-low.c (xtensa_fill_gregset)
10840 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10841 XCHAL_HAVE_LOOP.
10842
10843 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10844
10845 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10846 (regs_info): Replace usrregs pointer with NULL.
10847
10848 2015-04-17 Gary Benson <gbenson@redhat.com>
10849
10850 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10851 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10852 * server.c (handle_qxfer_exec_file): New function.
10853 (qxfer_packets): Add exec-file entry.
10854 (handle_query): Report qXfer:exec-file:read as supported packet.
10855
10856 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10857
10858 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10859
10860 2015-04-09 Gary Benson <gbenson@redhat.com>
10861
10862 * hostio-errno.c (errno_to_fileio_error): Remove function.
10863 Update caller to use remote_fileio_to_fio_error.
10864
10865 2015-04-09 Yao Qi <yao.qi@linaro.org>
10866
10867 * linux-low.c (linux_insert_point): Call
10868 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10869 (linux_remove_point): Call remove_memory_breakpoint if type is
10870 raw_bkpt_type_sw.
10871 * linux-x86-low.c (x86_insert_point): Don't call
10872 insert_memory_breakpoint.
10873 (x86_remove_point): Don't call remove_memory_breakpoint.
10874
10875 2015-04-01 Pedro Alves <palves@redhat.com>
10876 Cleber Rosa <crosa@redhat.com>
10877
10878 * server.c (gdbserver_usage): Reorganize and extend the usage
10879 message.
10880
10881 2015-03-24 Pedro Alves <palves@redhat.com>
10882
10883 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10884 output. Also dump TRAP_TRACE.
10885 (linux_low_filter_event): In debug output, distinguish a
10886 resume_stop SIGSTOP from a delayed SIGSTOP.
10887
10888 2015-03-24 Gary Benson <gbenson@redhat.com>
10889
10890 * linux-x86-low.c (x86_linux_new_thread): Moved to
10891 nat/x86-linux.c.
10892 (x86_linux_prepare_to_resume): Likewise.
10893
10894 2015-03-24 Gary Benson <gbenson@redhat.com>
10895
10896 * Makefile.in (x86-linux-dregs.o): New rule.
10897 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10898 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10899 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10900 (x86_linux_dr_get): Likewise.
10901 (x86_linux_dr_set): Likewise.
10902 (update_debug_registers_callback): Likewise.
10903 (x86_linux_dr_set_addr): Likewise.
10904 (x86_linux_dr_get_addr): Likewise.
10905 (x86_linux_dr_set_control): Likewise.
10906 (x86_linux_dr_get_control): Likewise.
10907 (x86_linux_dr_get_status): Likewise.
10908 (x86_linux_update_debug_registers): Likewise.
10909
10910 2015-03-24 Gary Benson <gbenson@redhat.com>
10911
10912 * linux-x86-low.c (x86_linux_update_debug_registers):
10913 New function, factored out from...
10914 (x86_linux_prepare_to_resume): ...this.
10915
10916 2015-03-24 Gary Benson <gbenson@redhat.com>
10917
10918 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10919 (x86_linux_dr_set): Likewise.
10920 (update_debug_registers_callback): Likewise.
10921 (x86_linux_dr_set_addr): Likewise.
10922 (x86_linux_dr_get_addr): Likewise.
10923 (x86_linux_dr_set_control): Likewise.
10924 (x86_linux_dr_get_control): Likewise.
10925 (x86_linux_dr_get_status): Likewise.
10926 (x86_linux_prepare_to_resume): Likewise.
10927
10928 2015-03-24 Gary Benson <gbenson@redhat.com>
10929
10930 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10931 Use perror_with_name. Pass string through gettext.
10932 (x86_linux_dr_set): Likewise.
10933
10934 2015-03-24 Gary Benson <gbenson@redhat.com>
10935
10936 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10937 (x86_linux_dr_set_addr): ...this.
10938 (x86_dr_low_get_addr): Rename to...
10939 (x86_linux_dr_get_addr): ...this.
10940 (x86_dr_low_set_control): Rename to...
10941 (x86_linux_dr_set_control): ...this.
10942 (x86_dr_low_get_control): Rename to...
10943 (x86_linux_dr_get_control): ...this.
10944 (x86_dr_low_get_status): Rename to...
10945 (x86_linux_dr_get_status): ...this.
10946 (x86_dr_low): Update with new function names.
10947
10948 2015-03-24 Gary Benson <gbenson@redhat.com>
10949
10950 * Makefile.in (x86-linux.o): New rule.
10951 * configure.srv: Add x86-linux.o to relevant targets.
10952 * linux-low.c (lwp_set_arch_private_info): New function.
10953 (lwp_arch_private_info): Likewise.
10954 * linux-x86-low.c: Include nat/x86-linux.h.
10955 (arch_lwp_info): Removed structure.
10956 (update_debug_registers_callback):
10957 Use lwp_set_debug_registers_changed.
10958 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10959 and lwp_set_debug_registers_changed.
10960 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10961
10962 2015-03-24 Gary Benson <gbenson@redhat.com>
10963
10964 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
10965 * linux-arm-low.c (arm_new_thread): Likewise.
10966 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
10967 * linux-mips-low.c (mips_linux_new_thread): Likewise.
10968 * linux-x86-low.c (x86_linux_new_thread): Likewise.
10969 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
10970
10971 2015-03-24 Gary Benson <gbenson@redhat.com>
10972
10973 * linux-low.c (ptid_of_lwp): New function.
10974 (lwp_is_stopped): Likewise.
10975 (lwp_stop_reason): Likewise.
10976 * linux-x86-low.c (update_debug_registers_callback):
10977 Use lwp_is_stopped.
10978 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10979 lwp_stop_reason.
10980
10981 2015-03-24 Gary Benson <gbenson@redhat.com>
10982
10983 * linux-low.h (linux_stop_lwp): Remove declaration.
10984
10985 2015-03-24 Gary Benson <gbenson@redhat.com>
10986
10987 * linux-low.h: Include nat/linux-nat.h.
10988 * linux-low.c (iterate_over_lwps_args): New structure.
10989 (iterate_over_lwps_filter): New function.
10990 (iterate_over_lwps): Likewise.
10991 * linux-x86-low.c (update_debug_registers_callback):
10992 Update signature to what iterate_over_lwps expects.
10993 Remove PID check that iterate_over_lwps now performs.
10994 (x86_dr_low_set_addr): Use iterate_over_lwps.
10995 (x86_dr_low_set_control): Likewise.
10996
10997 2015-03-24 Gary Benson <gbenson@redhat.com>
10998
10999 * linux-x86-low.c (x86_debug_reg_state): New function.
11000 (x86_linux_prepare_to_resume): Use the above.
11001
11002 2015-03-24 Gary Benson <gbenson@redhat.com>
11003
11004 * linux-low.c (current_lwp_ptid): New function.
11005 * linux-x86-low.c: Include nat/linux-nat.h.
11006 (x86_dr_low_get_addr): Use current_lwp_ptid.
11007 (x86_dr_low_get_control): Likewise.
11008 (x86_dr_low_get_status): Likewise.
11009
11010 2015-03-20 Pedro Alves <palves@redhat.com>
11011
11012 * tracepoint.c (cmd_qtstatus): Make "str" const.
11013
11014 2015-03-20 Pedro Alves <palves@redhat.com>
11015
11016 * server.c (handle_general_set): Make "req_str" const.
11017
11018 2015-03-19 Pedro Alves <palves@redhat.com>
11019
11020 * linux-low.c (linux_resume_one_lwp): Rename to ...
11021 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11022 instead call perror_with_name.
11023 (check_ptrace_stopped_lwp_gone): New function.
11024 (linux_resume_one_lwp): Reimplement as wrapper around
11025 linux_resume_one_lwp_throw that swallows errors if the LWP is
11026 gone.
11027
11028 2015-03-19 Pedro Alves <palves@redhat.com>
11029
11030 * linux-low.c (count_events_callback, select_event_lwp_callback):
11031 No longer check whether the thread has resume_stop as last resume
11032 kind.
11033
11034 2015-03-19 Pedro Alves <palves@redhat.com>
11035
11036 * linux-low.c (count_events_callback, select_event_lwp_callback):
11037 Use the lwp's status_pending_p field, not the thread's.
11038
11039 2015-03-19 Pedro Alves <palves@redhat.com>
11040
11041 * linux-low.c (select_event_lwp_callback): Update comments to
11042 no longer mention SIGTRAP.
11043
11044 2015-03-18 Gary Benson <gbenson@redhat.com>
11045
11046 * server.c (handle_query): Do not report vFile:fstat as supported.
11047
11048 2015-03-11 Gary Benson <gbenson@redhat.com>
11049
11050 * hostio.c (sys/types.h): New include.
11051 (sys/stat.h): Likewise.
11052 (common-remote-fileio.h): Likewise.
11053 (handle_fstat): New function.
11054 (handle_vFile): Handle vFile:fstat packets.
11055
11056 2015-03-11 Gary Benson <gbenson@redhat.com>
11057
11058 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11059 struct stat.st_blocks and struct stat.st_blksize.
11060 * configure: Regenerate.
11061 * config.in: Likewise.
11062 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11063 (OBS): Add common-remote-fileio.o.
11064 (common-remote-fileio.o): New rule.
11065
11066 2015-03-09 Pedro Alves <palves@redhat.com>
11067
11068 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11069 'struct sockaddr' pointer in 'accept' call.
11070
11071 2015-03-09 Pedro Alves <palves@redhat.com>
11072
11073 Revert:
11074 2015-03-07 Pedro Alves <palves@redhat.com>
11075 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11076 or <winsock2.h> here. Instead include "gdb_socket.h".
11077 (remote_open): Use union gdb_sockaddr_u.
11078 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11079 or <winsock2.h> here. Instead include "gdb_socket.h".
11080 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11081 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11082 or <sys/un.h>.
11083 (init_named_socket, gdb_agent_helper_thread): Use union
11084 gdb_sockaddr_u.
11085
11086 2015-03-07 Pedro Alves <palves@redhat.com>
11087
11088 * configure.ac (build_warnings): Move
11089 -Wdeclaration-after-statement to the C-specific set.
11090 * configure: Regenerate.
11091
11092 2015-03-07 Pedro Alves <palves@redhat.com>
11093
11094 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11095 or <winsock2.h> here. Instead include "gdb_socket.h".
11096 (remote_open): Use union gdb_sockaddr_u.
11097 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11098 or <winsock2.h> here. Instead include "gdb_socket.h".
11099 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11100 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11101 or <sys/un.h>.
11102 (init_named_socket, gdb_agent_helper_thread): Use union
11103 gdb_sockaddr_u.
11104
11105 2015-03-07 Pedro Alves <palves@redhat.com>
11106
11107 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11108 instead.
11109
11110 2015-03-06 Yao Qi <yao.qi@linaro.org>
11111
11112 * linux-aarch64-low.c (aarch64_insert_point): Use
11113 show_debug_regs as a boolean.
11114 (aarch64_remove_point): Likewise.
11115
11116 2015-03-05 Pedro Alves <palves@redhat.com>
11117
11118 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11119 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11120 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11121 * nto-low.c (nto_target_ops): Likewise.
11122 * spu-low.c (spu_target_ops): Likewise.
11123 * win32-low.c (win32_target_ops): Likewise.
11124
11125 2015-03-04 Pedro Alves <palves@redhat.com>
11126
11127 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11128 Decide whether a breakpoint triggered based on the SIGTRAP's
11129 siginfo.si_code.
11130 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11131 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11132 (linux_low_filter_event): Check for breakpoints before checking
11133 watchpoints.
11134 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11135 siginfo.si_code.
11136 (linux_stopped_by_sw_breakpoint)
11137 (linux_supports_stopped_by_sw_breakpoint)
11138 (linux_stopped_by_hw_breakpoint)
11139 (linux_supports_stopped_by_hw_breakpoint): New functions.
11140 (linux_target_ops): Install new target methods.
11141
11142 2015-03-04 Pedro Alves <palves@redhat.com>
11143
11144 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11145 * server.c (swbreak_feature, hwbreak_feature): New globals.
11146 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11147 (captured_main): Clear swbreak_feature and hwbreak_feature.
11148 * server.h (swbreak_feature, hwbreak_feature): Declare.
11149 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11150 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11151 supports_stopped_by_hw_breakpoint>: New fields.
11152 (target_supports_stopped_by_sw_breakpoint)
11153 (target_stopped_by_sw_breakpoint)
11154 (target_supports_stopped_by_hw_breakpoint)
11155 (target_stopped_by_hw_breakpoint): Declare.
11156
11157 2015-03-04 Pedro Alves <palves@redhat.com>
11158
11159 enum lwp_stop_reason -> enum target_stop_reason
11160 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11161 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11162 (linux_wait_1, stuck_in_jump_pad_callback)
11163 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11164 (linux_stopped_by_watchpoint):
11165 * linux-low.h (enum lwp_stop_reason): Delete.
11166 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11167 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11168
11169 2015-03-04 Yao Qi <yao.qi@linaro.org>
11170
11171 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11172
11173 2015-03-03 Gary Benson <gbenson@redhat.com>
11174
11175 * hostio.c (handle_vFile): Fix prefix lengths.
11176
11177 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11178
11179 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11180 ptr_bits.
11181
11182 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11183
11184 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11185 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11186 (clean): Add "rm -f" for above C files.
11187 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11188 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11189 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11190 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11191 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11192 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11193 (init_registers_s390x_vx_linux64)
11194 (init_registers_s390x_tevx_linux64)
11195 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11196 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11197 declarations.
11198 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11199 (s390_store_vxrs_high): New functions.
11200 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11201 NT_S390_VXRS_HIGH.
11202 (s390_arch_setup): Add logic for selecting one of the new target
11203 descriptions. Activate the new vector regsets if applicable.
11204 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11205 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11206 and init_registers_s390x_tevx_linux64.
11207
11208 2015-03-01 Pedro Alves <palves@redhat.com>
11209
11210 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11211 parameter.
11212
11213 2015-02-27 Pedro Alves <palves@redhat.com>
11214
11215 * linux-x86-low.c (u_debugreg_offset): New function.
11216 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11217
11218 2015-02-27 Pedro Alves <palves@redhat.com>
11219
11220 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11221 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11222 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11223 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11224 (ps_lsetfpregs, ps_getpid)
11225 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11226 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11227 (ps_lsetxregs, ps_plog): Declare.
11228
11229 2015-02-27 Pedro Alves <palves@redhat.com>
11230
11231 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11232 IP_AGENT_EXPORT_FUNC.
11233 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11234 IP_AGENT_EXPORT_FUNC.
11235 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11236 (IP_AGENT_EXPORT): Delete.
11237 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11238 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11239 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11240 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11241 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11242 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11243 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11244 (traceframe_read_count, traceframe_write_count)
11245 (traceframes_created, trace_state_variables, get_raw_reg)
11246 (get_trace_state_variable_value, set_trace_state_variable_value)
11247 (ust_loaded, helper_thread_id, cmd_buf): Use
11248 IPA_SYM_EXPORTED_NAME.
11249 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11250 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11251 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11252 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11253 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11254 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11255 EXTERN_C_PUSH/EXTERN_C_POP.
11256 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11257 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11258 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11259 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11260 (traceframe_write_count, traceframe_read_count)
11261 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11262 (about_to_request_buffer_space, get_trace_state_variable_value)
11263 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11264 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11265 EXTERN_C_PUSH/EXTERN_C_POP.
11266 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11267 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11268 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11269 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11270 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11271 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11272 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11273 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11274 Define.
11275 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11276 (IP_AGENT_EXPORT_VAR_DECL): Define.
11277 (tracing): Declare.
11278 (gdb_agent_get_raw_reg): Declare.
11279
11280 2015-02-27 Tom Tromey <tromey@redhat.com>
11281 Pedro Alves <palves@redhat.com>
11282
11283 Rename symbols whose names are reserved C++ keywords throughout.
11284
11285 2015-02-27 Pedro Alves <palves@redhat.com>
11286
11287 * Makefile.in (COMPILER): New, get it from autoconf.
11288 (CXX): Get from autoconf instead.
11289 (COMPILE.pre): Use COMPILER.
11290 (CC-LD): Rename to ...
11291 (CC_LD): ... this. Use COMPILER.
11292 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11293 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11294 * acinclude.m4: Include build-with-cxx.m4.
11295 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11296 Disable -Werror by default if building in C++ mode.
11297 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11298 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11299 the C++ compiler. Save/restore CXXFLAGS too.
11300 * configure: Regenerate.
11301
11302 2015-02-27 Pedro Alves <palves@redhat.com>
11303
11304 * acinclude.m4: Include libiberty.m4.
11305 * configure.ac: Call libiberty_INIT.
11306 * config.in, configure: Regenerate.
11307
11308 2015-02-26 Pedro Alves <palves@redhat.com>
11309
11310 * linux-low.c (linux_wait_1): When incrementing the PC past a
11311 program breakpoint always use the_low_target.breakpoint_len as
11312 increment, rather than the maximum between that and
11313 the_low_target.decr_pc_after_break.
11314
11315 2015-02-23 Pedro Alves <palves@redhat.com>
11316
11317 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11318 thread was doing a step-over; always adjust the PC if
11319 we stepped over a permanent breakpoint.
11320 (linux_wait_1): If we stepped over breakpoint that was on top of a
11321 permanent breakpoint, manually advance the PC past it.
11322
11323 2015-02-23 Pedro Alves <palves@redhat.com>
11324
11325 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11326 modes.
11327 (x86_fill_gregset, x86_store_gregset): Use it when handling
11328 $orig_eax.
11329
11330 2015-02-20 Pedro Alves <palves@redhat.com>
11331
11332 * thread-db.c: Include "nat/linux-procfs.h".
11333 (thread_db_init): Skip listing new threads if the kernel supports
11334 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11335
11336 2015-02-20 Pedro Alves <palves@redhat.com>
11337
11338 * linux-low.c (status_pending_p_callback): Use ptid_match.
11339
11340 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11341
11342 PR breakpoints/16812
11343 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11344 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11345 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11346
11347 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11348
11349 PR breakpoints/15956
11350 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11351
11352 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11353
11354 * linux-low.c (linux_low_btrace_conf): Print size.
11355 * server.c (handle_btrace_conf_general_set): New.
11356 (hanle_general_set): Call handle_btrace_conf_general_set.
11357 (handle_query): Report Qbtrace-conf:bts:size as supported.
11358
11359 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11360
11361 * linux-low.c (linux_low_enable_btrace): Update parameters.
11362 (linux_low_btrace_conf): New.
11363 (linux_target_ops)<to_btrace_conf>: Initialize.
11364 * server.c (current_btrace_conf): New.
11365 (handle_btrace_enable): Rename to ...
11366 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11367 to target_enable_btrace. Update comment. Update users.
11368 (handle_qxfer_btrace_conf): New.
11369 (qxfer_packets): Add btrace-conf entry.
11370 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11371 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11372 (target_ops)<read_btrace_conf>: New.
11373 (target_enable_btrace): Update parameters.
11374 (target_read_btrace_conf): New.
11375
11376 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11377
11378 * server.c (handle_btrace_general_set): Remove call to
11379 target_supports_btrace.
11380 (supported_btrace_packets): New.
11381 (handle_query): Call supported_btrace_packets.
11382 * target.h: include btrace-common.h.
11383 (btrace_target_info): Removed.
11384 (supports_btrace, target_supports_btrace): Update parameters.
11385
11386 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11387
11388 * Makefile.in (SFILES): Add common/btrace-common.c.
11389 (OBS): Add common/btrace-common.o.
11390 (btrace-common.o): Add build rules.
11391 * linux-low: Include btrace-common.h.
11392 (linux_low_read_btrace): Use struct btrace_data. Call
11393 btrace_data_init and btrace_data_fini.
11394
11395 2015-02-06 Pedro Alves <palves@redhat.com>
11396
11397 * thread-db.c (find_new_threads_callback): Add debug output.
11398
11399 2015-02-04 Pedro Alves <palves@redhat.com>
11400
11401 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11402 (resume_stopped_resumed_lwps): New function.
11403 (linux_wait_for_event_filtered): Use it.
11404
11405 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11406
11407 * Makefile.in (SFILES): Add linux-personality.c.
11408 (linux-personality.o): New rule.
11409 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11410 list of objects to be built.
11411 * linux-low.c: Include nat/linux-personality.h.
11412 (linux_create_inferior): Remove code to disable address space
11413 randomization (moved to ../nat/linux-personality.c). Create
11414 cleanup to disable address space randomization.
11415
11416 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11417
11418 * Makefile.in (posix-strerror.o): New rule.
11419 (mingw-strerror.o): Likewise.
11420 * configure: Regenerated.
11421 * configure.ac: Source file ../common/common.host. Initialize new
11422 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11423
11424 2015-01-14 Yao Qi <yao@codesourcery.com>
11425
11426 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11427 (ppc-linux.o): New rule.
11428 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11429 * configure.ac: AC_CHECK_FUNCS(getauxval).
11430 * config.in: Re-generated.
11431 * configure: Re-generated.
11432 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11433 ppc64_64bit_inferior_p
11434
11435 2015-01-14 Yao Qi <yao@codesourcery.com>
11436
11437 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11438 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11439 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11440 (PT_ORIG_R3, PT_TRAP): Likewise.
11441 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11442 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11443 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11444
11445 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11446
11447 * i387-fp.c (i387_cache_to_xsave): In look over
11448 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11449 zmmh_low_space field by use of zmmh_high_space.
11450
11451 2015-01-09 Pedro Alves <palves@redhat.com>
11452
11453 * linux-low.c (step_over_bkpt): Move higher up in the file.
11454 (handle_extended_wait): Don't store the stop_pc here.
11455 (get_stop_pc): Adjust comments and rename to ...
11456 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11457 stopped for a software breakpoint or hardware breakpoint.
11458 (thread_still_has_status_pending_p): New function.
11459 (status_pending_p_callback): Use
11460 thread_still_has_status_pending_p. If the event is no longer
11461 interesting, resume the LWP.
11462 (handle_tracepoints): Add assert.
11463 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11464 (wstatus_maybe_breakpoint): New function.
11465 (cancel_breakpoint): Delete function.
11466 (check_stopped_by_watchpoint): New function, factored out from
11467 linux_low_filter_event.
11468 (lp_status_maybe_breakpoint): Delete function.
11469 (linux_low_filter_event): Remove filter_ptid argument.
11470 Leave thread group exits pending here. Store the LWP's stop PC.
11471 Always leave events pending.
11472 (linux_wait_for_event_filtered): Pull all events out of the
11473 kernel, and leave them all pending.
11474 (count_events_callback, select_event_lwp_callback): Consider all
11475 events.
11476 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11477 (select_event_lwp): Only give preference to the stepping LWP in
11478 all-stop mode. Adjust comments.
11479 (ignore_event): New function.
11480 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11481 references to cancel_breakpoints. Adjust to renames. Also give
11482 equal priority to all LWPs that have had events in non-stop mode.
11483 If reporting a software breakpoint event, unadjust the LWP's PC.
11484 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11485 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11486 Adjust.
11487 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11488 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11489 (linux_stopped_by_watchpoint): Adjust.
11490 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11491 * linux-low.h (enum lwp_stop_reason): New.
11492 (struct lwp_info) <stop_pc>: Adjust comment.
11493 <stopped_by_watchpoint>: Delete field.
11494 <stop_reason>: New field.
11495 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11496 * mem-break.c (software_breakpoint_inserted_here)
11497 (hardware_breakpoint_inserted_here): New function.
11498 * mem-break.h (software_breakpoint_inserted_here)
11499 (hardware_breakpoint_inserted_here): Declare.
11500 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11501 (cancel_breakpoints): Delete.
11502 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11503 (upload_fast_traceframes): Remove references to
11504 cancel_breakpoints.
11505
11506 2015-01-09 Pedro Alves <palves@redhat.com>
11507
11508 * thread-db.c (find_new_threads_callback): Ignore thread if the
11509 kernel thread ID is -1.
11510
11511 2015-01-09 Pedro Alves <palves@redhat.com>
11512
11513 * linux-low.c (linux_attach_fail_reason_string): Move to
11514 nat/linux-ptrace.c, and rename.
11515 (linux_attach_lwp): Update comment.
11516 (attach_proc_task_lwp_callback): New function.
11517 (linux_attach): Adjust to rename and use
11518 linux_proc_attach_tgid_threads.
11519 (linux_attach_fail_reason_string): Delete declaration.
11520
11521 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11522
11523 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11524 * server.c (gdbserver_version): Likewise.
11525
11526 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11527
11528 * remote-utils.c: Include ctype.h.
11529 (input_interrupt): Explicitly handle the case when the char
11530 received is the NUL byte. Improve the printing of non-ASCII
11531 characters.
11532
11533 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11534
11535 * linux-low.c (linux_low_filter_event): Update call to
11536 linux_enable_event_reporting following the addition of
11537 a new parameter to that function.
11538
11539 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11540
11541 PR server/17457
11542 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11543 (AARCH64_FPCR_REGNO): Likewise.
11544 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11545 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11546 (aarch64_store_fpregset): Likewise.
11547
11548 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11549
11550 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11551 Remove FIXME comment about assumption about N.
11552
11553 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11554
11555 * configure.ac: If large-file support is disabled in GDBserver,
11556 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11557 * configure: Regenerate.
11558
11559 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11560
11561 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11562 warning upon ENODATA from ptrace.
11563 * linux-s390-low.c (s390_store_tdb): New.
11564 (s390_regsets): Add regset for NT_S390_TDB.
11565
11566 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11567
11568 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11569 without a fill_function.
11570 * linux-s390-low.c (s390_fill_last_break): Remove.
11571 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11572 (s390_arch_setup): Use regset's size instead of fill_function for
11573 loop end condition.
11574
11575 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11576
11577 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11578 the regset's store function when ptrace returned an error.
11579 * regcache.c (get_thread_regcache): Invalidate register cache
11580 before fetching inferior's registers.
11581
11582 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11583
11584 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11585 while-loop as for-loop.
11586 (regsets_store_inferior_registers): Likewise.
11587
11588 2014-11-28 Yao Qi <yao@codesourcery.com>
11589
11590 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11591 * config.in, configure: Re-generate.
11592 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11593 is defined.
11594
11595 2014-11-21 Yao Qi <yao@codesourcery.com>
11596
11597 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11598 (AC_CHECK_HEADERS): Remove malloc.h.
11599 * configure: Re-generated.
11600 * config.in: Re-generated.
11601 * server.h: Don't include alloca.h and malloc.h.
11602 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11603 Don't include malloc.h.
11604
11605 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11606
11607 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11608 corresponding ERRNO check in same block.
11609
11610 2014-11-12 Pedro Alves <palves@redhat.com>
11611
11612 * server.c (cont_thread): Update comment.
11613 (start_inferior, attach_inferior): No longer clear cont_thread.
11614 (handle_v_cont): No longer set cont_thread.
11615 (captured_main): Clear cont_thread each time a GDB connects.
11616
11617 2014-11-12 Pedro Alves <palves@redhat.com>
11618
11619 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11620 thread, and don't resume all threads if the Hc thread has exited.
11621
11622 2014-11-12 Pedro Alves <palves@redhat.com>
11623
11624 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11625 the process group instead of to a specific LWP.
11626
11627 2014-10-15 Pedro Alves <palves@redhat.com>
11628
11629 PR server/17487
11630 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11631 parameter.
11632 (arm_set_thread_context): Delete.
11633 (the_low_target): Adjust.
11634 * win32-i386-low.c (debug_registers_changed)
11635 (debug_registers_used): Delete.
11636 (update_debug_registers_callback): New function.
11637 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11638 needing to update their debug registers.
11639 (win32_get_current_dr): New function.
11640 (x86_dr_low_get_addr, x86_dr_low_get_control)
11641 (x86_dr_low_get_status): Fetch the debug register from the thread
11642 record's context.
11643 (i386_initial_stuff): Adjust.
11644 (i386_get_thread_context): Remove current_event parameter. Don't
11645 clear debug_registers_changed nor copy DR values to
11646 debug_reg_state.
11647 (i386_set_thread_context): Delete.
11648 (i386_prepare_to_resume): New function.
11649 (i386_thread_added): Mark the thread as needing to update irs
11650 debug registers.
11651 (the_low_target): Remove i386_set_thread_context and install
11652 i386_prepare_to_resume.
11653 * win32-low.c (win32_get_thread_context): Adjust.
11654 (win32_set_thread_context): Use SetThreadContext
11655 directly.
11656 (win32_prepare_to_resume): New function.
11657 (win32_require_context): New function, factored out from ...
11658 (thread_rec): ... this.
11659 (continue_one_thread): Call win32_prepare_to_resume on each thread
11660 we're about to continue.
11661 (win32_resume): Call win32_prepare_to_resume on the event thread.
11662 * win32-low.h (struct win32_thread_info)
11663 <debug_registers_changed>: New field.
11664 (struct win32_target_ops): Change prototype of set_thread_context,
11665 delete set_thread_context and add prepare_to_resume.
11666 (win32_require_context): New declaration.
11667
11668 2014-10-08 Gary Benson <gbenson@redhat.com>
11669
11670 * server.h: Do not include common-exceptions.h.
11671
11672 2014-10-08 Gary Benson <gbenson@redhat.com>
11673
11674 * server.h: Do not include cleanups.h.
11675
11676 2014-09-30 James Hogan <james.hogan@imgtec.com>
11677
11678 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11679 mips64-dsp-linux.c.
11680
11681 2014-09-23 Yao Qi <yao@codesourcery.com>
11682
11683 * linux-low.c (lp_status_maybe_breakpoint): New function.
11684 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11685 (count_events_callback): Likewise.
11686 (select_event_lwp_callback): Likewise.
11687 (cancel_breakpoints_callback): Likewise.
11688
11689 2014-09-19 Don Breazeal <donb@codesourcery.com>
11690
11691 * linux-low.c (handle_extended_wait): Call
11692 linux_ptrace_get_extended_event.
11693 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11694 linux_is_extended_waitstatus.
11695
11696 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11697
11698 * Makefile.in (CPPFLAGS): Define.
11699 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11700 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11701
11702 2014-09-16 Gary Benson <gbenson@redhat.com>
11703
11704 * inferiors.h (current_inferior): Renamed as...
11705 (current_thread): New variable. All uses updated.
11706 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11707 (maybe_move_out_of_jump_pad): Likewise.
11708 (cancel_breakpoint): Likewise.
11709 (linux_low_filter_event): Likewise.
11710 (wait_for_sigstop): Likewise.
11711 (linux_resume_one_lwp): Likewise.
11712 (need_step_over_p): Likewise.
11713 (start_step_over): Likewise.
11714 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11715 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11716 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11717 and save_inferior as saved_thread.
11718 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11719 saved_thread.
11720 (regcache_invalidate_thread): Likewise.
11721 * remote-utils.c (prepare_resume_reply): Likewise.
11722 * thread-db.c (thread_db_get_tls_address): Likewise.
11723 (disable_thread_event_reporting): Likewise.
11724 (remove_thread_event_breakpoints): Likewise.
11725 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11726 as saved_thread.
11727 * target.h (set_desired_inferior): Renamed as...
11728 (set_desired_thread): New declaration. All uses updated.
11729 * server.c (myresume): Updated comment to reference thread instead
11730 of inferior.
11731 (handle_serial_event): Likewise.
11732 (handle_target_event): Likewise.
11733
11734 2014-09-12 Tom Tromey <tromey@redhat.com>
11735 Gary Benson <gbenson@redhat.com>
11736
11737 * regcache.h: Include common-regcache.h.
11738 (regcache_read_pc): Don't declare.
11739 * regcache.c (get_thread_regcache_for_ptid): New function.
11740
11741 2014-09-11 Tom Tromey <tromey@redhat.com>
11742 Gary Benson <gbenson@redhat.com>
11743
11744 * symbol.c: New file.
11745 * Makefile.in (SFILES): Add symbol.c.
11746 (OBS): Add symbol.o.
11747
11748 2014-09-11 Gary Benson <gbenson@redhat.com>
11749
11750 * target.c (target_stop_ptid, target_continue_ptid): New
11751 functions.
11752
11753 2014-09-11 Tom Tromey <tromey@redhat.com>
11754 Gary Benson <gbenson@redhat.com>
11755
11756 * target.h: Include target/target.h.
11757 * target.c (target_read_memory, target_read_uint32)
11758 (target_write_memory): New functions.
11759
11760 2014-09-11 Gary Benson <gbenson@redhat.com>
11761
11762 * server.h (debug_hw_points): Don't declare.
11763 * server.c (debug_hw_points): Don't define. Replace all uses
11764 with show_debug_regs.
11765 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11766 all uses with show_debug_regs.
11767
11768 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11769
11770 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11771 endianness into account.
11772 (ppc_supply_ptrace_register): Likewise.
11773
11774 2014-09-03 James Hogan <james.hogan@imgtec.com>
11775
11776 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11777 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11778
11779 2014-09-03 Gary Benson <gbenson@redhat.com>
11780
11781 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11782 ALL_DEBUG_ADDRESS_REGISTERS.
11783
11784 2014-09-02 Gary Benson <gbenson@redhat.com>
11785
11786 * i386-low.h: Renamed as...
11787 * x86-low.h: New file. All type, function and variable name
11788 prefixes changed from "i386_" to "x86_". All references updated.
11789 * i386-low.c: Renamed as...
11790 * x86-low.c: New file. All type, function and variable name
11791 prefixes changed from "i386_" to "x86_". All references updated.
11792
11793 2014-09-02 Gary Benson <gbenson@redhat.com>
11794
11795 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11796 (x86_linux_new_thread): Likewise.
11797
11798 2014-08-29 Gary Benson <gbenson@redhat.com>
11799
11800 * server.h (setjmp.h): Do not include.
11801 (toplevel): Do not declare.
11802 (common-exceptions.h): Include.
11803 (cleanups.h): Likewise.
11804 * server.c (toplevel): Do not define.
11805 (exit_code): New static global.
11806 (detach_or_kill_for_exit_cleanup): New function.
11807 (main): New function. Original main renamed to...
11808 (captured_main): New function.
11809 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11810
11811 2014-08-29 Gary Benson <gbenson@redhat.com>
11812
11813 * Makefile.in (SFILES): Add common/common-exceptions.c.
11814 (OBS): Add common-exceptions.o.
11815 (common-exceptions.o): New rule.
11816 * utils.c (prepare_to_throw_exception): New function.
11817
11818 2014-08-29 Gary Benson <gbenson@redhat.com>
11819
11820 * config.in: Regenerate.
11821 * configure: Likewise.
11822
11823 2014-08-29 Gary Benson <gbenson@redhat.com>
11824
11825 * Makefile.in (SFILES): Add common/cleanups.c.
11826 (OBS): cleanups.o.
11827 (cleanups.o): New rule.
11828
11829 2014-08-29 Gary Benson <gbenson@redhat.com>
11830
11831 * utils.c (internal_vwarning): New function.
11832
11833 2014-08-28 Gary Benson <gbenson@redhat.com>
11834
11835 * utils.h (fatal): Remove declaration.
11836 * utils.c (fatal): Remove function.
11837
11838 2014-08-28 Gary Benson <gbenson@redhat.com>
11839
11840 * tracepoint.c (gdb_agent_init): Replace fatal with
11841 perror_with_name.
11842 (initialize_tracepoint): Likewise.
11843
11844 2014-08-28 Gary Benson <gbenson@redhat.com>
11845
11846 * remote-utils.c (remote_prepare): Replace fatal with error.
11847
11848 2014-08-28 Gary Benson <gbenson@redhat.com>
11849
11850 * linux-low.c (linux_async): Replace fatal with warning.
11851 Tidy up and return.
11852 (linux_start_non_stop): Return -1 if linux_async failed.
11853
11854 2014-08-28 Gary Benson <gbenson@redhat.com>
11855
11856 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11857 gdb_assert.
11858 (i386_dr_low_get_addr): Remove vague comment.
11859 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11860 gdb_assert.
11861
11862 2014-08-28 Gary Benson <gbenson@redhat.com>
11863
11864 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11865 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11866 internal_error.
11867 (linux_resume_one_lwp): Likewise.
11868 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11869 gdb_assert.
11870 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11871 with internal_error.
11872 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11873 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11874 (find_register_by_name): Replace fatal with internal_error.
11875 (find_regno): Likewise.
11876 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11877 * thread-db.c (thread_db_create_event): Likewise.
11878 (thread_db_load_search): Likewise.
11879 (try_thread_db_load_1): Likewise.
11880 * tracepoint.c (get_jump_space_head): Replace fatal with
11881 internal_error.
11882 (claim_trampoline_space): Likewise.
11883 (have_fast_tracepoint_trampoline_buffer): Likewise.
11884 (cmd_qtstart): Likewise.
11885 (stop_tracing): Likewise.
11886 (fast_tracepoint_collecting): Likewise.
11887 (target_malloc): Likewise.
11888 (download_tracepoint): Likewise.
11889 (download_trace_state_variables): Replace check with gdb_assert.
11890 (upload_fast_traceframes): Replace fatal with internal_error.
11891
11892 2014-08-19 Tom Tromey <tromey@redhat.com>
11893 Gary Benson <gbenson@redhat.com>
11894
11895 * Makefile.in (SFILES): Add common/common-debug.c.
11896 (OBS): Add common-debug.o.
11897 (common-debug.o): New rule.
11898 * debug.h (debug_printf): Don't declare.
11899 * debug.c (debug_printf): Renamed and rewritten as...
11900 (debug_vprintf): New function.
11901
11902 2014-08-19 Gary Benson <gbenson@redhat.com>
11903
11904 * utils.h: Do not include print-utils.h.
11905
11906 2014-08-19 Tom Tromey <tromey@redhat.com>
11907 Gary Benson <gbenson@redhat.com>
11908
11909 * server.h: Add static assertion.
11910 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11911
11912 2014-08-19 Tom Tromey <tromey@redhat.com>
11913 Gary Benson <gbenson@redhat.com>
11914
11915 * Makefile.in (SFILES): Add common/errors.c.
11916 (OBS): Add errors.o.
11917 (IPA_OBS): Add errors-ipa.o.
11918 (errors.o): New rule.
11919 (errors-ipa.o): Likewise.
11920 * utils.h (perror_with_name, error, warning): Don't declare.
11921 * utils.c (warning): Renamed and rewritten as...
11922 (vwarning): New function.
11923 (error): Renamed and rewritten as...
11924 (verror): New function.
11925 (internal_error): Renamed and rewritten as...
11926 (internal_verror): New function.
11927
11928 2014-08-07 Gary Benson <gbenson@redhat.com>
11929
11930 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11931 * configure: Regenerate.
11932 * config.in: Likewise.
11933 * server.h: Do not include errno.h.
11934 * event-loop.c: Likewise.
11935 * hostio-errno.c: Likewise.
11936 * linux-low.c: Likewise.
11937 * remote-utils.c: Likewise.
11938 * spu-low.c: Likewise.
11939 * utils.c: Likewise.
11940 * gdbreplay.c: Unconditionally include errno.h.
11941
11942 2014-08-07 Gary Benson <gbenson@redhat.com>
11943
11944 * server.h: Do not include string.h.
11945 * event-loop.c: Likewise.
11946 * linux-low.c: Likewise.
11947 * regcache.c: Likewise.
11948 * remote-utils.c: Likewise.
11949 * spu-low.c: Likewise.
11950 * utils.c: Likewise.
11951
11952 2014-08-07 Gary Benson <gbenson@redhat.com>
11953
11954 * server.h: Do not include gdb_assert.h.
11955
11956 2014-08-07 Gary Benson <gbenson@redhat.com>
11957
11958 * server.h: Do not include common-utils.h.
11959
11960 2014-08-07 Gary Benson <gbenson@redhat.com>
11961
11962 * server.h: Do not include ptid.h.
11963 * notif.h: Likewise.
11964
11965 2014-08-07 Gary Benson <gbenson@redhat.com>
11966
11967 * server.h: Do not include gdb_locale.h.
11968
11969 2014-08-07 Gary Benson <gbenson@redhat.com>
11970
11971 * server.h: Do not include gdb/signals.h.
11972 * win32-low.c: Likewise.
11973
11974 2014-08-07 Gary Benson <gbenson@redhat.com>
11975
11976 * server.h: Do not include pathmax.h.
11977
11978 2014-08-07 Gary Benson <gbenson@redhat.com>
11979
11980 * server.h: Do not include libiberty.h.
11981 * linux-bfin-low.c: Likewise.
11982
11983 2014-08-07 Gary Benson <gbenson@redhat.com>
11984
11985 * server.h: Do not include ansidecl.h.
11986
11987 2014-08-07 Gary Benson <gbenson@redhat.com>
11988
11989 * linux-x86-low.c: Do not include stddef.h.
11990 * lynx-ppc-low.c: Likewise.
11991 * tracepoint.c: Likewise.
11992
11993 2014-08-07 Gary Benson <gbenson@redhat.com>
11994
11995 * server.h: Do not include stdarg.h.
11996 * nto-low.c: Likewise.
11997
11998 2014-08-07 Gary Benson <gbenson@redhat.com>
11999
12000 * server.h: Do not include stdlib.h.
12001 * inferiors.c: Likewise.
12002 * linux-low.c: Likewise.
12003 * regcache.c: Likewise.
12004 * spu-low.c: Likewise.
12005 * tracepoint.c: Likewise.
12006 * utils.c: Likewise.
12007
12008 2014-08-07 Gary Benson <gbenson@redhat.com>
12009
12010 * server.h: Do not include stdio.h.
12011 * linux-low.c: Likewise.
12012 * remote-utils.c: Likewise.
12013 * spu-low.c: Likewise.
12014 * utils.c: Likewise.
12015 * wincecompat.c: Likewise.
12016
12017 2014-08-06 Gary Benson <gbenson@redhat.com>
12018
12019 * regcache.c (init_register_cache): Move conditionals inside if.
12020
12021 2014-08-06 Gary Benson <gbenson@redhat.com>
12022
12023 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12024
12025 2014-07-31 Gary Benson <gbenson@redhat.com>
12026
12027 * ax.h: Do not include server.h.
12028 * gdbthread.h: Likewise.
12029 * lynx-low.h: Likewise.
12030 * notif.h: Likewise.
12031
12032 2014-07-30 Gary Benson <gbenson@redhat.com>
12033
12034 * server.h: Include common-defs.h.
12035 Do not include config.h or build-gnulib-gdbserver/config.h.
12036
12037 2014-07-30 Gary Benson <gbenson@redhat.com>
12038
12039 * hostio-errno.c: Move server.h to top of includes list.
12040 * inferiors.c: Likewise.
12041 * linux-x86-low.c: Likewise.
12042 * notif.c: Include server.h.
12043
12044 2014-07-24 Tom Tromey <tromey@redhat.com>
12045 Gary Benson <gbenson@redhat.com>
12046
12047 * server.h (CORE_ADDR): Now unsigned.
12048
12049 2014-07-16 Pedro Alves <palves@redhat.com>
12050
12051 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12052
12053 2014-07-15 Pedro Alves <palves@redhat.com>
12054
12055 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12056 copy.
12057
12058 2014-07-11 Pedro Alves <palves@redhat.com>
12059
12060 * linux-low.c (kill_wait_lwp): New function, based on
12061 kill_one_lwp_callback, but use my_waitpid directly.
12062 (kill_one_lwp_callback, linux_kill): Use it.
12063
12064 2014-06-23 Pedro Alves <palves@redhat.com>
12065
12066 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12067 before setting DR0..DR3.
12068
12069 2014-06-20 Gary Benson <gbenson@redhat.com>
12070
12071 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12072 * configure: Regenerated.
12073 * config.in: Likewise.
12074
12075 2014-06-20 Gary Benson <gbenson@redhat.com>
12076
12077 * Makefile.in (SFILES): Update locations for files moved
12078 from common to nat.
12079 (object file files): Reordered.
12080
12081 2014-06-20 Gary Benson <gbenson@redhat.com>
12082
12083 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12084 (i386_dr_low_set_addr): Likewise.
12085 (i386_dr_low_get_addr): Likewise.
12086 (i386_dr_low_can_set_control): Likewise.
12087 (i386_dr_low_set_control): Likewise.
12088 (i386_dr_low_get_control): Likewise.
12089 (i386_dr_low_get_status): Likewise.
12090 (i386_get_debug_register_length): Likewise.
12091 * linux-x86-low.c (i386_dr_low_set_addr):
12092 Changed signature. Made static.
12093 (i386_dr_low_get_addr): Likewise.
12094 (i386_dr_low_set_control): Likewise.
12095 (i386_dr_low_get_control): Likewise.
12096 (i386_dr_low_get_status): Likewise.
12097 (i386_dr_low): New global variable.
12098 * win32-i386-low.c (i386_dr_low_set_addr):
12099 Changed signature. Made static.
12100 (i386_dr_low_get_addr): Likewise.
12101 (i386_dr_low_set_control): Likewise.
12102 (i386_dr_low_get_control): Likewise.
12103 (i386_dr_low_get_status): Likewise.
12104 (i386_dr_low): New global variable.
12105
12106 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12107
12108 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12109 * Makefile.in (AR, AR_FLAGS): Define.
12110 * configure: Regenerate.
12111
12112 2014-06-19 Gary Benson <gbenson@redhat.com>
12113
12114 * Makefile.in (i386-dregs.o): New rule.
12115 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12116 * i386-low.c (target.h): Remove include.
12117 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12118 (DR_CONTROL_SHIFT): Likewise.
12119 (DR_CONTROL_SIZE): Likewise.
12120 (DR_RW_EXECUTE): Likewise.
12121 (DR_RW_WRITE): Likewise.
12122 (DR_RW_READ): Likewise.
12123 (DR_RW_IORW): Likewise.
12124 (DR_LEN_1): Likewise.
12125 (DR_LEN_2): Likewise.
12126 (DR_LEN_4): Likewise.
12127 (DR_LEN_8): Likewise.
12128 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12129 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12130 (DR_ENABLE_SIZE): Likewise.
12131 (DR_LOCAL_SLOWDOWN): Likewise.
12132 (DR_GLOBAL_SLOWDOWN): Likewise.
12133 (DR_CONTROL_RESERVED): Likewise.
12134 (I386_DR_CONTROL_MASK): Likewise.
12135 (I386_DR_VACANT): Likewise.
12136 (I386_DR_LOCAL_ENABLE): Likewise.
12137 (I386_DR_GLOBAL_ENABLE): Likewise.
12138 (I386_DR_DISABLE): Likewise.
12139 (I386_DR_SET_RW_LEN): Likewise.
12140 (I386_DR_GET_RW_LEN): Likewise.
12141 (I386_DR_WATCH_HIT): Likewise.
12142 (i386_wp_op_t): Likewise.
12143 (i386_show_dr): Likewise.
12144 (i386_length_and_rw_bits): Likewise.
12145 (i386_insert_aligned_watchpoint): Likewise.
12146 (i386_remove_aligned_watchpoint): Likewise.
12147 (i386_handle_nonaligned_watchpoint): Likewise.
12148 i386_update_inferior_debug_regs(): Likewise.
12149 (i386_dr_insert_watchpoint): Likewise.
12150 (i386_dr_remove_watchpoint): Likewise.
12151 (i386_dr_region_ok_for_watchpoint): Likewise.
12152 (i386_dr_stopped_data_address): Likewise.
12153 (i386_dr_stopped_by_watchpoint): Likewise.
12154
12155 2014-06-19 Gary Benson <gbenson@redhat.com>
12156
12157 * i386-low.c (i386_dr_show): Renamed to
12158 i386_show_dr and made static. All uses updated.
12159 (i386_dr_length_and_rw_bits): Renamed to
12160 i386_length_and_rw_bits and made static.
12161 All uses updated.
12162 (i386_dr_insert_aligned_watchpoint): Renamed to
12163 i386_insert_aligned_watchpoint and made static.
12164 All uses updated.
12165 (i386_dr_remove_aligned_watchpoint): Renamed to
12166 i386_remove_aligned_watchpoint and made static.
12167 All uses updated.
12168 (i386_dr_update_inferior_debug_regs): Renamed to
12169 i386_update_inferior_debug_regs and made static.
12170 All uses updated.
12171
12172 2014-06-18 Gary Benson <gbenson@redhat.com>
12173
12174 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12175 (i386_dr_low_can_set_control): Likewise.
12176 (i386_get_debug_register_length): Likewise.
12177 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12178 (i386_dr_low_can_set_control): Likewise.
12179 (i386_get_debug_register_length): Likewise.
12180
12181 2014-06-17 Gary Benson <gbenson@redhat.com>
12182
12183 * i386-low.h (i386-dregs.h): New include.
12184 (DR_FIRSTADDR): Now in i386-dregs.h.
12185 (DR_LASTADDR): Likewise.
12186 (DR_NADDR): Likewise.
12187 (DR_STATUS): Likewise.
12188 (DR_CONTROL): Likewise.
12189 (i386_debug_reg_state): Likewise.
12190 (i386_dr_insert_watchpoint): Likewise.
12191 (i386_dr_remove_watchpoint): Likewise.
12192 (i386_dr_region_ok_for_watchpoint): Likewise.
12193 (i386_dr_stopped_data_address): Likewise.
12194 (i386_dr_stopped_by_watchpoint): Likewise.
12195 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12196
12197 2014-06-18 Gary Benson <gbenson@redhat.com>
12198
12199 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12200 i386_dr_insert_watchpoint.
12201 (i386_low_remove_watchpoint): Renamed to
12202 i386_dr_remove_watchpoint.
12203 (i386_low_region_ok_for_watchpoint): Renamed to
12204 i386_dr_region_ok_for_watchpoint.
12205 (i386_low_stopped_data_address): Renamed to
12206 i386_dr_stopped_data_address.
12207 (i386_low_stopped_by_watchpoint): Renamed to
12208 i386_dr_stopped_by_watchpoint.
12209 * i386-low.c (i386_show_dr): Renamed to
12210 i386_dr_show and made nonstatic. All uses updated.
12211 (i386_length_and_rw_bits): Renamed to
12212 i386_dr_length_and_rw_bits and made nonstatic.
12213 All uses updated.
12214 (i386_insert_aligned_watchpoint): Renamed to
12215 i386_dr_insert_aligned_watchpoint and made nonstatic.
12216 All uses updated.
12217 (i386_remove_aligned_watchpoint): Renamed to
12218 i386_dr_remove_aligned_watchpoint and made nonstatic.
12219 All uses updated.
12220 (i386_update_inferior_debug_regs): Renamed to
12221 i386_dr_update_inferior_debug_regs and made nonstatic.
12222 All uses updated.
12223 (i386_low_insert_watchpoint): Renamed to
12224 i386_dr_insert_watchpoint. All uses updated.
12225 (i386_low_remove_watchpoint): Renamed to
12226 i386_dr_remove_watchpoint. All uses updated.
12227 (i386_low_region_ok_for_watchpoint): Renamed to
12228 i386_dr_region_ok_for_watchpoint. All uses updated.
12229 (i386_low_stopped_data_address): Renamed to
12230 i386_dr_stopped_data_address. All uses updated.
12231 (i386_low_stopped_by_watchpoint): Renamed to
12232 i386_dr_stopped_by_watchpoint. All uses updated.
12233
12234 2014-06-18 Gary Benson <gbenson@redhat.com>
12235
12236 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12237 (i386_dr_low_can_set_control): Likewise.
12238 (i386_insert_aligned_watchpoint): New check.
12239
12240 2014-06-18 Gary Benson <gbenson@redhat.com>
12241
12242 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12243 Renamed to state.
12244
12245 2014-06-18 Gary Benson <gbenson@redhat.com>
12246
12247 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12248 instead of fatal and error.
12249 (i386_handle_nonaligned_watchpoint): Likewise.
12250
12251 2014-06-18 Gary Benson <gbenson@redhat.com>
12252
12253 * i386-low.c (i386_get_debug_register_length): New macro.
12254 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12255 (i386_show_dr): Use debug_printf instead of fprintf. Use
12256 phex to format values.
12257
12258 2014-06-18 Gary Benson <gbenson@redhat.com>
12259
12260 * i386-low.h: Comment changes.
12261 * i386-low.c: Likewise.
12262
12263 2014-06-18 Gary Benson <gbenson@redhat.com>
12264
12265 * i386-low.c: Whitespace changes.
12266
12267 2014-06-12 Tom Tromey <tromey@redhat.com>
12268
12269 * utils.c (freeargv): Remove.
12270
12271 2014-06-12 Tom Tromey <tromey@redhat.com>
12272
12273 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12274 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12275 (parse_debug_format_options): Likewise.
12276 (gdbserver_usage): Likewise.
12277 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12278 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12279 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12280 against libiberty.
12281 ($(LIBGNU)): Depend on libiberty.
12282 (all-lib): Recurse into all subdirs.
12283 (install-only): Invoke "install" target in subdirs.
12284 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12285 targets.
12286 * configure: Rebuild.
12287 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12288 for vasprintf, vsnprintf, or gettimeofday.
12289 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12290 srv_tgtobj.
12291
12292 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12293
12294 * development.sh: Delete.
12295 * Makefile.in (config.status): Adjust dependency on development.sh.
12296 * configure.ac: Adjust development.sh source call.
12297 * configure: Regenerate.
12298
12299 2014-06-02 Pedro Alves <palves@redhat.com>
12300
12301 * ax.c (gdb_free_agent_expr): New function.
12302 * ax.h (gdb_free_agent_expr): New declaration.
12303 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12304 list.
12305 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12306 static.
12307 (clear_breakpoint_conditions_and_commands): New function.
12308 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12309 (clear_breakpoint_conditions_and_commands): New declaration.
12310
12311 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12312
12313 * linux-aarch64-low.c (asm/ptrace.h): Include.
12314
12315 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12316
12317 Fix TLS access for -static -pthread.
12318 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12319 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12320 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12321
12322 2014-05-20 Pedro Alves <palves@redhat.com>
12323
12324 * linux-aarch64-low.c (aarch64_insert_point)
12325 (aarch64_remove_point): No longer check whether the type is
12326 supported here. Adjust to new interface.
12327 (the_low_target): Install aarch64_supports_z_point_type as
12328 supports_z_point_type method.
12329 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12330 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12331 instead of a Z packet char. Adjust.
12332 (arm_supports_z_point_type): New function.
12333 (arm_insert_point, arm_remove_point): Adjust to new interface.
12334 (the_low_target): Install arm_supports_z_point_type.
12335 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12336 (cris_insert_point, cris_remove_point): Adjust to new interface.
12337 Don't check whether the type is supported here.
12338 (the_low_target): Install cris_supports_z_point_type.
12339 * linux-low.c (linux_supports_z_point_type): New function.
12340 (linux_insert_point, linux_remove_point): Adjust to new interface.
12341 * linux-low.h (struct linux_target_ops) <insert_point,
12342 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12343 raw_breakpoint pointer parameter.
12344 <supports_z_point_type>: New method.
12345 * linux-mips-low.c (mips_supports_z_point_type): New function.
12346 (mips_insert_point, mips_remove_point): Adjust to new interface.
12347 Use mips_supports_z_point_type.
12348 (the_low_target): Install mips_supports_z_point_type.
12349 * linux-ppc-low.c (the_low_target): Install NULL as
12350 supports_z_point_type method.
12351 * linux-s390-low.c (the_low_target): Install NULL as
12352 supports_z_point_type method.
12353 * linux-sparc-low.c (the_low_target): Install NULL as
12354 supports_z_point_type method.
12355 * linux-x86-low.c (x86_supports_z_point_type): New function.
12356 (x86_insert_point): Adjust to new insert_point interface. Use
12357 insert_memory_breakpoint. Adjust to new
12358 i386_low_insert_watchpoint interface.
12359 (x86_remove_point): Adjust to remove_point interface. Use
12360 remove_memory_breakpoint. Adjust to new
12361 i386_low_remove_watchpoint interface.
12362 (the_low_target): Install x86_supports_z_point_type.
12363 * lynx-low.c (lynx_target_ops): Install NULL as
12364 supports_z_point_type callback.
12365 * nto-low.c (nto_supports_z_point_type): New.
12366 (nto_insert_point, nto_remove_point): Adjust to new interface.
12367 (nto_target_ops): Install nto_supports_z_point_type.
12368 * mem-break.c: Adjust intro comment.
12369 (struct raw_breakpoint) <raw_type, size>: New fields.
12370 <inserted>: Update comment.
12371 <shlib_disabled>: Delete field.
12372 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12373 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12374 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12375 (raw_bkpt_type_to_target_hw_bp_type): New function.
12376 (find_enabled_raw_code_breakpoint_at): New function.
12377 (find_raw_breakpoint_at): New type and size parameters. Use them.
12378 (insert_memory_breakpoint): New function, based off
12379 set_raw_breakpoint_at.
12380 (remove_memory_breakpoint): New function.
12381 (set_raw_breakpoint_at): Reimplement.
12382 (set_breakpoint): New, based on set_breakpoint_at.
12383 (set_breakpoint_at): Reimplement.
12384 (delete_raw_breakpoint): Go through the_target->remove_point
12385 instead of assuming memory breakpoints.
12386 (find_gdb_breakpoint_at): Delete.
12387 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12388 (find_gdb_breakpoint): New function.
12389 (set_gdb_breakpoint_at): Delete.
12390 (z_type_supported): New function.
12391 (set_gdb_breakpoint_1): New function, loosely based off
12392 set_gdb_breakpoint_at.
12393 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12394 (delete_gdb_breakpoint_at): Delete.
12395 (delete_gdb_breakpoint_1): New function, loosely based off
12396 delete_gdb_breakpoint_at.
12397 (delete_gdb_breakpoint): New function.
12398 (clear_gdb_breakpoint_conditions): Rename to ...
12399 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12400 breakpoint.
12401 (add_condition_to_breakpoint): Make static.
12402 (add_breakpoint_condition): Take a struct breakpoint pointer
12403 instead of an address. Adjust.
12404 (gdb_condition_true_at_breakpoint): Rename to ...
12405 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12406 z_type parameter.
12407 (gdb_condition_true_at_breakpoint): Reimplement.
12408 (add_breakpoint_commands): Take a struct breakpoint pointer
12409 instead of an address. Adjust.
12410 (gdb_no_commands_at_breakpoint): Rename to ...
12411 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12412 parameter. Return true if no breakpoint was found. Change debug
12413 output.
12414 (gdb_no_commands_at_breakpoint): Reimplement.
12415 (run_breakpoint_commands): Rename to ...
12416 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12417 and change return type to boolean.
12418 (run_breakpoint_commands): New function.
12419 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12420 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12421 breakpoint. Go through the_target->remove_point instead of
12422 assuming memory breakpoint.
12423 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12424 software and hardware breakpoints.
12425 (reinsert_raw_breakpoint): Go through the_target->insert_point
12426 instead of assuming memory breakpoint.
12427 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12428 software and hardware breakpoints.
12429 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12430 Check both software and hardware breakpoints.
12431 (validate_inserted_breakpoint): Assert the breakpoint is a
12432 software breakpoint. Set the inserted flag to -1 instead of
12433 setting shlib_disabled.
12434 (delete_disabled_breakpoints): Adjust.
12435 (validate_breakpoints): Only validate software breakpoints.
12436 Adjust to inserted flag change.
12437 (check_mem_read, check_mem_write): Skip breakpoint types other
12438 than software breakpoints. Adjust to inserted flag change.
12439 * mem-break.h (enum raw_bkpt_type): New enum.
12440 (raw_breakpoint, struct process_info): Forward declare.
12441 (Z_packet_to_target_hw_bp_type): Delete declaration.
12442 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12443 (set_gdb_breakpoint, delete_gdb_breakpoint)
12444 (clear_breakpoint_conditions): New declarations.
12445 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12446 (breakpoint_inserted_here): Update comment.
12447 (add_breakpoint_condition, add_breakpoint_commands): Replace
12448 address parameter with a breakpoint pointer parameter.
12449 (gdb_breakpoint_here): Update comment.
12450 (delete_gdb_breakpoint_at): Delete.
12451 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12452 * server.c (process_point_options): Take a struct breakpoint
12453 pointer instead of an address. Adjust.
12454 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12455 delete_gdb_breakpoint.
12456 * spu-low.c (spu_target_ops): Install NULL as
12457 supports_z_point_type method.
12458 * target.h: Include mem-break.h.
12459 (struct target_ops) <prepare_to_access_memory>: Update comment.
12460 <supports_z_point_type>: New field.
12461 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12462 instead of a char. Also take a raw breakpoint pointer.
12463 * win32-arm-low.c (the_low_target): Install NULL as
12464 supports_z_point_type.
12465 * win32-i386-low.c (i386_supports_z_point_type): New function.
12466 (i386_insert_point, i386_remove_point): Adjust to new interface.
12467 (the_low_target): Install i386_supports_z_point_type.
12468 * win32-low.c (win32_supports_z_point_type): New function.
12469 (win32_insert_point, win32_remove_point): Adjust to new interface.
12470 (win32_target_ops): Install win32_supports_z_point_type.
12471 * win32-low.h (struct win32_target_ops):
12472 <supports_z_point_type>: New method.
12473 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12474 instead of a char. Also take a raw breakpoint pointer.
12475
12476 2014-05-20 Pedro Alves <palves@redhat.com>
12477
12478 * mem-break.h: Include break-common.h.
12479 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12480 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12481 (Z_packet_to_target_hw_bp_type): New declaration.
12482 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12483 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12484 (Z_PACKET_ACCESS_WP): Delete macros.
12485 (Z_packet_to_hw_type): Delete function.
12486 * i386-low.h: Don't include break-common.h here.
12487 (Z_packet_to_hw_type): Delete declaration.
12488 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12489 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12490 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12491 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12492 * linux-aarch64-low.c: Don't include break-common.h here.
12493 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12494 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12495 (Z_packet_to_target_hw_bp_type): Delete function.
12496 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12497 function.
12498 (mips_insert_point, mips_remove_point): Use
12499 Z_packet_to_target_hw_bp_type.
12500
12501 2014-05-20 Pedro Alves <palves@redhat.com>
12502
12503 * linux-aarch64-low.c: Include break-common.h.
12504 (enum target_point_type): Delete.
12505 (Z_packet_to_point_type): Rename to ...
12506 (Z_packet_to_target_hw_bp_type): ... this, and return a
12507 target_hw_bp_type instead.
12508 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12509 instead of an enum target_point_type.
12510 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12511 breakpoint type.
12512 (aarch64_dr_state_insert_one_point)
12513 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12514 (aarch64_handle_aligned_watchpoint)
12515 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12516 Take an enum target_hw_bp_type instead of an enum
12517 target_point_type.
12518 (aarch64_supports_z_point_type): New function.
12519 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12520 use Z_packet_to_target_hw_bp_type.
12521
12522 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12523
12524 * configure.ac: Only use -Werror by default when DEVELOPMENT
12525 is true.
12526 * configure: Regenerate.
12527
12528 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12529
12530 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12531 * linux-x86-low.c (X86_64_USER_REGS): New.
12532 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12533
12534 2014-04-28 Yao Qi <yao@codesourcery.com>
12535
12536 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12537 name.
12538
12539 2014-04-25 Pedro Alves <palves@redhat.com>
12540
12541 PR server/16255
12542 * linux-low.c (linux_attach_fail_reason_string): New function.
12543 (linux_attach_lwp): Delete.
12544 (linux_attach_lwp_1): Rename to ...
12545 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12546 argument. Remove "initial" parameter. Return int instead of
12547 void. Don't error or warn here.
12548 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12549 failure to attach to the tgid. Call warning when failing to
12550 attach to an lwp.
12551 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12552 argument. Remove "initial" parameter. Return int instead of
12553 void. Don't error or warn here.
12554 (linux_attach_fail_reason_string): New declaration.
12555 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12556 interface change. Use linux_attach_fail_reason_string.
12557
12558 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12559 Walfred Tedeschi <walfred.tedeschi@intel.com>
12560
12561 * Makefile.in: Added rules to handle new files
12562 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12563 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12564 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12565 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12566 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12567 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12568 x32-avx512-linux.o.
12569 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12570 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12571 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12572 i386/x32-avx512.xml.
12573 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12574 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12575 i386/x32-avx512-linux.xml.
12576 * i387-fp.c (num_avx512_k_registers): New constant for number
12577 of K registers.
12578 (num_avx512_zmmh_low_registers): New constant for number of
12579 lower ZMM registers (0-15).
12580 (num_avx512_zmmh_high_registers): New constant for number of
12581 higher ZMM registers (16-31).
12582 (num_avx512_ymmh_registers): New contant for number of higher
12583 YMM registers (ymm16-31 added by avx521 on x86_64).
12584 (num_avx512_xmm_registers): New constant for number of higher
12585 XMM registers (xmm16-31 added by AVX512 on x86_64).
12586 (struct i387_xsave): Add space for AVX512 registers.
12587 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12588 Add code to handle AVX512 registers.
12589 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12590 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12591 prototypei from generated file.
12592 (tdesc_amd64_avx512_linux): Likewise.
12593 (init_registers_x32_avx512_linux): Likewise.
12594 (tdesc_x32_avx512_linux): Likewise.
12595 (init_registers_i386_avx512_linux): Likewise.
12596 (tdesc_i386_avx512_linux): Likewise.
12597 (x86_64_regmap): Add AVX512 registers.
12598 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12599 mask.
12600 (initialize_low_arch): Add code to initialize AVX512 registers.
12601
12602 2014-04-23 Pedro Alves <palves@redhat.com>
12603
12604 * mem-break.c (find_gdb_breakpoint_at): Make static.
12605 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12606
12607 2014-04-23 Pedro Alves <palves@redhat.com>
12608
12609 * i386-low.c: Don't include break-common.h here.
12610 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12611 prototype to take target_hw_bp_type as argument instead of a Z
12612 packet char.
12613 * i386-low.h: Include break-common.h here.
12614 (Z_packet_to_hw_type): Declare.
12615 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12616 prototypes.
12617 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12618 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12619 (x86_remove_point): Convert the packet number to a
12620 target_hw_bp_type before calling i386_low_remove_watchpoint.
12621 * win32-i386-low.c (i386_insert_point): Convert the packet number
12622 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12623 (i386_remove_point): Convert the packet number to a
12624 target_hw_bp_type before calling i386_low_remove_watchpoint.
12625
12626 2014-04-23 Pedro Alves <palves@redhat.com>
12627
12628 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12629
12630 2014-04-10 Pedro Alves <palves@redhat.com>
12631
12632 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12633 Check if the condition or command is NULL before checking if the
12634 breakpoint is known. On success, return true.
12635 * mem-break.h (add_breakpoint_condition): Document return.
12636 (add_breakpoint_commands): Add describing comment.
12637 * server.c (skip_to_semicolon): New function.
12638 (process_point_options): Use it.
12639
12640 2014-04-09 Pedro Alves <palves@redhat.com>
12641
12642 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12643 to lwpid_of.
12644
12645 2014-02-27 Pedro Alves <palves@redhat.com>
12646
12647 PR 12702
12648 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12649 macros.
12650 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12651 output.
12652 (last_thread_of_process_p): Take a PID argument instead of a
12653 thread pointer.
12654 (linux_wait_for_lwp): Delete.
12655 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12656 functions.
12657 (linux_low_filter_event): New function, party factored out from
12658 linux_wait_for_event.
12659 (linux_wait_for_event): Rename to ...
12660 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12661 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12662 sigsuspend. Check for zombie leaders.
12663 (linux_wait_for_event): Reimplement as wrapper around
12664 linux_wait_for_event_filtered.
12665 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12666 a normal or signal exit is seen, it's the whole process exiting.
12667 (wait_for_sigstop): No longer a for_each_inferior callback.
12668 Rewrite on top of linux_wait_for_event_filtered.
12669 (stop_all_lwps): Call wait_for_sigstop directly.
12670 * server.c (resume, handle_target_event): Handle
12671 TARGET_WAITKIND_NO_RESUMED.
12672
12673 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12674
12675 * win32-low.c (psapi_get_dll_name,
12676 * win32_CreateToolhelp32Snapshot): Delete.
12677 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12678 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12679 Delete.
12680 (handle_load_dll): Add function description.
12681 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12682
12683 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12684
12685 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12686 Add comment.
12687 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12688 base address when calling win32_add_one_solib.
12689 (handle_load_dll): Delete local variable load_addr.
12690 Remove 0x1000 offset applied to DLL base address when calling
12691 win32_add_one_solib.
12692 (handle_unload_dll): Add comment.
12693
12694 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12695
12696 * win32-low.c (win32_add_all_dlls): Renames
12697 win32_ensure_ntdll_loaded. Rewrite function documentation.
12698 Adjust implementation to always load all DLLs.
12699 Add 0x1000 offset to DLL base address when calling
12700 win32_add_one_solib.
12701 (child_initialization_done): New static global.
12702 (do_initial_child_stuff): Set child_initialization_done to
12703 zero during child initialization, and 1 after. Replace call
12704 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12705 Add comment.
12706 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12707 (handle_unload_dll): Add function documentation.
12708 (get_child_debug_event): Ignore load and unload DLL events
12709 during child initialization.
12710
12711 2014-02-20 Doug Evans <dje@google.com>
12712
12713 Remove global all_lwps.
12714 * inferiors.h (ptid_of): Move here from linux-low.h.
12715 (pid_of, lwpid_of): Ditto.
12716 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12717 parameter is a struct thread_info * now.
12718 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12719 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12720 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12721 directly.
12722 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12723 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12724 * linux-arm-low.c (update_registers_callback): Update, "entry"
12725 parameter is a struct thread_info * now.
12726 Fetch lwpid from current_inferior directly.
12727 (arm_insert_point): Pass &all_threads to find_inferior instead of
12728 &all_lwps.
12729 (arm_remove_point): Ditto.
12730 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12731 (arm_prepare_to_resume): Fetch pid from thread.
12732 (arm_read_description): Fetch lwpid from current_inferior directly.
12733 * linux-low.c (all_lwps): Delete.
12734 (delete_lwp): Delete call to remove_inferior.
12735 (handle_extended_wait): Fetch lwpid from thread.
12736 (add_lwp): Don't set lwp->entry.id. Remove call to
12737 add_inferior_to_list.
12738 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12739 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12740 (kill_one_lwp_callback): Ditto.
12741 (linux_kill): Don't dereference NULL pointer.
12742 Fetch ptid,lwpid from thread.
12743 (get_detach_signal): Fetch ptid from thread.
12744 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12745 Simplify call to regcache_invalidate_thread.
12746 (delete_lwp_callback): Update, "entry" parameter is a
12747 struct thread_info * now. Fetch pid from thread.
12748 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12749 (status_pending_p_callback): Update, "entry" parameter is a
12750 struct thread_info * now. Fetch ptid from thread.
12751 (find_lwp_pid): Update, "entry" parameter is a
12752 struct thread_info * now.
12753 (linux_wait_for_lwp): Fetch pid from thread.
12754 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12755 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12756 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12757 (dequeue_one_deferred_signal): Ditto.
12758 (cancel_breakpoint): Fetch ptid from current_inferior.
12759 (linux_wait_for_event): Pass &all_threads to find_inferior,
12760 not &all_lwps. Fetch ptid, lwpid from thread.
12761 (count_events_callback): Update, "entry" parameter is a
12762 struct thread_info * now.
12763 (select_singlestep_lwp_callback): Ditto.
12764 (select_event_lwp_callback): Ditto.
12765 (cancel_breakpoints_callback): Ditto.
12766 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12767 not &all_lwps.
12768 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12769 (unsuspend_one_lwp): Update, "entry" parameter is a
12770 struct thread_info * now.
12771 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12772 not &all_lwps.
12773 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12774 Fetch lwpid from thread, not lwp.
12775 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12776 Pass &all_threads to find_inferior, not &all_lwps.
12777 (send_sigstop): Fetch lwpid from thread, not lwp.
12778 (send_sigstop_callback): Update, "entry" parameter is a
12779 struct thread_info * now.
12780 (suspend_and_send_sigstop_callback): Ditto.
12781 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12782 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12783 struct thread_info * now.
12784 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12785 from thread, lwp.
12786 (lwp_running): Update, "entry" parameter is a
12787 struct thread_info * now.
12788 (stop_all_lwps): Fetch ptid from thread.
12789 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12790 (linux_resume_one_lwp): Fetch lwpid from thread.
12791 (linux_set_resume_request): Update, "entry" parameter is a
12792 struct thread_info * now. Fetch pid, lwpid from thread.
12793 (resume_status_pending_p): Update, "entry" parameter is a
12794 struct thread_info * now.
12795 (need_step_over_p): Ditto. Fetch lwpid from thread.
12796 (start_step_over): Fetch lwpid from thread.
12797 (linux_resume_one_thread): Update, "entry" parameter is a
12798 struct thread_info * now. Fetch lwpid from thread.
12799 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12800 (proceed_one_lwp): Update, "entry" parameter is a
12801 struct thread_info * now. Fetch lwpid from thread.
12802 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12803 struct thread_info * now.
12804 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12805 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12806 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12807 directly.
12808 (regsets_store_inferior_registers): Ditto.
12809 (fetch_register, store_register): Ditto.
12810 (linux_read_memory, linux_write_memory): Ditto.
12811 (linux_request_interrupt): Ditto.
12812 (linux_read_auxv): Ditto.
12813 (linux_xfer_siginfo): Ditto.
12814 (linux_qxfer_spu): Ditto.
12815 (linux_qxfer_libraries_svr4): Ditto.
12816 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12817 moved to inferiors.h.
12818 (get_lwp): Delete.
12819 (get_thread_lwp): Update.
12820 (struct lwp_info): Delete member "entry". Simplify comment for
12821 member "thread".
12822 (all_lwps): Delete.
12823 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12824 current_inferior directly.
12825 (update_watch_registers_callback): Update, "entry" parameter is a
12826 struct thread_info * now. Fetch pid from thread.
12827 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12828 (mips_insert_point): Fetch lwpid from current_inferior.
12829 Pass &all_threads to find_inferior, not &all_lwps.
12830 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12831 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12832 directly.
12833 (mips_stopped_data_address): Ditto.
12834 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12835 directly.
12836 * linux-tile-low.c (tile_arch_setup): Ditto.
12837 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12838 (update_debug_registers_callback): Update, "entry" parameter is a
12839 struct thread_info * now. Fetch pid from thread.
12840 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12841 Pass &all_threads to find_inferior, not &all_lwps.
12842 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12843 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12844 Pass &all_threads to find_inferior, not &all_lwps.
12845 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12846 (i386_dr_low_get_status): Ditto.
12847 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12848 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12849 (x86_linux_read_description): Ditto.
12850 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12851
12852 2014-02-20 Doug Evans <dje@google.com>
12853
12854 * inferiors.c (get_first_inferior): Fix buglet.
12855
12856 2014-02-19 Doug Evans <dje@google.com>
12857
12858 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12859 * inferiors.c (add_thread): Change result type to struct thread_info *.
12860 All callers updated.
12861 (add_lwp): Call add_thread here instead of in callers.
12862 All callers updated.
12863 * linux-low.h (get_lwp_thread): Rewrite.
12864 (struct lwp_info): New member "thread".
12865
12866 2014-02-19 Doug Evans <dje@google.com>
12867
12868 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12869 All callers updated.
12870
12871 2014-02-19 Doug Evans <dje@google.com>
12872
12873 * inferiors.c (add_thread): Fix whitespace.
12874
12875 2014-02-19 Doug Evans <dje@google.com>
12876
12877 * dll.c (clear_dlls): Replace accessing list implemention details
12878 with API function.
12879 * gdbthread.h (get_first_thread): Declare.
12880 * inferiors.c (for_each_inferior_with_data): New function.
12881 (get_first_thread): New function.
12882 (find_thread_ptid): Simplify.
12883 (get_first_inferior): New function.
12884 (clear_list): Delete.
12885 (one_inferior_p): New function.
12886 (clear_inferior_list): New function.
12887 (clear_inferiors): Update.
12888 * inferiors.h (for_each_inferior_with_data): Declare.
12889 (clear_inferior_list): Declare.
12890 (one_inferior_p): Declare.
12891 (get_first_inferior): Declare.
12892 * linux-low.c (linux_wait_for_event): Replace accessing list
12893 implemention details with API function.
12894 * server.c (target_running): Ditto.
12895 (accumulate_file_name_length): New function.
12896 (emit_dll_description): New function.
12897 (handle_qxfer_libraries): Replace accessing list implemention
12898 details with API function.
12899 (handle_qxfer_threads_worker): New function.
12900 (handle_qxfer_threads_proper): Replace accessing list implemention
12901 details with API function.
12902 (handle_query): Ditto.
12903 (visit_actioned_threads_callback_ftype): New typedef.
12904 (visit_actioned_threads_data): New struct.
12905 (visit_actioned_threads): Rewrite to be find_inferior callback.
12906 (resume): Call find_inferior.
12907 (handle_status): Replace accessing list implemention
12908 details with API function.
12909 (process_serial_event): Replace accessing list implemention details
12910 with API function.
12911 * target.c (set_desired_inferior): Replace accessing list implemention
12912 details with API function.
12913 * tracepoint.c (same_process_p): New function.
12914 (gdb_agent_about_to_close): Replace accessing list implemention
12915 details with API function.
12916 * win32-low.c (child_delete_thread): Replace accessing list
12917 implemention details with API function.
12918 (match_dll_by_basename): New function.
12919 (dll_is_loaded_by_basename): New function.
12920 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12921 details call to dll_is_loaded_by_basename.
12922
12923 2014-02-19 Doug Evans <dje@google.com>
12924
12925 * dll.h (struct dll_info): Add comment.
12926 * gdbthread.h (struct thread_info): Add comment.
12927 (current_ptid): Simplify.
12928 * inferiors.c (add_process): Update.
12929 (remove_process): Update.
12930 * inferiors.h (struct process_info): Rename member "head" to "entry".
12931 * linux-low.c (delete_lwp): Update.
12932 (add_lwp): Update.
12933 (last_thread_of_process_p): Update.
12934 (kill_one_lwp_callback, linux_kill): Update.
12935 (status_pending_p_callback): Update.
12936 (wait_for_sigstop): Update. Simplify read of ptid.
12937 (start_step_over): Update.
12938 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12939 (get_lwp_thread): Update.
12940 (struct lwp_info): Rename member "head" to "entry".
12941 * regcache.h (inferior_list_entry): Delete.
12942 * server.c (kill_inferior_callback): Update.
12943 (detach_or_kill_inferior_callback): Update.
12944 (print_started_pid): Update.
12945 (print_attached_pid): Update.
12946 (process_serial_event): Simplify read of ptid.
12947 * thread-db.c (thread_db_create_event): Update.
12948 (thread_db_get_tls_address): Update.
12949 * win32-low.c (current_inferior_ptid): Simplify.
12950
12951 2014-02-19 Tom Tromey <tromey@redhat.com>
12952
12953 * target.h (struct target_ops) <supports_btrace>: Add target_ops
12954 argument.
12955 (target_supports_btrace): Update.
12956
12957 2014-02-14 Yao Qi <yao@codesourcery.com>
12958
12959 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
12960 (rsp-low-ipa.o): New target.
12961
12962 2014-02-12 Tom Tromey <tromey@redhat.com>
12963
12964 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
12965 convert_ascii_to_int.
12966 * regcache.c (registers_to_string): Likewise.
12967 * remote-utils.c (decode_M_packet): Likewise.
12968 * server.c (process_serial_event): Likewise.
12969
12970 2014-02-12 Tom Tromey <tromey@redhat.com>
12971
12972 * server.c (handle_query, handle_v_run): Use hex2bin, not
12973 unhexify.
12974 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
12975
12976 2014-02-12 Tom Tromey <tromey@redhat.com>
12977
12978 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
12979 convert_int_to_ascii.
12980 * regcache.c (registers_to_string, collect_register_as_string):
12981 Likewise.
12982 * remote-utils.c (look_up_one_symbol, relocate_instruction):
12983 Likewise.
12984 * server.c (process_serial_event): Likewise.
12985 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
12986 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
12987
12988 2014-02-12 Tom Tromey <tromey@redhat.com>
12989
12990 * remote-utils.c (look_up_one_symbol, monitor_output): Use
12991 bin2hex, not hexify.
12992 * tracepoint.c (cmd_qtstatus): Likewise.
12993
12994 2014-02-12 Tom Tromey <tromey@redhat.com>
12995
12996 * remote-utils.c (monitor_output): Pass explicit length to
12997 hexify.
12998
12999 2014-02-12 Tom Tromey <tromey@redhat.com>
13000
13001 * tracepoint.c: Include rsp-low.h.
13002 * server.c: Include rsp-low.h.
13003 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13004 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13005 declare.
13006 * remote-utils.c: Include rsp-low.h.
13007 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13008 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13009 (convert_int_to_ascii, convert_ascii_to_int): Move to
13010 common/rsp-low.c.
13011 * regcache.c: Include rsp-low.h.
13012 * ax.c: Include rsp-low.h.
13013 * Makefile.in (SFILES): Add common/rsp-low.c.
13014 (OBS): Add rsp-low.o.
13015 (rsp-low.o): New target.
13016
13017 2014-02-12 Tom Tromey <tromey@redhat.com>
13018
13019 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13020 Include print-utils.h.
13021 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13022 (plongest, thirty_two, phex_nz): Remove.
13023 * Makefile.in (SFILES): Add common/print-utils.c.
13024 (OBS): Add print-utils.o.
13025 (print-utils-ipa.o): New target.
13026 (print-utils.o): New target.
13027 (IPA_OBJS): Add print-utils-ipa.o.
13028
13029 2014-02-06 Tom Tromey <tromey@redhat.com>
13030
13031 * Makefile.in (SFILES): Fix indentation.
13032
13033 2014-02-05 Doug Evans <dje@google.com>
13034
13035 * linux-low.c (linux_wait_for_event): Improve comment.
13036 (linux_wait_1): Keep current_inferior in sync with event_child.
13037
13038 2014-01-22 Doug Evans <dje@google.com>
13039
13040 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13041
13042 2014-01-22 Doug Evans <dje@google.com>
13043
13044 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13045 * configure: Regenerate.
13046 * config.in: Regenerate.
13047 * Makefile.in (SFILES): Add debug.c.
13048 (OBS): Add debug.o.
13049 * debug.c: New file.
13050 * debug.h: New file.
13051 * linux-aarch64-low.c (*): Update all debugging printfs to use
13052 debug_printf instead of fprintf.
13053 * linux-arm-low.c (*): Ditto.
13054 * linux-cris-low.c (*): Ditto.
13055 * linux-crisv32-low.c (*): Ditto.
13056 * linux-m32r-low.c (*): Ditto.
13057 * linux-sparc-low.c (*): Ditto.
13058 * linux-x86.c (*): Ditto.
13059 * linux-low.c (*): Ditto.
13060 (linux_wait_1): Add calls to debug_enter, debug_exit.
13061 (linux_wait): Remove redundant debugging printf.
13062 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13063 (linux_resume, unstop_all_lwps): Ditto.
13064 * mem-break.c (*): Update all debugging printfs to use
13065 debug_printf instead of fprintf.
13066 * remote-utils.c (*): Ditto.
13067 * thread-db.c (*): Ditto.
13068 * server.c #include <ctype.h>, "gdb_vecs.h".
13069 (debug_threads): Moved to debug.c.
13070 (*): Update all debugging printfs to use debug_printf instead of
13071 fprintf.
13072 (start_inferior): Replace call to fflush with call to debug_flush.
13073 (monitor_show_help): Mention set debug-format.
13074 (parse_debug_format_options): New function.
13075 (handle_monitor_command): Handle "monitor set debug-format".
13076 (gdbserver_usage): Mention --debug-format.
13077 (main): Parse --debug-format.
13078 * server.h (debug_threads): Declaration moved to debug.h.
13079 #include "debug.h".
13080 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13081 trace_debug_1 that uses debug_printf.
13082 (tracepoint_look_up_symbols): Update all debugging printfs to use
13083 debug_printf instead of fprintf.
13084
13085 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13086
13087 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13088 sys/ptrace.h.
13089
13090 2014-01-17 Pedro Alves <palves@redhat.com>
13091
13092 PR build/16445
13093 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13094 defined after including gdb_proc_service.h.
13095
13096 2014-01-16 Doug Evans <dje@google.com>
13097
13098 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13099 (match_dll): Use it.
13100
13101 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13102
13103 * target.h (target_ops) <read_btrace>: Change parameters and
13104 return type to allow error reporting.
13105 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13106 trace reading errors on.
13107 * linux-low.c (linux_low_read_btrace): Pass trace reading
13108 errors on.
13109 (linux_low_disable_btrace): New.
13110
13111 2014-01-15 Doug Evans <dje@google.com>
13112
13113 * inferiors.c (thread_id_to_gdb_id): Delete.
13114 * inferiors.h (thread_id_to_gdb_id): Delete.
13115
13116 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13117
13118 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13119 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13120 versions.
13121
13122 2014-01-08 Pedro Alves <palves@redhat.com>
13123
13124 * server.c (handle_status): Don't discard previous queued stop
13125 replies or thread's pending status here.
13126 (main) <disconnection>: Do it here instead.
13127
13128 2014-01-08 Pedro Alves <palves@redhat.com>
13129
13130 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13131 * server.c (visit_actioned_threads, handle_pending_status): New
13132 function.
13133 (handle_v_cont): Factor out parts to ...
13134 (resume): ... this new function. If in all-stop, and a thread
13135 being resumed has a pending status, report it without actually
13136 resuming.
13137 (myresume): Adjust to use the new 'resume' function.
13138 (clear_pending_status_callback, set_pending_status_callback)
13139 (find_status_pending_thread_callback): New functions.
13140 (handle_status): Handle the case of multiple threads having
13141 interesting statuses to report. Report threads' real last signal
13142 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13143 with an interesting thread to report the status for, instead of
13144 always reporting the status of the first thread.
13145
13146 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13147
13148 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13149 * gdbreplay.c (gdbreplay_version): Likewise.
13150
13151 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13152
13153 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13154 iov.iov_len with the real length in use.
13155
13156 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13157
13158 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13159 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13160 for all targets that use win32-low.c.
13161 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13162 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13163
13164 2013-12-13 Pedro Alves <palves@redhat.com>
13165
13166 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13167 if equal to TARGET_WAITKIND_LOADED.
13168 * win32-low.c (cached_status): New static global.
13169 (win32_wait): Add declaration.
13170 (do_initial_child_stuff): Flush all initial pending debug events
13171 up to the initial breakpoint.
13172 (win32_wait): If CACHED_STATUS was set, return that instead
13173 of doing a real wait. Remove the code resuming the execution
13174 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13175 during the initial phase. Also remove the code changing
13176 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13177 TARGET_WAITKIND_STOPPED.
13178
13179 2013-12-11 Yao Qi <yao@codesourcery.com>
13180
13181 * notif.c (handle_notif_ack): Return 0 if no notification
13182 matches.
13183
13184 2013-11-20 Doug Evans <dje@google.com>
13185
13186 * linux-low.c (linux_set_resume_request): Fix comment.
13187
13188 2013-11-20 Doug Evans <dje@google.com>
13189
13190 * linux-low.c (resume_status_pending_p): Tweak comment.
13191
13192 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13193
13194 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13195 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13196 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13197 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13198 (srv_amd64_regobj): Add amd64-mpx.o.
13199 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13200 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13201 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13202 * i387-fp.c (num_pl_bnd_register) Added constant.
13203 (num_pl_bnd_cfg_registers) Added constant.
13204 (struct i387_xsave) Added reserved area and MPX fields.
13205 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13206 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13207 function.
13208 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13209 (init_registers_amd64_mpx_linux): Declare new function.
13210 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13211 (x86_64_regmap): Add MPX registers.
13212 (x86_linux_read_description): Add MPX case.
13213 (initialize_low_arch): Initialize MPX targets.
13214
13215 2013-11-18 Tom Tromey <tromey@redhat.com>
13216
13217 * configure: Rebuild.
13218 * configure.ac: Don't check for stdlib.h.
13219 * gdbreplay.c: Unconditionally include stdlib.h.
13220
13221 2013-11-18 Tom Tromey <tromey@redhat.com>
13222
13223 * config.in: Rebuild.
13224 * configure: Rebuild.
13225 * configure.ac: Don't use AC_HEADER_DIRENT.
13226
13227 2013-11-18 Tom Tromey <tromey@redhat.com>
13228
13229 * server.h: Don't check HAVE_STRING_H.
13230 * gdbreplay.c: Don't check HAVE_STRING_H.
13231 * configure: Rebuild.
13232
13233 2013-11-18 Tom Tromey <tromey@redhat.com>
13234
13235 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13236 LIBGNU.
13237
13238 2013-11-08 Tom Tromey <tromey@redhat.com>
13239
13240 * configure, config.in: Rebuild.
13241 * configure.ac: Remove unused configury.
13242
13243 2013-11-08 Tom Tromey <tromey@redhat.com>
13244
13245 * acinclude.m4: Include common.m4, codeset.m4.
13246 * configure, config.in: Rebuild.
13247 * configure.ac: Use GDB_AC_COMMON.
13248
13249 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13250
13251 * linux-s390-low.c (HWCAP_S390_TE): New define.
13252 (s390_arch_setup): Consider the TE field in the HWCAP for
13253 determining 'have_regset_tdb'.
13254
13255 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13256
13257 PR gdb/16014
13258 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13259 call to sizeof.
13260
13261 2013-10-02 Pedro Alves <palves@redhat.com>
13262
13263 * server.c (process_serial_event): Don't output "GDBserver
13264 exiting" if GDB is connected through stdio.
13265 * target.c (mywait): Likewise, be silent if GDB is connected
13266 through stdio.
13267
13268 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13269
13270 * lynx-low.c (lynx_add_threads_after_attach): New function.
13271 (lynx_attach): Remove call to add_thread. Add call to
13272 lynx_add_threads_after_attach instead.
13273
13274 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13275
13276 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13277 * config.in, configure: Regenerated.
13278
13279 2013-09-18 Yao Qi <yao@codesourcery.com>
13280
13281 PR server/15959
13282 * server.c (start_inferior): Clear 'resume_info'.
13283
13284 2013-09-16 Jiong Wang <jiwang@tilera.com>
13285
13286 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13287 for each register.
13288
13289 2013-09-16 Jiong Wang <jiwang@tilera.com>
13290
13291 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13292 linux-tile-low.o to srv_tgtobj.
13293
13294 2013-09-16 Will Newton <will.newton@linaro.org>
13295
13296 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13297 out regs.
13298
13299 2013-09-06 Pedro Alves <palves@redhat.com>
13300
13301 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13302 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13303 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13304 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13305 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13306 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13307
13308 2013-09-06 Pedro Alves <palves@redhat.com>
13309
13310 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13311 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13312
13313 2013-09-06 Pedro Alves <palves@redhat.com>
13314
13315 * linux-amd64-ipa.c: Include tracepoint.h.
13316 * linux-i386-ipa.c: Include tracepoint.h.
13317
13318 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13319
13320 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13321 (ps_get_thread_area): New function.
13322
13323 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13324
13325 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13326 (initialize_low_arch): Call init_registers_crisv32 rather than
13327 init_register_crisv32.
13328
13329 2013-09-05 Pedro Alves <palves@redhat.com>
13330
13331 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13332 to ...
13333 * hostio.h: ... this new file.
13334 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13335 win32-low.c: Include hostio.h.
13336
13337 2013-09-05 Pedro Alves <palves@redhat.com>
13338
13339 * server.h (gdb_client_data, handler_func, callback_handler_func)
13340 (delete_file_handler, add_file_handler, append_callback_event)
13341 (delete_callback_event, start_event_loop, initialize_event_loop):
13342 Move to event-loop.h and include it.
13343 * event-loop.h: New file.
13344
13345 2013-09-05 Pedro Alves <palves@redhat.com>
13346
13347 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13348 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13349 (loaded_dll, unloaded_dll): Move to ...
13350 * dll.h: ... this new file.
13351 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13352
13353 2013-09-05 Pedro Alves <palves@redhat.com>
13354
13355 * server.h (current_process, get_thread_process, all_processes)
13356 (add_inferior_to_list, for_each_inferior, current_inferior)
13357 (remove_inferior, add_process, remove_process, find_process_pid)
13358 (have_started_inferiors_p, have_attached_inferiors_p)
13359 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13360 (clear_inferiors, find_inferior, find_inferior_id)
13361 (inferior_target_data, set_inferior_target_data)
13362 (inferior_regcache_data, set_inferior_regcache_data): Move to
13363 inferiors.h, and include it.
13364 * inferiors.h: New file.
13365
13366 2013-09-05 Pedro Alves <palves@redhat.com>
13367
13368 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13369 Move ...
13370 * ax.h: ... here.
13371
13372 2013-09-05 Pedro Alves <palves@redhat.com>
13373
13374 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13375 tracepoint.h.
13376 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13377 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13378 (handle_tracepoint_general_set, handle_tracepoint_query)
13379 (tracepoint_finished_step, tracepoint_was_hit)
13380 (release_while_stepping_state_list, current_traceframe)
13381 (in_readonly_region, traceframe_read_mem)
13382 (fetch_traceframe_registers, traceframe_read_sdata)
13383 (traceframe_read_info, struct fast_tpoint_collect_status)
13384 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13385 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13386 (supply_fast_tracepoint_registers)
13387 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13388 (ipa_tdesc, claim_trampoline_space)
13389 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13390 (agent_mem_read, agent_get_trace_state_variable_value)
13391 (agent_set_trace_state_variable_value, agent_tsv_read)
13392 (agent_mem_read_string, get_raw_reg_func_addr)
13393 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13394 * tracepoint.h: ... this new file.
13395
13396 2013-09-05 Pedro Alves <palves@redhat.com>
13397
13398 * server.h (perror_with_name, error, fatal, warning, paddress)
13399 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13400 include it.
13401 * utils.h: New file.
13402
13403 2013-09-05 Pedro Alves <palves@redhat.com>
13404
13405 * server.h (remote_debug, noack_mode, transport_is_reliable)
13406 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13407 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13408 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13409 (write_enn, initialize_async_io, enable_async_io)
13410 (disable_async_io, check_remote_input_interrupt_request)
13411 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13412 (dead_thread_notify, prepare_resume_reply)
13413 (decode_address_to_semicolon, decode_address, decode_m_packet)
13414 (decode_M_packet, decode_X_packet, decode_xfer_write)
13415 (decode_search_memory_packet, unhexify, hexify)
13416 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13417 (look_up_one_symbol, relocate_instruction)
13418 (monitor_output): Move to remote-utils.h, and include it.
13419 * remote-utils.h: New file.
13420
13421 2013-09-05 Pedro Alves <palves@redhat.com>
13422
13423 * server.h (_): Delete.
13424
13425 2013-09-02 Pedro Alves <palves@redhat.com>
13426
13427 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13428 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13429 allocated.
13430 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13431
13432 2013-09-02 Pierre Muller <muller@sourceware.org>
13433
13434 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13435 or WriteProcessMemory complete successfully and handle
13436 ERROR_PARTIAL_COPY error.
13437
13438 2013-09-02 Pedro Alves <palves@redhat.com>
13439
13440 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13441 error instead of EIO.
13442
13443 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13444
13445 PR server/15604
13446 * linux-low.c: Include filestuff.h.
13447 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13448 * lynx-low.c: Include filestuff.h.
13449 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13450 * server.c: Include filestuff.h.
13451 (main): Call notice_open_fds.
13452 * spu-low.c: Include filestuff.h.
13453 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13454
13455 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13456
13457 * Makefile.in: Explain why ../target and ../nat are not
13458 listed as include file search paths.
13459 (linux-waitpid.o): New object file rule.
13460 * configure.srv (srv_native_linux_obj): New variable.
13461 Replace all occurrences of linux native object files with
13462 $srv_native_linux_obj.
13463 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13464 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13465 (linux_enable_event_reporting): Remove declaration.
13466 (my_waitpid): Moved to common/linux-waitpid.c.
13467 (linux_wait_for_event): Pass ptid when calling
13468 linux_enable_event_reporting.
13469 (linux_supports_tracefork_flag): Remove.
13470 (linux_enable_event_reporting): Likewise.
13471 (linux_tracefork_grandchild): Remove.
13472 (STACK_SIZE): Moved to common/linux-ptrace.c.
13473 (linux_tracefork_child): Remove.
13474 (linux_test_for_tracefork): Remove.
13475 (linux_look_up_symbols): Call linux_supports_traceclone.
13476 (initialize_low): Remove call to linux_test_for_tracefork.
13477 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13478 common/linux-ptrace.h.
13479 (PTRACE_TYPE_ARG4): Likewise.
13480 Include linux-ptrace.h.
13481
13482 2013-08-21 Pedro Alves <palves@redhat.com>
13483
13484 * config.in: Renegerate.
13485
13486 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13487
13488 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13489 (SFILES): Remove $(srcdir)/common/target-common.c and
13490 add $(srcdir)/target/waitstatus.c.
13491 (OBS): Remove target-common.o and add waitstatus.o.
13492 (server_h): Remove $(srcdir)/../common/target-common.h and
13493 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13494 and $(srcdir)/../target/waitstatus.h.
13495 (target-common.o): Remove.
13496 (waitstatus.o): New target object file.
13497 * target.h: Do not include target-common.h and
13498 include target/resume.h, target/wait.h and
13499 target/waitstatus.h.
13500
13501 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13502
13503 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13504 to PTRACE_TYPE_ARG3.
13505 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13506 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13507 PTRACE_TYPE_ARG4.
13508 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13509 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13510
13511 2013-07-27 Jie Zhang <jie@codesourcery.com>
13512 Daniel Jacobowitz <dan@codesourcery.com>
13513 Yao Qi <yao@codesourcery.com>
13514
13515 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13516 (mips-linux-watch.o): New rule.
13517 (mips_linux_watch_h): New variable.
13518 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13519 srv_tgtobj.
13520 * linux-mips-low.c: Include mips-linux-watch.h.
13521 (struct arch_process_info, struct arch_lwp_info): New.
13522 (update_watch_registers_callback): New function.
13523 (mips_linux_new_process, mips_linux_new_thread) New functions.
13524 (mips_linux_prepare_to_resume, mips_insert_point): New
13525 functions.
13526 (mips_remove_point, mips_stopped_by_watchpoint): New
13527 functions.
13528 (rsp_bp_type_to_target_hw_bp_type): New function.
13529 (mips_stopped_data_address): New function.
13530 (the_low_target): Add watchpoint support functions.
13531
13532 2013-07-27 Yao Qi <yao@codesourcery.com>
13533
13534 * i386-low.c: Include break-common.h.
13535 (enum target_hw_bp_type): Remove.
13536
13537 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13538
13539 * Makefile.in (SFILES): /common/target-common.c.
13540 (OBS): Add target-common.o.
13541 (server_h): Add $(srcdir)/../common/target-common.h.
13542 (target-common.o): New target.
13543 * server.c (queue_stop_reply_callback): Free
13544 status string after use.
13545 * target.c (target_waitstatus_to_string): Remove.
13546 * target.h: Include target-common.h.
13547 (resume_kind): Likewise.
13548 (target_waitkind): Likewise.
13549 (target_waitstatus): Likewise.
13550 (TARGET_WNOHANG): Likewise.
13551
13552 2013-07-04 Yao Qi <yao@codesourcery.com>
13553
13554 * Makefile.in (host_alias): Use @host_noncanonical@.
13555 (target_alias): Use @target_noncanonical@.
13556 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13557 ACX_NONCANONICAL_HOST.
13558 * configure: Regenerated.
13559
13560 Revert:
13561 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13562
13563 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13564 * configure: Rebuild.
13565 * Makefile.in (version_host, version_target): Get from configure.
13566 (version.c): Use $(version_host) and $(version_target).
13567
13568 2013-07-03 Pedro Alves <palves@redhat.com>
13569
13570 * Makefile.in (config.status): Depend on development.sh.
13571 * acinclude.m4: Include libmcheck.m4.
13572 * configure: Regenerate.
13573
13574 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13575
13576 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13577 attribute inside the parentheses.
13578 (winapi_DebugSetProcessKillOnExit): Ditto.
13579 (winapi_DebugBreakProcess): Ditto.
13580 (winapi_GenerateConsoleCtrlEvent): Ditto.
13581
13582 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13583
13584 * notif.h (notif_event): Add a dummy member to avoid compiler
13585 errors.
13586
13587 2013-07-01 Pedro Alves <palves@redhat.com>
13588
13589 * hostio.c (HOSTIO_PATH_MAX): Define.
13590 (require_filename, handle_open, handle_unlink, handle_readlink):
13591 Use it.
13592
13593 2013-07-01 Pedro Alves <palves@redhat.com>
13594
13595 * server.h: Include "pathmax.h".
13596 * linux-low.c: Don't include sys/param.h.
13597 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13598 MAXPATHLEN.
13599 * win32-low.c: Don't include sys/param.h.
13600 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13601
13602 2013-07-01 Pedro Alves <palves@redhat.com>
13603
13604 * event-loop.c: Don't check HAVE_UNISTD_H before including
13605 <unistd.h>.
13606 * gdbreplay.c: Likewise.
13607 * remote-utils.c: Likewise.
13608 * server.c: Likewise.
13609 * configure.ac: Don't check for unistd.h.
13610 * configure: Regenerate.
13611
13612 2013-06-28 Tom Tromey <tromey@redhat.com>
13613
13614 * Makefile.in (version.c): Use version.in, not
13615 common/version.in.
13616
13617 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13618
13619 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13620 * configure: Rebuild.
13621 * Makefile.in (version_host, version_target): Get from configure.
13622 (version.c): Use $(version_host) and $(version_target).
13623
13624 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13625
13626 Fix trace-status to output user name without trailing colon.
13627 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13628
13629 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13630
13631 Fix trace-status to output proper start-time and stop-time.
13632 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13633 output start time and stop time in hex as gdb expects.
13634
13635 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13636
13637 * tracepoint.c (build_traceframe_info_xml): Output trace state
13638 variables present in the trace buffer.
13639
13640 2013-06-24 Tom Tromey <tromey@redhat.com>
13641
13642 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13643 create-version.sh.
13644 (version.o): Remove.
13645 * gdbreplay.c: Include version.h.
13646 (version, host_name): Don't declare.
13647 * server.h: Include version.h.
13648 (version, host_name): Don't declare.
13649
13650 2013-06-12 Pedro Alves <palves@redhat.com>
13651
13652 * linux-x86-low.c (linux_is_elf64): Delete global.
13653 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13654 with local linux_pid_exe_is_elf_64_file use.
13655
13656 2013-06-11 Pedro Alves <palves@redhat.com>
13657
13658 * linux-low.c (regset_disabled, disable_regset): New functions.
13659 (regsets_fetch_inferior_registers)
13660 (regsets_store_inferior_registers): Use them.
13661 (initialize_regsets_info); Don't allocate the disabled_regsets
13662 array here.
13663 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13664 comment.
13665
13666 2013-06-11 Pedro Alves <palves@redhat.com>
13667
13668 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13669 xmalloc.
13670
13671 2013-06-11 Pedro Alves <palves@redhat.com>
13672
13673 * linux-x86-low.c (initialize_low_arch): Call
13674 init_registers_x32_avx_linux.
13675
13676 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13677
13678 Fix compatibility with Android Bionic.
13679 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13680 it is not empty.
13681
13682 2013-06-07 Pedro Alves <palves@redhat.com>
13683
13684 PR server/14823
13685 * Makefile.in (OBS): Add tdesc.o.
13686 (IPA_OBJS): Add tdesc-ipa.o.
13687 (tdesc-ipa.o): New rule.
13688 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13689 interface.
13690 * linux-low.c (new_inferior): Delete.
13691 (disabled_regsets, num_regsets): Delete.
13692 (linux_add_process): Adjust to set the new per-process
13693 new_inferior flag.
13694 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13695 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13696 was a stop. When calling arch_setup, switch the current inferior
13697 to the thread that got an event.
13698 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13699 (regsets_fetch_inferior_registers)
13700 (regsets_store_inferior_registers): New regsets_info parameter.
13701 Adjust to use it.
13702 (linux_register_in_regsets): New regs_info parameter. Adjust to
13703 use it.
13704 (register_addr, fetch_register, store_register): New usrregs_info
13705 parameter. Adjust to use it.
13706 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13707 parameter regs_info. Adjust to use it.
13708 (linux_fetch_registers): Get the current inferior's regs_info, and
13709 adjust to use it.
13710 (linux_store_registers): Ditto.
13711 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13712 (initialize_low): Don't initialize the target_regsets here. Call
13713 initialize_low_arch.
13714 * linux-low.h (target_regsets): Delete declaration.
13715 (struct regsets_info): New.
13716 (struct usrregs_info): New.
13717 (struct regs_info): New.
13718 (struct process_info_private) <new_inferior>: New field.
13719 (struct linux_target_ops): Delete the num_regs, regmap, and
13720 regset_bitmap fields. New field regs_info.
13721 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13722 * i387-fp.c (num_xmm_registers): Delete.
13723 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13724 calls to new interface.
13725 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13726 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13727 Infer the number of xmm registers from the regcache's target
13728 description.
13729 * i387-fp.h (num_xmm_registers): Delete.
13730 * inferiors.c (add_thread): Don't install the thread's regcache
13731 here.
13732 * proc-service.c (gregset_info): Fetch the current inferior's
13733 regs_info. Adjust to use it.
13734 * regcache.c: Include tdesc.h.
13735 (register_bytes, reg_defs, num_registers)
13736 (gdbserver_expedite_regs): Delete.
13737 (get_thread_regcache): If the thread doesn't have a regcache yet,
13738 create one, instead of aborting gdbserver.
13739 (regcache_invalidate_one): Rename to ...
13740 (regcache_invalidate_thread): ... this.
13741 (regcache_invalidate_one): New.
13742 (regcache_invalidate): Only invalidate registers of the current
13743 process.
13744 (init_register_cache): Add target_desc parameter, and use it.
13745 (new_register_cache): Ditto. Assert the target description has a
13746 non zero registers_size.
13747 (regcache_cpy): Add assertions. Adjust.
13748 (realloc_register_cache, set_register_cache): Delete.
13749 (registers_to_string, registers_from_string): Adjust.
13750 (find_register_by_name, find_regno, find_register_by_number)
13751 (register_cache_size): Add target_desc parameter, and use it.
13752 (free_register_cache_thread, free_register_cache_thread_one)
13753 (regcache_release, register_cache_size): New.
13754 (register_size): Add target_desc parameter, and use it.
13755 (register_data, supply_register, supply_register_zeroed)
13756 (supply_regblock, supply_register_by_name, collect_register)
13757 (collect_register_as_string, collect_register_by_name): Adjust.
13758 * regcache.h (struct target_desc): Forward declare.
13759 (struct regcache) <tdesc>: New field.
13760 (init_register_cache, new_register_cache): Add target_desc
13761 parameter.
13762 (regcache_invalidate_thread): Declare.
13763 (regcache_invalidate_one): Delete declaration.
13764 (regcache_release): Declare.
13765 (find_register_by_number, register_cache_size, register_size)
13766 (find_regno): Add target_desc parameter.
13767 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13768 declarations.
13769 * remote-utils.c: Include tdesc.h.
13770 (outreg, prepare_resume_reply): Adjust.
13771 * server.c: Include tdesc.h.
13772 (gdbserver_xmltarget): Delete declaration.
13773 (get_features_xml, process_serial_event): Adjust.
13774 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13775 declare.
13776 (struct process_info) <tdesc>: New field.
13777 (ipa_tdesc): Declare.
13778 * tdesc.c: New file.
13779 * tdesc.h: New file.
13780 * tracepoint.c: Include tdesc.h.
13781 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13782 (get_context_regcache): Adjust to pass ipa_tdesc down.
13783 (do_action_at_tracepoint): Adjust to get the register cache size
13784 from the context regcache's description.
13785 (traceframe_walk_blocks): Adjust to get the register cache size
13786 from the current trace frame's description.
13787 (traceframe_get_pc): Adjust to get current trace frame's
13788 description and pass it down.
13789 (gdb_collect): Adjust to get the register cache size from the
13790 IPA's description.
13791 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13792 (gdbserver_xmltarget): Delete.
13793 (initialize_low_tracepoint): Set the ipa's target description.
13794 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13795 (initialize_low_tracepoint): Set the ipa's target description.
13796 * linux-x86-low.c: Include tdesc.h.
13797 [__x86_64__] (is_64bit_tdesc): New.
13798 (ps_get_thread_area, x86_get_thread_area): Use it.
13799 (i386_cannot_store_register): Rename to ...
13800 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13801 (i386_cannot_fetch_register): Rename to ...
13802 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13803 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13804 to new interface.
13805 (target_regsets): Rename to ...
13806 (x86_regsets): ... this.
13807 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13808 interface.
13809 (x86_siginfo_fixup): Use is_64bit_tdesc.
13810 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13811 (tdesc_x32_avx_linux, tdesc_x32_linux)
13812 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13813 Declare.
13814 (x86_linux_update_xmltarget): Delete.
13815 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13816 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13817 (AMD64_LINUX_USER64_CS): New.
13818 (x86_linux_read_description): New, based on
13819 x86_linux_update_xmltarget.
13820 (same_process_callback): New.
13821 (x86_arch_setup_process_callback): New.
13822 (x86_linux_update_xmltarget): New.
13823 (x86_regsets_info): New.
13824 (amd64_linux_regs_info): New.
13825 (i386_linux_usrregs_info): New.
13826 (i386_linux_regs_info): New.
13827 (x86_linux_regs_info): New.
13828 (x86_arch_setup): Reimplement.
13829 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13830 (x86_emit_ops): Ditto.
13831 (the_low_target): Adjust. Install x86_linux_regs_info,
13832 x86_cannot_fetch_register, and x86_cannot_store_register.
13833 (initialize_low_arch): New.
13834 * linux-ia64-low.c (tdesc_ia64): Declare.
13835 (ia64_fetch_register): Adjust.
13836 (ia64_usrregs_info, regs_info): New globals.
13837 (ia64_regs_info): New function.
13838 (the_low_target): Adjust.
13839 (initialize_low_arch): New function.
13840 * linux-sparc-low.c (tdesc_sparc64): Declare.
13841 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13842 Adjust.
13843 (sparc_arch_setup): New function.
13844 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13845 (the_low_target): Adjust.
13846 (initialize_low_arch): New function.
13847 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13848 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13849 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13850 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13851 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13852 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13853 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13854 (tdesc_powerpc_isa205_vsx64l): Declare.
13855 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13856 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13857 (ppc_set_pc, ppc_get_hwcap): Adjust.
13858 (ppc_usrregs_info): Forward declare.
13859 (!__powerpc64__) ppc_regmap_adjusted: New global.
13860 (ppc_arch_setup): Adjust to the current process'es target
13861 description.
13862 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13863 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13864 (ppc_store_evrregset): Adjust.
13865 (target_regsets): Rename to ...
13866 (ppc_regsets): ... this, and make static.
13867 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13868 (ppc_regs_info): New function.
13869 (the_low_target): Adjust.
13870 (initialize_low_arch): New function.
13871 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13872 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13873 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13874 (tdesc_s390x_linux64v2): Declare.
13875 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13876 (s390_fill_gregset, s390_store_last_break): Adjust.
13877 (target_regsets): Rename to ...
13878 (s390_regsets): ... this, and make static.
13879 (s390_get_pc, s390_set_pc): Adjust.
13880 (s390_get_hwcap): New target_desc parameter, and use it.
13881 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13882 (s390_arch_setup): Adjust to set the current process'es target
13883 description. Don't adjust the regmap.
13884 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13885 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13886 (regs_info_3264): New globals.
13887 (s390_regs_info): New function.
13888 (the_low_target): Adjust.
13889 (initialize_low_arch): New function.
13890 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13891 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13892 [__mips64] (init_registers_mips_linux)
13893 (init_registers_mips_dsp_linux): Delete defines.
13894 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13895 (have_dsp): New global.
13896 (mips_read_description): New, based on mips_arch_setup.
13897 (mips_arch_setup): Reimplement.
13898 (get_usrregs_info): New function.
13899 (mips_cannot_fetch_register, mips_cannot_store_register)
13900 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13901 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13902 (target_regsets): Rename to ...
13903 (mips_regsets): ... this, and make static.
13904 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13905 (dsp_regs_info, regs_info): New globals.
13906 (mips_regs_info): New function.
13907 (the_low_target): Adjust.
13908 (initialize_low_arch): New function.
13909 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13910 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13911 Declare.
13912 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13913 (arm_read_description): New, with bits factored from
13914 arm_arch_setup.
13915 (arm_arch_setup): Reimplement.
13916 (target_regsets): Rename to ...
13917 (arm_regsets): ... this, and make static.
13918 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13919 (arm_regs_info): New function.
13920 (the_low_target): Adjust.
13921 (initialize_low_arch): New function.
13922 * linux-m68k-low.c (tdesc_m68k): Declare.
13923 (target_regsets): Rename to ...
13924 (m68k_regsets): ... this, and make static.
13925 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13926 (m68k_regs_info): New function.
13927 (m68k_arch_setup): New function.
13928 (the_low_target): Adjust.
13929 (initialize_low_arch): New function.
13930 * linux-sh-low.c (tdesc_sharch): Declare.
13931 (target_regsets): Rename to ...
13932 (sh_regsets): ... this, and make static.
13933 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13934 (sh_regs_info, sh_arch_setup): New functions.
13935 (the_low_target): Adjust.
13936 (initialize_low_arch): New function.
13937 * linux-bfin-low.c (tdesc_bfin): Declare.
13938 (bfin_arch_setup): New function.
13939 (bfin_usrregs_info, regs_info): New globals.
13940 (bfin_regs_info): New function.
13941 (the_low_target): Adjust.
13942 (initialize_low_arch): New function.
13943 * linux-cris-low.c (tdesc_cris): Declare.
13944 (cris_arch_setup): New function.
13945 (cris_usrregs_info, regs_info): New globals.
13946 (cris_regs_info): New function.
13947 (the_low_target): Adjust.
13948 (initialize_low_arch): New function.
13949 * linux-cris-low.c (tdesc_crisv32): Declare.
13950 (cris_arch_setup): New function.
13951 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
13952 (cris_regs_info): New function.
13953 (the_low_target): Adjust.
13954 (initialize_low_arch): New function.
13955 * linux-m32r-low.c (tdesc_m32r): Declare.
13956 (m32r_arch_setup): New function.
13957 (m32r_usrregs_info, regs_info): New globals.
13958 (m32r_regs_info): Adjust.
13959 (initialize_low_arch): New function.
13960 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
13961 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
13962 (tic6x_usrregs_info): Forward declare.
13963 (tic6x_read_description): New function, based on ...
13964 (tic6x_arch_setup): ... this. Reimplement.
13965 (target_regsets): Rename to ...
13966 (tic6x_regsets): ... this, and make static.
13967 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
13968 (tic6x_regs_info): New function.
13969 (the_low_target): Adjust.
13970 (initialize_low_arch): New function.
13971 * linux-xtensa-low.c (tdesc_xtensa): Declare.
13972 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
13973 (target_regsets): Rename to ...
13974 (xtensa_regsets): ... this, and make static.
13975 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
13976 globals.
13977 (xtensa_arch_setup, xtensa_regs_info): New functions.
13978 (the_low_target): Adjust.
13979 (initialize_low_arch): New function.
13980 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
13981 (nios2_arch_setup): Set the current process'es tdesc.
13982 (target_regsets): Rename to ...
13983 (nios2_regsets): ... this.
13984 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
13985 (nios2_regs_info): New function.
13986 (the_low_target): Adjust.
13987 (initialize_low_arch): New function.
13988 * linux-aarch64-low.c (tdesc_aarch64): Declare.
13989 (aarch64_arch_setup): Set the current process'es tdesc.
13990 (target_regsets): Rename to ...
13991 (aarch64_regsets): ... this.
13992 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
13993 (aarch64_regs_info): New function.
13994 (the_low_target): Adjust.
13995 (initialize_low_arch): New function.
13996 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
13997 globals.
13998 (target_regsets): Rename to ...
13999 (tile_regsets): ... this.
14000 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14001 (tile_regs_info): New function.
14002 (tile_arch_setup): Set the current process'es tdesc.
14003 (the_low_target): Adjust.
14004 (initialize_low_arch): New function.
14005 * spu-low.c (tdesc_spu): Declare.
14006 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14007 * win32-arm-low.c (tdesc_arm): Declare.
14008 (arm_arch_setup): New function.
14009 (the_low_target): Install arm_arch_setup instead of
14010 init_registers_arm.
14011 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14012 (init_windows_x86): Rename to ...
14013 (i386_arch_setup): ... this. Set `win32_tdesc'.
14014 (the_low_target): Adjust.
14015 * win32-low.c (win32_tdesc): New global.
14016 (child_add_thread): Don't create the thread cache here.
14017 (do_initial_child_stuff): Set the new process'es tdesc.
14018 * win32-low.h (struct target_desc): Forward declare.
14019 (win32_tdesc): Declare.
14020 * lynx-i386-low.c (tdesc_i386): Declare global.
14021 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14022 * lynx-low.c (lynx_tdesc): New global.
14023 (lynx_add_process): Set the new process'es tdesc.
14024 * lynx-low.h (struct target_desc): Forward declare.
14025 (lynx_tdesc): Declare global.
14026 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14027 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14028 * nto-low.c (nto_tdesc): New global.
14029 (do_attach): Set the new process'es tdesc.
14030 * nto-low.h (struct target_desc): Forward declare.
14031 (nto_tdesc): Declare.
14032 * nto-x86-low.c (tdesc_i386): Declare.
14033 (nto_x86_arch_setup): Set `nto_tdesc'.
14034
14035 2013-06-04 Gary Benson <gbenson@redhat.com>
14036
14037 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14038 to qSupported response when appropriate.
14039 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14040 with nonzero-length annex.
14041 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14042 arguments supplied in annex.
14043
14044 2013-05-31 Doug Evans <dje@google.com>
14045
14046 PR server/15594
14047 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14048 64 bits in 64-cross-32 environment.
14049
14050 2013-05-28 Pedro Alves <palves@redhat.com>
14051
14052 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14053 (aarch64-without-fpu.c): Delete rule.
14054 * configure.srv (aarch64*-*-linux*): Remove references to
14055 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14056 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14057 declaration.
14058
14059 2013-05-24 Pedro Alves <palves@redhat.com>
14060
14061 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14062 instead of strchr/decode_address. Error if the range isn't split
14063 with a ','. Don't assume there's be a ':' in the action.
14064
14065 2013-05-23 Yao Qi <yao@codesourcery.com>
14066 Pedro Alves <palves@redhat.com>
14067
14068 * linux-low.c (lwp_in_step_range): New function.
14069 (linux_wait_1): If the thread was range stepping and stopped
14070 outside the stepping range, report the stop to GDB. Otherwise,
14071 continue stepping. Add range stepping debug output.
14072 (linux_set_resume_request): Copy the step range from the resume
14073 request to the lwp.
14074 (linux_supports_range_stepping): New.
14075 (linux_target_ops) <supports_range_stepping>: Set to
14076 linux_supports_range_stepping.
14077 * linux-low.h (struct linux_target_ops)
14078 <supports_range_stepping>: New field.
14079 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14080 * linux-x86-low.c (x86_supports_range_stepping): New.
14081 (the_low_target) <supports_range_stepping>: Set to
14082 x86_supports_range_stepping.
14083 * server.c (handle_v_cont): Handle 'r' action.
14084 (handle_v_requests): Append ";r" if the target supports range
14085 stepping.
14086 * target.h (struct thread_resume) <step_range_start,
14087 step_range_end>: New fields.
14088 (struct target_ops) <supports_range_stepping>:
14089 New field.
14090 (target_supports_range_stepping): New macro.
14091
14092 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14093
14094 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14095 confusion in comment.
14096
14097 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14098
14099 * lynx-low.c (struct process_info_private): New type.
14100 (lynx_add_process): New function.
14101 (lynx_create_inferior, lynx_attach): Replace calls to
14102 add_process by calls to lynx_add_process.
14103 (lynx_resume): If PTID is null, then try using
14104 current_process()->private->last_wait_event_ptid.
14105 Add comments.
14106 (lynx_clear_inferiors): Delete. The contents of that function
14107 has been inlined in lynx_mourn;
14108 (lynx_wait_1): Save the ptid in the process's private data.
14109 (lynx_mourn): Free the process' private data. Replace call
14110 to lynx_clear_inferiors by call to clear_inferiors.
14111
14112 2013-05-17 Yao Qi <yao@codesourcery.com>
14113
14114 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14115 the right place.
14116
14117 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14118
14119 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14120 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14121 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14122 PT_TEXT_END_ADDR guards. Update comments.
14123 (linux_target_op) <read_offsets>: Conditionally define to
14124 linux_read_offsets if the target is UCLIBC and if it defines
14125 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14126
14127 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14128 Andrew Jenner <andrew@codesourcery.com>
14129
14130 * Makefile.in (SFILES): Add linux-nios2-low.c.
14131 (clean): Add action to delete nios2-linux.c.
14132 (nios2-linux.c): New rule.
14133 * configure.srv: Add nios2*-*-linux*.
14134 * linux-nios2-low.c: New.
14135
14136 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14137
14138 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14139
14140 2013-04-25 Hui Zhu <hui@codesourcery.com>
14141
14142 PR gdb/15186
14143 * ax.c (ax_printf): Add fflush.
14144
14145 2013-04-22 Tom Tromey <tromey@redhat.com>
14146
14147 * Makefile.in (SFILES): Add filestuff.c.
14148 (OBS): Add filestuff.o.
14149 (filestuff.o): New target.
14150 * config.in, configure: Rebuild.
14151 * configure.ac: Check for fdwalk, pipe2.
14152
14153 2013-04-17 Pedro Alves <palves@redhat.com>
14154
14155 * configure.ac (USE_THREAD_DB): Delete variable.
14156 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14157 Don't AC_SUBST USE_THREAD_DB.
14158 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14159 * config.in, configure: Regenerate.
14160
14161 2013-04-16 Pedro Alves <palves@redhat.com>
14162
14163 * linux-low.h (struct lwp_info) <thread_known>: Move under
14164 the USE_THREAD_DB #ifdef.
14165
14166 2013-04-16 Pedro Alves <palves@redhat.com>
14167
14168 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14169 (linux-low.o): Delete rule.
14170 * linux-low.h: Always include "gdb_thread_db.h" instead of
14171 conditionally including thread_db.h.
14172 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14173 HAVE_THREAD_DB_H.
14174
14175 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14176
14177 * Makefile.in (install-only): Fix make install regression.
14178
14179 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14180
14181 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14182 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14183 installation.
14184 * gdbserver.1: Remove.
14185
14186 2013-03-22 Pedro Alves <palves@redhat.com>
14187
14188 * linux-low.c (handle_extended_wait): Don't call
14189 linux_enable_event_reporting.
14190
14191 2013-03-15 Tony Theodore <tonyt@logyst.com>
14192
14193 PR build/9098:
14194 * Makefile.in (SHELL): Use @SHELL@.
14195
14196 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14197
14198 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14199 compiler warning.
14200
14201 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14202
14203 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14204 Remove extraneous NULL element.
14205
14206 2013-03-13 Yao Qi <yao@codesourcery.com>
14207
14208 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14209 'V' block in trace frame.
14210
14211 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14212
14213 * target.h (struct target_ops): Add btrace ops.
14214 (target_supports_btrace): New macro.
14215 (target_enable_btrace): New macro.
14216 (target_disable_btrace): New macro.
14217 (target_read_btrace): New macro.
14218 * gdbthread.h (struct thread_info): Add btrace field.
14219 * server.c: Include btrace-common.h.
14220 (handle_btrace_general_set): New function.
14221 (handle_btrace_enable): New function.
14222 (handle_btrace_disable): New function.
14223 (handle_general_set): Call handle_btrace_general_set.
14224 (handle_qxfer_btrace): New function.
14225 (struct qxfer qxfer_packets[]): Add btrace entry.
14226 * inferiors.c (remove_thread): Disable btrace.
14227 * linux-low: Include linux-btrace.h.
14228 (linux_low_enable_btrace): New function.
14229 (linux_low_read_btrace): New function.
14230 (linux_target_ops): Add btrace ops.
14231 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14232 Add srv_linux_btrace=yes.
14233 (x86_64-*-linux*): Add linux-btrace.o.
14234 Add srv_linux_btrace=yes.
14235 * configure.ac: Define HAVE_LINUX_BTRACE.
14236 * config.in: Regenerated.
14237 * configure: Regenerated.
14238
14239 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14240
14241 * server.c (handle_qxfer): Preserve error message if -3 is
14242 returned.
14243 (qxfer): Document the -3 return value.
14244
14245 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14246
14247 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14248 (linux_btrace_h): New variable.
14249 (linux-btrace.o): New rule.
14250
14251 2013-03-08 Stan Shebs <stan@codesourcery.com>
14252 Hafiz Abid Qadeer <abidh@codesourcery.com>
14253
14254 * tracepoint.c (trace_buffer_size): New global.
14255 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14256 (init_trace_buffer): Change to one-argument function. Allocate
14257 trace buffer memory.
14258 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14259 handle QTBuffer:size packet.
14260 (cmd_bigqtbuffer_size): New function.
14261 (initialize_tracepoint): Call init_trace_buffer with
14262 DEFAULT_TRACE_BUFFER_SIZE.
14263 * server.c (handle_query): Add QTBuffer:size in the
14264 supported packets.
14265
14266 2013-03-07 Yao Qi <yao@codesourcery.com>
14267
14268 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14269 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14270 of -1.
14271 (cmd_qtsp): Adjust condition. Do post increment.
14272 Set cur_action and cur_step_action back to 0.
14273
14274 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14275
14276 PR server/15236
14277 * linux-low.c (linux_write_memory): Return early success if LEN is
14278 zero.
14279
14280 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14281
14282 * configure.srv: Add x86_64-*-cygwin* as target.
14283
14284 2013-02-28 Tom Tromey <tromey@redhat.com>
14285
14286 * configure.ac: Invoke AC_SYS_LARGEFILE.
14287 * configure, config.in: Rebuild.
14288
14289 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14290
14291 * win32-low.c: Throughout, fix format strings and casts of
14292 printf-like functions to avoid type related warnings on all
14293 platforms.
14294 (get_child_debug_event): Print dwDebugEventCode as hex since
14295 that's how it's usually documented.
14296
14297 2013-02-28 Yao Qi <yao@codesourcery.com>
14298
14299 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14300 pulongest.
14301
14302 2013-02-27 Jiong Wang <jiwang@tilera.com>
14303
14304 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14305 (reg-tilegx32.c): New rule.
14306 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14307 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14308 different register info initializer according to elf class.
14309 (init_registers_tilgx32): New function. The tilegx32 register info
14310 initializer.
14311 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14312 (tile_store_gregset): Likewise.
14313
14314 2013-02-27 Yao Qi <yao@codesourcery.com>
14315
14316 * server.c (process_point_options): Print debug message when
14317 debug_threads is true.
14318
14319 2013-02-26 Yao Qi <yao@codesourcery.com>
14320
14321 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14322
14323 2013-02-19 Pedro Alves <palves@redhat.com>
14324 Kai Tietz <ktietz@redhat.com>
14325
14326 PR gdb/15161
14327
14328 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14329 instead of strtoul to extract address from packet.
14330 (process_serial_event) <'z'>: Likewise.
14331
14332 2013-02-18 Yao Qi <yao@codesourcery.com>
14333
14334 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14335
14336 2013-02-14 Pedro Alves <palves@redhat.com>
14337
14338 Plug memory leak.
14339
14340 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14341 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14342
14343 2013-02-14 Pedro Alves <palves@redhat.com>
14344
14345 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14346
14347 2013-02-14 Pedro Alves <palves@redhat.com>
14348
14349 * tracepoint.c (save_string): Delete.
14350 (add_tracepoint_action): Use savestring instead of save_string.
14351
14352 2013-02-12 Pedro Alves <palves@redhat.com>
14353
14354 * linux-xtensa-low.c: Ditto.
14355 * xtensa-xtregs.c: Ditto.
14356
14357 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14358
14359 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14360 thread_db.
14361
14362 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14363
14364 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14365 aarch64_num_wp_regs and aarch64_num_bp_regs to
14366 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14367
14368 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14369
14370 * linux-aarch64-low.c (ps_get_thread_area): Replace
14371 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14372
14373 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14374 Marcus Shawcroft <marcus.shawcroft@arm.com>
14375 Nigel Stephens <nigel.stephens@arm.com>
14376 Yufeng Zhang <yufeng.zhang@arm.com>
14377
14378 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14379 (aarch64.c, aarch64-without-fpu.c): New targets.
14380 * configure.srv (aarch64*-*-linux*): New.
14381 * linux-aarch64-low.c: New file.
14382
14383 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14384
14385 * linux-low.c (handle_extended_wait, linux_create_inferior)
14386 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14387 (dequeue_one_deferred_signal, linux_resume_one_thread)
14388 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14389 (linux_tracefork_grandchild, linux_test_for_tracefork)
14390 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14391 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14392 where the argument is 0.
14393
14394 2013-01-25 Yao Qi <yao@codesourcery.com>
14395
14396 * event-loop.c: Include "queue.h".
14397 (gdb_event_p): New typedef.
14398 (struct gdb_event) <next_event>: Remove.
14399 (event_queue): Change to QUEUE(gdb_event_p).
14400 (async_queue_event): Remove.
14401 (gdb_event_xfree): New.
14402 (initialize_event_loop): New.
14403 (process_event): Use API from QUEUE.
14404 (wait_for_event): Likewise.
14405 * server.c (main): Call initialize_event_loop.
14406 * server.h (initialize_event_loop): Declare.
14407
14408 2013-01-18 Yao Qi <yao@codesourcery.com>
14409
14410 * ax.h (struct eval_agent_expr_context): New.
14411 (gdb_eval_agent_expr): Update declaration.
14412 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14413 TFRAME. Add new argument CTX.
14414 * server.h (struct eval_agent_expr_context): Declare.
14415 (agent_mem_read, agent_tsv_read): Update declaration.
14416 (agent_mem_read_string): Likewise.
14417 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14418 (add_traceframe_block): Add new argument TPOINT.
14419 Increase TPOINT->traceframe_usage.
14420 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14421 eval_tracepoint_agent_expr.
14422 (condition_true_at_tracepoint): Likewise.
14423 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14424 (agent_mem_read_string, agent_tsv_read): Likewise.
14425
14426 2013-01-16 Yao Qi <yao@codesourcery.com>
14427
14428 * linux-low.c (linux_resume_one_lwp): Don't check
14429 'lwp->bp_reinsert != 0'.
14430
14431 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14432 Pedro Alves <palves@redhat.com>
14433
14434 * lynx-low.c (ptrace_request_to_str): Define a temporary
14435 macro and use it to simplify this function's implementation.
14436
14437 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14438
14439 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14440 sets errno.
14441
14442 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14443
14444 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14445
14446 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14447
14448 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14449
14450 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14451
14452 * lynx-low.c (lynx_resume): Use the resume_info parameter
14453 to determine the ptid for the lynx_ptrace call, unless
14454 it is equal to minus_one_ptid, in which case we use the
14455 ptid of the current_inferior.
14456 (lynx_wait_1): After having received a thread create/exit
14457 event, resume the inferior's execution using the signaling
14458 thread's ptid, rather than the old ptid.
14459
14460 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14461
14462 * lynx-low.c (lynx_resume): Delete variable ret.
14463
14464 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14465
14466 * gdbreplay.c (gdbreplay_version): Update copyright year.
14467 * server.c (gdbserver_version): Likewise.
14468
14469 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14470
14471 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14472 new thread.
14473
14474 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14475
14476 * lynx-low.c (ptrace_request_to_str): Add handling for
14477 PTRACE_GETTRACESIG.
14478
14479 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14480
14481 * lynx-low.c (lynx_attach): Delete variable new_process.
14482
14483 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14484
14485 * lynx-low.c (lynx_create_inferior): Delete variable
14486 new_process.
14487
14488 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14489
14490 * lynx-low.c (ptrace_request_to_str): Do not handle
14491 PTRACE_GETTHREADLIST if this macro does not exist.
14492
14493 2012-12-15 Yao Qi <yao@codesourcery.com>
14494
14495 * Makefile.in (OBS): Add notif.o.
14496 * notif.c, notif.h: New.
14497 * server.c: Include "notif.h".
14498 (struct vstop_notif) <next>: Remove.
14499 <base>: New field.
14500 (queue_stop_reply): Update.
14501 (push_event, send_next_stop_reply): Remove.
14502 (discard_queued_stop_replies): Update.
14503 (notif_stop): New variable.
14504 (handle_v_stopped): Remove.
14505 (handle_v_requests): Don't call handle_v_stopped. Call
14506 handle_ack_notif instead.
14507 (queue_stop_reply_callback): Call notif_event_enque instead
14508 of queue_stop_reply.
14509 (handle_status): Don't call send_next_stop_reply, call
14510 notif_write_event instead.
14511 (kill_inferior_callback): Likewise.
14512 (detach_or_kill_inferior_callback): Likewise.
14513 (main): Call initialize_notif.
14514 (process_serial_event): Call QUEUE_is_empty.
14515 (handle_target_event): Call notif_push instead of push event.
14516 * server.h (push_event): Remove declaration.
14517
14518 2012-12-10 Tom Tromey <tromey@redhat.com>
14519
14520 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14521 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14522 macros.
14523 (.c.o): Rewrite.
14524 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14525 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14526 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14527 (amd64-linux-ipa.o, ax.o): Rewrite.
14528 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14529 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14530 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14531 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14532 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14533 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14534 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14535 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14536 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14537 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14538 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14539 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14540 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14541 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14542 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14543 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14544 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14545 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14546 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14547 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14548 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14549 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14550 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14551 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14552 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14553 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14554 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14555 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14556 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14557 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14558 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14559 (reg-tilegx.o): Remove.
14560 (all_object_files): New macro.
14561 Include .deps files.
14562 * aclocal.m4, configure: Rebuild.
14563 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14564 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14565 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14566
14567 2012-12-05 Tom Tromey <tromey@redhat.com>
14568
14569 PR gdb/14917:
14570 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14571
14572 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14573
14574 * configure.ac: Check for linux/perf_event.h.
14575 * config.in: Regenerated.
14576 * configure: Regenerated.
14577
14578 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14579
14580 * hostio.c (handle_readlink): Decrease buffer size
14581 parameter passed to readlink by one byte.
14582
14583 2012-11-26 Yao Qi <yao@codesourcery.com>
14584
14585 * configure.ac (build_warnings): Append '-Wempty-body'.
14586 * configure: Regenerated.
14587 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14588 body.
14589
14590 2012-11-15 Pierre Muller <muller@sourceware.org>
14591
14592 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14593 * config.in: Regenerate.
14594 * configure: Regenerate.
14595 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14596 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14597 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14598 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14599 header.
14600 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14601 instead of <sys/wait.h> header.
14602 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14603
14604 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14605
14606 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14607 (various make rules): Remove -DGDBSERVER
14608
14609 2012-11-09 Yao Qi <yao@codesourcery.com>
14610
14611 * spu-low.c (current_ptid): Move it to ..
14612 * gdbthread.h: ... here. New.
14613 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14614 * server.c (myresume, process_serial_event): Likewise.
14615 * thread-db.c (thread_db_find_new_threads): Likewise.
14616 * tracepoint.c (run_inferior_command): Likewise.
14617
14618 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14619
14620 * server.c (handle_search_memory_1): Include access length in
14621 warning message.
14622
14623 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14624
14625 * linux-crisv32-low.c: Fix compile errors.
14626
14627 2012-09-04 Yao Qi <yao@codesourcery.com>
14628
14629 * tracepoint.c (cmd_qtsv): Adjust debug message.
14630 Don't check CUR_TPOINT.
14631
14632 2012-08-28 Yao Qi <yao@codesourcery.com>
14633
14634 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14635 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14636 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14637 Remove declarations of xmalloc, xreallloc, xstrdup and
14638 freeargv.
14639 * Makefile.in (libiberty_h): New.
14640 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14641 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14642
14643 2012-08-23 Yao Qi <yao@codesourcery.com>
14644
14645 * server.h: Remove declaration of 'xsnprintf'.
14646
14647 2012-08-22 Keith Seitz <keiths@redhat.com>
14648
14649 * server.h: Include build-gnulib-gbserver/config.h.
14650 * gdbreplay.c: Likewise.
14651
14652 2012-08-08 Doug Evans <dje@google.com>
14653
14654 * Makefile.in (SFILES): Add gdb_vecs.c.
14655 (OBS): Add gdb_vecs.o.
14656 (gdb_vecs_h, host_defs_h): New variables.
14657 (thread-db.o): Add $(gdb_vecs_h) dependency.
14658 (gdb_vecs.o): New rule.
14659 * thread-db.c: #include "gdb_vecs.h".
14660 (thread_db_load_search): Use a vector to iterate over path elements.
14661 Handle text appearing after "$pdir".
14662
14663 * configure.ac: Add check for strstr.
14664 * config.in: Regenerate.
14665 * configure: Regenerate.
14666
14667 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14668
14669 * hostio.c (handle_pread): If pread fails, fall back to attempting
14670 lseek/read.
14671 (handle_pwrite): Likewise for pwrite.
14672
14673 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14674
14675 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14676 between unsupported TYPE and unimplementable ADDR/LEN combination.
14677 (arm_insert_point): Act on new return value.
14678
14679 2012-07-31 Pedro Alves <palves@redhat.com>
14680
14681 * server.c (process_point_options): Only skip tokens if we find
14682 one that is unrecognized. Don't treat 'X' specially while
14683 skipping unrecognized tokens.
14684
14685 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14686
14687 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14688 to 4-byte-align HW breakpoint addresses for Thumb.
14689
14690 2012-07-27 Yao Qi <yao@codesourcery.com>
14691
14692 PR remote/14161.
14693
14694 * server.h: Declare gdb_agent_about_to_close.
14695 * target.c (kill_inferior): Include "agent.h".
14696 New. Send command 'kill'.
14697 * target.h (kill_inferior): Removed macro.
14698 * tracepoint.c (gdb_agent_about_to_close): New.
14699 (gdb_agent_helper_thread): Handle command 'close'.
14700 Wait endlessly until the inferior stops.
14701 Install gdb_agent_remove_socket to atexit hook.
14702 (agent_socket_name): New static variable.
14703 (gdb_agent_socket_init): Replace local variable 'name' with
14704 'agent_socket_name'.
14705 (gdb_agent_remove_socket): New.
14706
14707 2012-07-27 Yao Qi <yao@codesourcery.com>
14708
14709 * server.c (process_point_options): Stop at 'X' when parsing.
14710
14711 2012-07-19 Michael Eager <eager@eagercon.com>
14712
14713 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
14714 to hw_execute.
14715 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14716 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14717 hardware breakpoint.
14718
14719 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14720
14721 * gdbserver/linux-low.c (initialize_low): Call
14722 linux_ptrace_init_warnings.
14723
14724 2012-07-02 Doug Evans <dje@google.com>
14725
14726 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14727 pointer to int.
14728
14729 2012-07-02 Stan Shebs <stan@codesourcery.com>
14730
14731 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14732 (ax.o): Add it to build rule.
14733 (ax-ipa.o): Ditto.
14734 (OBS): Add format.o.
14735 (IPA_OBS): Add format.o.
14736 * server.c (handle_query): Claim support for breakpoint commands.
14737 (process_point_options): Add command case.
14738 (process_serial_event): Leave running if there are printfs in
14739 effect.
14740 * mem-break.h (any_persistent_commands): Declare.
14741 (add_breakpoint_commands): Declare.
14742 (gdb_no_commands_at_breakpoint): Declare.
14743 (run_breakpoint_commands): Declare.
14744 * mem-break.c (struct point_command_list): New struct.
14745 (struct breakpoint): New field command_list.
14746 (any_persistent_commands): New function.
14747 (add_commands_to_breakpoint): New function.
14748 (add_breakpoint_commands): New function.
14749 (gdb_no_commands_at_breakpoint): New function.
14750 (run_breakpoint_commands): New function.
14751 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14752 locally.
14753 * ax.c: Include format.h.
14754 (ax_printf): New function.
14755 (gdb_eval_agent_expr): Add printf opcode.
14756
14757 2012-06-13 Yao Qi <yao@codesourcery.com>
14758
14759 * server.c (start_inferior): Remove duplicated writes to fields
14760 'last_resume_kind' and 'last_status' of 'current_inferior'.
14761
14762 2012-06-12 Yao Qi <yao@codesourcery.com>
14763 Pedro Alves <palves@redhat.com>
14764
14765 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14766 comment.
14767 * server.c (handle_v_cont): Extend comment.
14768
14769 2012-06-11 Yao Qi <yao@codesourcery.com>
14770
14771 * linux-low.c (linux_attach): Add 'static'.
14772
14773 2012-06-06 Yao Qi <yao@codesourcery.com>
14774
14775 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14776
14777 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14778
14779 Fix gcc -flto compilation warning.
14780 * server.c (main): Make variable multi_mode and attach volatile.
14781
14782 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14783
14784 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14785 if the platform doesn't know about it.
14786
14787 2012-05-30 Jeff Kenton <jkenton@tilera.com>
14788
14789 * Makefile.in (SFILES): Add linux-tile-low.c.
14790 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14791 * configure.srv: Handle tilegx-*-linux*.
14792 * linux-tile-low.c: New file.
14793
14794 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14795
14796 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14797
14798 2012-05-24 Pedro Alves <palves@redhat.com>
14799
14800 PR gdb/7205
14801
14802 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
14803
14804 2012-05-24 Pedro Alves <palves@redhat.com>
14805
14806 PR gdb/7205
14807
14808 Replace target_signal with gdb_signal throughout.
14809
14810 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14811
14812 * linux-low.c (linux_store_registers): Avoid the copying sequence
14813 when no data has been retrieved by ptrace.
14814
14815 2012-05-22 Will Deacon <will.deacon@arm.com>
14816
14817 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14818 Include asm/ptrace.h.
14819 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14820 already defined.
14821
14822 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14823
14824 * linux-low.c (linux_store_registers): Don't re-retrieve data
14825 with ptrace that has already been obtained from /proc. Always
14826 copy any data retrieved with ptrace to the buffer supplied.
14827
14828 2012-05-11 Yao Qi <yao@codesourcery.com>
14829 Pedro Alves <palves@redhat.com>
14830
14831 * linux-low.c (enum stopping_threads_kind): New.
14832 (stopping_threads): Change type to `enum stopping_threads_kind'.
14833 (handle_extended_wait): If stopping and suspending threads, leave
14834 the new_lwp suspended too.
14835 (linux_wait_for_event): Adjust.
14836 (stop_all_lwps): Set `stopping_threads' to
14837 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14838 whether we're suspending threads or just stopping them. Assert no
14839 recursion happens.
14840
14841 2012-04-29 Yao Qi <yao@codesourcery.com>
14842
14843 * server.h: Move some code to ...
14844 * gdbthread.h: ... here. New.
14845 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14846 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14847 (nto-low.o, win32-low.o): Likewise.
14848 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14849 * regcache.c, remote-utils.c, server.c: Likewise.
14850 * target.c, tracepoint.c, win32-low.c: Likewise.
14851
14852 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14853
14854 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14855 (PTRACE_ARG4_TYPE): Likewise.
14856 (PTRACE_XFER_TYPE): Likewise.
14857 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14858 ptrace to PTRACE_ARG3_TYPE.
14859 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14860 (PTRACE_ARG4_TYPE): Likewise.
14861 (PTRACE_XFER_TYPE): Likewise.
14862 (linux_detach_one_lwp): Cast fourth argument of
14863 ptrace to long then PTRACE_ARG4_TYPE.
14864 (regsets_fetch_inferior_registers): Cast third argument of
14865 ptrace to long then PTRACE_ARG3_TYPE.
14866 (regsets_store_inferior_registers): Likewise.
14867
14868 2012-04-20 Pedro Alves <palves@redhat.com>
14869
14870 * configure: Regenerate.
14871
14872 2012-04-19 Pedro Alves <palves@redhat.com>
14873
14874 * Makefile.in (GNULIB_BUILDDIR): New.
14875 (LIBGNU, INCGNU, GNULIB_H): Adjust.
14876 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14877 (all, install-only, uninstall, clean-info, all-lib, clean): No
14878 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14879 (maintainer-clean realclean distclean): Use subdir_do.
14880 (subdir_do): New.
14881 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
14882 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
14883 * acinclude.m4: Include acx_configure_dir.m4.
14884 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14885 calls. Call AC_PROG_RANLIB. Configure gnulib using
14886 ACX_CONFIGURE_DIR.
14887 (GNULIB): New.
14888 (GNULIB_STDINT_H): Adjust.
14889 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14890 * gdbreplay.c: Include build-gnulib/config.h.
14891 * server.h: Likewise.
14892 * aclocal.m4: Regenerate.
14893 * config.in: Regenerate.
14894 * configure: Regenerate.
14895
14896 2012-04-19 Pedro Alves <palves@redhat.com>
14897
14898 * Makefile.in (LIBGNU, INCGNU): Adjust.
14899 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14900 (all, install-only, uninstall, clean-info, all-lib, clean)
14901 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14902 * configure.ac: Adjust AC_OUTPUT output.
14903 * aclocal.m4: Regenerate.
14904 * configure: Regenerate.
14905
14906 2012-04-19 Pedro Alves <palves@redhat.com>
14907
14908 * Makefile.in (generated_files): New.
14909 (server_h): Remove the explicit dependency on config.h, and depend
14910 on $generated_files.
14911
14912 2012-04-19 Pedro Alves <palves@redhat.com>
14913
14914 * Makefile.in (INCGNU): Add -Ignulib.
14915
14916 2012-04-19 Pedro Alves <palves@redhat.com>
14917
14918 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14919 (INCGNU): ... this, and spell out -I here.
14920 (GNULIB_LIB): Rename to ...
14921 (LIBGNU): ... this.
14922 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14923
14924 2012-04-19 Pedro Alves <palves@redhat.com>
14925
14926 * config.in: Regenerate.
14927
14928 2012-04-19 Pedro Alves <palves@redhat.com>
14929
14930 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14931 * server.h (memmem): Remove declaration.
14932 * config.in: Regenerate.
14933 * configure: Regenerate.
14934
14935 2012-04-19 Yao Qi <yao@codesourcery.com>
14936
14937 * Makefile.in (SFILES): Add common/vec.c.
14938 (OBS): Add vec.o.
14939 (vec.o): New rule.
14940
14941 2012-04-19 Yao Qi <yao@codesourcery.com>
14942
14943 * remote-utils.c (prepare_resume_reply): Replace with macro
14944 target_core_of_thread.
14945 * server.c (handle_qxfer_threads_proper): Likewise.
14946 * target.h (traget_core_of_thread): New macro.
14947
14948 2012-04-18 Pedro Alves <palves@redhat.com>
14949
14950 * aclocal.m4: Regenerate.
14951 * configure: Regenerate.
14952
14953 2012-04-16 Yao Qi <yao@codesourcery.com>
14954
14955 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
14956 duplicated on address.
14957
14958 2012-04-16 Yao Qi <yao@codesourcery.com>
14959
14960 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
14961 (struct tracepoint_action_ops) <send>: New field.
14962 (m_tracepoint_action_send, r_tracepoint_action_send): New.
14963 (agent_expr_send, x_tracepoint_action_send): New.
14964 (l_tracepoint_action_send): New.
14965 (cmd_qtdp): Download and install tracepoint
14966 according to `use_agent'.
14967 (run_inferior_command): Add one more parameter `len'.
14968 Update callers.
14969 (tracepoint_send_agent): New.
14970 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
14971
14972 2012-04-16 Yao Qi <yao@codesourcery.com>
14973
14974 * tracepoint.c (download_tracepoints): Moved to ...
14975 (cmd_qtstart): ... here.
14976
14977 2012-04-14 Yao Qi <yao@codesourcery.com>
14978
14979 * tracepoint.c: Include inttypes.h.
14980 (struct collect_memory_action): Use sized types.
14981 (struct tracepoint): Likewise.
14982 (cmd_qtdp, stop_tracing): Update print specifiers.
14983 (cmd_qtp, response_tracepoint): Likewise.
14984 (collect_data_at_tracepoint): Likewise.
14985 (collect_data_at_step): Likewise.
14986
14987 2012-04-14 Yao Qi <yao@codesourcery.com>
14988
14989 Import gnulib module inttypes.
14990 * aclocal.m4, config.in, configure: Regenerated.
14991
14992 2012-04-14 Yao Qi <yao@codesourcery.com>
14993
14994 * Makefile.in (maintainer-clean, realclean, distclean): Remove
14995 Makefile and config.status at last.
14996
14997 2012-04-13 Yao Qi <yao@codesourcery.com>
14998
14999 * tracepoint.c: Include stdint.h unconditionally.
15000
15001 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15002
15003 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15004 on BFD_HAVE_SYS_PROCFS_TYPE.
15005 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15006 * configure: Regenerate.
15007 * config.in: Likewise.
15008
15009 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15010
15011 * Makefile.in (clean): Also remove x32.c x32-linux.c
15012 x32-avx.c x32-avx-linux.c.
15013 (x32.o): New target.
15014 (x32.c): Likewise.
15015 (x32-linux.o): Likewise.
15016 (x32-linux.c): Likewise.
15017 (x32-avx.o): Likewise.
15018 (x32-avx.c): Likewise.
15019 (x32-avx-linux.o): Likewise.
15020 (x32-avx-linux.c): Likewise.
15021
15022 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15023 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15024 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15025 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15026 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15027 i386/x32-avx-linux.xml.
15028
15029 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15030 (init_registers_x32_avx_linux): Likwise.
15031 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15032 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15033
15034 2012-04-13 Pedro Alves <palves@redhat.com>
15035
15036 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15037 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15038 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15039 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15040 the sub-make.
15041
15042 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15043
15044 * linux-x86-low.c (compat_x32_clock_t): New.
15045 (compat_x32_siginfo_t): Likewise.
15046 (compat_x32_siginfo_from_siginfo): Likewise.
15047 (siginfo_from_compat_x32_siginfo): Likewise.
15048 (linux_is_elf64): Likewise.
15049 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15050 and siginfo_from_compat_x32_siginfo for x32.
15051 (x86_arch_setup): Set linux_is_elf64.
15052
15053 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15054
15055 PR gdb/13969
15056 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15057 e_machine field.
15058 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15059 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15060 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15061 compatible with process.
15062
15063 2012-04-12 Yao Qi <yao@codesourcery.com>
15064
15065 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15066 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15067 (install-only, install-info, clean): Handle sub dir gnulib.
15068 (all-lib, am--refresh): New targets.
15069 (memmem.o): Remove target.
15070 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15071 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15072 (AC_REPLACE_FUNCS): Remove memmem.
15073 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15074 (AC_OUTPUT): Generate Makefile in gnulib/.
15075 * aclocal.m4, config.in, configure: Regenerated.
15076
15077 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15078
15079 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15080
15081 2012-04-05 Pedro Alves <palves@redhat.com>
15082
15083 -Werror=strict-aliasing
15084
15085 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15086 pointer.
15087
15088 2012-04-04 Pedro Alves <palves@redhat.com>
15089
15090 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15091 (sparc_store_gregset_from_stack, sparc_store_gregset)
15092 (sparc_breakpoint_at): Fix formatting.
15093
15094 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15095
15096 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15097 are available.
15098 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15099 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15100 * config.in: Regenerate.
15101 * configure: Likewise.
15102
15103 2012-03-29 Pedro Alves <palves@redhat.com>
15104
15105 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15106 Correct ptrace arguments.
15107
15108 2012-03-28 Pedro Alves <palves@redhat.com>
15109
15110 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15111 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15112 (IA64_FR1_REGNUM): New defines.
15113 (ia64_fetch_register): New.
15114 (the_low_target): Install it.
15115 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15116 field.
15117 * linux-low.c (linux_fetch_registers): Try the
15118 the_low_target.fetch_register hook first.
15119
15120 * linux-arm-low.c (the_low_target): Adjust.
15121 * linux-bfin-low.c (the_low_target): Adjust.
15122 * linux-cris-low.c (the_low_target): Adjust.
15123 * linux-crisv32-low.c (the_low_target): Adjust.
15124 * linux-m32r-low.c (the_low_target): Adjust.
15125 * linux-m68k-low.c (the_low_target): Adjust.
15126 * linux-mips-low.c (the_low_target): Adjust.
15127 * linux-ppc-low.c (the_low_target): Adjust.
15128 * linux-s390-low.c (the_low_target): Adjust.
15129 * linux-sh-low.c (the_low_target): Adjust.
15130 * linux-sparc-low.c (the_low_target): Adjust.
15131 * linux-tic6x-low.c (the_low_target): Adjust.
15132 * linux-x86-low.c (the_low_target): Adjust.
15133 * linux-xtensa-low.c (the_low_target): Adjust.
15134
15135 2012-03-26 Pedro Alves <palves@redhat.com>
15136
15137 * server.c (handle_qxfer_libraries): Don't bail early if
15138 the_target->qxfer_libraries_svr4 is not NULL.
15139
15140 2012-03-26 Pedro Alves <palves@redhat.com>
15141
15142 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15143
15144 2012-03-23 Pedro Alves <palves@redhat.com>
15145
15146 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15147 "library-list-svr4" element's start tag when the the DSO list is
15148 empty.
15149
15150 2012-03-23 Pedro Alves <palves@redhat.com>
15151
15152 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15153 a variable whose type size is the same as the inferior's pointer
15154 size.
15155
15156 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15157
15158 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15159 struct siginfo.
15160 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15161 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15162 * linux-low.h: Include <signal.h>.
15163 (struct siginfo): Remove forward declaration.
15164 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15165 struct siginfo.
15166
15167 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15168
15169 * .gitignore: Ignore more files.
15170
15171 2012-03-19 Pedro Alves <palves@redhat.com>
15172 Jan Kratochvil <jan.kratochvil@redhat.com>
15173
15174 * server.c (cont_thread, general_thread): Add describing comments.
15175 (start_inferior): Clear `cont_thread'.
15176 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15177 of a process.
15178
15179 2012-03-15 Yao Qi <yao@codesourcery.com>
15180
15181 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15182 handling to ...
15183 (cmd_qtdp): ... here.
15184
15185 2012-03-15 Yao Qi <yao@codesourcery.com>
15186
15187 * tracepoint.c (struct tracepoint_action_ops): New.
15188 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15189 (m_tracepoint_action_download): New.
15190 (r_tracepoint_action_download): New.
15191 (x_tracepoint_action_download): New.
15192 (l_tracepoint_action_download): New.
15193 (add_tracepoint_action): Install `action->ops' according type.
15194 (download_tracepoint_1): Move code `download' function pointer
15195 of various tracepoint_action_ops.
15196
15197 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15198
15199 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15200 linux_ptrace_attach_warnings.
15201
15202 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15203
15204 * Makefile.in (linux-ptrace.o): New.
15205 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15206 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15207 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15208 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15209 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15210 of these targets.
15211 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15212
15213 2012-03-08 Yao Qi <yao@codesourcery.com>
15214 Pedro Alves <palves@redhat.com>
15215
15216 Fix PR server/13392.
15217 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15218 offset of JMP insn.
15219 * tracepoint.c (remove_tracepoint): New.
15220 (cmd_qtdp): Call remove_tracepoint when failed to install.
15221
15222 2012-03-07 Pedro Alves <palves@redhat.com>
15223
15224 * linux-low.c (get_detach_signal): New.
15225 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15226 Pass on pending signals to PTRACE_DETACH. Check the result of the
15227 ptrace call.
15228 * server.c (program_signals, program_signals_p): New.
15229 (handle_general_set): Handle QProgramSignals.
15230 * server.h (program_signals, program_signals_p): Declare.
15231
15232 2012-03-05 Pedro Alves <palves@redhat.com>
15233 Jan Kratochvil <jan.kratochvil@redhat.com>
15234
15235 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15236 New comment why.
15237
15238 2012-03-03 Yao Qi <yao@codesourcery.com>
15239
15240 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15241 agent_look_up_symbols.
15242
15243 2012-03-03 Yao Qi <yao@codesourcery.com>
15244
15245 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15246 (linux-x86-low.o): Likewise.
15247 * server.h: Remove in_process_agent_loaded.
15248 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15249 common/agent.c.
15250 Update callers.
15251
15252 2012-03-03 Yao Qi <yao@codesourcery.com>
15253
15254 * tracepoint.c (gdb_agent_capability): New global.
15255 (in_process_agent_loaded_ust): Renamed to
15256 `in_process_agent_supports_ust'.
15257 Update callers.
15258 (in_process_agent_supports_ust): Call agent_capability_check.
15259 (clear_installed_tracepoints): Assert that agent supports
15260 agent.
15261
15262 2012-03-03 Yao Qi <yao@codesourcery.com>
15263
15264 * linux-low.c (linux_supports_agent): New.
15265 (linux_target_ops): Initialize field `supports_agent' with
15266 linux_supports_agent.
15267 * target.h (struct target_ops) <supports_agent>: New.
15268 (target_supports_agent): New macro.
15269 * server.c (handle_general_set): Handle packet 'QAgent'.
15270 (handle_query): Send `QAgent+'.
15271 * Makefile.in (server.o): Depends on agent.h.
15272
15273 2012-03-03 Yao Qi <yao@codesourcery.com>
15274
15275 * Makefile.in (OBS): Add agent.o.
15276 Add new rule for agent.o.
15277 Track dependence of tracepoint.c on agent.h.
15278 * tracepoint.c (run_inferior_command_1):
15279 (run_inferior_command): Call agent_run_command.
15280 (gdb_ust_connect_sync_socket): Deleted. Move it to
15281 common/agent.c.
15282 (resume_thread, stop_thread): Likewise.
15283 (gdb_ust_socket_init): Renamed to ...
15284 (gdb_agent_socket_init): ... New.
15285 (gdb_ust_thread): Renamed to ...
15286 (gdb_agent_helper_thread): ... New.
15287 (gdb_ust_init): Move some code to ...
15288 (gdb_agent_init): ... here. New.
15289 [HAVE_UST]: Call gdb_ust_init.
15290 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15291 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15292 * config.in, configure: Regenerated.
15293
15294 2012-03-02 Pedro Alves <palves@redhat.com>
15295
15296 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15297 * linux-low.c (struct simple_pid_list): New.
15298 (stopped_pids): New a struct simple_pid_list pointer.
15299 (add_to_pid_list, pull_pid_from_list): New.
15300 (handle_extended_wait): Don't assume the first signal new children
15301 report is SIGSTOP. Adjust call to pull_pid_from_list.
15302 (linux_wait_for_lwp): Adjust.
15303
15304 2012-03-02 Yao Qi <yao@codesourcery.com>
15305
15306 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15307 debug log.
15308
15309 2012-03-02 Yao Qi <yao@codesourcery.com>
15310
15311 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15312 `stop_pc' and `tpoint'. Update caller.
15313
15314 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15315
15316 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15317 * linux-low.c (use_linux_regsets): New macro.
15318 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15319 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15320 (linux_register_in_regsets): New function.
15321 (usr_fetch_inferior_registers): Skip registers covered by
15322 regsets.
15323 (usr_store_inferior_registers): Likewise.
15324 (usr_fetch_inferior_registers): New macro.
15325 (usr_store_inferior_registers): Likewise.
15326 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15327 (linux_store_registers): Likewise.
15328 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15329 prototype.
15330 (init_registers_mips64_dsp_linux): Likewise.
15331 (init_registers_mips_linux): New macro.
15332 (init_registers_mips_dsp_linux): Likewise.
15333 (mips_dsp_num_regs): Likewise.
15334 (DSP_BASE, DSP_CONTROL): New fallback macros.
15335 (mips_base_regs): New macro.
15336 (mips_regmap): Use it. Fix the size.
15337 (mips_dsp_regmap): New variable.
15338 (mips_dsp_regset_bitmap): Likewise.
15339 (mips_arch_setup): New function.
15340 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15341 than mips_regmap.
15342 (mips_cannot_store_register): Likewise.
15343 (the_low_target): Update .arch_setup, .num_regs and .regmap
15344 initializers. Add .regset_bitmap initializer.
15345 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15346 initializer.
15347 * linux-bfin-low.c (the_low_target): Likewise.
15348 * linux-cris-low.c (the_low_target): Likewise.
15349 * linux-crisv32-low.c (the_low_target): Likewise.
15350 * linux-ia64-low.c (the_low_target): Likewise.
15351 * linux-m32r-low.c (the_low_target): Likewise.
15352 * linux-m68k-low.c (the_low_target): Likewise.
15353 * linux-ppc-low.c (the_low_target): Likewise.
15354 * linux-s390-low.c (the_low_target): Likewise.
15355 * linux-sh-low.c (the_low_target): Likewise.
15356 * linux-sparc-low.c (the_low_target): Likewise.
15357 * linux-tic6x-low.c (the_low_target): Likewise.
15358 * linux-x86-low.c (the_low_target): Likewise.
15359 * linux-xtensa-low.c (the_low_target): Likewise.
15360 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15361 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15362 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15363 srv_xmlfiles.
15364 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15365 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15366
15367 2012-02-29 Yao Qi <yao@codesourcery.com>
15368 Pedro Alves <palves@redhat.com>
15369
15370 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15371 `step_over_finished' is true.
15372
15373 2012-02-27 Pedro Alves <palves@redhat.com>
15374
15375 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15376 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15377
15378 2012-02-27 Pedro Alves <palves@redhat.com>
15379
15380 PR server/9684
15381 * linux-low.c (pid_is_stopped): New.
15382 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15383
15384 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15385
15386 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15387 of conditions.
15388
15389 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15390
15391 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15392
15393 2012-02-24 Luis Machado <lgustavo@codesourcery>
15394
15395 * server.c (handle_query): Advertise support for target-side
15396 breakpoint condition evaluation.
15397 (process_point_options): New function.
15398 (process_serial_event): When inserting a breakpoint, check for
15399 a target-side condition that should be evaluated.
15400
15401 * mem-break.c: Include regcache.h and ax.h.
15402 (point_cond_list_t): New data structure.
15403 (breakpoint) <cond_list>: New field.
15404 (find_gdb_breakpoint_at): Make non-static.
15405 (delete_gdb_breakpoint_at): Clear any target-side
15406 conditions.
15407 (clear_gdb_breakpoint_conditions): New function.
15408 (add_condition_to_breakpoint): Likewise.
15409 (add_breakpoint_condition): Likewise.
15410 (gdb_condition_true_at_breakpoint): Likewise.
15411 (gdb_breakpoint_here): Return result directly instead
15412 of going through a local variable.
15413
15414 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15415 (clear_gdb_breakpoint_conditions): Likewise.
15416 (add_breakpoint_condition): Likewise.
15417 (gdb_condition_true_at_breakpoint): Likewise.
15418
15419 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15420 (need_step_over_p): Take target-side breakpoint condition into
15421 consideration.
15422
15423 2012-02-24 Luis Machado <lgustavo@codesourcery>
15424
15425 * server.h: Include tracepoint.h.
15426 (agent_mem_read, agent_get_trace_state_variable_value,
15427 agent_set_trace_state_variable_value,
15428 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15429 get_set_tsv_func_addr): New prototypes.
15430
15431 * ax.h: New include file.
15432 * ax.c: New source file.
15433
15434 * tracepoint.c: Include ax.h.
15435 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15436 agent_expr, eval_result_type): Move to ax.h.
15437 (parse_agent_expr): Rename to ...
15438 (gdb_parse_agent_expr): ... this, make it non-static and move
15439 to ax.h.
15440 (unparse_agent_expr) Rename to ...
15441 (gdb_unparse_agent_expr): ... this, make it non-static and move
15442 to ax.h.
15443 (eval_agent_expr): Rename to ...
15444 (eval_tracepoint_agent_expr): ... this.
15445 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15446 forward declarations.
15447 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15448 (agent_get_trace_state_variable_value): New function.
15449 (agent_set_trace_state_variable_value): New function.
15450 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15451 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15452 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15453 (condition_true_at_tracepoint): Likewise.
15454 (parse_agent_expr): Rename to ...
15455 (gdb_parse_agent_expr): ... this and move to ax.c.
15456 (unparse_agent_expr): Rename to ...
15457 (gdb_unparse_agent_expr): ... this and move to ax.c.
15458 (gdb_agent_op_name): Move to ax.c.
15459 (eval_agent_expr): Rename to ...
15460 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15461 and move to ax.c.
15462 (eval_tracepoint_agent_expr): New function.
15463 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15464 non-static.
15465 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15466 ax.c.
15467 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15468 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15469 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15470 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15471 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15472 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15473 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15474 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15475 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15476 (compile_bytecodes): Remove forward declaration.
15477 (is_goto_target): Move to ax.c.
15478 (compile_bytecodes): Move to ax.c and call
15479 agent_get_trace_state_variable_value (...) and
15480 agent_set_trace_state_variable_value (...).
15481
15482 * Makefile.in: Update ax.c and IPA dependencies.
15483
15484 2012-02-24 Pedro Alves <palves@redhat.com>
15485
15486 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15487 (cmd_bigqtbuffer_circular): ... this. Only handle
15488 'QTBuffer:circular:'.
15489 (handle_tracepoint_general_set): Adjust.
15490
15491 2012-02-16 Yao Qi <yao@codesourcery.com>
15492
15493 * inferiors.c: Move code to ...
15494 * dll.c: .... here. New.
15495 * server.h: Declare clear_dlls.
15496 * Makefile.in (SFILES): Add dll.c.
15497 (OBS): Add dll.o
15498 (dll.o): New rule.
15499
15500 2012-02-11 Yao Qi <yao@codesourcery.com>
15501
15502 * server.c: (handle_monitor_command): Add a new parameter
15503 `own_buf'.
15504 (handle_query): Update caller.
15505
15506 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15507
15508 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15509 * configure, config.in: Regenerate.
15510 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15511 is not defined.
15512
15513 2012-02-02 Pedro Alves <palves@redhat.com>
15514
15515 Try SIGKILL first, then PTRACE_KILL.
15516 * linux-low.c (linux_kill_one_lwp): New.
15517 (linux_kill_one_lwp): Rename to ...
15518 (kill_one_lwp_callback): ... this. Use the new
15519 linux_kill_one_lwp.
15520
15521 2012-02-02 Pedro Alves <palves@redhat.com>
15522
15523 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15524 inferior.
15525
15526 2012-01-27 Pedro Alves <palves@redhat.com>
15527
15528 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15529 (elf_64_file_p): Make static.
15530 (linux_pid_exe_is_elf_64_file): New.
15531 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15532 Delete declarations.
15533 (linux_pid_exe_is_elf_64_file): Declare.
15534 * linux-x86-low.c (x86_arch_setup): Use
15535 linux_pid_exe_is_elf_64_file.
15536
15537 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15538
15539 * linux-low.c (linux_wait_for_event_1): Rename to ...
15540 (linux_wait_for_event): ... here and merge it with former
15541 linux_wait_for_event - new variable wait_ptid, use it.
15542 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15543
15544 2012-01-23 Pedro Alves <palves@redhat.com>
15545
15546 * server.c (main): Avoid yet another case of infinite loop while
15547 detaching/killing after a longjmp.
15548
15549 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15550
15551 Code cleanup.
15552 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15553
15554 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15555
15556 * hostio.c (handle_readlink): New function.
15557 (handle_vFile): Call it to handle "vFile:readlink" packets.
15558
15559 2012-01-20 Pedro Alves <palves@redhat.com>
15560 Ulrich Weigand <ulrich.weigand@linaro.org>
15561
15562 * server.c (handle_v_requests): Only support vAttach and vRun to
15563 start multiple processes when in extended protocol mode.
15564
15565 2012-01-17 Pedro Alves <palves@redhat.com>
15566
15567 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15568 memalign plus mprotect to allocate the scratch buffer.
15569
15570 2012-01-13 Pedro Alves <palves@redhat.com>
15571
15572 * server.c (attach_inferior): Clear `cont_thread'.
15573
15574 2012-01-13 Pedro Alves <palves@redhat.com>
15575
15576 * server.c (main): Avoid infinite loop while detaching/killing
15577 after a longjmp.
15578
15579 2012-01-09 Doug Evans <dje@google.com>
15580
15581 * server.c (start_inferior): Set last_ptid in --wrapper case.
15582
15583 2012-01-06 Yao Qi <yao@codesourcery.com>
15584
15585 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15586 defined.
15587 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15588
15589 2012-01-04 Yao Qi <yao@codesourcery.com>
15590
15591 * tracepoint.c (cmd_qtdp): Print debug message
15592 for static tracepoint.
15593
15594 2012-01-04 Yao Qi <yao@codesourcery.com>
15595
15596 * tracepoint.c (trace_vdebug): Differentiate debug message
15597 between gdbserver and IPA.
15598
15599 2012-01-03 Yao Qi <yao@codesourcery.com>
15600
15601 * tracepoint.c (tracepoint_was_hit): Don't collect for
15602 static tracepoint.
15603
15604 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15605
15606 * terminal.h: Reformat copyright header.
15607
15608 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15609
15610 * server.c (gdbserver_version): Update copyright year.
15611 * gdbreplay.c (gdbreplay_version): Likewise.
15612
15613 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15614
15615 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15616
15617 Revert:
15618 2011-12-18 Hui Zhu <teawater@gmail.com>
15619 * linux-low.c (linux_create_inferior): Save return value to ret.
15620
15621 2011-12-18 Hui Zhu <teawater@gmail.com>
15622
15623 * linux-low.c (linux_create_inferior): Save return value to ret.
15624
15625 2011-12-16 Doug Evans <dje@google.com>
15626
15627 * linux-low.c (linux_create_inferior): If stdio connection,
15628 redirect stdin from /dev/null, stdout to stderr.
15629 * remote-utils.c (remote_is_stdio): New static global.
15630 (remote_connection_is_stdio): New function.
15631 (remote_prepare): Handle stdio connection.
15632 (remote_open): Ditto.
15633 (remote_close): Don't close stdin for stdio connections.
15634 (read_prim,write_prim): New functions. Replace all calls to
15635 read/write to these.
15636 * server.c (main): Watch for "-" argument. Move call to
15637 remote_prepare before start_inferior.
15638 * server.h (STDIO_CONNECTION_NAME): New macro.
15639 (remote_connection_is_stdio): Declare.
15640
15641 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15642 in debugging output.
15643
15644 2011-12-15 Yao Qi <yao@codesourcery.com>
15645
15646 * tracepoint.c: Include sys/syscall.h.
15647 (gdb_ust_thread): Remove preprocessor conditional.
15648
15649 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15650
15651 * linux-low.c (linux_detach_one_lwp): Call
15652 the_low_target.prepare_to_resume before detaching.
15653
15654 2011-12-14 Yao Qi <yao@codesourcery.com>
15655
15656 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15657 of write.
15658
15659 2011-12-14 Yao Qi <yao@codesourcery.com>
15660
15661 * i386-low.c (i386_low_stopped_data_address): Initialize local
15662 variable `control'.
15663
15664 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15665
15666 PR remote/13492
15667
15668 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15669 DR_CONTROL unless necessary. Extend comments.
15670 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15671 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15672
15673 2011-12-13 Yao Qi <yao@codesourcery.com>
15674
15675 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15676 macros.
15677 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15678
15679 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15680
15681 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15682 Print new debug message for such case.
15683
15684 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15685
15686 Fix overlapping memcpy.
15687 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15688 the read_inferior_memory transfer.
15689 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15690 write_inferior_memory transfer.
15691 (set_fast_tracepoint_jump): New variable buf. Use it for the
15692 read_inferior_memory and write_inferior_memory transfers.
15693 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15694 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15695 Use it for the write_inferior_memory transfer.
15696 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15697 buffers.
15698
15699 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15700
15701 * linux-low.c (fetch_register, store_register): Make code
15702 consistent, fix formatting.
15703
15704 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15705
15706 * linux-low.c (usr_store_inferior_registers): Factor out code
15707 to handle individual registers into...
15708 (store_register): ... this new function.
15709
15710 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15711
15712 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15713 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15714 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15715 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15716 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15717 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15718 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15719 (srv_xmlfiles): Add new XML files.
15720
15721 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15722 and <sys/uio.h>.
15723 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15724 (init_registers_s390_linux32v1): Add prototype.
15725 (init_registers_s390_linux32v2): Likewise.
15726 (init_registers_s390_linux64v1): Likewise.
15727 (init_registers_s390_linux64v2): Likewise.
15728 (init_registers_s390x_linux64v1): Likewise.
15729 (init_registers_s390x_linux64v2): Likewise.
15730 (s390_num_regs): Increment to 52.
15731 (s390_regmap): Add orig_r2 register.
15732 (s390_num_regs_3264): Increment to 68.
15733 (s390_regmap_3264): Add orig_r2 register.
15734 (s390_collect_ptrace_register): Handle orig_r2 register.
15735 (s390_supply_ptrace_register): Likewise.
15736 (s390_fill_last_break): New function.
15737 (s390_store_last_break): Likewise.
15738 (s390_fill_system_call): New function.
15739 (s390_store_system_call): Likewise.
15740 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15741 register sets.
15742 (s390_check_regset): New function.
15743 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15744 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15745 Update target_regsets for available register sets.
15746
15747 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15748 Jan Kratochvil <jan.kratochvil@redhat.com>
15749
15750 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15751 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15752 New.
15753 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15754 * linux-low.h (struct process_info_private): New member r_debug.
15755 * server.c (handle_qxfer_libraries): Call
15756 the_target->qxfer_libraries_svr4.
15757 (handle_qxfer_libraries_svr4): New function.
15758 (qxfer_packets): New entry "libraries-svr4".
15759 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15760 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15761 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15762 PACKET_qXfer_libraries_svr4.
15763
15764 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15765
15766 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15767 PSW address/mask between 8-byte and 16-byte formats.
15768 (s390_supply_ptrace_register): Likewise.
15769 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15770 basic addressing mode bit.
15771
15772 2011-11-24 Stan Shebs <stan@codesourcery.com>
15773
15774 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15775
15776 2011-11-17 Stan Shebs <stan@codesourcery.com>
15777
15778 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15779 (tracing_start_time): New global.
15780 (tracing_stop_time): New global.
15781 (tracing_user_name): New global.
15782 (tracing_notes): New global.
15783 (tracing_stop_note): New global.
15784 (cmd_qtstart): Set traceframe_usage, start_time.
15785 (stop_tracing): Set stop_time.
15786 (cmd_qtstatus): Report additional status.
15787 (cmd_qtp): New function.
15788 (handle_tracepoint_query): Call it.
15789 (cmd_qtnotes): New function.
15790 (handle_tracepoint_general_set): Call it.
15791 (get_timestamp): Rename from tsv_get_timestamp.
15792
15793 2011-11-14 Stan Shebs <stan@codesourcery.com>
15794 Kwok Cheung Yeung <kcy@codesourcery.com>
15795
15796 * linux-x86-low.c (small_jump_insn): New.
15797 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15798 trampoline and error message, build a trampoline and issue a small
15799 jump instruction to it.
15800 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15801 trampoline and error message.
15802 (x86_get_min_fast_tracepoint_insn_len): New.
15803 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15804 * linux-low.h (struct linux_target_ops): Add arguments to
15805 install_fast_tracepoint_jump_pad operation, add new operation.
15806 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15807 arguments.
15808 (linux_get_min_fast_tracepoint_insn_len): New function.
15809 (linux_target_op): Add new operation.
15810 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15811 (gdb_trampoline_buffer_end): Ditto.
15812 (gdb_trampoline_buffer_error): Ditto.
15813 (struct ipa_sym_addresses): Add fields for new IPA variables.
15814 (symbol_list): Add entries for new IPA variables.
15815 (struct tracepoint): Add fields to hold the address range of the
15816 trampoline used by the tracepoint.
15817 (trampoline_buffer_head): New static variable.
15818 (trampoline_buffer_tail): Ditto.
15819 (claim_trampoline_space): New function.
15820 (have_fast_tracepoint_trampoline_buffer): New function.
15821 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15822 structure.
15823 (install_fast_tracepoint): Ditto, also add error buffer argument.
15824 (cmd_qtminftpilen): New function.
15825 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15826 (fast_tracepoint_from_trampoline_address): New function.
15827 (fast_tracepoint_collecting): Handle trampoline as part of jump
15828 pad space.
15829 (set_trampoline_buffer_space): New function.
15830 (initialize_tracepoint): Initialize new IPA variables.
15831 * target.h (struct target_ops): Add arguments to
15832 install_fast_tracepoint_jump_pad operation, add new
15833 get_min_fast_tracepoint_insn_len operation.
15834 (target_get_min_fast_tracepoint_insn_len): New.
15835 (install_fast_tracepoint_jump_pad): Add arguments.
15836 * server.h (IPA_BUFSIZ): Define.
15837 * linux-i386-ipa.c: Include extra header files.
15838 (initialize_fast_tracepoint_trampoline_buffer): New function.
15839 (initialize_low_tracepoint): Call it.
15840 * server.h (set_trampoline_buffer_space): Declare.
15841 (claim_trampoline_space): Ditto.
15842 (have_fast_tracepoint_trampoline_buffer): Ditto.
15843
15844 2011-11-14 Yao Qi <yao@codesourcery.com>
15845
15846 * server.c (handle_query): Handle InstallInTrace for qSupported.
15847 * tracepoint.c (add_tracepoint): Sort list.
15848 (install_tracepoint, download_tracepoint): New.
15849 (cmd_qtdp): Call them to install and download tracepoints.
15850 (sort_tracepoints): Removed.
15851 (cmd_qtstart): Update.
15852
15853 2011-11-14 Yao Qi <yao@codesourcery.com>
15854
15855 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15856 * mem-break.h: Declare.
15857 * tracepoint.c (cmd_qtstart): Move some code to ...
15858 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15859 New.
15860 (download_tracepoints): Move some code to ...
15861 (download_tracepoint_1): ... here. New.
15862
15863 2011-11-08 Yao Qi <yao@codesourcery.com>
15864
15865 * remote-utils.c (relocate_instruction): A comment fix.
15866
15867 2011-11-07 Joel Brobecker <brobecker@adacore.com>
15868
15869 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15870 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15871 dr_status_mirror and dr_control_mirror from debug_reg_state.
15872 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15873 (i386_initial_stuff): Remove use of deleted globals.
15874 (i386_get_thread_context, i386_set_thread_context,
15875 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15876 from debug_reg_state.
15877
15878 2011-11-05 Yao Qi <yao@codesourcery.com>
15879
15880 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15881 address as TPOINT's.
15882
15883 2011-11-02 Stan Shebs <stan@codesourcery.com>
15884
15885 * tracepoint.c (agent_mem_read_string): New function.
15886 (eval_agent_expr): Call it for tracenz.
15887 * server.c (handle_query): Report support for tracenz.
15888
15889 2011-11-02 Yao Qi <yao@codesourcery.com>
15890
15891 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15892
15893 2011-11-02 Yao Qi <yao@codesourcery.com>
15894
15895 * target.h: Fix a typo in comment.
15896
15897 2011-10-31 Pedro Alves <pedro@codesourcery.com>
15898
15899 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15900 clobber the breakpoints' shadows with fast tracepoint jumps.
15901 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15902 * target.c (write_inferior_memory): Also pass MYADDR down to
15903 check_mem_write.
15904
15905 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15906
15907 * configure.ac: Check support for personality routine.
15908 * configure: Regenerate.
15909 * config.in: Likewise.
15910 * linux-low.c: Include <sys/personality.h>.
15911 Define ADDR_NO_RANDOMIZE if necessary.
15912 (linux_create_inferior): Disable address space randomization when
15913 forking inferior, if requested.
15914 (linux_supports_disable_randomization): New function.
15915 (linux_target_ops): Install it.
15916 * server.h (disable_randomization): Declare.
15917 * server.c (disable_randomization): New global variable.
15918 (handle_general_set): Handle QDisableRandomization.
15919 (handle_query): Likewise for qSupported.
15920 (main): Support --disable-randomization and --no-disable-randomization
15921 command line arguments.
15922 * target.h (struct target_ops): Add supports_disable_randomization.
15923 (target_supports_disable_randomization): New macro.
15924
15925 2011-09-29 Mike Frysinger <vapier@gentoo.org>
15926
15927 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15928 ifdef check.
15929 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15930 [!PT_GETDSBT] (target_loadmap): New definition.
15931 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15932 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15933 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15934 and PT_GETDSBT to LINUX_LOADMAP.
15935 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15936 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15937
15938 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15939
15940 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
15941 (arm_linux_hwbp_cap): New static variable.
15942 (arm_linux_get_hwbp_cap): Replace by ...
15943 (arm_linux_init_hwbp_cap): ... this new function.
15944 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
15945 (arm_linux_get_hw_watchpoint_count): Likewise.
15946 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15947 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
15948 (arm_prepare_to_resume): Use perror_with_name instead of error.
15949
15950 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15951
15952 * linux-arm-low.c: Include <signal.h>.
15953 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
15954 (struct arm_linux_hwbp_cap): New data type.
15955 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
15956 (struct arm_linux_hw_breakpoint): New data type.
15957 (MAX_BPTS, MAX_WPTS): Define.
15958 (struct arch_process_info, struct arch_lwp_info): New data types.
15959 (arm_linux_get_hwbp_cap): New function.
15960 (arm_linux_get_hw_breakpoint_count): Likewise.
15961 (arm_linux_get_hw_watchpoint_count): Likewise.
15962 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15963 (arm_hwbp_control_initialize): Likewise.
15964 (arm_hwbp_control_is_enabled): Likewise.
15965 (arm_hwbp_control_is_initialized): Likewise.
15966 (arm_hwbp_control_disable): Likewise.
15967 (arm_linux_hw_breakpoint_equal): Likewise.
15968 (arm_linux_hw_point_initialize): Likewise.
15969 (struct update_registers_data): New data structure.
15970 (update_registers_callback: New function.
15971 (arm_insert_point): Likewise.
15972 (arm_remove_point): Likewise.
15973 (arm_stopped_by_watchpoint): Likewise.
15974 (arm_stopped_data_address): Likewise.
15975 (arm_new_process): Likewise.
15976 (arm_new_thread): Likewise.
15977 (arm_prepare_to_resume): Likewise.
15978 (the_low_target): Register arm_insert_point, arm_remove_point,
15979 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
15980 arm_new_thread, and arm_prepare_to_resume.
15981
15982 2011-09-15 Stan Shebs <stan@codesourcery.com>
15983
15984 * server.h (struct emit_ops): Add compare-goto fields.
15985 * tracepoint.c (gdb_agent_op_sizes): New table.
15986 (emit_eq_goto): New function.
15987 (emit_ne_goto): New function.
15988 (emit_lt_goto): New function.
15989 (emit_le_goto): New function.
15990 (emit_gt_goto): New function.
15991 (emit_ge_goto): New function.
15992 (is_goto_target): New function.
15993 (compile_bytecodes): Recognize special cases of compare-goto
15994 combinations and call specialized emitters for them.
15995 * linux-x86-low.c (amd64_emit_eq_goto): New function.
15996 (amd64_emit_ne_goto): New function.
15997 (amd64_emit_lt_goto): New function.
15998 (amd64_emit_le_goto): New function.
15999 (amd64_emit_gt_goto): New function.
16000 (amd64_emit_ge_goto): New function.
16001 (amd64_emit_ops): Add the new functions.
16002 (i386_emit_eq_goto): New function.
16003 (i386_emit_ne_goto): New function.
16004 (i386_emit_lt_goto): New function.
16005 (i386_emit_le_goto): New function.
16006 (i386_emit_gt_goto): New function.
16007 (i386_emit_ge_goto): New function.
16008 (i386_emit_ops): Add the new functions.
16009
16010 2011-09-08 Stan Shebs <stan@codesourcery.com>
16011
16012 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16013 (i386_emit_epilogue): Restore %ebx.
16014
16015 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16016
16017 * server.c (step_thread): Remove definition.
16018 (process_serial_event): Don't handle Hs.
16019 * server.h (step_thread): Remove declaration.
16020 * target.c (set_desired_inferior): Remove use of step_thread.
16021
16022 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16023
16024 * linux-low.c: Include linux-procfs.h.
16025 (linux_attach_lwp_1): Update comments.
16026 (linux_attach): Scan for existing threads when attaching to a
16027 process that is the tgid.
16028 * Makefile.in: Update dependencies.
16029
16030 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16031
16032 * configure.srv: Add linux-procfs.o dependencies.
16033
16034 2011-08-14 Yao Qi <yao@codesourcery.com>
16035
16036 * target.h (struct target_ops): Fix indent.
16037 * win32-low.c (win32_target_ops): Fix comment.
16038
16039 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16040 Yao Qi <yao@codesourcery.com>
16041
16042 * Makefile.in (clean): Remove tic6x-*.c files.
16043 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16044 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16045 (tic6x-c64xp-linux.c): Likewise.
16046 * configure.srv: Add support for tic6x-*-uclinux.
16047 * linux-tic6x-low.c: New.
16048 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16049
16050 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16051 Yao Qi <yao@codesourcery.com>
16052
16053 * target.h (struct target_ops): Add read_loadmap.
16054 * linux-low.c (struct target_loadseg): New type.
16055 (struct target_loadmap): New type.
16056 (linux_read_loadmap): New function.
16057 (linux_target_ops): Add linux_read_loadmap.
16058 * server.c (handle_query): Support qXfer:fdpic:read packet.
16059 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16060 to NULL.
16061
16062 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16063
16064 * win32-low.c: Include <stdint.h>.
16065
16066 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16067
16068 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16069 to the inferior here.
16070 (i386_remove_aligned_watchpoint): Ditto.
16071 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16072 fit part of the watchpoint in the debug registers.
16073 (i386_update_inferior_debug_regs): New.
16074 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16075 registers, and only update the inferior on success.
16076 (i386_low_remove_watchpoint): Ditto.
16077
16078 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16079
16080 * linux-low.c (compare_ints, unique, list_threads, show_process,
16081 linux_core_of_thread): Delete.
16082 (linux_target_ops): Change linux_core_of_thread to
16083 linux_common_core_of_thread.
16084 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16085 * utils.c (malloc_failure): Change type of argument.
16086 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16087 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16088 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16089 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16090 (IPA_OBJS): Add common-utils-ipa.o.
16091 (ptid_h, linux_osdata_h): New macros.
16092 (server_h): Add common/common-utils.h, common/xml-utils.h,
16093 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16094 common/ptid.h.
16095 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16096 ptid.o, buffer.o): New rules.
16097 (linux-low.o): Add common/linux-osdata.h as a dependency.
16098 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16099 * configure.ac: Add AC_HEADER_DIRENT check.
16100 * config.in: Regenerate.
16101 * configure: Regenerate.
16102 * remote-utils.c (xml_escape_text): Delete.
16103 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16104 buffer_xml_printf): Move to common/buffer.c.
16105 * server.c (main): Remove call to initialize_inferiors.
16106 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16107 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16108 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16109 internal_error, gdb_assert, gdb_assert_fail): Delete.
16110 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16111 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16112 common/buffer.h.
16113 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16114 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16115 initialize_inferiors): Delete.
16116
16117 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16118
16119 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16120 symbol error.
16121
16122 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16123
16124 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16125 assertion.
16126 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16127
16128 2011-05-26 Yao Qi <yao@codesourcery.com>
16129
16130 * Makefile.in (thread-db.o): Track dependence to
16131 common/gdb_thread_db.h.
16132 * thread-db.c: include gdb_thread_db.h from right place.
16133
16134 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16135
16136 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16137 __FILE__ and __LINE__ to internal_error.
16138
16139 2011-05-13 Doug Evans <dje@google.com>
16140
16141 * thread-db.c (try_thread_db_load_from_sdir): New function.
16142 (try_thread_db_load_from_dir): New function.
16143 (thread_db_load_search): Handle $sdir, ignore $pdir.
16144 Remove trying of system directories if search of
16145 libthread-db-search-path fails, that is now done via $sdir.
16146
16147 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16148
16149 * server.c (handle_query): Add EnableDisableTracepoints to the list
16150 of supported features.
16151 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16152 tracepoints.
16153 (cmd_qtenable_disable): New.
16154 (cmd_qtstart): Install tracepoints even if disabled.
16155 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16156 receiving a QTEnable or QTDisable packet.
16157 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16158 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16159 tracepoints.
16160 (gdb_probe): Skip data collection if static tracepoint is disabled.
16161
16162 2011-05-10 Doug Evans <dje@google.com>
16163
16164 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16165
16166 2011-05-04 Doug Evans <dje@google.com>
16167
16168 * linux-low.c (linux_join): Skip process lookup.
16169 * spu-low.c (spu_join): Ditto.
16170 * server.c (join_inferiors_callback): Delete.
16171 (process_serial_event): For 'D' packet (detach) call join_inferior
16172 directly.
16173
16174 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16175
16176 * README: Don't mention xscale*-*-linux*.
16177 * configure.srv (xscale*-*-linux*): Don't handle target.
16178
16179 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16180
16181 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16182 casting pointers.
16183 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16184 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16185 (i386_emit_void_call_2): Likewise.
16186
16187 2011-04-26 Yao Qi <yao@codesourcery.com>
16188
16189 * linux-low.c: Move common macros to linux-ptrace.h.
16190 Include linux-ptrace.h.
16191 * Makefile.in (linux_ptrace_h): New.
16192 (linux-low.o): Depends on linux-ptrace.h.
16193
16194 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16195
16196 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16197 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16198 (remote_prepare): New function with most of the TCP code from ...
16199 (remote_open): ... here. Detect PORT here unconditionally. Move also
16200 setting transport_is_reliable.
16201 * server.c (run_once): New variable.
16202 (gdbserver_usage): Document it.
16203 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16204 the first run if RUN_ONCE.
16205 * server.h (run_once, remote_prepare): New declarations.
16206
16207 2011-04-19 Tom Tromey <tromey@redhat.com>
16208
16209 * win32-low.c (handle_load_dll): Remove duplicate "the".
16210
16211 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16212
16213 Remove support for old Cygwin 1.5 versions.
16214 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16215 function to avoid warning.
16216 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16217 warning.
16218
16219 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16220
16221 * gdbserver/server.h (Macro _): Define it if not available.
16222
16223 2011-03-14 Michael Snyder <msnyder@vmware.com>
16224
16225 * hostio.c (handle_close): Remove unnecessary null test.
16226
16227 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16228
16229 * Makefile.in (maintainer-clean realclean distclean): Remove
16230 "make ... subdir_do" command.
16231
16232 2011-03-10 Michael Snyder <msnyder@vmware.com>
16233
16234 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16235
16236 * server.c (handle_v_run): Free alloced buffer on early return.
16237
16238 2011-03-09 Yao Qi <yao@codesourcery.com>
16239
16240 Revert:
16241 2011-03-04 Yao Qi <yao@codesourcery.com>
16242
16243 * Makefile.in: Remove GNU make feature --directory.
16244
16245 2011-03-05 Yao Qi <yao@codesourcery.com>
16246
16247 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16248 (subdir_do): New make target. Copied from gdb/Makefile.
16249 (maintainer-clean, realclean, distclean, clean): Call corresponding
16250 make targets in common/Makefile.
16251
16252 2011-02-11 Yao Qi <yao@codesourcery.com>
16253
16254 * configure.ac: Call AC_PROG_RANLIB.
16255 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16256 * configure: Regenerate.
16257
16258 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16259
16260 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16261
16262 2011-03-06 Yao Qi <yao@codesourcery.com>
16263
16264 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16265
16266 2011-03-05 Yao Qi <yao@codesourcery.com>
16267
16268 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16269 (subdir_do): New make target. Copied from gdb/Makefile.
16270 (maintainer-clean, realclean, distclean, clean): Call corresponding
16271 make targets in common/Makefile.
16272
16273 2011-03-04 Yao Qi <yao@codesourcery.com>
16274
16275 * Makefile.in: Remove GNU make feature --directory.
16276
16277 2011-03-04 Michael Snyder <msnyder@vmware.com>
16278
16279 * server.c (queue_stop_reply): Call xmalloc not malloc.
16280
16281 2011-03-02 Michael Snyder <msnyder@vmware.com>
16282
16283 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16284
16285 2011-02-28 Michael Snyder <msnyder@vmware.com>
16286
16287 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16288 (cmd_qtframe): Ditto.
16289 (cmd_qtbuffer): Ditto.
16290 (cmd_bigqtbuffer): Ditto.
16291
16292 * utils.c (decimal2str): Initialize 'width' to nine, then
16293 don't mess with it.
16294
16295 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16296
16297 * hostio.c (require_data): Free *data, not data.
16298
16299 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16300
16301 * hostio.c (require_data): Use free, not xfree.
16302
16303 2011-02-27 Michael Snyder <msnyder@vmware.com>
16304
16305 * server.c (handle_query): Discard unused value.
16306
16307 * hostio.c (require_data): Free malloc memory before returning
16308 error.
16309
16310 2011-02-26 Michael Snyder <msnyder@vmware.com>
16311
16312 * linux-low.c (list_threads): Call closedir for dirent.
16313
16314 2011-02-27 Michael Snyder <msnyder@vmware.com>
16315
16316 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16317 a case statement falls through.
16318
16319 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16320
16321 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16322 in comparison.
16323
16324 2011-02-26 Michael Snyder <msnyder@vmware.com>
16325
16326 * utils.c (decimal2str): Eliminate dead code and dead param.
16327 (pulongest): Drop dead param from call to decimal2str.
16328 (plongest): Ditto.
16329
16330 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16331
16332 Revert the following patch (not approved yet):
16333 2011-02-21 Hui Zhu <teawater@gmail.com>
16334 * tracepoint.c (tp_printf): New function.
16335 (eval_agent_expr): Handle gdb_agent_op_printf.
16336
16337 2011-02-21 Hui Zhu <teawater@gmail.com>
16338
16339 * tracepoint.c (tp_printf): New function.
16340 (eval_agent_expr): Handle gdb_agent_op_printf.
16341
16342 2011-02-18 Tom Tromey <tromey@redhat.com>
16343
16344 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16345 (tracepoint.o): Likewise.
16346 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16347 (gdb_agent_op_names): Likewise.
16348
16349 2011-02-18 Tom Tromey <tromey@redhat.com>
16350
16351 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16352 gdb_agent_op_rot>: New constants.
16353 (gdb_agent_op_names): Add pick and roll.
16354 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16355 cases.
16356
16357 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16358
16359 * aclocal.m4: Regenerated with aclocal-1.11.1.
16360
16361 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16362
16363 * server.c (handle_qxfer_traceframe_info): New.
16364 (qxfer_packets): Register "traceframe-info".
16365 (handle_query): Report support for qXfer:traceframe-info:read+.
16366 * tracepoint.c (match_blocktype): New.
16367 (traceframe_find_block_type): Rename to ...
16368 (traceframe_walk_blocks): ... this. Add callback filter argument,
16369 and use it.
16370 (traceframe_find_block_type): New, reimplemented on top of
16371 traceframe_walk_blocks.
16372 (build_traceframe_info_xml): New.
16373 (traceframe_read_info): New.
16374 * server.h (traceframe_read_info): Declare.
16375
16376 2011-02-11 Yao Qi <yao@codesourcery.com>
16377
16378 * configure.ac: Call AC_PROG_RANLIB.
16379 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16380 * configure: Regenerate.
16381
16382 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16383
16384 * server.c (gdb_read_memory): Change return semantics to allow
16385 partial transfers.
16386 (handle_search_memory_1): Adjust.
16387 (process_serial_event) <'m' packet>: Handle partial transfers.
16388 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16389
16390 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16391
16392 * regcache.c (init_register_cache): Initialize
16393 regcache->register_status.
16394 (free_register_cache): Release regcache->register_status.
16395 (regcache_cpy): Copy register_status.
16396 (registers_to_string): Print 'x's for unavailable registers.
16397 (supply_register): Mark the register's status valid or
16398 unavailable, depending on whether a buffer was passed in or not.
16399 (supply_register_zeroed): New.
16400 (supply_regblock): Mark the registers' status valid or
16401 unavailable, depending on whether a buffer was passed in or not.
16402 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16403 (struct regcache): New `register_status' field.
16404 (supply_register_zeroed): Declare.
16405 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16406 supply_register_zeroed, rather than passing a NULL buffer to
16407 supply_register.
16408 * tracepoint.c (fetch_traceframe_registers): Update comment.
16409
16410 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16411
16412 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16413 buffer explicit.
16414
16415 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16416
16417 * server.h (decode_xfer_write): Change prototype.
16418 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16419 and don't extract the annex here.
16420 * server.c (decode_xfer_read): Remove `annex' parameter,
16421 and don't extract the annex here.
16422 (decode_xfer): New.
16423 (struct qxfer): New.
16424 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16425 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16426 (handle_qxfer_statictrace): New functions, abstracted out from
16427 handle_query, and made to use the struct qxfer interface.
16428 (handle_threads_qxfer_proper): Rename to ...
16429 (handle_qxfer_threads_proper): ... this.
16430 (handle_threads_qxfer): Rename to ...
16431 (handle_qxfer_threads): ... this. Adjust.
16432 (qxfer_packets): New array.
16433 (handle_qxfer): New function.
16434 (handle_query): Use handle_qxfer.
16435
16436 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16437
16438 * gdbreplay.c: Shorten lines of >= 80 columns.
16439 * linux-low.c: Ditto.
16440 * linux-ppc-low.c: Ditto.
16441 * linux-s390-low.c: Ditto.
16442 * linux-sparc-low.c: Ditto.
16443 * linux-x86-low.c: Ditto.
16444 * linux-xtensa-low.c: Ditto.
16445 * mem-break.c: Ditto.
16446 * nto-low.c: Ditto.
16447 * regcache.h: Ditto.
16448 * remote-utils.c: Ditto.
16449 * server.c: Ditto.
16450 * server.h: Ditto.
16451 * thread-db.c: Ditto.
16452 * tracepoint.c: Ditto.
16453 * utils.c: Ditto.
16454 * win32-low.h: Ditto.
16455
16456 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16457
16458 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16459 update.
16460
16461 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16462
16463 * server.c (gdbserver_version): Update copyright year in version
16464 output.
16465 * gdbreplay.c (gdbreplay_version): Ditto.
16466
16467 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16468
16469 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16470 * linux-bfin-low.c: New file.
16471 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16472 PT_DATA_ADDR for BFIN targets.
16473 * Makefile.in (SFILES): Add linux-bfin-low.c.
16474 (clean): Remove reg-bfin.c.
16475 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16476 * README: Mention supported Blackfin targets.
16477
16478 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16479
16480 * .gitignore: New file.
16481
16482 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16483
16484 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16485
16486 2010-10-22 Jie Zhang <jie@codesourcery.com>
16487
16488 * Makefile.in: Add FLAGS_TO_PASS variable.
16489 (install): Remove dependency of install-only and recursively
16490 invoke make for install-only.
16491
16492 2010-10-04 Doug Evans <dje@google.com>
16493
16494 * Makefile.in (uninstall): Use $(DESTDIR).
16495
16496 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16497
16498 PR gdb/11842
16499
16500 * linux-x86-low.c (compat_siginfo_from_siginfo)
16501 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16502 si_code is < 0. Check for si_code == SI_TIMER before checking for
16503 si_code < 0.
16504
16505 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16506
16507 * lynx-i386-low.c: New file.
16508 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16509
16510 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16511
16512 * lynx-low.c (ptrace_request_to_str): Remove handling for
16513 request values that have been removed in LynxOS 5.x.
16514
16515 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16516
16517 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16518 <ptrace.h>
16519
16520 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16521
16522 * configure.ac: Add --enable-inprocess-agent option.
16523 * configure: Rebuilt.
16524
16525 2010-09-06 Yao Qi <yao@codesourcery.com>
16526
16527 * linux-low.c (linux_kill): Remove unused variable.
16528 (linux_stabilize_threads): Likewise.
16529 * server.c (start_inferior): Likewise.
16530 (queue_stop_reply_callback): Likewise.
16531 * tracepoint.c (do_action_at_tracepoint): Likewise.
16532
16533 2010-09-06 Yao Qi <yao@codesourcery.com>
16534
16535 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16536 on return.
16537
16538 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16539
16540 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16541
16542 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16543
16544 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16545 "$(IPA_DEPFILES)".
16546
16547 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16548
16549 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16550 gdbserver/lynx-ppc-low.c: New files.
16551 * Makefile.in (lynx_low_h): New variable.
16552 (lynx-low.o, lynx-ppc-low.o): New rules.
16553 * configure.ac: On LynxOS, link with -lnetinet.
16554 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16555 * configure: regenerate.
16556
16557 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16558
16559 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16560 * configure.ac: Add check for vasprintf and vsnprintf.
16561 * configure, config.in: Regenerate.
16562 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16563
16564 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16565
16566 * gdbreplay.c: Move include of alloca.h up, next to include of
16567 malloc.h.
16568 * server.h: Add include of malloc.h.
16569 * mem-break.c: Remove include of malloc.h.
16570 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16571
16572 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16573
16574 * Makefile.in (memmem.o): Build with -Wno-error.
16575
16576 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16577
16578 * utils.c (xsnprintf): Make non-static.
16579 * server.h: Add xsnprintf declaration.
16580 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16581 replace calls to snprintf by calls to xsnprintf throughout.
16582
16583 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16584
16585 * configure.ac: Add configure check for alloca.
16586 * configure, config.in: Regenerate.
16587 * server.h: Include alloca.h if it exists.
16588 * gdbreplay.c: Include alloca.h if it exists.
16589
16590 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16591
16592 * linux-low.c (__SIGRTMIN): Define if not already defined.
16593 (linux_create_inferior): Check for __ANDROID__ rather than
16594 __SIGRTMIN.
16595 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16596 are already deferred.
16597 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16598 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16599 stopped and already has a pending signal to report.
16600 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16601 a pending signal to report or is moving out of a jump pad.
16602 (linux_init_signals): Check for __ANDROID__ rather than
16603 __SIGRTMIN.
16604
16605 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16606
16607 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16608 debug_threads check. Avoid a linear search when not doing debug
16609 output.
16610
16611 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16612
16613 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16614 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16615 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16616 (process_event): Change local fd's type to gdb_fildes_t.
16617 (create_file_handler): Adjust prototype.
16618 (delete_file_handler): Adjust prototype.
16619 (handle_file_event): Adjust prototype. Use pfildes.
16620 (create_file_event): Adjsut prototype.
16621 * remote-utils.c (remote_desc, listen_desc): Change type to
16622 gdb_fildes_t.
16623 * server.h: New gdb_fildes_t typedef.
16624 [USE_WIN32API]: Include winsock2.h.
16625 (delete_file_handler, add_file_handler): Adjust prototypes.
16626 (pfildes): Declare.
16627 * utils.c (pfildes): New.
16628
16629 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16630
16631 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16632 * configure: Regenerate.
16633
16634 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16635
16636 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16637 (linux_done_accessing_memory): ... this.
16638 (linux_target_ops): Adjust.
16639 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16640 * nto-low.c (nto_target_ops): Adjust comment.
16641 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16642 * spu-low.c (spu_target_ops): Adjust comment.
16643 * target.h (target_ops): Rename unprepare_to_access_memory field
16644 to done_accessing_memory.
16645 (unprepare_to_access_memory): Rename to ...
16646 (done_accessing_memory): ... this.
16647
16648 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16649
16650 * linux-low.c (linux_prepare_to_access_memory): New.
16651 (linux_unprepare_to_access_memory): New.
16652 (linux_target_ops): Install them.
16653 * server.c (read_memory): Rename to ...
16654 (gdb_read_memory): ... this. Use
16655 prepare_to_access_memory/prepare_to_access_memory.
16656 (write_memory): Rename to ...
16657 (gdb_write_memory): ... this. Use
16658 prepare_to_access_memory/prepare_to_access_memory.
16659 (handle_search_memory_1): Adjust.
16660 (process_serial_event): Adjust.
16661 * target.h (struct target_ops): New fields
16662 prepare_to_access_memory and unprepare_to_access_memory.
16663 (prepare_to_access_memory, unprepare_to_access_memory): New.
16664 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16665 prepare_to_access_memory/prepare_to_access_memory.
16666 * nto-low.c (nto_target_ops): Adjust.
16667 * spu-low.c (spu_target_ops): Adjust.
16668 * win32-low.c (win32_target_ops): Adjust.
16669
16670 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16671
16672 * Makefile.in (WARN_CFLAGS): Get it from configure.
16673 (WERROR_CFLAGS): New.
16674 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16675 * configure.ac: Introduce --enable-werror, which adds -Werror to
16676 the compiler command line. Enabled by default. Disable with
16677 --disable-werror. Add -Wdeclaration-after-statement
16678 Wpointer-arith and -Wformat-nonliteral to warning flags.
16679 * configure: Regenerate.
16680
16681 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16682
16683 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16684
16685 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16686
16687 * gdbreplay.c (remote_error): New.
16688 (gdbchar): New.
16689 (expect): Use gdbchar. Check for error reading from GDB.
16690 Clarify sync error output.
16691 (play): Check for errors writing to GDB.
16692 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16693 * remote-utils.c (getpkt): Check for errors writing to the remote
16694 descriptor.
16695
16696 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16697
16698 * linux-low.c (linux_wait_1): Move non-debugging code out of
16699 `debug_threads' control.
16700
16701 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16702
16703 * linux-low.c (linux_wait_1): Don't set last_status here.
16704 * server.c (push_event, queue_stop_reply_callback): Assert we're
16705 not pushing a TARGET_WAITKIND_IGNORE event.
16706 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16707 (myresume, handle_target_event): Set the thread's last_resume_kind
16708 and last_status from the target returned status.
16709
16710 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16711
16712 PR threads/10729
16713
16714 * linux-x86-low.c (update_debug_registers_callback): New.
16715 (i386_dr_low_set_addr): Use it.
16716 (i386_dr_low_get_addr): New.
16717 (i386_dr_low_set_control): Use update_debug_registers_callback.
16718 (i386_dr_low_get_control): New.
16719 (i386_dr_low_get_status): Adjust.
16720 * linux-low.c (linux_stop_lwp): New.
16721 * linux-low.h (linux_stop_lwp): Declare.
16722
16723 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16724 argument instead of a i386_debug_reg_state.
16725 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16726 a i386_debug_reg_state.
16727 (i386_insert_aligned_watchpoint): Adjust.
16728 (i386_remove_aligned_watchpoint): Adjust.
16729 (i386_low_stopped_data_address): Read the debug registers from the
16730 inferior instead of from the mirrors.
16731 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16732 (i386_dr_low_get_addr): Declare.
16733 (i386_dr_low_get_control): Declare.
16734 (i386_dr_low_get_status): Change prototype.
16735
16736 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16737 (i386_dr_low_get_addr): New.
16738 (i386_dr_low_get_control): New.
16739 (i386_dr_low_get_status): Adjust prototype. Return
16740 dr_status_mirror.
16741 (i386_initial_stuff): Clear dr_status_mirror and
16742 dr_control_mirror.
16743 (i386_get_thread_context): Adjust.
16744 (i386_set_thread_context): Adjust.
16745 (i386_thread_added): Adjust.
16746
16747 2010-08-24 Pedro Alves <pedro@codesourcery.com>
16748
16749 * linux-low.h (linux_thread_area): Delete declaration.
16750
16751 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16752
16753 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16754 after its termination.
16755
16756 2010-08-09 Pedro Alves <pedro@codesourcery.com>
16757
16758 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16759 (gdb_wants_all_stopped): Delete.
16760 (linux_wait_1): Don't call them.
16761 * server.c (handle_v_cont): Tag all threads as want-stopped.
16762 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16763 stopped as "client-wants-stopped".
16764
16765 2010-07-31 Pedro Alves <pedro@codesourcery.com>
16766
16767 * Makefile.in (signals_h): New.
16768 (server_h): Depend on it.
16769 (server.o): Don't depend on $(signals_def).
16770 (signals.o): Depend on $(signals_def).
16771
16772 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16773
16774 * Makefile.in (signals_def): New.
16775 (server_h): Append include/gdb/signals.h and signals_def.
16776 (server.o): Append signals_def.
16777
16778 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16779
16780 * server.c (handle_target_event): Use target_signal_to_host for
16781 resume_info.sig initialization.
16782 * target.h (struct thread_resume) <sig>: New comment.
16783
16784 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16785
16786 * server.c (handle_query): strcpy() the returned string from paddress()
16787 instead of sprintf().
16788 * utils.c (paddress): Return phex_nz().
16789
16790 2010-07-07 Joel Brobecker <brobecker@adacore.com>
16791
16792 * server.c (handle_v_cont): Call mourn_inferior if process
16793 just exited.
16794 (myresume): Likewise.
16795
16796 2010-07-01 Pedro Alves <pedro@codesourcery.com>
16797
16798 Static tracepoints, and integration with UST.
16799
16800 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16801 * mem-break.c (uninsert_all_breakpoints)
16802 (reinsert_all_breakpoints): New.
16803 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16804 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16805 (gdb_agent_ust_loaded, helper_thread_id)
16806 (gdb_agent_helper_thread_id): New macros.
16807 (struct ipa_sym_addresses): Add addr_ust_loaded,
16808 addr_helper_thread_id, addr_cmd_buf.
16809 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16810 (in_process_agent_loaded_ust): New.
16811 (write_e_ust_not_loaded): New.
16812 (maybe_write_ipa_ust_not_loaded): New.
16813 (struct collect_static_trace_data_action): New.
16814 (enum tracepoint_type) <static_tracepoint>: New.
16815 (struct tracepoint) <handle>: Mention static tracepoints.
16816 (struct static_tracepoint_ctx): New.
16817 (CMD_BUF_SIZE): New.
16818 (add_tracepoint_action): Handle static tracepoint actions.
16819 (unprobe_marker_at): New.
16820 (clear_installed_tracepoints): Handle static tracepoints.
16821 (cmd_qtdp): Handle static tracepoints.
16822 (probe_marker_at): New.
16823 (cmd_qtstart): Handle static tracepoints.
16824 (response_tracepoint): Handle static tracepoints.
16825 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16826 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16827 (get_context_regcache): Handle static tracepoints.
16828 (do_action_at_tracepoint): Handle static tracepoint actions.
16829 (traceframe_find_block_type): Handle static trace data blocks.
16830 (traceframe_read_sdata): New.
16831 (download_tracepoints): Download static tracepoint actions.
16832 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16833 (GDB_PROBE_NAME): New.
16834 (ust_ops): New.
16835 (GET_UST_SYM): New.
16836 (USTF): New.
16837 (dlsym_ust): New.
16838 (ust_marker_to_static_tracepoint): New.
16839 (gdb_probe): New.
16840 (collect_ust_data_at_tracepoint): New.
16841 (gdb_ust_probe): New.
16842 (UNIX_PATH_MAX, SOCK_DIR): New.
16843 (gdb_ust_connect_sync_socket): New.
16844 (resume_thread, stop_thread): New.
16845 (run_inferior_command): New.
16846 (init_named_socket): New.
16847 (gdb_ust_socket_init): New.
16848 (cstr_to_hexstr): New.
16849 (next_st): New.
16850 (first_marker, next_marker): New.
16851 (response_ust_marker): New.
16852 (cmd_qtfstm, cmd_qtsstm): New.
16853 (unprobe_marker_at, probe_marker_at): New.
16854 (cmd_qtstmat, gdb_ust_thread): New.
16855 (gdb_ust_init): New.
16856 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16857 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16858 (ST_REGENTRY): New.
16859 (x86_64_st_collect_regmap): New.
16860 (X86_64_NUM_ST_COLLECT_GREGS): New.
16861 (AMD64_RIP_REGNUM): New.
16862 (supply_static_tracepoint_registers): New.
16863 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16864 (ST_REGENTRY): New.
16865 (i386_st_collect_regmap): New.
16866 (i386_NUM_ST_COLLECT_GREGS): New.
16867 (supply_static_tracepoint_registers): New.
16868 * server.c (handle_query): Handle qXfer:statictrace:read.
16869 <qSupported>: Report support for StaticTracepoints, and
16870 qXfer:statictrace:read features.
16871 * server.h (traceframe_read_sdata)
16872 (supply_static_tracepoint_registers): Declare.
16873 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16874 (unpack_varlen_hex): Include in IPA build.
16875 * Makefile.in (ustlibs, ustinc): New.
16876 (IPA_OBJS): Add remote-utils-ipa.o.
16877 ($(IPA_LIB)): Link -ldl and -lpthread.
16878 (UST_CFLAGS): New.
16879 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16880 * config.in, configure: Regenerate.
16881
16882 2010-06-20 Ian Lance Taylor <iant@google.com>
16883 Pedro Alves <pedro@codesourcery.com>
16884
16885 * linux-x86-low.c (always_true): Delete.
16886 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16887 trying to fool the compiler with always_true.
16888
16889 2010-06-20 Pedro Alves <pedro@codesourcery.com>
16890
16891 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16892 conditions in gdbserver.
16893
16894 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16895
16896 * spu-low.c (spu_read_memory): Wrap around local store limit.
16897 (spu_write_memory): Likewise.
16898
16899 2010-06-15 Pedro Alves <pedro@codesourcery.com>
16900
16901 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16902 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16903 LONGEST uses.
16904 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16905 uses.
16906 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16907 uses with LONGEST uses.
16908
16909 2010-06-14 Stan Shebs <stan@codesourcery.com>
16910 Pedro Alves <pedro@codesourcery.com>
16911
16912 Bytecode compiler.
16913
16914 * linux-x86-low.c: Include limits.h.
16915 (add_insns): New.
16916 (always_true): New.
16917 (EMIT_ASM): New.
16918 (EMIT_ASM32): New.
16919 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16920 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16921 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16922 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16923 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16924 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16925 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16926 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16927 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16928 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16929 (amd64_emit_void_call_2): New.
16930 (amd64_emit_ops): New.
16931 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16932 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16933 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16934 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16935 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16936 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16937 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16938 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16939 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
16940 (i386_emit_stack_adjust, i386_emit_int_call_1)
16941 (i386_emit_void_call_2): New.
16942 (i386_emit_ops): New.
16943 (x86_emit_ops): New.
16944 (the_low_target): Install x86_emit_ops.
16945 * server.h (struct emit_ops): New.
16946 (get_raw_reg_func_addr): Declare.
16947 (current_insn_ptr, emit_error): Declare.
16948 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
16949 (set_trace_state_variable_value): New defines.
16950 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
16951 addr_get_trace_state_variable_value and
16952 addr_set_trace_state_variable_value.
16953 (symbol_list): New fields for get_raw_reg,
16954 get_trace_state_variable_value and set_trace_state_variable_value.
16955 (condfn): New typedef.
16956 (struct tracepoint): New field `compiled_cond'.
16957 (do_action_at_tracepoint): Clear compiled_cond.
16958 (get_trace_state_variable_value, set_trace_state_variable_value):
16959 Export in the IPA.
16960 (condition_true_at_tracepoint): If there's a compiled condition,
16961 run that.
16962 (current_insn_ptr, emit_error): New globals.
16963 (struct bytecode_address): New.
16964 (get_raw_reg_func_addr): New.
16965 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
16966 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
16967 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
16968 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
16969 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
16970 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
16971 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
16972 (compile_tracepoint_condition, compile_bytecodes): New.
16973 * target.h (emit_ops): Forward declare.
16974 (struct target_ops): New field emit_ops.
16975 (target_emit_ops): New.
16976 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
16977 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
16978 * linux-low.c (linux_emit_ops): New.
16979 (linux_target_ops): Install it.
16980 * linux-low.h (struct linux_target_ops): New field emit_ops.
16981
16982 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
16983
16984 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
16985 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
16986
16987 2010-06-01 Pedro Alves <pedro@codesourcery.com>
16988 Stan Shebs <stan@codesourcery.com>
16989
16990 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
16991 (all): Depend on $(extra_libraries).
16992 (install-only): Install the IPA.
16993 (IPA_OBJS, IPA_LIB): New.
16994 (clean): Remove the IPA lib.
16995 (IPAGENT_CFLAGS): New.
16996 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
16997 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
16998 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
16999 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17000 * configure.ac: Check for atomic builtins support in the compiler.
17001 (IPA_DEPFILES, extra_libraries): Define.
17002 * configure.srv (ipa_obj): Add description.
17003 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17004 (i[34567]86-*-linux*): Set ipa_obj.
17005 (x86_64-*-linux*): Set ipa_obj.
17006 * linux-low.c (stabilizing_threads): New.
17007 (supports_fast_tracepoints): New.
17008 (linux_detach): Stabilize threads before detaching.
17009 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17010 the lwp is either not stabilizing, or is moving out of a jump pad.
17011 (linux_fast_tracepoint_collecting): New.
17012 (maybe_move_out_of_jump_pad): New.
17013 (enqueue_one_deferred_signal): New.
17014 (dequeue_one_deferred_signal): New.
17015 (linux_wait_for_event_1): If moving out of a jump pad, defer
17016 pending signals to later.
17017 (linux_stabilize_threads): New.
17018 (linux_wait_1): Check if threads need moving out of jump pads, and
17019 do it if so.
17020 (stuck_in_jump_pad_callback): New.
17021 (move_out_of_jump_pad_callback): New.
17022 (lwp_running): New.
17023 (linux_resume_one_lwp): Handle moving out of jump pads.
17024 (linux_set_resume_request): Dequeue deferred signals.
17025 (need_step_over_p): Also step over fast tracepoint jumps.
17026 (start_step_over): Also uninsert fast tracepoint jumps.
17027 (finish_step_over): Also reinsert fast tracepoint jumps.
17028 (linux_install_fast_tracepoint_jump): New.
17029 (linux_target_ops): Install linux_stabilize_threads and
17030 linux_install_fast_tracepoint_jump_pad.
17031 * linux-low.h (linux_target_ops) <get_thread_area,
17032 install_fast_tracepoint_jump_pad>: New fields.
17033 (struct lwp_info) <collecting_fast_tracepoint,
17034 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17035 (linux_get_thread_area): Declare.
17036 * linux-x86-low.c (jump_insn): New.
17037 (x86_get_thread_area): New.
17038 (append_insns): New.
17039 (push_opcode): New.
17040 (amd64_install_fast_tracepoint_jump_pad): New.
17041 (i386_install_fast_tracepoint_jump_pad): New.
17042 (x86_install_fast_tracepoint_jump_pad): New.
17043 (the_low_target): Install x86_get_thread_area and
17044 x86_install_fast_tracepoint_jump_pad.
17045 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17046 (struct fast_tracepoint_jump): New.
17047 (fast_tracepoint_jump_insn): New.
17048 (fast_tracepoint_jump_shadow): New.
17049 (find_fast_tracepoint_jump_at): New.
17050 (fast_tracepoint_jump_here): New.
17051 (delete_fast_tracepoint_jump): New.
17052 (set_fast_tracepoint_jump): New.
17053 (uninsert_fast_tracepoint_jumps_at): New.
17054 (reinsert_fast_tracepoint_jumps_at): New.
17055 (set_breakpoint_at): Use write_inferior_memory.
17056 (uninsert_raw_breakpoint): Use write_inferior_memory.
17057 (check_mem_read): Mask out fast tracepoint jumps.
17058 (check_mem_write): Mask out fast tracepoint jumps.
17059 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17060 (set_fast_tracepoint_jump): Declare.
17061 (delete_fast_tracepoint_jump)
17062 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17063 (reinsert_fast_tracepoint_jumps_at): Declare.
17064 * regcache.c: Don't compile many functions when building the
17065 in-process agent library.
17066 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17067 the register buffer in the heap.
17068 (free_register_cache): If the register buffer isn't owned by the
17069 regcache, don't free it.
17070 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17071 pre-existing register caches.
17072 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17073 type.
17074 (convert_ascii_to_int): : Constify `from' parameter type.
17075 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17076 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17077 the needed buffer in-place.
17078 (relocate_instruction): New.
17079 * server.c (handle_query) <qSymbols>: If the target supports
17080 tracepoints, give it a chance of looking up symbols. Report
17081 support for fast tracepoints.
17082 (handle_status): Stabilize threads.
17083 (process_serial_event): Adjust.
17084 * server.h (struct fast_tracepoint_jump): Forward declare.
17085 (struct process_info) <fast_tracepoint_jumps>: New field.
17086 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17087 (decode_X_packet, decode_M_packet): Adjust.
17088 (relocate_instruction): Declare.
17089 (in_process_agent_loaded): Declare.
17090 (tracepoint_look_up_symbols): Declare.
17091 (struct fast_tpoint_collect_status): Declare.
17092 (fast_tracepoint_collecting): Declare.
17093 (force_unlock_trace_buffer): Declare.
17094 (handle_tracepoint_bkpts): Declare.
17095 (initialize_low_tracepoint)
17096 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17097 * target.h (struct target_ops) <stabilize_threads,
17098 install_fast_tracepoint_jump_pad>: New fields.
17099 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17100 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17101 [HAVE_STDINT_H]: Include stdint.h.
17102 (trace_debug_1): Rename to ...
17103 (trace_vdebug): ... this.
17104 (trace_debug): Rename to ...
17105 (trace_debug_1): ... this. Add `level' parameter.
17106 (trace_debug): New.
17107 (ATTR_USED, ATTR_NOINLINE): New.
17108 (IP_AGENT_EXPORT): New.
17109 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17110 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17111 (about_to_request_buffer_space, trace_buffer_is_full)
17112 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17113 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17114 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17115 (traceframe_write_count, traceframes_created)
17116 (trace_state_variables)
17117 New renaming defines.
17118 (struct ipa_sym_addresses): New.
17119 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17120 (symbol_list): New.
17121 (ipa_sym_addrs): New.
17122 (all_tracepoint_symbols_looked_up): New.
17123 (in_process_agent_loaded): New.
17124 (write_e_ipa_not_loaded): New.
17125 (maybe_write_ipa_not_loaded): New.
17126 (tracepoint_look_up_symbols): New.
17127 (debug_threads) [IN_PROCESS_AGENT]: New.
17128 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17129 (UNKNOWN_SIDE_EFFECTS): New.
17130 (stop_tracing): New.
17131 (flush_trace_buffer): New.
17132 (stop_tracing_bkpt): New.
17133 (flush_trace_buffer_bkpt): New.
17134 (read_inferior_integer): New.
17135 (read_inferior_uinteger): New.
17136 (read_inferior_data_pointer): New.
17137 (write_inferior_data_pointer): New.
17138 (write_inferior_integer): New.
17139 (write_inferior_uinteger): New.
17140 (struct collect_static_trace_data_action): Delete.
17141 (enum tracepoint_type): New.
17142 (struct tracepoint) <type>: New field `type'.
17143 <actions_str, step_actions, step_actions_str>: Only include in
17144 GDBserver.
17145 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17146 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17147 (tracepoints): Use IP_AGENT_EXPORT.
17148 (last_tracepoint): Don't include in the IPA.
17149 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17150 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17151 (alloced_trace_state_variables): New.
17152 (trace_state_variables): Use IP_AGENT_EXPORT.
17153 (traceframe_t): Delete unused variable.
17154 (circular_trace_buffer): Don't include in the IPA.
17155 (trace_buffer_start): Delete.
17156 (struct trace_buffer_control): New.
17157 (trace_buffer_free): Delete.
17158 (struct ipa_trace_buffer_control): New.
17159 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17160 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17161 New.
17162 (trace_buffer_ctrl): New.
17163 (TRACE_BUFFER_CTRL_CURR): New.
17164 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17165 Reimplement as macros.
17166 (trace_buffer_wrap): Delete.
17167 (traceframe_write_count, traceframe_read_count)
17168 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17169 (struct tracepoint_hit_ctx) <type>: New field.
17170 (struct fast_tracepoint_ctx): New.
17171 (memory_barrier): New.
17172 (cmpxchg): New.
17173 (record_tracepoint_error): Update atomically in the IPA.
17174 (clear_inferior_trace_buffer): New.
17175 (about_to_request_buffer_space): New.
17176 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17177 updating the same buffer.
17178 (add_tracepoint): Default the tracepoint's type to trap
17179 tracepoint, and orig_size to -1.
17180 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17181 internal variables.
17182 (create_trace_state_variable): New parameter `gdb'. Handle it.
17183 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17184 (cmd_qtdp): Handle fast tracepoints.
17185 (cmd_qtdv): Adjust.
17186 (max_jump_pad_size): New.
17187 (gdb_jump_pad_head): New.
17188 (get_jump_space_head): New.
17189 (claim_jump_space): New.
17190 (sort_tracepoints): New.
17191 (MAX_JUMP_SIZE): New.
17192 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17193 IPA.
17194 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17195 support. Upload fast traceframes, and delete internal IPA
17196 breakpoints.
17197 (stop_tracing_handler): New.
17198 (flush_trace_buffer_handler): New.
17199 (cmd_qtstop): Upload fast tracepoints.
17200 (response_tracepoint): Handle fast tracepoints.
17201 (tracepoint_finished_step): Upload fast traceframes. Set the
17202 tracepoint hit context's tracepoint type.
17203 (handle_tracepoint_bkpts): New.
17204 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17205 type. Add comment about fast tracepoints.
17206 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17207 non-existing action_str field.
17208 (get_context_regcache): Handle fast tracepoints.
17209 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17210 to the regcache.
17211 (fast_tracepoint_from_jump_pad_address): New.
17212 (fast_tracepoint_from_ipa_tpoint_address): New.
17213 (collecting_t): New.
17214 (force_unlock_trace_buffer): New.
17215 (fast_tracepoint_collecting): New.
17216 (collecting): New.
17217 (gdb_collect): New.
17218 (write_inferior_data_ptr): New.
17219 (target_tp_heap): New.
17220 (target_malloc): New.
17221 (download_agent_expr): New.
17222 (UALIGN): New.
17223 (download_tracepoints): New.
17224 (download_trace_state_variables): New.
17225 (upload_fast_traceframes): New.
17226 (IPA_FIRST_TRACEFRAME): New.
17227 (IPA_NEXT_TRACEFRAME_1): New.
17228 (IPA_NEXT_TRACEFRAME): New.
17229 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17230 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17231 (gdb_jump_pad_buffer_end): New.
17232 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17233 (initialize_tracepoint): Adjust.
17234 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17235 buffer. Initialize the low module.
17236 * utils.c (PREFIX, TOOLNAME): New.
17237 (malloc_failure): Use PREFIX.
17238 (error): In the IPA, an error causes an exit.
17239 (fatal, warning): Use PREFIX.
17240 (internal_error): Use TOOLNAME.
17241 (NUMCELLS): Increase to 10.
17242 * configure, config.in: Regenerate.
17243
17244 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17245
17246 * server.c (handle_query) <qSupported>: Do two passes over the
17247 qSupported string to avoid nesting strtok.
17248
17249 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17250
17251 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17252 (CDEPS): New.
17253 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17254 -Wl,--dynamic-list.
17255 * configure: Regenerate.
17256 * proc-service.list: New.
17257
17258 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17259
17260 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17261 New comment.
17262
17263 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17264
17265 * gdbreplay.c (remote_open): Check error return from socket() call by
17266 its equality to -1 not by it being negative.
17267 * remote-utils.c (remote_open): Likewise.
17268
17269 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17270
17271 * config.h: Regenerate.
17272
17273 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17274
17275 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17276 doesn't provide PTRACE_GET_THREAD_AREA.
17277
17278 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17279
17280 * linux-m68k-low.c: Include <asm/ptrace.h>
17281 (ps_get_thread_area): Implement.
17282
17283 2010-05-03 Doug Evans <dje@google.com>
17284
17285 * event-loop.c (struct callback_event): New struct.
17286 (callback_list): New global.
17287 (append_callback_event, delete_callback_event): New functions.
17288 (process_callback): New function.
17289 (start_event_loop): Call it.
17290 * remote-utils.c (NOT_SCHEDULED): Define.
17291 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17292 moved out of readchar.
17293 (readchar): Rewrite. Call reschedule before returning.
17294 (reset_readchar): New function.
17295 (remote_close): Call it.
17296 (process_remaining, reschedule): New functions.
17297 * server.h (callback_handler_func): New typedef.
17298 (append_callback_event, delete_callback_event): Declare.
17299
17300 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17301
17302 * proc-service.c (ps_pglobal_lookup): Use
17303 thread_db_look_up_one_symbol.
17304 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17305 parameter. Use it instead of all_symbols_looked_up.
17306 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17307 field.
17308 (all_symbols_looked_up): Don't declare.
17309 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17310 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17311 field.
17312 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17313 Set all_symbols_looked_up here.
17314 (thread_db_look_up_one_symbol): New.
17315 (thread_db_get_tls_address): Adjust.
17316 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17317 thread_db object on the heap, and tentatively set it in the
17318 process structure.
17319 (thread_db_init): Don't set all_symbols_looked_up here.
17320 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17321
17322 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17323
17324 * linux-low.c (linux_kill, linux_detach): Adjust.
17325 (status_pending_p_callback): Remove redundant statement. Check
17326 for !TARGET_WAITIKIND_IGNORE, instead of
17327 TARGET_WAITKIND_STOPPED.
17328 (handle_tracepoints): Make sure LWP is locked. Adjust.
17329 (linux_wait_for_event_1): Adjust.
17330 (linux_cancel_breakpoints): New.
17331 (unsuspend_one_lwp): New.
17332 (unsuspend_all_lwps): New.
17333 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17334 (send_sigstop_callback): Change return type to int, add new
17335 `except' parameter and handle it.
17336 (suspend_and_send_sigstop_callback): New.
17337 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17338 pass them down. If SUSPEND, also increment the lwp's suspend
17339 count.
17340 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17341 (need_step_over_p): Don't consider suspended LWPs.
17342 (start_step_over): Adjust.
17343 (proceed_one_lwp): Change return type to int, add new `except'
17344 parameter and handle it.
17345 (unsuspend_and_proceed_one_lwp): New.
17346 (proceed_all_lwps): Use find_inferior instead of
17347 for_each_inferior.
17348 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17349 also decrement the suspend count of LWPs. Pass `except' down,
17350 instead of hacking its suspend count.
17351 (linux_pause_all): Add `freeze' parameter. Adjust.
17352 (linux_unpause_all): New.
17353 (linux_target_ops): Install linux_unpause_all.
17354 * server.c (handle_status): Adjust.
17355 * target.h (struct target_ops): New fields `unpause_all' and
17356 `cancel_breakpoints'. Add new parameter to `pause_all'.
17357 (pause_all): Add new `freeze' parameter.
17358 (unpause_all): New.
17359 (cancel_breakpoints): New.
17360 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17361 cancel breakpoints.
17362 (cmd_qtstart): Pause threads.
17363 (stop_tracing): Pause threads, and cancel breakpoints.
17364 * win32-low.c (win32_target_ops): Adjust.
17365
17366 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17367
17368 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17369 the inferior right away from here...
17370 (linux_wait_1): ... to here, and adjust to check the thread's
17371 last_resume_kind instead of the lwp's step or stop_expected flags.
17372
17373 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17374
17375 * README: Use consistent `GDB' and `GDBserver' spellings.
17376
17377 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17378
17379 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17380 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17381 (linux_detach_one_lwp): Assume the lwp is stopped.
17382 (any_thread_of): Delete.
17383 (linux_detach): Stop all lwps here. Don't blindly delete all
17384 breakpoints.
17385 (delete_lwp_callback): New.
17386 (linux_mourn): Delete all lwps of the process that is gone.
17387 (linux_wait_1): Don't delete the last lwp of the process here.
17388 * mem-break.h (mark_breakpoints_out): Declare.
17389 * mem-break.c (mark_breakpoints_out): New.
17390 (free_all_breakpoints): Use it.
17391 * server.c (handle_target_event): If the process is gone, mark
17392 breakpoints out.
17393 * thread-db.c (struct thread_db) <create_bp>: New field.
17394 (thread_db_enable_reporting): Fix prototype. Store a thread event
17395 breakpoint reference in the thread_db struct.
17396 (thread_db_load_search): Clear the thread_db object.
17397 (try_thread_db_load_1): Ditto.
17398 (switch_to_process): New.
17399 (disable_thread_event_reporting): Use it.
17400 (remove_thread_event_breakpoints): New.
17401 (thread_db_detach, thread_db_mourn): Use it.
17402
17403 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17404
17405 * linux-low.c (linux_enable_event_reporting): New.
17406 (linux_wait_for_event_1, handle_extended_wait): Use it.
17407
17408 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17409
17410 * linux-low.c (linux_kill_one_lwp, linux_kill)
17411 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17412 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17413 SIGSTOP even if the LWP is stopped.
17414 (send_sigstop_callback): New.
17415 (stop_all_lwps): Use send_sigstop_callback instead.
17416 (linux_resume_one_thread): Adjust.
17417 (proceed_one_lwp): Still proceed an LWP that the client has
17418 requested to stop, if we haven't reported it as stopped yet. Make
17419 sure that LWPs the client want stopped, have a pending SIGSTOP.
17420
17421 2010-04-26 Doug Evans <dje@google.com>
17422
17423 * server.c (handle_general_set): Make static.
17424
17425 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17426 Print received char after testing for error/eof instead of before.
17427 (input_interrupt): Tweak comment.
17428
17429 2010-04-23 Doug Evans <dje@google.com>
17430
17431 * server.c (start_inferior): Print inferior argv if --debug.
17432
17433 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17434
17435 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17436 * nto-x86-low.c: Include server.h
17437
17438 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17439
17440 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17441 be consistent with other sources of this directory.
17442 (init_registers_amd64): Correct name of source file of this function
17443 in the comment.
17444
17445 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17446
17447 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17448 64-bit executables.
17449
17450 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17451
17452 * win32-i386-low.c: Add 64-bit support.
17453 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17454 (init_registers_amd64): Declare.
17455 (mappings): Add 64-bit version of array.
17456 (init_windows_x86): New function.
17457 (the_low_target): Change init_arch field to init_windows_x86.
17458
17459 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17460
17461 * win32-low.c: Adapt to support also 64-bit architecture.
17462 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17463 (get_image_name): Use SIZE_T type for local variable `done'.
17464 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17465 (toolhelp_get_dll_name): Idem.
17466 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17467 Use uintptr_t typecast to avoid warning.
17468 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17469 (handle_exception): Use phex_nz to avoid warning.
17470 (win32_wait): Remove unused local variable `process'.
17471
17472 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17473
17474 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17475 `amd64-avx.o'.
17476
17477 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17478
17479 * configure.ac: Use `ws2_32' library for srv_mingw.
17480 * configure: Regenerate.
17481 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17482 * remote-utils.c: Likewise.
17483
17484 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17485
17486 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17487 if __x86_64__ is defined.
17488
17489 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17490
17491 * configure: Regenerate.
17492
17493 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17494
17495 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17496 * target.h (target_ops): New get_tib_address field.
17497 * win32-low.h (win32_thread_info): Add thread_local_base field.
17498 * win32-low.c (child_add_thread): Add tlb argument.
17499 Set thread_local_base field to TLB.
17500 (get_child_debug_event): Adapt to child_add_thread change.
17501 (win32_get_tib_address): New function.
17502 (win32_target_ops): Set get_tib_address field to
17503 win32_get_tib_address.
17504 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17505
17506 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17507
17508 * linux-low.c (linux_mourn): Also remove the process.
17509 * server.c (handle_target_event): Don't remove the process here.
17510 * nto-low.c (nto_mourn): New.
17511 (nto_target_ops): Install it.
17512 * spu-low.c (spu_mourn): New.
17513 (spu_target_ops): Install it.
17514 * win32-low.c (win32_mourn): New.
17515 (win32_target_ops): Install it.
17516
17517 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17518
17519 * server.h (buffer_xml_printf): Remove redundant `;'.
17520
17521 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17522
17523 * regcache.c (set_register_cache): Invalidate regcaches before
17524 changing the register cache layout.
17525 (regcache_invalidate_one): Allow a NULL regcache.
17526 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17527 regcaches before changing the register cache layout or the target
17528 regsets.
17529
17530 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17531
17532 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17533 variable warning on Linux/x86-64.
17534
17535 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17536
17537 GDBserver disconnected tracing support.
17538
17539 * linux-low.c (linux_remove_process): Delete.
17540 (add_lwp): Don't set last_resume_kind here.
17541 (linux_kill): Use `mourn'.
17542 (linux_detach): Use `thread_db_detach', and `mourn'.
17543 (linux_mourn): New.
17544 (linux_attach_lwp_1): Adjust comment.
17545 (linux_attach): last_resume_kind moved the thread_info; adjust.
17546 (status_pending_p_callback): Adjust.
17547 (linux_wait_for_event_1): Adjust.
17548 (count_events_callback, select_singlestep_lwp_callback)
17549 (select_event_lwp_callback, cancel_breakpoints_callback)
17550 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17551 (proceed_one_lwp): Adjust.
17552 (linux_async): Add debug output.
17553 (linux_thread_stopped): New.
17554 (linux_pause_all): New.
17555 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17556 linux_pause_all.
17557 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17558 (thread_db_free): Delete declaration.
17559 (thread_db_detach, thread_db_mourn): Declare.
17560 * thread-db.c (thread_db_init): Use thread_db_mourn.
17561 (thread_db_free): Delete, split in two.
17562 (disable_thread_event_reporting): New.
17563 (thread_db_detach): New.
17564 (thread_db_mourn): New.
17565
17566 * server.h (struct thread_info) <last_resume_kind>: New field.
17567 <attached>: Add comment.
17568 <gdb_detached>: New field.
17569 (handler_func): Change return type to int.
17570 (handle_serial_event, handle_target_event): Ditto.
17571 (gdb_connected): Declare.
17572 (tracing): Delete.
17573 (disconnected_tracing): Declare.
17574 (stop_tracing): Declare.
17575
17576 * server.c (handle_query) <qSupported>: Report support for
17577 disconnected tracing.
17578 (queue_stop_reply_callback): Account for running threads.
17579 (gdb_wants_thread_stopped): New.
17580 (gdb_wants_all_threads_stopped): New.
17581 (gdb_reattached_process): New.
17582 (handle_status): Clear the `gdb_detached' flag of all processes.
17583 In all-stop, stop all threads.
17584 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17585 (process_serial_event): If the remote connection breaks, or if an
17586 exit was forced with "monitor exit", force an event loop exit.
17587 Handle disconnected tracing on detach.
17588 (handle_serial_event): Adjust.
17589 (handle_target_event): If GDB isn't connected, forward events back
17590 to the inferior, unless the last process exited, in which case,
17591 exit gdbserver. Adjust interface.
17592
17593 * remote-utils.c (remote_open): Don't block in accept. Instead
17594 register an event loop source on the listen socket file
17595 descriptor. Refactor bits into ...
17596 (listen_desc): ... this new global.
17597 (gdb_connected): ... this new function.
17598 (enable_async_notification): ... this new function.
17599 (handle_accept_event): ... this new function.
17600 (remote_close): Clear remote_desc.
17601
17602 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17603
17604 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17605 New fields.
17606 (mourn_inferior): Define.
17607 (target_process_qsupported): Avoid the dangling else problem.
17608 (thread_stopped): Define.
17609 (pause_all): Define.
17610 (target_waitstatus_to_string): Declare.
17611 * target.c (target_waitstatus_to_string): New.
17612
17613 * tracepoint.c (tracing): Make extern.
17614 (disconnected_tracing): New.
17615 (stop_tracing): Make extern. Handle tracing stops due to GDB
17616 disconnecting.
17617 (cmd_qtdisconnected): New.
17618 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17619 (handle_tracepoint_general_set): Handle QTDisconnected.
17620
17621 * event-loop.c (event_handler_func): Change return type to int.
17622 (process_event): Bail out if the event handler wants the event
17623 loop to stop.
17624 (handle_file_event): Ditto.
17625 (start_event_loop): Bail out if the event handler wants the event
17626 loop to stop.
17627
17628 * nto-low.c (nto_target_ops): Adjust.
17629 * spu-low.c (spu_wait): Don't remove the process here.
17630 (spu_target_ops): Adjust.
17631 * win32-low.c (win32_wait): Don't remove the process here.
17632 (win32_target_ops): Adjust.
17633
17634 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17635
17636 * regcache.c (realloc_register_cache): Invalidate inferior's
17637 regcache before recreating it.
17638
17639 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17640
17641 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17642
17643 2010-04-09 Stan Shebs <stan@codesourcery.com>
17644 Pedro Alves <pedro@codesourcery.com>
17645
17646 * server.h (LONGEST): New.
17647 (struct thread_info) <while_stepping>: New field.
17648 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17649 Declare.
17650 (initialize_tracepoint, handle_tracepoint_general_set)
17651 (handle_tracepoint_query, tracepoint_finished_step)
17652 (tracepoint_was_hit, release_while_stepping_state_list):
17653 (current_traceframe): Declare.
17654 * server.c (handle_general_set): Handle tracepoint packets.
17655 (read_memory): New.
17656 (write_memory): New.
17657 (handle_search_memory_1): Use read_memory.
17658 (handle_query): Report support for conditional tracepoints, trace
17659 state variables, and tracepoint sources. Handle tracepoint
17660 queries.
17661 (main): Initialize the tracepoints module.
17662 (process_serial_event): Handle traceframe reads/writes.
17663
17664 * linux-low.c (handle_tracepoints): New.
17665 (linux_wait_1): Call it.
17666 (linux_resume_one_lwp): Handle while-stepping.
17667 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17668 (linux_target_ops): Install them.
17669 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17670 New field.
17671 * linux-x86-low.c (x86_supports_tracepoints): New.
17672 (the_low_target). Install it.
17673
17674 * mem-break.h (delete_breakpoint): Declare.
17675 * mem-break.c (delete_breakpoint): Make external.
17676
17677 * target.h (struct target_ops): Add `supports_tracepoints',
17678 `read_pc', and `write_pc' fields.
17679 (target_supports_tracepoints): Define.
17680 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17681 (phex_nz): New.
17682
17683 * regcache.h (struct regcache) <registers_owned>: New field.
17684 (init_register_cache, regcache_cpy): Declare.
17685 (regcache_read_pc, regcache_write_pc): Declare.
17686 (register_cache_size): Declare.
17687 (supply_regblock): Declare.
17688 * regcache.c (init_register_cache): New.
17689 (new_register_cache): Use it.
17690 (regcache_cpy): New.
17691 (register_cache_size): New.
17692 (supply_regblock): New.
17693 (regcache_read_pc, regcache_write_pc): New.
17694
17695 * tracepoint.c: New.
17696
17697 * Makefile.in (OBS): Add tracepoint.o.
17698 (tracepoint.o): New rule.
17699
17700 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17701
17702 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17703 (i386-mmx.o): New.
17704 (i386-mmx.c): Likewise.
17705 (i386-mmx-linux.o): Likewise.
17706 (i386-mmx-linux.c): Likewise.
17707
17708 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17709 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17710 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17711 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17712
17713 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17714 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17715 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17716
17717 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17718
17719 * Makefile.in (clean): Updated.
17720 (i386-avx.o): New.
17721 (i386-avx.c): Likewise.
17722 (i386-avx-linux.o): Likewise.
17723 (i386-avx-linux.c): Likewise.
17724 (amd64-avx.o): Likewise.
17725 (amd64-avx.c): Likewise.
17726 (amd64-avx-linux.o): Likewise.
17727 (amd64-avx-linux.c): Likewise.
17728
17729 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17730 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17731 (srv_amd64_regobj): Add amd64-avx.o.
17732 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17733 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17734 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17735 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17736 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17737 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17738 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17739
17740 * i387-fp.c: Include "i386-xstate.h".
17741 (i387_xsave): New.
17742 (i387_cache_to_xsave): Likewise.
17743 (i387_xsave_to_cache): Likewise.
17744 (x86_xcr0): Likewise.
17745
17746 * i387-fp.h (i387_cache_to_xsave): Likewise.
17747 (i387_xsave_to_cache): Likewise.
17748 (x86_xcr0): Likewise.
17749
17750 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17751 * linux-crisv32-low.c (target_regsets): Likewise.
17752 * linux-m68k-low.c (target_regsets): Likewise.
17753 * linux-mips-low.c (target_regsets): Likewise.
17754 * linux-ppc-low.c (target_regsets): Likewise.
17755 * linux-s390-low.c (target_regsets): Likewise.
17756 * linux-sh-low.c (target_regsets): Likewise.
17757 * linux-sparc-low.c (target_regsets): Likewise.
17758 * linux-xtensa-low.c (target_regsets): Likewise.
17759
17760 * linux-low.c: Include <sys/uio.h>.
17761 (regsets_fetch_inferior_registers): Support nt_type.
17762 (regsets_store_inferior_registers): Likewise.
17763 (linux_process_qsupported): New.
17764 (linux_target_ops): Add linux_process_qsupported.
17765
17766 * linux-low.h (regset_info): Add nt_type.
17767 (linux_target_ops): Add process_qsupported.
17768
17769 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17770 and <sys/uio.h>.
17771 (init_registers_i386_avx_linux): New.
17772 (init_registers_amd64_avx_linux): Likewise.
17773 (xmltarget_i386_linux_no_xml): Likewise.
17774 (xmltarget_amd64_linux_no_xml): Likewise.
17775 (PTRACE_GETREGSET): Likewise.
17776 (PTRACE_SETREGSET): Likewise.
17777 (x86_fill_xstateregset): Likewise.
17778 (x86_store_xstateregset): Likewise.
17779 (use_xml): Likewise.
17780 (x86_linux_update_xmltarget): Likewise.
17781 (x86_linux_process_qsupported): Likewise.
17782 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17783 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17784 init_registers_i386_linux here. Call
17785 x86_linux_update_xmltarget.
17786 (the_low_target): Add x86_linux_process_qsupported.
17787
17788 * server.c (handle_query): Call target_process_qsupported.
17789
17790 * target.h (target_ops): Add process_qsupported.
17791 (target_process_qsupported): New.
17792
17793 2010-04-03 Pedro Alves <pedro@codesourcery.com>
17794
17795 * inferiors.c (add_thread): Set last_status kind to
17796 TARGET_WAITKIND_IGNORE.
17797 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17798 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17799 (linux_wait_1): Move `thread' local definition to block that uses
17800 it. Don't NULL initialize `event_child'.
17801 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17802 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17803 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17804
17805 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17806
17807 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17808 an extended waitstatus, or by a watchpoint.
17809 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17810 thread was stepping or has been stopped by a watchpoint.
17811
17812 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17813
17814 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17815 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17816 of another, then delete the previous, and validate all
17817 breakpoints.
17818 (validate_inserted_breakpoint): New.
17819 (delete_disabled_breakpoints): New.
17820 (validate_breakpoints): New.
17821 (check_mem_read): Validate breakpoints before trusting their
17822 shadow. Delete disabled breakpoints.
17823 (check_mem_write): Validate breakpoints before trusting they
17824 should be inserted. Delete disabled breakpoints.
17825 * mem-break.h (validate_breakpoints):
17826 * server.c (handle_query): Validate breakpoints when we see a
17827 qSymbol query.
17828
17829 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17830
17831 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17832 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17833 if we could tell there's a GDB breakpoint at stop_pc.
17834 (need_step_over_p): Don't do a step over if we find a GDB
17835 breakpoint at the resume PC.
17836
17837 * mem-break.c (struct raw_breakpoint): New.
17838 (enum bkpt_type): New type `gdb_breakpoint'.
17839 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17840 fields. New field `raw'.
17841 (find_raw_breakpoint_at): New.
17842 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17843 breakpoint instead.
17844 (set_breakpoint_at): Adjust.
17845 (delete_raw_breakpoint): New.
17846 (release_breakpoint): New.
17847 (delete_breakpoint): Rename to...
17848 (delete_breakpoint_1): ... this. Add proc parameter. Use
17849 release_breakpoint. Return ENOENT.
17850 (delete_breakpoint): Reimplement.
17851 (find_breakpoint_at): Delete.
17852 (find_gdb_breakpoint_at): New.
17853 (delete_breakpoint_at): Delete.
17854 (set_gdb_breakpoint_at): New.
17855 (delete_gdb_breakpoint_at): New.
17856 (gdb_breakpoint_here): New.
17857 (set_reinsert_breakpoint): Use release_breakpoint.
17858 (uninsert_breakpoint): Rename to ...
17859 (uninsert_raw_breakpoint): ... this.
17860 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17861 (reinsert_raw_breakpoint): Change parameter type to
17862 raw_breakpoint.
17863 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17864 instead.
17865 (check_breakpoints): Adjust. Use release_breakpoint.
17866 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17867 (breakpoint_inserted_here): Ditto.
17868 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17869 Don't trust the breakpoint's shadow if it is not inserted.
17870 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17871 (delete_all_breakpoints): Adjust.
17872 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17873 use delete_breakpoint_1.
17874
17875 * mem-break.h (breakpoints_supported): Delete declaration.
17876 (set_gdb_breakpoint_at): Declare.
17877 (gdb_breakpoint_here): Declare.
17878 (delete_breakpoint_at): Delete.
17879 (delete_gdb_breakpoint_at): Declare.
17880
17881 * server.h (struct raw_breakpoint): Forward declare.
17882 (struct process_info): New field `raw_breakpoints'.
17883
17884 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17885 breakpoints.
17886
17887 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17888
17889 * linux-low.c (status_pending_p_callback): Fix comment.
17890 (linux_wait_for_event_1): Move most of the internal breakpoint
17891 handling from here...
17892 (linux_wait_1): ... to here.
17893 (count_events_callback): New.
17894 (select_singlestep_lwp_callback): New.
17895 (select_event_lwp_callback): New.
17896 (cancel_breakpoints_callback): New.
17897 (select_event_lwp): New.
17898 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17899 priority to all LWPs that have had events that should be reported
17900 to the client. Cancel breakpoints when about to reporting the
17901 event to the client, not while stopping lwps. No longer cancel
17902 finished single-steps here.
17903 (cancel_finished_single_step): Delete.
17904 (cancel_finished_single_steps): Delete.
17905
17906 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17907
17908 * mem-break.c (enum bkpt_type): New.
17909 (struct breakpoint): New field `type'.
17910 (set_breakpoint_at): Change return type to struct breakpoint
17911 pointer. Set type to `other_breakpoint' by default.
17912 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17913 in the breakpoint list.
17914 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17915 (reinsert_breakpoint): Rename to ...
17916 (reinsert_raw_breakpoint): ... this.
17917 (reinsert_breakpoints_at): Adjust.
17918 * mem-break.h (struct breakpoint): Declare.
17919 (set_breakpoint_at): Change return type to struct breakpoint
17920 pointer.
17921
17922 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17923
17924 * server.c (handle_query): Assign, not compare.
17925
17926 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17927
17928 Teach linux gdbserver to step-over-breakpoints.
17929
17930 * linux-low.c (can_hardware_single_step): New.
17931 (supports_breakpoints): New.
17932 (handle_extended_wait): If stopping threads, read the stop pc of
17933 the new cloned LWP.
17934 (get_pc): New.
17935 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17936 low target doesn't support retrieving the PC.
17937 (add_lwp): Set last_resume_kind to resume_continue.
17938 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17939 (linux_attach): Don't clear stop_expected. Set the lwp's
17940 last_resume_kind to resume_stop.
17941 (linux_detach_one_lwp): Don't check for removed breakpoints.
17942 (check_removed_breakpoint): Delete.
17943 (status_pending_p): Rename to ...
17944 (status_pending_p_callback): ... this. Don't check for removed
17945 breakpoints. Don't consider threads that are stopped from GDB's
17946 perspective.
17947 (linux_wait_for_lwp): Always read the stop_pc here.
17948 (cancel_breakpoint): New.
17949 (step_over_bkpt): New global.
17950 (linux_wait_for_event_1): Implement stepping over breakpoints.
17951 (gdb_wants_lwp_stopped): New.
17952 (gdb_wants_all_stopped): New.
17953 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
17954 single-step traps here. Store the thread's last reported target
17955 wait status.
17956 (send_sigstop): Don't clear stop_expected. Always set it,
17957 instead.
17958 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
17959 (cancel_finished_single_step): New.
17960 (cancel_finished_single_steps): New.
17961 (wait_for_sigstop): Don't cancel finished single-step traps here.
17962 (linux_resume_one_lwp): Don't check for removed breakpoints.
17963 Don't set `step' on non-hardware step archs.
17964 (linux_set_resume_request): Ignore resume_stop requests if already
17965 stopping or stopped. Set the lwp's last_resume_kind.
17966 (resume_status_pending_p): Don't check for removed breakpoints.
17967 (need_step_over_p): New.
17968 (start_step_over): New.
17969 (finish_step_over): New.
17970 (linux_resume_one_thread): Always queue a sigstop for resume_stop
17971 requests. Clear the thread's last reported target waitstatus.
17972 Don't use the `suspended' flag. Don't consider pending breakpoints.
17973 (linux_resume): Start a step-over if necessary.
17974 (proceed_one_lwp): New.
17975 (proceed_all_lwps): New.
17976 (unstop_all_lwps): New.
17977 * linux-low.h (struct lwp_info): Rewrite comment for the
17978 `suspended' flag. Add the `stop_pc' field. Delete the
17979 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
17980 Add `'last_resume_kind' and `need_step_over' fields.
17981 * inferiors.c (struct thread_info): Delete, moved elsewhere.
17982 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
17983 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
17984 (set_raw_breakpoint_at): New.
17985 (set_breakpoint_at): Rewrite to use it.
17986 (reinsert_breakpoint_handler): Delete.
17987 (set_reinsert_breakpoint): New.
17988 (reinsert_breakpoint_by_bp): Delete.
17989 (delete_reinsert_breakpoints): New.
17990 (uninsert_breakpoint): Rewrite.
17991 (uninsert_breakpoints_at): New.
17992 (reinsert_breakpoint): Rewrite.
17993 (reinsert_breakpoints_at): New.
17994 (check_breakpoints): Rewrite.
17995 (breakpoint_here): New.
17996 (breakpoint_inserted_here): New.
17997 (check_mem_read): Adjust.
17998 * mem-break.h (breakpoints_supported, breakpoint_here)
17999 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18000 (reinsert_breakpoint_by_bp): Delete declaration.
18001 (delete_reinsert_breakpoints): Declare.
18002 (reinsert_breakpoint): Delete declaration.
18003 (reinsert_breakpoints_at): Declare.
18004 (uninsert_breakpoint): Delete declaration.
18005 (uninsert_breakpoints_at): Declare.
18006 (check_breakpoints): Adjust prototype.
18007 * server.h: Adjust include order.
18008 (struct thread_info): Declare here. Add a `last_status' field.
18009
18010 2010-03-23 Michael Snyder <msnyder@vmware.com>
18011
18012 * server.c (crc32): New function.
18013 (handle_query): Add handling for 'qCRC:' request.
18014
18015 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18016
18017 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18018 lwp had been stopped by a watchpoint.
18019
18020 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18021
18022 * server.h (internal_error): Declare.
18023 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18024 * utils.c (internal_error): New function.
18025
18026 2010-03-15 Andreas Schwab <schwab@redhat.com>
18027
18028 * configure.srv: Fix typo setting srv_regobj.
18029
18030 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18031
18032 * linux-low.c (fetch_register): Avoid passing a non string literal
18033 format to `error'.
18034 (usr_store_inferior_registers): Ditto.
18035
18036 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18037
18038 * linux-low.c (linux_write_memory): Bail out early if peeking
18039 memory failed.
18040
18041 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18042
18043 * linux-low.h (struct lwp_info): New fields
18044 `stopped_by_watchpoint' and `stopped_data_address'.
18045 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18046 here, and cache them in the lwp object.
18047 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18048 directly.
18049 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18050 field.
18051 (linux_stopped_by_watchpoint): Rewrite.
18052 (linux_stopped_data_address): Rewrite.
18053
18054 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18055
18056 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18057 switching the current inferior, not before.
18058
18059 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18060
18061 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18062 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18063 i386-linux.c and amd64-linux.c.
18064 (reg-i386.o): Removed.
18065 (reg-i386.c): Likewise.
18066 (reg-i386-linux.o): Likewise.
18067 (reg-i386-linux.c): Likewise.
18068 (reg-x86-64.o): Likewise.
18069 (reg-x86-64.c): Likewise.
18070 (reg-x86-64-linux.o): Likewise.
18071 (reg-x86-64-linux.c): Likewise.
18072 (i386.o): New.
18073 (i386.c): Likewise.
18074 (i386-linux.o): Likewise.
18075 (i386-linux.c): Likewise.
18076 (amd64.o): Likewise.
18077 (amd64.c): Likewise.
18078 (amd64-linux.o): Likewise.
18079 (amd64-linux.c): Likewise.
18080
18081 * configure.srv (srv_i386_regobj): New.
18082 (srv_i386_linux_regobj): Likewise.
18083 (srv_amd64_regobj): Likewise.
18084 (srv_amd64_linux_regobj): Likewise.
18085 (srv_i386_32bit_xmlfiles): Likewise.
18086 (srv_i386_64bit_xmlfiles): Likewise.
18087 (srv_i386_xmlfiles): Likewise.
18088 (srv_amd64_xmlfiles): Likewise.
18089 (srv_i386_linux_xmlfiles): Likewise.
18090 (srv_amd64_linux_xmlfiles): Likewise.
18091 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18092 srv_xmlfiles to $srv_i386_xmlfiles.
18093 (i[34567]86-*-mingw32ce*): Likewise.
18094 (i[34567]86-*-mingw*): Likewise.
18095 (i[34567]86-*-nto*): Likewise.
18096 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18097 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18098 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18099 (x86_64-*-linux*): Likewise.
18100
18101 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18102 (init_registers_amd64_linux): New.
18103 (x86_arch_setup): Replace init_registers_x86_64_linux with
18104 init_registers_amd64_linux.
18105
18106 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18107
18108 * configure.ac: Check for libdl. If it is not available link against
18109 static libthread_db.
18110 * configure: Regenerate.
18111
18112 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18113
18114 PR9605
18115
18116 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18117 handing a read watchpoint.
18118 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18119
18120 2010-02-12 Doug Evans <dje@google.com>
18121
18122 * linux-low.c (linux_supports_tracefork_flag): Document.
18123 (linux_look_up_symbols): Add comment.
18124
18125 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18126
18127 * regcache.c (supply_register): Clear regcache if buf is NULL.
18128
18129 2010-02-02 Nicolas Roche <roche@sourceware.org>
18130 Joel Brobecker <brobecker@adacore.com>
18131
18132 * inferiors.c (find_inferior): Add function documentation.
18133 (unloaded_dll): Handle the case where the unloaded dll has not
18134 been previously registered in the dll list.
18135
18136 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18137
18138 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18139 (thumb2_breakpoint): New.
18140 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18141
18142 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18143
18144 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18145 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18146 breakpoints.
18147
18148 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18149
18150 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18151
18152 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18153
18154 * linux-s390-low.c (s390_collect_ptrace_register)
18155 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18156
18157 2010-01-21 Doug Evans <dje@google.com>
18158
18159 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18160 (PTRACE_ARG4_TYPE): New macro.
18161 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18162 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18163 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18164 (usr_store_inferior_registers): Ditto.
18165 (linux_read_memory, linux_write_memory): Ditto.
18166 (linux_test_for_tracefork): Ditto.
18167
18168 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18169 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18170
18171 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18172
18173 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18174 target.
18175
18176 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18177
18178 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18179 prototype to take a regcache. Adjust.
18180
18181 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18182
18183 * regcache.h (struct thread_info): Forward declare.
18184 (struct regcache): New.
18185 (new_register_cache): Adjust prototype.
18186 (get_thread_regcache): Declare.
18187 (free_register_cache): Adjust prototype.
18188 (registers_to_string, registers_from_string): Ditto.
18189 (supply_register, supply_register_by_name, collect_register)
18190 (collect_register_as_string, collect_register_by_name): Ditto.
18191 * regcache.c (struct inferior_regcache_data): Delete.
18192 (get_regcache): Rename to ...
18193 (get_thread_regcache): ... this. Adjust. Switch inferior before
18194 fetching registers.
18195 (regcache_invalidate_one): Adjust.
18196 (regcache_invalidate): Fix prototype.
18197 (new_register_cache): Return the new register cache.
18198 (free_register_cache): Change prototype.
18199 (realloc_register_cache): Adjust.
18200 (registers_to_string): Change prototype to take a regcache. Adjust.
18201 (registers_from_string): Ditto.
18202 (register_data): Ditto.
18203 (supply_register): Ditto.
18204 (supply_register_by_name): Ditto.
18205 (collect_register): Ditto.
18206 (collect_register_as_string): Ditto.
18207 (collect_register_by_name): Ditto.
18208 * server.c (process_serial_event): Adjust.
18209 * linux-low.h (regset_fill_func, regset_store_func): Change
18210 prototype.
18211 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18212 Change prototype.
18213 * linux-low.c (get_stop_pc): Adjust.
18214 (check_removed_breakpoint): Adjust.
18215 (linux_wait_for_event): Adjust.
18216 (linux_resume_one_lwp): Adjust.
18217 (fetch_register): Add regcache parameter. Adjust.
18218 (usr_store_inferior_registers): Ditto.
18219 (regsets_fetch_inferior_registers): Ditto.
18220 (regsets_store_inferior_registers): Ditto.
18221 (linux_fetch_registers, linux_store_registers): Ditto.
18222 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18223 regcache. Adjust.
18224 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18225 Ditto.
18226 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18227 prototype to take a regcache.
18228 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18229 * remote-utils.c (convert_ascii_to_int, outreg)
18230 (prepare_resume_reply): Change prototype to take a regcache.
18231 Adjust.
18232 * target.h (struct target_ops) <fetch_registers, store_registers>:
18233 Change prototype to take a regcache.
18234 (fetch_inferior_registers, store_inferior_registers): Change
18235 prototype to take a regcache. Adjust.
18236 * proc-service.c (ps_lgetregs): Adjust.
18237 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18238 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18239 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18240 take a regcache. Adjust.
18241 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18242 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18243 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18244 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18245 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18246 (cris_cannot_fetch_register):
18247 (cris_breakpoint_at): Change prototype to take a regcache.
18248 Adjust.
18249 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18250 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18251 to take a regcache. Adjust.
18252 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18253 Adjust.
18254 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18255 take a regcache. Adjust.
18256 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18257 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18258 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18259 * linux-mips-low.c (mips_get_pc):
18260 (mips_set_pc): Change prototype to take a regcache. Adjust.
18261 (mips_reinsert_addr): Adjust.
18262 (mips_collect_register): Change prototype to take a regcache.
18263 Adjust.
18264 (mips_supply_register):
18265 (mips_collect_register_32bit, mips_supply_register_32bit)
18266 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18267 (mips_store_fpregset): Ditto.
18268 * linux-ppc-low.c (ppc_supply_ptrace_register)
18269 (ppc_supply_ptrace_register): Ditto.
18270 (parse_spufs_run): Adjust.
18271 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18272 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18273 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18274 take a regcache. Adjust.
18275 * linux-s390-low.c (s390_collect_ptrace_register)
18276 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18277 (s390_set_pc): Change prototype to take a regcache. Adjust.
18278 (s390_arch_setup): Adjust.
18279 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18280 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18281 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18282 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18283 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18284 regcache. Adjust.
18285 (sparc_breakpoint_at): Adjust.
18286 * linux-xtensa-low.c (xtensa_fill_gregset):
18287 (xtensa_store_gregset):
18288 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18289 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18290 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18291 prototype to take a regcache. Adjust.
18292 * win32-arm-low.c (arm_fetch_inferior_register)
18293 (arm_store_inferior_register): Change prototype to take a
18294 regcache. Adjust.
18295 * win32-i386-low.c (i386_fetch_inferior_register)
18296 (i386_store_inferior_register): Change prototype to take a
18297 regcache. Adjust.
18298 * win32-low.c (child_fetch_inferior_registers)
18299 (child_store_inferior_registers): Change prototype to take a
18300 regcache. Adjust.
18301 (win32_wait): Adjust.
18302 (win32_fetch_inferior_registers): Change prototype to take a
18303 regcache. Adjust.
18304 (win32_store_inferior_registers): Adjust.
18305 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18306 store_inferior_register>: Change prototype to take a regcache.
18307
18308 2010-01-20 Doug Evans <dje@google.com>
18309
18310 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18311 #ifdef.
18312 (linux_wait_for_event1, linux_init_signals): Ditto.
18313 (W_STOPCODE): Provide definition if missing.
18314
18315 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18316
18317 * linux-low.c (linux_core_of_thread): New.
18318 (compare_ints, show_process, list_threads): New.
18319 (linux_qxfer_osdata): Report threads and cores.
18320 (linux_target_op): Register linux_core_of_thread.
18321 * remote-utils.c (prepare_resume_reply): Report the core.
18322 (buffer_xml_printf): Support %d specifier.
18323 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18324 New.
18325 (handle_query): Handle qXfer:threads. Announce availability
18326 thereof.
18327 * target.h (struct target_ops): New field core_of_thread.
18328
18329 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18330
18331 * Makefile.in (clean): Remove new generated files.
18332 (reg-s390.o, reg-s390.c): Remove rules.
18333 (reg-s390x.o, reg-s390x.c): Likewise.
18334 (s390-linux32.o, s390-linux32.c): Add rules.
18335 (s390-linux64.o, s390-linux64.c): Likewise.
18336 (s390x-linux64.o, s390x-linux64.c): Likewise.
18337 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18338 * linux-s390-low.c: Include <elf.h>.
18339 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18340 (init_registers_s390): Remove prototype.
18341 (init_registers_s390x): Likewise.
18342 (init_registers_s390_linux32): Add prototype.
18343 (init_registers_s390_linux64): Likewise.
18344 (init_registers_s390x_linux64): Likewise.
18345 (s390_num_regs_3264): New define.
18346 (s390_regmap_3264): New global variable.
18347 (s390_cannot_fetch_register): Remove obsolete check.
18348 (s390_cannot_store_register): Likewise.
18349 (s390_collect_ptrace_register): Handle upper/lower register halves.
18350 (s390_supply_ptrace_register): Likewise.
18351 (s390_fill_gregset): Update to register number changes.
18352 (s390_get_hwcap): New routine.
18353 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18354 Install appropriate regmap and register set.
18355
18356 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18357
18358 * server.c (gdbserver_version): Update copyright year to 2010.
18359 * gdbreplay.c (gdbreplay_version): Likewise.
18360
18361 2009-12-28 Doug Evans <dje@google.com>
18362
18363 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18364 elf/external.h. Include <elf.h> instead but only if necessary.
18365
18366 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18367
18368 * linux-low.c (linux_remove_process): Remove `detaching'
18369 parameter. Don't release/detach from thread_db here.
18370 (linux_kill): Release/detach from thread_db here, ...
18371 (linux_detach): ... and here, before actually detaching.
18372 (linux_wait_1): ... and here, when a process exits.
18373 * thread-db.c (any_thread_of): New.
18374 (thread_db_free): Switch the current inferior to a thread of the
18375 passed in process.
18376
18377 2009-12-21 Doug Evans <dje@google.com>
18378
18379 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18380
18381 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18382 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18383 warning ifndef __NR_tkill. Move setting of errno there too.
18384 Delete unnecessary resetting of errno after syscall.
18385 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18386
18387 * configure.ac: Check for dladdr.
18388 * config.in: Regenerate.
18389 * configure: Regenerate.
18390 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18391 (try_thread_db_load): Update.
18392
18393 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18394
18395 2009-12-18 Doug Evans <dje@google.com>
18396
18397 * event-loop.c: Include unistd.h if it exists.
18398
18399 * linux-low.c (my_waitpid): Move definition away from being in
18400 between linux_tracefork_child/linux_test_for_tracefork.
18401
18402 * gdb_proc_service.h (psaddr_t): Fix type.
18403 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18404 signature to match glibc.
18405
18406 2009-12-16 Doug Evans <dje@google.com>
18407
18408 * linux-low.c (linux_read_memory): Fix argument to read.
18409
18410 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18411
18412 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18413 events, don't leave current_inferior pointing at null.
18414
18415 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18416
18417 * win32-low.c (LOG): Delete.
18418 (OUTMSG): Output to stderr.
18419 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18420 on compile time LOG macro.
18421 (win32_wait): Fix debug output.
18422
18423 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18424
18425 * win32-low.c (win32_add_one_solib): If the dll name is
18426 "ntdll.dll", prepend the system directory to the dll path.
18427
18428 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18429
18430 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18431
18432 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18433 Vladimir Prus <vladimir@codesourcery.com>
18434
18435 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18436 * configure.ac: Check for __mcoldfire__ and set
18437 gdb_cv_m68k_is_coldfire.
18438 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18439 reg-cf.o and reg-m68k.o.
18440 * configure: Regenerated.
18441
18442 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18443
18444 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18445 Pass it to thread_db_free.
18446 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18447 proper `detaching' argument to linux_remove_process.
18448 * linux-low.h (thread_db_free): Add `detaching' parameter.
18449 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18450 to thread_db_free.
18451 (thread_db_free): Add `detaching' parameter. Only
18452 call td_ta_clear_event if detaching from process.
18453
18454 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18455
18456 * thread-db.c (thread_db_free): Fix typo.
18457
18458 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18459
18460 PR gdb/10838
18461 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18462
18463 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18464
18465 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18466 with an i686 compiler.
18467 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18468 needed.
18469 * configure: Rebuilt.
18470
18471 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18472
18473 PR gdb/10783
18474
18475 * server.c (handle_search_memory_1): Correct read_addr initialization
18476 in loop for searching subsequent chunks.
18477
18478 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18479
18480 * configure.ac: New --with-libthread-db option.
18481 * thread-db.c: Allow direct dependence on libthread_db.
18482 (thread_db_free): Adjust.
18483 * config.in: Regenerate.
18484 * configure: Likewise.
18485
18486 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18487
18488 PR gdb/10757
18489 * thread-db.c (attach_thread): New function.
18490 (maybe_attach_thread): Return success/failure.
18491 (find_new_threads_callback): Adjust.
18492 (thread_db_find_new_threads): Loop until no new threads.
18493
18494 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18495
18496 * proc-service.c (ps_lgetregs): Formatting.
18497
18498 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18499
18500 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18501 * configure.ac: Adjust.
18502 * linux-low.h (struct process_info_private): Move members to struct
18503 thread_db.
18504 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18505 * linux-low.c (linux_remove_process): Adjust.
18506 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18507 * server.c (handle_query): Move code ...
18508 (handle_monitor_command): ... here. New function.
18509 * target.h (struct target_ops): New member.
18510 * thread-db.c (struct thread_db): New.
18511 (libthread_db_search_path): New variable.
18512 (thread_db_create_event, thread_db_enable_reporting)
18513 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18514 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18515 (try_thread_db_load_1, dladdr_to_soname): New functions.
18516 (try_thread_db_load, thread_db_load_search): New functions.
18517 (thread_db_init): Search for libthread_db.
18518 (thread_db_free): New function.
18519 (thread_db_handle_monitor_command): Likewise.
18520 * config.in: Regenerate.
18521 * configure: Regenerate.
18522
18523 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18524
18525 * spu-low.c (spu_kill): Wait for inferior to terminate.
18526 Call clear_inferiors.
18527 (spu_detach): Call clear_inferiors.
18528
18529 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18530
18531 * aclocal.m4: Regenerate.
18532 * config.in: Likewise.
18533 * configure: Likewise.
18534
18535 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18536
18537 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18538 (parse_spufs_run): New function.
18539 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18540 (ppc_breakpoint_at): Handle SPU breakpoints.
18541
18542 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18543
18544 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18545 (SPUFS_MAGIC): Define.
18546 (spu_enumerate_spu_ids): New function.
18547 (linux_qxfer_spu): New function.
18548 (linux_target_ops): Install linux_qxfer_spu.
18549
18550 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18551
18552 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18553 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18554 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18555 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18556 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18557 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18558 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18559 (init_registers_powerpc_cell32l): Add prototype.
18560 (init_registers_powerpc_cell64l): Likewise.
18561 (ppc_arch_setup): Detect Cell/B.E. architecture.
18562
18563 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18564
18565 * Makefile.in (datarootdir): New variable.
18566
18567 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18568
18569 * linux-low.c (linux_write_memory): Update debugging output.
18570 * Makefile.in (clean): Add new descriptions.
18571 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18572 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18573 * configure.srv: Add new files for arm*-*-linux*.
18574 * linux-arm-low.c: Add new declarations.
18575 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18576 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18577 (HWCAP_VFPv3D16): New.
18578 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18579 instead of __IWMMXT__.
18580 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18581 (arm_arch_setup): New.
18582 (target_regsets): Remove #ifdef. Add VFP regset.
18583 (the_low_target): Use arm_arch_setup.
18584
18585 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18586
18587 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18588 the main thread again.
18589
18590 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18591
18592 Adding Neutrino gdbserver.
18593 * configure: Regenerated.
18594 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18595 * configure.srv (i[34567]86-*-nto*): New target.
18596 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18597 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18598 (nto_comctrl) [__QNX__]: New function.
18599 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18600
18601 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18602
18603 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18604 srv_tgtobj.
18605
18606 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18607 Pedro Alves <pedro@codesourcery.com>
18608
18609 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18610 don't support CONTEXT_EXTENDED_REGISTERS.
18611 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18612 (the_low_target): Install them.
18613 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18614 failing with ERROR_PIPE_NOT_CONNECTED.
18615
18616 2009-06-30 Doug Evans <dje@google.com>
18617 Pierre Muller <muller@ics.u-strasbg.fr>
18618
18619 Add h/w watchpoint support to x86-linux, win32-i386.
18620 * Makefile.in (SFILES): Add i386-low.c
18621 (i386_low_h): Define.
18622 (i386-low.o): Add dependencies.
18623 (linux-x86-low.o): Add i386-low.h dependency.
18624 (win32-i386-low.o): Ditto.
18625 * i386-low.c: New file.
18626 * i386-low.h: New file.
18627 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18628 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18629 * linux-low.c (linux_add_process): Initialize arch_private.
18630 (linux_remove_process): Free arch_private.
18631 (add_lwp): Initialize arch_private.
18632 (delete_lwp): Free arch_private.
18633 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18634 provided.
18635 * linux-low.h (process_info_private): New member arch_private.
18636 (lwp_info): New member arch_private.
18637 (linux_target_ops): New members new_process, new_thread,
18638 prepare_to_resume.
18639 (ptid_of): New macro.
18640 * linux-x86-low.c: Include stddef.h, i386-low.h.
18641 (arch_process_info): New struct.
18642 (arch_lwp_info): New struct.
18643 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18644 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18645 (i386_dr_low_get_status): New function.
18646 (x86_insert_point, x86_remove_point): New functions.
18647 (x86_stopped_by_watchpoint): New function.
18648 (x86_stopped_data_address): New function.
18649 (x86_linux_new_process, x86_linux_new_thread): New functions.
18650 (x86_linux_prepare_to_resume): New function.
18651 (the_low_target): Add entries for insert_point, remove_point,
18652 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18653 prepare_to_resume.
18654 * server.c (debug_hw_points): New global.
18655 (monitor_show_help): Document set debug-hw-points.
18656 (handle_query): Process "set debug-hw-points".
18657 * server.h (debug_hw_points): Declare.
18658 (paddress): Declare.
18659 * utils.c (NUMCELLS, CELLSIZE): New macros.
18660 (get_sell, xsnprintf, paddress): New functions.
18661 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18662 remove_point, stopped_by_watchpoint, stopped_data_address.
18663 * win32-i386-low.c: Include i386-low.h.
18664 (debug_reg_state): Replaces dr.
18665 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18666 (i386_dr_low_get_status): New function.
18667 (i386_insert_point, i386_remove_point): New functions.
18668 (i386_stopped_by_watchpoint): New function.
18669 (i386_stopped_data_address): New function.
18670 (i386_initial_stuff): Update.
18671 (get_thread_context,set_thread_context,i386_thread_added): Update.
18672 (the_low_target): Add entries for insert_point,
18673 remove_point, stopped_by_watchpoint, stopped_data_address.
18674 * win32-low.c (win32_insert_watchpoint): New function.
18675 (win32_remove_watchpoint): New function.
18676 (win32_stopped_by_watchpoint): New function.
18677 (win32_stopped_data_address): New function.
18678 (win32_target_ops): Add entries for insert_watchpoint,
18679 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18680 * win32-low.h (win32_target_ops): New members insert_point,
18681 remove_point, stopped_by_watchpoint, stopped_data_address.
18682
18683 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18684
18685 * server.c (process_serial_event): Re-return unsupported, not
18686 error, if the type isn't recognized. Re-allow supporting only
18687 insert or remove packets. Also call require_running for
18688 breakpoints. Add missing break statement to default case. Tidy.
18689 * target.h (struct target_ops): Rename insert_watchpoint to
18690 insert_point, and remove_watchpoint to remove_point.
18691
18692 * linux-low.h (struct linux_target_ops): Likewise.
18693 * linux-low.c (linux_insert_watchpoint): Rename to ...
18694 (linux_insert_point): ... this. Adjust.
18695 (linux_remove_watchpoint): Rename to ...
18696 (linux_remove_point): ... this. Adjust.
18697 (linux_target_ops): Adjust.
18698 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18699 (cris_insert_point): ... this.
18700 (cris_remove_watchpoint): Rename to ...
18701 (cris_remove_point): ... this.
18702 (the_low_target): Adjust.
18703
18704 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18705
18706 * server.c (handle_v_kill): Pass signal_pid to
18707 kill_inferior if multi_process is zero.
18708
18709 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18710
18711 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18712 * target.h (target_ops): Comment for *_watchpoint to make it clear
18713 the functions can get types '0' and '1'.
18714
18715 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18716
18717 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18718 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18719 * regcache.c (get_regcache): Likewise.
18720 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18721 * win32-low.c (child_fetch_inferior_registers): Remove check for
18722 regno 0.
18723
18724 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18725 Pedro Alves <pedro@codesourcery.com>
18726
18727 * target.h (struct target_ops) <supports_multi_process>: New
18728 callback.
18729 (target_supports_multi_process): New.
18730 * server.c (handle_query): Even if GDB reports support, only
18731 enable multi-process if the target also supports it. Report
18732 multi-process support only if the target backend supports it.
18733 * linux-low.c (linux_supports_multi_process): New function.
18734 (linux_target_ops): Install it as target_supports_multi_process
18735 callback.
18736
18737 2009-05-24 Doug Evans <dje@google.com>
18738
18739 Global renaming of find_thread_pid to find_thread_ptid.
18740 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18741 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18742 All callers updated.
18743
18744 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18745 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18746 directly.
18747
18748 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18749 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18750 (linux_resume_one_lwp): Ditto.
18751
18752 2009-05-23 Doug Evans <dje@google.com>
18753
18754 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18755 from struct inferior_list_entry * to struct lwp_info *.
18756 All callers updated.
18757
18758 2009-05-13 Doug Evans <dje@google.com>
18759
18760 * linux-x86-low.c: Don't include assert.h.
18761 (x86_siginfo_fixup): Use fatal, not assert.
18762 (x86_arch_setup): Fix comment.
18763
18764 2009-05-12 Doug Evans <dje@google.com>
18765
18766 Biarch support for i386/amd64 gdbserver.
18767 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18768 Add linux-x86-low.c.
18769 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18770 (linux-x86-low.o): Add.
18771 * linux-x86-64-low.c: Delete.
18772 * linux-i386-low.c: Delete.
18773 * linux-x86-low.c: New file.
18774 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18775 linux-x86-low.o.
18776 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18777 linux-x86-low.o.
18778 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18779 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18780 (linux_child_pid_to_exec_file): New function.
18781 (elf_64_header_p, elf_64_file_p): New functions.
18782 (siginfo_fixup): New function.
18783 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18784 give target a chance to convert layout.
18785 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18786 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18787
18788 2009-05-07 Doug Evans <dje@google.com>
18789
18790 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18791 (regsets_store_inferior_registers): Ditto.
18792
18793 2009-05-06 Pedro Alves <pedro@codesourcery.com>
18794
18795 PR server/10048
18796
18797 * linux-low.c (must_set_ptrace_flags): Delete.
18798 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18799 of the global.
18800 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18801 `lwp->must_set_ptrace_flags' instead.
18802 (linux_wait_for_event_1): Set ptrace options here.
18803 (linux_wait_1): ... not here.
18804
18805 2009-04-30 Doug Evans <dje@google.com>
18806
18807 * inferiors.c (started_inferior_callback): New function.
18808 (attached_inferior_callback): New function.
18809 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18810 * server.c (print_started_pid, print_attached_pid): New functions.
18811 (detach_or_kill_for_exit): New function.
18812 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18813 * server.h (have_started_inferiors_p): Declare.
18814 (have_attached_inferiors_p): Declare.
18815
18816 * inferiors.c (remove_process): Fix memory leak, free process.
18817 * linux-low.c (linux_remove_process): New function.
18818 (linux_kill): Call it instead of remove_process.
18819 (linux_detach, linux_wait_1): Ditto.
18820
18821 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18822
18823 * configure.srv: Add x86 Windows CE target.
18824
18825 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18826
18827 * inferiors.c (get_thread_process): Make global.
18828 * server.h (get_thread_process): Add prototype.
18829 * thread-db.c (find_one_thread): Use get_thread_process
18830 instead of current_process.
18831 (thread_db_get_tls_address): Do not crash if called when
18832 thread layer is not yet initialized.
18833
18834 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18835
18836 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18837 * spu-low.c (current_tid): Rename to ...
18838 (current_ptid): ... this.
18839 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18840 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18841 ptid_get_lwp (current_ptid) instead of current_tid.
18842 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18843 instead of current_tid. Use find_process_pid to verify pid
18844 argument is valid. Pass proper argument to remove_process.
18845 (spu_thread_alive): Compare current_ptid instead of current_tid.
18846 (spu_resume): Likewise.
18847
18848 2009-04-02 Pedro Alves <pedro@codesourcery.com>
18849
18850 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18851 variable.
18852
18853 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18854
18855 Implement the multiprocess extensions, and add linux multiprocess
18856 support.
18857
18858 * server.h (ULONGEST): Declare.
18859 (struct ptid, ptid_t): New.
18860 (minus_one_ptid, null_ptid): Declare.
18861 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18862 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18863 (struct inferior_list_entry): Change `id' type from unsigned from
18864 to ptid_t.
18865 (struct sym_cache, struct breakpoint, struct
18866 process_info_private): Forward declare.
18867 (struct process_info): Declare.
18868 (current_process): Declare.
18869 (all_processes): Declare.
18870 (initialize_inferiors): Declare.
18871 (add_thread): Adjust to use ptid_t.
18872 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18873 (add_process, remove_process, find_thread_pid): Declare.
18874 (find_inferior_id): Adjust to use ptid_t.
18875 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18876 (multi_process): Declare.
18877 (push_event): Adjust to use ptid_t.
18878 (read_ptid, write_ptid): Declare.
18879 (prepare_resume_reply): Adjust to use ptid_t.
18880 (clear_symbol_cache): Declare.
18881 * inferiors.c (all_processes): New.
18882 (null_ptid, minus_one_ptid): New.
18883 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18884 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18885 (add_thread): Change unsigned long to ptid. Remove gdb_id
18886 parameter. Adjust.
18887 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18888 (gdb_id_to_thread): Rename to ...
18889 (find_thread_pid): ... this. Change unsigned long to ptid.
18890 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18891 (loaded_dll, pull_pid_from_list): Adjust.
18892 (add_process, remove_process, find_process_pid)
18893 (get_thread_process, current_process, initialize_inferiors): New.
18894 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18895 (struct target_waitstatus) <related_pid>: Ditto.
18896 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18897 return type to int.
18898 (struct target_ops) <join>: Add `pid' argument.
18899 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18900 (struct target_ops) <wait>: Add `ptid' field. Change return type
18901 to ptid.
18902 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18903 (mywait): Add `ptid' argument. Change return type to ptid_t.
18904 (target_pid_to_str): Declare.
18905 * target.c (set_desired_inferior): Adjust to use ptids.
18906 (mywait): Add new `ptid' argument. Adjust.
18907 (target_pid_to_str): New.
18908 * mem-break.h (free_all_breakpoints): Declare.
18909 * mem-break.c (breakpoints): Delelete.
18910 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18911 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18912 to use per-process breakpoint list.
18913 (free_all_breakpoints): New.
18914 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18915 (symbol_cache, all_symbols_looked_up): Delete.
18916 (hexchars): New.
18917 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18918 read_ptid): New.
18919 (prepare_resume_reply): Change ptid argument's type from unsigned
18920 long to ptid_t. Adjust. Implement W;process and X;process.
18921 (free_sym_cache, clear_symbol_cache): New.
18922 (look_up_one_symbol): Adjust to per-process symbol cache. *
18923 * server.c (cont_thread, general_thread, step_thread): Change type
18924 to ptid_t.
18925 (attached): Delete.
18926 (multi_process): New.
18927 (last_ptid): Change type to ptid_t.
18928 (struct vstop_notif) <ptid>: Change type to ptid_t.
18929 (queue_stop_reply, push_event): Change `ptid' argument's type to
18930 ptid_t.
18931 (discard_queued_stop_replies): Add `pid' argument.
18932 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18933 changes. Don't reference the `attached' global.
18934 (attach_inferior): Adjust to mywait interface changes.
18935 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18936 features. Handle and report "multiprocess+". Handle
18937 "qAttached:PID".
18938 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18939 changes.
18940 (handle_v_kill): New.
18941 (handle_v_stopped): Adjust to use target_pid_to_str.
18942 (handle_v_requests): Allow multiple attaches and runs when
18943 multiprocess extensions are in effect. Handle "vKill".
18944 (myresume): Adjust to use ptids.
18945 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
18946 (handle_status): Adjust to discard_queued_stop_replies interface
18947 change.
18948 (first_thread_of, kill_inferior_callback)
18949 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
18950 (main): Call initialize_inferiors. Adjust to use ptids, killing
18951 and detaching from all inferiors. Handle multiprocess packet
18952 variants.
18953 * linux-low.h: Include gdb_proc_service.h.
18954 (struct process_info_private): New.
18955 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
18956 <lwpid_of>: Use ptid_get_lwp.
18957 (get_lwp_thread): Adjust.
18958 (struct lwp_info): Add `dead' member.
18959 (find_lwp_pid): Declare.
18960 * linux-low.c (thread_db_active): Delete.
18961 (new_inferior): Adjust comment.
18962 (inferior_pid): Delete.
18963 (linux_add_process): New.
18964 (handle_extended_wait): Adjust.
18965 (add_lwp): Change unsigned long to ptid.
18966 (linux_create_inferior): Add process to processes table. Adjust
18967 to use ptids. Don't set new_inferior here.
18968 (linux_attach_lwp): Rename to ...
18969 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
18970 it. Adjust to use ptids.
18971 (linux_attach_lwp): New.
18972 (linux_attach): Add process to processes table. Don't set
18973 new_inferior here.
18974 (struct counter): New.
18975 (second_thread_of_pid_p, last_thread_of_process_p): New.
18976 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
18977 multiple processes.
18978 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
18979 processes. Remove process from process table.
18980 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
18981 to multiple processes.
18982 (any_thread_of): New.
18983 (linux_detach): Add `pid' argument, and handle it. Remove process
18984 from processes table.
18985 (linux_join): Add `pid' argument. Handle it.
18986 (linux_thread_alive): Change unsighed long argument to ptid_t.
18987 Consider dead lwps as not being alive.
18988 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
18989 threads we're not interested in.
18990 (same_lwp, find_lwp_pid): New.
18991 (linux_wait_for_lwp): Change `pid' argument's type from int to
18992 ptid_t. Adjust.
18993 (linux_wait_for_event): Rename to ...
18994 (linux_wait_for_event_1): ... this. Change `pid' argument's type
18995 from int to ptid_t. Adjust.
18996 (linux_wait_for_event): New.
18997 (linux_wait_1): Add `ptid' argument. Change return type to
18998 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
18999 that exit from the process table.
19000 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19001 Adjust.
19002 (mark_lwp_dead): New.
19003 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19004 stopping all threads, mark its main lwp as dead.
19005 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19006 ptids.
19007 (fetch_register, usr_store_inferior_registers)
19008 (regsets_fetch_inferior_registers)
19009 (regsets_store_inferior_registers, linux_read_memory)
19010 (linux_write_memory): Inline `inferior_pid'.
19011 (linux_look_up_symbols): Adjust to use per-process
19012 `thread_db_active'.
19013 (linux_request_interrupt): Adjust to use ptids.
19014 (linux_read_auxv): Inline `inferior_pid'.
19015 (initialize_low): Don't reference thread_db_active.
19016 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19017 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19018 (ps_getpid): Return the pid of the current inferior.
19019 * thread-db.c (proc_handle, thread_agent): Delete.
19020 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19021 per-process data.
19022 (find_one_thread): Change argument type to ptid_t. Adjust to
19023 per-process data.
19024 (maybe_attach_thread): Adjust to per-process data and ptids.
19025 (thread_db_find_new_threads): Ditto.
19026 (thread_db_init): Ditto.
19027 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19028 processes table. Adjust to use ptids.
19029 (spu_kill, spu_detach): Adjust interface. Remove process from
19030 processes table.
19031 (spu_join, spu_thread_alive): Adjust interface.
19032 (spu_wait): Adjust interface. Remove process from processes
19033 table. Adjust to use ptids.
19034 * win32-low.c (current_inferior_tid): Delete.
19035 (current_inferior_ptid): New.
19036 (debug_event_ptid): New.
19037 (thread_rec): Take a ptid. Adjust.
19038 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19039 (child_delete_thread): Ditto.
19040 (do_initial_child_stuff): Add `attached' argument. Add process to
19041 processes table.
19042 (child_fetch_inferior_registers, child_store_inferior_registers):
19043 Adjust.
19044 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19045 (win32_attach): Pass 1 to do_initial_child_stuff.
19046 (win32_kill): Adjust interface. Remove process from processes
19047 table.
19048 (win32_detach): Ditto.
19049 (win32_join): Adjust interface.
19050 (win32_thread_alive): Take a ptid.
19051 (win32_resume): Adjust to use ptids.
19052 (get_child_debug_event): Ditto.
19053 (win32_wait): Adjust interface. Remove exiting process from
19054 processes table.
19055
19056 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19057
19058 Non-stop mode support.
19059
19060 * server.h (non_stop): Declare.
19061 (gdb_client_data, handler_func): Declare.
19062 (delete_file_handler, add_file_handler, start_event_loop):
19063 Declare.
19064 (handle_serial_event, handle_target_event, push_event)
19065 (putpkt_notif): Declare.
19066 * target.h (enum resume_kind): New.
19067 (struct thread_resume): Replace `step' field by `kind' field.
19068 (TARGET_WNOHANG): Define.
19069 (struct target_ops) <wait>: Add `options' argument.
19070 <supports_non_stop, async, start_non_stop>: New fields.
19071 (target_supports_non_stop, target_async): New.
19072 (start_non_stop): Declare.
19073 (mywait): Add `options' argument.
19074 * target.c (mywait): Add `options' argument. Print child exit
19075 notifications here.
19076 (start_non_stop): New.
19077 * server.c (non_stop, own_buf, mem_buf): New globals.
19078 (struct vstop_notif): New.
19079 (notif_queue): New global.
19080 (queue_stop_reply, push_event, discard_queued_stop_replies)
19081 (send_next_stop_reply): New.
19082 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19083 interface changes.
19084 (attach_inferior): In non-stop mode, don't wait for the target
19085 here.
19086 (handle_general_set): Handle QNonStop.
19087 (handle_query): When handling qC, return the current general
19088 thread, instead of the first thread of the list.
19089 (handle_query): If the backend supports non-stop mode, include
19090 QNonStop+ in the qSupported query response.
19091 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19092 and non-stop mode.
19093 (handle_v_attach, handle_v_run): Handle non-stop mode.
19094 (handle_v_stopped): New.
19095 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19096 (myresume): Adjust to use resume_kind. Handle non-stop.
19097 (queue_stop_reply_callback): New.
19098 (handle_status): Handle non-stop mode.
19099 (main): Clear non_stop flag on reconnection. Use the event-loop.
19100 Refactor serial protocol handling from here ...
19101 (process_serial_event): ... to this new function. When GDB
19102 selects any thread, select one here. In non-stop mode, wait until
19103 GDB acks all pending events before exiting.
19104 (handle_serial_event, handle_target_event): New.
19105 * remote-utils.c (remote_open): Install remote_desc in the event
19106 loop.
19107 (remote_close): Remove remote_desc from the event loop.
19108 (putpkt_binary): Rename to...
19109 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19110 (putpkt_binary): New as wrapper around putpkt_binary_1.
19111 (putpkt_notif): New.
19112 (prepare_resume_reply): In non-stop mode, don't change the
19113 general_thread.
19114 * event-loop.c: New.
19115 * Makefile.in (OBJ): Add event-loop.o.
19116 (event-loop.o): New rule.
19117
19118 * linux-low.h (pid_of): Moved here.
19119 (lwpid_of): New.
19120 (get_lwp_thread): Use lwpid_of.
19121 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19122 * linux-low.c (pid_of): Delete.
19123 (inferior_pid): Use lwpid_of.
19124 (linux_event_pipe): New.
19125 (target_is_async_p): New.
19126 (delete_lwp): New.
19127 (handle_extended_wait): Use lwpid_of.
19128 (add_lwp): Don't set lwpid field.
19129 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19130 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19131 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19132 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19133 first. Adjust to linux_wait_for_event interface changes. Use
19134 lwpid_of.
19135 (linux_detach): Don't delete the main lwp here.
19136 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19137 (status_pending_p): Don't consider explicitly suspended lwps.
19138 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19139 pointer. Add OPTIONS argument. Change return type to int. Use
19140 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19141 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19142 pointer. Add status pointer argument. Return a pid instead of a
19143 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19144 changes. In non-stop mode, don't switch to a random thread.
19145 (linux_wait): Rename to...
19146 (linux_wait_1): ... this. Add target_options argument, and handle
19147 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19148 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19149 clean exit and signal exit code. Don't stop all threads in
19150 non-stop mode. In all-stop mode, only stop all threads when
19151 reporting a stop to GDB. Handle explicit thread stop requests.
19152 (async_file_flush, async_file_mark): New.
19153 (linux_wait): New.
19154 (send_sigstop): Use lwpid_of.
19155 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19156 interface changes. In non-stop mode, don't switch to a random
19157 thread.
19158 (linux_resume_one_lwp): Use lwpid_of.
19159 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19160 (linux_resume_one_thread): ... this. Handle resume_stop. In
19161 non-stop mode, don't look for pending flag in all threads.
19162 (resume_status_pending_p): Don't consider explicitly suspended
19163 threads.
19164 (my_waitpid): Reimplement. Emulate __WALL.
19165 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19166 Use lwpid_of.
19167 (sigchld_handler, linux_supports_non_stop, linux_async)
19168 (linux_start_non_stop): New.
19169 (linux_target_ops): Register linux_supports_non_stop, linux_async
19170 and linux_start_non_stop.
19171 (initialize_low): Install SIGCHLD handler.
19172 * thread-db.c (thread_db_create_event, find_one_thread)
19173 (thread_db_get_tls_address): Use lwpid_of.
19174 * win32-low.c (win32_detach): Adjust to use resume_kind.
19175 (win32_wait): Add `options' argument.
19176 * spu-low.c (spu_resume): Adjust to use resume_kind.
19177 (spu_wait): Add `options' argument.
19178
19179 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19180
19181 Decouple target code from remote protocol.
19182
19183 * target.h (enum target_waitkind): New.
19184 (struct target_waitstatus): New.
19185 (struct target_ops) <wait>: Return an unsigned long. Take a
19186 target_waitstatus pointer instead of a char pointer.
19187 (mywait): Likewise.
19188 * target.c (mywait): Change prototype to return an unsigned long.
19189 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19190 * server.h (thread_from_wait, old_thread_from_wait): Delete
19191 declarations.
19192 (prepare_resume_reply): Change prototype to take a
19193 target_waitstatus.
19194 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19195 (last_status, last_ptid): New.
19196 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19197 pid instead of a signal.
19198 (attach_inferior): Remove "status" and "signal" parameters.
19199 Adjust.
19200 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19201 not as an address.
19202 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19203 (handle_v_requests, myresume): Remove "status" and "signal"
19204 parameters. Adjust.
19205 (handle_status): New.
19206 (main): Delete local `status'. Adjust.
19207 * remote-utils.c: Include target.h.
19208 (prepare_resume_reply): Change prototype to take a
19209 target_waitstatus. Adjust.
19210
19211 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19212 interface.
19213 * spu-low.c (spu_wait): Adjust.
19214 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19215 Delete.
19216 (win32_wait): Adjust.
19217
19218 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19219
19220 * target.h (struct thread_resume): Delete leave_stopped member.
19221 (struct target_ops): Add a `n' argument to the `resume' callback.
19222 * server.c (start_inferior): Adjust.
19223 (handle_v_cont, myresume): Adjust.
19224 * linux-low.c (check_removed_breakpoint): Adjust to resume
19225 interface change, and to removed leave_stopped field.
19226 (resume_ptr): Delete.
19227 (struct thread_resume_array): New.
19228 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19229 resume interface change.
19230 (linux_continue_one_thread, linux_queue_one_thread)
19231 (resume_status_pending_p): Check if the resume field is NULL
19232 instead of checking the leave_stopped member.
19233 (linux_resume): Adjust to the target resume interface change.
19234 * spu-low.c (spu_resume): Adjust to the target resume interface
19235 change.
19236 * win32-low.c (win32_detach, win32_resume): Ditto.
19237
19238 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19239
19240 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19241 flag.
19242 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19243 pending.
19244 (linux_continue_one_thread): Only preserve the stepping flag if
19245 there's a pending breakpoint.
19246
19247 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19248
19249 * server.c (main): After the inferior having exited, call
19250 remote_close before exiting gdbserver.
19251
19252 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19253
19254 Fix size of FPSCR in Power 7 processors.
19255 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19256 (PPC_FEATURE_HAS_DFP): New #define.
19257 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19258 size of the FPSCR.
19259
19260 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19261
19262 * server.c (handle_query) Whitespace and formatting.
19263
19264 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19265
19266 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19267 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19268 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19269 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19270 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19271 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19272 Makefile.in, configure.ac: Fix whitespace throughout.
19273 * configure: Regenerate.
19274
19275 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19276
19277 * inferiors.c (find_inferior): Make it safe for the callback
19278 function to delete the currently iterated inferior.
19279
19280 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19281
19282 * Makefile.in (linuw_low_h): Move higher.
19283 (thread-db.o): Depend on $(linux_low_h).
19284
19285 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19286
19287 Rename "process" to "lwp" throughout.
19288
19289 * linux-low.c (all_processes): Rename to...
19290 (all_lwps): ... this.
19291 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19292 (add_process): Rename to ...
19293 (add_lwp): ... this. Adjust.
19294 (linux_create_inferior): Adjust.
19295 (linux_attach_lwp): Adjust.
19296 (linux_attach): Adjust.
19297 (linux_kill_one_process): Rename to ...
19298 (linux_kill_one_lwp): ... this. Adjust.
19299 (linux_kill): Adjust.
19300 (linux_detach_one_process): Rename to ...
19301 (linux_detach_one_lwp): ... this. Adjust.
19302 (linux_detach): Adjust.
19303 (check_removed_breakpoint): Adjust.
19304 (status_pending_p): Adjust.
19305 (linux_wait_for_process): Rename to ...
19306 (linux_wait_for_lwp): ... this. Adjust.
19307 (linux_wait_for_event): Adjust.
19308 (send_sigstop): Adjust.
19309 (wait_for_sigstop): Adjust.
19310 (stop_all_processes): Rename to ...
19311 (stop_all_lwps): ... this.
19312 (linux_resume_one_process): Rename to ...
19313 (linux_resume_one_lwp): ... this. Adjust.
19314 (linux_set_resume_request, linux_continue_one_thread)
19315 (linux_queue_one_thread, resume_status_pending_p)
19316 (usr_store_inferior_registers, regsets_store_inferior_registers)
19317 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19318 Adjust.
19319 * linux-low.h (get_process): Rename to ...
19320 (get_lwp): ... this. Adjust.
19321 (get_thread_process): Rename to ...
19322 (get_thread_lwp): ... this. Adjust.
19323 (get_process_thread): Rename to ...
19324 (get_lwp_thread): ... this. Adjust.
19325 (struct process_info): Rename to ...
19326 (struct lwp_info): ... this.
19327 (all_processes): Rename to ...
19328 (all_lwps): ... this.
19329 * proc-service.c (ps_lgetregs): Adjust.
19330 * thread-db.c (thread_db_create_event, find_one_thread)
19331 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19332
19333 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19334
19335 * server.c (handle_query): Handle "qAttached".
19336
19337 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19338
19339 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19340 GPLv3, update license URL.
19341
19342 2009-03-01 Doug Evans <dje@google.com>
19343
19344 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19345 (server_h): Add gdb_signals.h.
19346 (signals.o): Update.
19347 * server.h (target_signal_from_host,target_signal_to_host_p)
19348 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19349
19350 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19351
19352 * remote-utils.c (getpkt): Also generate remote-debug
19353 information if noack_mode is set.
19354
19355 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19356
19357 * server.c (handle_query): Report qXfer:siginfo:read and
19358 qXfer:siginfo:write as supported and handle them.
19359 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19360 * linux-low.c (linux_xfer_siginfo): New.
19361 (linux_target_ops): Set it.
19362
19363 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19364
19365 * server.c (gdbserver_usage): Mention --remote-debug.
19366 (main): Accept '--remote-debug' switch.
19367
19368 2009-01-18 Doug Evans <dje@google.com>
19369
19370 * regcache.c (new_register_cache): No need to check result of xcalloc.
19371 * server.c (handle_search_memory): Back out calls to xmalloc,
19372 result is checked and error is returned to user upon failure.
19373 (handle_query): Ditto. Add more checks for result of malloc.
19374 (handle_v_cont): Check result of malloc, report error back to
19375 user upon failure.
19376 (handle_v_run): Ditto. Call freeargv.
19377 * server.h (freeargv): Declare.
19378 * utils.c (freeargv): New fn.
19379
19380 2009-01-15 Doug Evans <dje@google.com>
19381
19382 * gdbreplay.c (perror_with_name): Make arg const char *.
19383 * server.h (target_signal_to_name): Make return type const char *.
19384 * thread-db.c (thread_db_err_str): Make return type const char *.
19385 * utils.c (perror_with_name): Make arg const char *.
19386
19387 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19388
19389 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19390 when handling a EXIT_PROCESS_DEBUG_EVENT.
19391
19392 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19393
19394 * gdbreplay.c (gdbreplay_version): Update copyright year.
19395 * server.c (gdbserver_version): Likewise.
19396
19397 2009-01-05 Doug Evans <dje@google.com>
19398
19399 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19400 (handle_extended_wait): Improve comment.
19401
19402 2008-12-13 Doug Evans <dje@google.com>
19403
19404 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19405 * server.h (ATTR_MALLOC): New macro.
19406 (xmalloc,xcalloc,xstrdup): Declare.
19407 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19408 * inferiors.c: Ditto.
19409 * linux-low.c: Ditto.
19410 * mem-break.c: Ditto.
19411 * regcache.c: Ditto.
19412 * remote-utils.c: Ditto.
19413 * server.c: Ditto.
19414 * target.c: Ditto.
19415 * win32-low.c: Ditto.
19416
19417 2008-12-12 Doug Evans <dje@google.com>
19418
19419 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19420 in debugging printf.
19421
19422 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19423
19424 2008-12-09 Doug Evans <dje@google.com>
19425
19426 * linux-low.h (struct process_info): Delete member tid, unused.
19427 * thread-db.c (find_one_thread): Update.
19428 (maybe_attach_thread): Update.
19429
19430 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19431
19432 * target.h (struct target_ops): Add qxfer_osdata member.
19433 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19434 and dirent.h.
19435 (linux_qxfer_osdata): New functions.
19436 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19437 callback.
19438 * server.c (handle_query): Handle "qXfer:osdata:read:".
19439 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19440 (buffer_xml_printf): New functions.
19441 * server.h (struct buffer): New.
19442 (buffer_grow_str, buffer_grow_str0): New macros.
19443 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19444 (buffer_xml_printf): Declare.
19445
19446 2008-11-24 Doug Evans <dje@google.com>
19447
19448 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19449
19450 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19451
19452 * server.c (handle_v_run): Always use the supplied argument list.
19453
19454 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19455
19456 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19457 (xtensa_regmap_table): Add entry for scompare1.
19458
19459 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19460
19461 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19462 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19463 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19464 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19465 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19466 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19467 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19468 XML target descriptions.
19469 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19470 when inferior is running on an ISA 2.05 or later processor. Add
19471 special case to return offset for full 64-bit slot of FPSCR when
19472 in 32-bits.
19473
19474 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19475
19476 * Makefile.in (SFILES, clean): Added sparc64 files.
19477 (reg-sparc64.o, reg-sparc64.c): New.
19478 * configure.srv (sparc*-*-linux*): New configuration.
19479 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19480 syscall arguments for SPARC.
19481 (regsets_store_inferior_registers): Likewise.
19482 * linux-sparc-low.c: New file.
19483
19484 2008-10-21 Doug Evans <dje@google.com>
19485
19486 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19487 (READLINE_DIR,READLINE_DEP): Delete.
19488 (INTERNAL_CFLAGS): Update.
19489 (LINTFLAGS): Update.
19490
19491 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19492
19493 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19494 whole argv from the last run, not just argv[0].
19495
19496 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19497
19498 * regcache.c (new_register_cache): Return NULL if the register
19499 cache size isn't known yet.
19500 (free_register_cache): Avoid dereferencing a NULL regcache.
19501
19502 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19503
19504 * configure.srv: Merge MIPS and MIPS64.
19505
19506 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19507
19508 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19509
19510 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19511
19512 * Makefile.in: Add required vsx dependencies.
19513
19514 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19515 Declare init_registers_powerpc_vsx32l.
19516 Declare init_registers_powerpc_vsx64l.
19517 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19518 (ppc_arch_setup): Check for VSX in hwcap.
19519 (ppc_fill_vsxregset): New function.
19520 (ppc_store_vsxregset): New function.
19521 Add new VSX entry in regset_info target_regsets.
19522
19523 * configure.srv: Add new VSX dependencies.
19524
19525 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19526
19527 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19528 (remote_open): Set or clear transport_is_reliable.
19529 (putpkt_binary): Don't expect acks in noack mode.
19530 (getpkt): Don't send ack/nac in noack mode.
19531 * server.c (handle_general_set): Handle QStartNoAckMode.
19532 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19533 qSupported.
19534 (main): Reset noack_mode on every connection.
19535 * server.h (noack_mode): Declare.
19536
19537 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19538
19539 * Makefile.in (GDBREPLAY_OBS): New variable.
19540 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19541
19542 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19543 Daniel Jacobowitz <dan@codesourcery.com>
19544
19545 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19546 (usr_store_inferior_registers): Likewise.
19547 (regsets_store_inferior_registers): Likewise.
19548
19549 2008-07-31 Rolf Jansen <rj@surtec.com>
19550 Pedro Alves <pedro@codesourcery.com>
19551
19552 * configure.ac: Check for memmem declaration.
19553 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19554 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19555 (disable_packet_qfThreadInfo): Unconditionally compile.
19556 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19557 * configure, config.in: Regenerate.
19558
19559 2008-07-28 Doug Kwan <dougkwan@google.com>
19560
19561 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19562 (linux_write_memory): Remove declaration of errno.
19563
19564 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19565
19566 * linux-low.c (handle_extended_wait): Do not use "status"
19567 variable uninitialized.
19568
19569 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19570
19571 * server.c (handle_v_attach): Inhibit reporting dll changes.
19572
19573 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19574
19575 * remote-utils.c (prepare_resume_reply): If requested, don't
19576 output "thread:TID" in the T stop reply.
19577
19578 * server.c (disable_packet_vCont, disable_packet_Tthread)
19579 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19580 (handle_query): If requested, disable support for qC, qfThreadInfo
19581 and qsThreadInfo.
19582 (handle_v_requests): If requested, disable support for vCont.
19583 (gdbserver_show_disableable): New.
19584 (main): Handle --disable-packet and --disable-packet=LIST.
19585
19586 * server.h (disable_packet_vCont, disable_packet_Tthread)
19587 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19588
19589 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19590
19591 * server.c (gdbserver_usage): Mention --version.
19592
19593 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19594
19595 * Makefile.in (gdbreplay.o): New rule.
19596
19597 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19598
19599 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19600 message, not gdbserver.
19601
19602 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19603 Nathan Sidwell <nathan@codesourcery.com>
19604 Joseph Myers <joseph@codesourcery.com>
19605
19606 * acinclude.m4: Include ../../config/acx.m4.
19607 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19608 * configure, config.in: Regenerate.
19609 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19610 * server.c (gdbserver_version): Print PKGVERSION.
19611 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19612 (main): Adjust gdbserver_usage calls.
19613 * gdbreplay.c (version, host_name): Add declarations.
19614 (gdbreplay_version, gdbreplay_usage): New.
19615 (main): Accept --version and --help options.
19616
19617 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19618
19619 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19620 (arm_breakpoint_at): Handle Thumb.
19621 (the_low_target): Add comment.
19622
19623 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19624
19625 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19626
19627 2008-05-09 Doug Evans <dje@google.com>
19628
19629 * server.h (decode_search_memory_packet): Declare.
19630 * remote-utils.c (decode_search_memory_packet): New fn.
19631 * server.c (handle_search_memory_1): New fn.
19632 (handle_search_memory): New fn.
19633 (handle_query): Process qSearch:memory packets.
19634
19635 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19636
19637 * regcache.c (registers_length): Remove.
19638 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19639 full register packet.
19640 * regcache.h (registers_length): Remove prototype.
19641 * server.h (PBUFSIZ): Define to 16384.
19642
19643 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19644
19645 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19646 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19647 powerpc-64l.o, and powerpc-altivec64l.o.
19648 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19649 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19650 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19651 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19652 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19653 to srv_xmlfiles.
19654
19655 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19656 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19657 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19658 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19659 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19660 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19661 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19662 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19663 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19664 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19665 (clean): Update.
19666
19667 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19668 (init_registers_powerpc_32l): ... this new prototype.
19669 (init_registers_powerpc_32): Remove, replace by ...
19670 (init_registers_powerpc_altivec32l): ... this new prototype.
19671 (init_registers_powerpc_e500): Remove, replace by ...
19672 (init_registers_powerpc_e500l): ... this new prototype.
19673 (init_registers_ppc64): Remove, replace by ...
19674 (init_registers_powerpc_64l): ... this new prototype.
19675 (init_registers_powerpc_64): Remove, replace by ...
19676 (init_registers_powerpc_altivec64l): ... this new prototype.
19677 (ppc_num_regs): Set to 73.
19678 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19679 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19680 (ppc_cannot_store_register): Handle orig_r3 and trap.
19681 (ppc_arch_setup): Update init_registers_... calls.
19682 (ppc_fill_gregset): Handle orig_r3 and trap.
19683
19684 * inferiors.c (clear_inferiors): Reset current_inferior.
19685
19686 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19687
19688 * acinclude.m4: Add override.m4.
19689 * configure: Regenerate.
19690
19691 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19692
19693 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19694 initial call to init_register_ppc64.
19695
19696 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19697
19698 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19699 single powerpc*-*-linux* case.
19700 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19701
19702 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19703
19704 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19705 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19706 from reg_xmlfiles.
19707 * linux-ppc-low.c: Include <elf.h>.
19708 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19709 (ppc_hwcap): New global variable.
19710 (ppc_regmap): Remove __SPE__ #ifdef sections.
19711 (ppc_regmap_e500): New global variable.
19712 (ppc_cannot_store_register): Update __SPE__ special case.
19713 (ppc_get_hwcap): New function.
19714 (ppc_arch_setup): Use it to determine whether inferior supports
19715 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19716 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19717 Do not access registers if target does not support AltiVec.
19718 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19719 Do not access registers if target does not support SPE.
19720 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19721
19722 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19723
19724 * linux-low.c (disabled_regsets, num_regsets): New.
19725 (use_regsets_p): Delete.
19726 (linux_wait_for_process): Clear disabled_regsets.
19727 (regsets_fetch_inferior_registers): Check and set it.
19728 (regsets_store_inferior_registers): Likewise.
19729 (linux_fetch_registers, linux_store_registers): Do not use
19730 use_regsets_p.
19731 (initialize_low): Allocate disabled_regsets.
19732
19733 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19734
19735 * Makefile.in (LIBOBJS): New.
19736 (OBS): Use LIBOBJS.
19737 (memmem.o): New rule.
19738 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19739 * configure: Regenerated.
19740
19741 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19742
19743 * server.c (handle_query): Never return "unsupported" for
19744 qXfer:features:read queries.
19745
19746 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19747
19748 * server.c (get_features_xml): Fix inverted condition.
19749 (handle_query): Always support qXfer:feature:read.
19750
19751 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19752
19753 * server.c (wrapper_argv): New.
19754 (start_inferior): Handle wrapper_argv. If set, expect an extra
19755 trap.
19756 (gdbserver_usage): Document --wrapper.
19757 (main): Parse --wrapper.
19758
19759 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19760
19761 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19762 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19763 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19764 (ppc_set_pc): Likewise.
19765 (ppc_arch_setup): New function.
19766 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19767 of collect_register.
19768 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
19769
19770 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19771
19772 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19773 instead of linux-ppc64-low.o.
19774 * linux-ppc64-low.c: Remove file.
19775 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19776 (linux-ppc64-low.o): Remove rule.
19777
19778 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19779 (init_registers_powerpc_64): Likewise.
19780 (ppc_regmap): Conditionally define depending on __powerpc64__.
19781 (ppc_cannot_store_register): Do not special-case "fpscr" when
19782 compiled on __powerpc64__.
19783 (ppc_collect_ptrace_register): New function.
19784 (ppc_supply_ptrace_register): New function.
19785 (ppc_breakpoint): Change type to "unsigned int".
19786 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19787 (the_low_target): Conditionally provide initializers for the
19788 arch_setup member depending on __powerpc64__. Install
19789 collect_ptrace_register and supply_ptrace_register members.
19790
19791 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19792
19793 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19794 * server.c (gdbserver_xmltarget): Define.
19795 (get_features_xml): Use it to replace "target.xml" and arch_string.
19796
19797 * configure.srv: Remove srv_xmltarget. Add XML files that were
19798 mentioned there to srv_xmlfiles instead. Remove conditional tests
19799 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19800 srv_xmlfiles and srv_regobj to include all possible choices.
19801 * configure.ac (srv_xmltarget): Remove.
19802 (srv_xmlfiles): Do not add "target.xml".
19803 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19804 checks for supplementary target information.
19805 * configure: Regenerate.
19806 * Makefile.in (XML_TARGET): Remove.
19807 (target.xml): Remove rule.
19808 (clean): Do not clean up target.xml.
19809 (.PRECIOUS): Do not mention target.xml.
19810
19811 * target.h (struct target_ops): Remove arch_string member.
19812 * linux-low.c (linux_arch_string): Remove.
19813 (linux_target_ops): Remove arch_string initializer.
19814 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19815 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19816 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19817 * spu-low.c (spu_arch_string): Remove.
19818 (spu_target_ops): Remove arch_string initializer.
19819 * win32-low.c (win32_arch_string): Remove.
19820 (win32_target_ops): Remove arch_string initializer.
19821 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19822 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19823 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19824
19825 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19826
19827 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19828 by collect_ptrace_register and supply_ptrace_register hooks.
19829 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19830 instead of checking for the_low_target.left_pad_xfer.
19831 (usr_store_inferior_registers): Use collect_ptrace_register callback
19832 instead of checking for the_low_target.left_pad_xfer.
19833
19834 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19835 (s390_supply_ptrace_register): Likewise.
19836 (s390_fill_gregset): Call s390_collect_ptrace_register.
19837 (the_low_target): Update.
19838
19839 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19840 (ppc_supply_ptrace_register): Likewise.
19841 (the_low_target): Update.
19842
19843 * linux-i386-low.c (the_low_target): Update.
19844 * linux-x86-64-low.c (the_low_target): Update.
19845
19846 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19847
19848 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19849 reg-s390.o and reg-s390x.o.
19850
19851 * linux-low.c (new_inferior): New global variable.
19852 (linux_create_inferior, linux_attach): Set it.
19853 (linux_wait_for_process): Call the_low_target.arch_setup after the
19854 target has stopped for the first time.
19855 (initialize_low): Do not call the_low_target.arch_setup.
19856
19857 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19858 (s390_set_pc): Likewise.
19859 (s390_arch_setup): New function.
19860 (the_low_target): Use s390_arch_setup as arch_setup routine.
19861
19862 * regcache.c (realloc_register_cache): New function.
19863 (set_register_cache): Call it for each existing regcache.
19864
19865 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19866
19867 * server.h (init_registers): Remove prototype.
19868
19869 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19870 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19871 instead of init_registers ().
19872 * linux-arm-low.c (init_registers_arm): Add prototype.
19873 (init_registers_arm_with_iwmmxt): Likewise.
19874 (the_low_target): Add initializer for arch_setup field.
19875 * linux-cris-low.c (init_registers_cris): Add prototype.
19876 (the_low_target): Add initializer for arch_setup field.
19877 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19878 (the_low_target): Add initializer for arch_setup field.
19879 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19880 (the_low_target): Add initializer for arch_setup field.
19881 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19882 (the_low_target): Add initializer for arch_setup field.
19883 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19884 (the_low_target): Add initializer for arch_setup field.
19885 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19886 (the_low_target): Add initializer for arch_setup field.
19887 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19888 (init_registers_mips64_linux): Likewise.
19889 (the_low_target): Add initializer for arch_setup field.
19890 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19891 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19892 (the_low_target): Add initializer for arch_setup field.
19893 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19894 (init_registers_powerpc_64): Likewise.
19895 (the_low_target): Add initializer for arch_setup field.
19896 * linux-s390-low.c (init_registers_s390): Add prototype.
19897 (init_registers_s390x): Likewise.
19898 (the_low_target): Add initializer for arch_setup field.
19899 * linux-sh-low.c (init_registers_sh): Add prototype.
19900 (the_low_target): Add initializer for arch_setup field.
19901 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19902 (the_low_target): Add initializer for arch_setup field.
19903 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19904 (the_low_target): Add initializer for arch_setup field.
19905
19906 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19907 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19908 instead of init_registers ().
19909 * win32-arm-low.c (init_registers_arm): Add prototype.
19910 (the_low_target): Add initializer for arch_setup field.
19911 * win32-i386-low.c (init_registers_i386): Add prototype.
19912 (the_low_target): Add initializer for arch_setup field.
19913
19914 * spu-low.c (init_registers_spu): Add prototype.
19915 (initialize_low): Call initialie_registers_spu () instead of
19916 initialize_registers ().
19917
19918 2008-02-19 Pedro Alves <pedro@codesourcery.com>
19919
19920 * server.c (handle_v_requests): When handling the vRun and vAttach
19921 packets, if already debugging a process, don't kill it. Return an
19922 error instead.
19923
19924 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19925
19926 * server.c (handle_query): Correct length check.
19927
19928 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19929
19930 * win32-low.c (do_initial_child_stuff): Add process handle
19931 parameter. Set current_process_handle and current_process_id from the
19932 parameters. Clear globals.
19933 (win32_create_inferior): Don't set current_process_handle and
19934 current_process_id here. Instead pass them on the call to
19935 do_initial_child_stuff.
19936 (win32_attach): Likewise.
19937 (win32_clear_inferiors): New.
19938 (win32_kill): Don't close the current process handle or the
19939 current thread handle here. Instead call win32_clear_inferiors.
19940 (win32_detach): Don't open a new handle to the process. Call
19941 win32_clear_inferiors.
19942 (win32_join): Don't rely on current_process_handle; open a new
19943 handle using the process id.
19944 (win32_wait): Call win32_clear_inferiors when the inferior process
19945 has exited.
19946
19947 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
19948
19949 * server.c (monitor_show_help): Add "exit".
19950
19951 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
19952
19953 * Makefile.in (SFILES): Add linux-xtensa-low.c.
19954 (clean): Add reg-xtensa.c.
19955 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
19956 * configure.srv (xtensa*-*-linux*) New target.
19957 * linux-xtensa-low.c: New.
19958 * xtensa-xtregs.c: New.
19959
19960 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
19961
19962 * hostio.c: Don't include errno.h.
19963 (errno_to_fileio_errno): Move to hostio-errno.
19964 * hostio.c: (hostio_error): Remove the error parameter. Defer the
19965 error number outputting to the target->hostio_last_error callback.
19966 (hostio_packet_error): Use FILEIO_EINVAL directly.
19967 (handle_open, handle_pread, hostio_error, handle_unlink): Update
19968 calls to hostio_error.
19969 * hostio-errno.c: New.
19970 * server.h (hostio_last_error_from_errno): Declare.
19971 * target.h (target_ops): Add hostio_last_error member.
19972 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
19973 as hostio_last_error handler.
19974 * spu-low.c (spu_target_ops): Likewise.
19975 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
19976 (wince_hostio_last_error): New functions.
19977 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
19978 as hostio_last_error handler.
19979 (win32_target_ops) [!_WIN32_WCE]: Register
19980 hostio_last_error_from_errno as hostio_last_error handler.
19981 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
19982 (hostio-errno.o): New rule.
19983 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
19984 * configure.srv (srv_hostio_err_objs): New variable. Default to
19985 hostio-errno.o.
19986 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
19987 * configure: Regenerate.
19988
19989 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19990
19991 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
19992 (linux_kill, linux_detach): Clean up the process list.
19993 * remote-utils.c (remote_open): Improve port number parsing.
19994 (putpkt_binary, input_interrupt): Only send interrupts if the target
19995 is running.
19996 * server.c (extended_protocol): Make static.
19997 (attached): Define earlier.
19998 (exit_requested, response_needed, program_argv): New variables.
19999 (target_running): New.
20000 (start_inferior): Clear attached here.
20001 (attach_inferior): Set attached here.
20002 (require_running): Define.
20003 (handle_query): Use require_running and target_running. Implement
20004 "monitor exit".
20005 (handle_v_attach, handle_v_run): New.
20006 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20007 (gdbserver_usage): Update.
20008 (main): Redo argument parsing. Handle --debug and --multi. Handle
20009 --attach along with other options or after the port. Save
20010 program_argv. Support no initial program. Resynchronize
20011 communication with GDB after an error. Handle "monitor exit".
20012 Use require_running and target_running. Always allow the extended
20013 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20014 restart in extended mode.
20015 * README: Refer to the GDB manual. Update --attach usage.
20016
20017 2007-12-20 Andreas Schwab <schwab@suse.de>
20018
20019 * linux-low.c (STACK_SIZE): Define.
20020 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20021 (linux_test_for_tracefork): Likewise.
20022
20023 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20024
20025 * linux-low.c (linux_wait_for_event): Update messages. Do not
20026 reinsert auto-delete breakpoints.
20027 * mem-break.c (struct breakpoint): Change return type of handler to
20028 int.
20029 (set_breakpoint_at): Update handler type.
20030 (reinsert_breakpoint_handler): Return 1 instead of calling
20031 delete_breakpoint.
20032 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20033 setting a new one.
20034 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20035 * mem-break.h (set_breakpoint_at): Update handler type.
20036 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20037 * win32-low.c (auto_delete_breakpoint): New.
20038 (get_child_debug_event): Use it.
20039
20040 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20041
20042 * configure.ac: Check for pread and pwrite.
20043 * hostio.c (handle_pread): Fall back to lseek and read.
20044 (handle_pwrite): Fall back to lseek and write.
20045 * config.in, configure: Regenerated.
20046
20047 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20048
20049 * server.c (myresume): Add own_buf argument.
20050 (main): Update calls.
20051
20052 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20053
20054 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20055 * remote-utils.c (remote_open): Do not call disable_async_io.
20056 (block_async_io): Delete.
20057 (unblock_async_io): Make static.
20058 (initialize_async_io): New.
20059 * server.c (handle_v_cont): Handle async I/O here.
20060 (myresume): Likewise. Move other common resume tasks here...
20061 (main): ... from here. Call initialize_async_io. Disable async
20062 I/O before the main loop.
20063 * server.h (initialize_async_io): Declare.
20064 (block_async_io, unblock_async_io): Delete prototypes.
20065 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20066
20067 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20068
20069 * remote-utils.c (readchar): Allow binary data in received messages.
20070
20071 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20072
20073 * win32-low.c (attaching): New global.
20074 (win32_create_inferior): Clear the `attaching' global.
20075 (win32_attach): Set the `attaching' global.
20076 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20077 attaching. Only set a breakpoint at the entry point if not
20078 attaching.
20079
20080 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20081
20082 * server.c (main): Don't report dll events on the initial
20083 connection on attaches.
20084
20085 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20086
20087 * server.c (main): Relax numerical bases supported for the pid of
20088 the --attach command line argument.
20089
20090 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20091
20092 * win32-low.c (win32_attach): Call OpenProcess before
20093 DebugActiveProcess, not after. Add last error output to error
20094 call.
20095
20096 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20097
20098 * win32-low.c (win32_get_thread_context)
20099 (win32_set_thread_context): New functions.
20100 (thread_rec): Use win32_get_thread_context.
20101 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20102 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20103 field.
20104
20105 2007-12-03 Leo Zayas
20106 Pedro Alves <pedro_alves@portugalmail.pt>
20107
20108 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20109 global variables.
20110 (child_add_thread): Minor cleanup.
20111 (child_continue): Resume artificially suspended threads before
20112 calling ContinueDebugEvent.
20113 (suspend_one_thread): New.
20114 (fake_breakpoint_event): New.
20115 (get_child_debug_event): Change return type to int. Check here if
20116 gdb sent an interrupt request. If a soft interrupt was requested,
20117 fake a breakpoint event. Return 0 if there is no event to handle,
20118 and 1 otherwise.
20119 (win32_wait): Don't check here if gdb sent an interrupt request.
20120 Ensure there is a valid event to handle.
20121 (win32_request_interrupt): Add soft interruption method as last
20122 resort.
20123
20124 2007-12-03 Leo Zayas
20125 Pedro Alves <pedro_alves@portugalmail.pt>
20126
20127 * win32-low.h (win32_thread_info): Add descriptions to the
20128 structure members. Replace `suspend_count' counter by a
20129 `suspended' flag.
20130 * win32-low.c (thread_rec): Update condition of when to get the
20131 context from the inferior. Rely on ContextFlags being set if it
20132 has already been retrieved. Only suspend the inferior thread if
20133 we haven't already. Warn if that fails.
20134 (continue_one_thread): s/suspend_count/suspended/. Only call
20135 ResumeThread once. Warn if that fails.
20136
20137 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20138
20139 * win32-low.c (win32_wait): Don't read from the inferior when it
20140 has already exited.
20141
20142 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20143
20144 * Makefile.in (win32_low_h): New variable.
20145 (win32-low.o): Add dependency on $(win32_low_h).
20146 (win32-arm-low.o, win32-i386-low.o): New rules.
20147
20148 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20149
20150 * hostio.c: Correct copyright year.
20151
20152 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20153
20154 * Makefile.in (OBS): Add hostio.o.
20155 (hostio.o): New rule.
20156 * server.h (handle_vFile): Declare.
20157 * hostio.c: New file.
20158 * server.c (handle_v_requests): Take packet_len and new_packet_len
20159 for binary packets. Call handle_vFile.
20160 (main): Update call to handle_v_requests.
20161
20162 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20163
20164 * linux-low.c: Include <sched.h>.
20165
20166 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20167
20168 * linux-low.c (linux_tracefork_grandchild): New.
20169 (linux_tracefork_child): Use clone.
20170 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20171
20172 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20173
20174 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20175
20176 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20177
20178 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20179
20180 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20181
20182 * inferiors.c (change_inferior_id): Delete.
20183 (add_pid_to_list, pull_pid_from_list): New.
20184 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20185 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20186 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20187 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20188 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20189 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20190 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20191 (using_threads): Always set to 1.
20192 (handle_extended_wait): New.
20193 (add_process): Do not set TID.
20194 (linux_create_inferior): Set must_set_ptrace_flags.
20195 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20196 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20197 (linux_thread_alive): Rename TID argument to LWPID.
20198 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20199 (linux_wait_for_event): Do not use TID or check using_threads. Update
20200 call to dead_thread_notify. Call handle_extended_wait.
20201 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20202 (send_sigstop): Delete sigstop_sent.
20203 (wait_for_sigstop): Avoid TID.
20204 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20205 (linux_test_for_tracefork): New.
20206 (linux_lookup_signals): Use thread_db_active and
20207 linux_supports_tracefork_flag.
20208 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20209 * linux-low.h (get_process_thread): Avoid TID.
20210 (struct process_ifo): Move thread_known and tid to the end. Remove
20211 sigstop_sent.
20212 (linux_attach_lwp, thread_db_init): Update prototypes.
20213 * server.h (change_inferior_id): Delete prototype.
20214 (add_pid_to_list, pull_pid_from_list): New prototypes.
20215 * thread-db.c (thread_db_use_events): New.
20216 (find_first_thread): Rename to...
20217 (find_one_thread): ...this. Update callers and messages. Do not
20218 call fatal. Check thread_db_use_events. Do not call
20219 change_inferior_id or new_thread_notify.
20220 (maybe_attach_thread): Update. Do not call new_thread_notify.
20221 (thread_db_init): Set thread_db_use_events. Check use_events.
20222 * utils.c (fatal, warning): Correct message prefix.
20223
20224 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20225
20226 * Makefile.in (clean): Remove new files.
20227 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20228 (powerpc-64.o, powerpc-64.c): New rules.
20229 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20230 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20231 with SPE.
20232 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20233 SPE targets.
20234 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20235 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20236 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20237 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20238 (target_regsets): Add AltiVec and SPE register sets.
20239 * configure.ac: Check for AltiVec and SPE.
20240 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20241 (ppc_fill_vrregset, ppc_store_vrregset): New.
20242 (target_regsets): Add AltiVec register set.
20243 * configure: Regenerated.
20244
20245 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20246
20247 * linux-low.c (O_LARGEFILE): Define.
20248 (linux_read_memory): Use /proc/PID/mem.
20249 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20250 * configure, config.in: Regenerated.
20251
20252 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20253
20254 * linux-low.c (linux_wait_for_event): Do not pass signals while
20255 single-stepping.
20256
20257 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20258
20259 * win32-low.c (create_process): New.
20260 (win32_create_inferior): Use create_process instead of
20261 CreateProcess. If create_process failed retry appending an ".exe"
20262 suffix. Store the GetLastError result immediatelly after
20263 create_process calls and use it on the call to error.
20264
20265 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20266
20267 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20268
20269 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20270
20271 * configure.ac: Switch license to GPLv3.
20272
20273 2007-08-01 Michael Snyder <msnyder@access-company.com>
20274
20275 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20276
20277 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20278
20279 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20280 typedef.
20281 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20282 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20283 CloseToolhelp32Snapshot.
20284 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20285 CloseToolhelp32Snapshot.
20286
20287 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20288
20289 * server.c (main): Check for inferior exit before main loop.
20290
20291 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20292
20293 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20294 instead of on tmp_desc.
20295
20296 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20297 Daniel Jacobowitz <dan@codesourcery.com>
20298
20299 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20300 (add_thread): Minor cleanups.
20301 (clear_inferiors): Move lower in the file. Clear the DLL
20302 list.
20303 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20304 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20305 (xml_escape_text): New.
20306 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20307 for qSupported.
20308 (handle_v_cont): Report errors.
20309 (gdbserver_version): Update.
20310 (main): Correct size of own_buf. Do not report initial DLL events.
20311 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20312 (unloaded_dll, xml_escape_text): New.
20313 * win32-low.c (enum target_waitkind): Update comments.
20314 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20315 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20316 (win32_EnumProcessModules, win32_GetModuleInformation)
20317 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20318 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20319 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20320 (win32_Module32First, win32_Module32Next, load_toolhelp)
20321 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20322 (get_child_debug_event): Handle DLL events.
20323 (win32_wait): Likewise.
20324
20325 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20326
20327 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20328 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20329
20330 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20331
20332 * win32-low.c (handle_output_debug_string): Ignore event if not
20333 waiting.
20334
20335 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20336
20337 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20338
20339 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20340
20341 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20342
20343 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20344
20345 * inferiors.c (change_inferior_id): Add comment.
20346 * linux-low.c (check_removed_breakpoint): Add an early
20347 prototype. Improve debug output.
20348 (linux_attach): Doc update.
20349 (linux_detach_one_process, linux_detach): Clean up before releasing
20350 each process.
20351 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20352 * linux-low.h (struct process_info): Doc improvement.
20353 * mem-break.c (delete_all_breakpoints): New.
20354 * mem-break.h (delete_all_breakpoints): New prototype.
20355 * thread-db.c (find_first_thread): New.
20356 (thread_db_create_event): Call it instead of
20357 thread_db_find_new_threads. Clean up unused variables.
20358 (maybe_attach_thread): Remove first thread handling.
20359 (thread_db_find_new_threads): Use find_first_thread.
20360 (thread_db_get_tls_address): Likewise.
20361
20362 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20363
20364 * thread-db.c (thread_db_find_new_threads): Add prototype.
20365 (thread_db_create_event): Check for the main thread before adding
20366 a new thread.
20367 (maybe_attach_thread): Only enable event reporting if TID == 0.
20368 (thread_db_get_tls_address): Check for new threads.
20369
20370 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20371
20372 * linux-low.c (linux_create_inferior): Try execv before execvp.
20373 * spu-low.c (spu_create_inferior): Likewise.
20374
20375 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20376
20377 * linux-low.c (linux_create_inferior): Change execv to execvp.
20378 * spu-low.c (spu_create_inferior): Likewies.
20379
20380 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20381
20382 * Makefile.in (clean): Clean new files instead of deleted ones.
20383 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20384 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20385 rules.
20386 * configure.srv: Specify XML files and new regformats for MIPS and
20387 MIPS64 GNU/Linux.
20388 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20389 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20390 an entry for the restart register.
20391 (mips_cannot_fetch_register, mips_cannot_store_register)
20392 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20393 register names to match the XML descriptions.
20394 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20395 restart register instead of $0.
20396
20397 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20398 Markus Deuling <deuling@de.ibm.com>
20399
20400 * remote-utils.c (decode_xfer_write): New function.
20401 * server.h (decode_xfer_write): Add prototype.
20402 * server.c (handle_query): Add PACKET_LEN argument. Support
20403 qXfer:spu:read and qXfer:spu:write packets.
20404 (main): Pass packet_len to handle_query.
20405 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20406 * target.h (target_ops): Add qxfer_spu.
20407
20408 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20409
20410 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20411 accessing non-seekable spufs files.
20412
20413 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20414
20415 * server.c (handle_query): Add reply for qC packet.
20416
20417 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20418 Leo Zayas <lerele@champenstudios@com>
20419
20420 * server.h (check_remote_input_interrupt_request): New function.
20421 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20422 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20423 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20424 (check_remote_input_interrupt_request): New function.
20425 * server.h (check_remote_input_interrupt_request): Declare.
20426 * win32-low.c (winapi_DebugBreakProcess,
20427 winapi_GenerateConsoleCtrlEvent): New typedefs.
20428 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20429 to 250 ms.
20430 (win32_wait): Check for remote interrupt request
20431 with check_remote_input_interrupt_request.
20432 (win32_request_interrupt): New function.
20433 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20434
20435 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20436
20437 * win32-low.c (debug_registers_changed,
20438 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20439 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20440 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20441 (thread_rec): Get context using the low target.
20442 (child_add_thread): Call thread_added on the low target,
20443 which does the same thing.
20444 (regptr): Delete.
20445 (do_initial_child_stuff): Remove debug registers references.
20446 Set context using the low target. Resume threads after
20447 setting the contexts.
20448 (child_continue): Remove dead variable. Remove debug
20449 registers references.
20450 (child_fetch_inferior_registers): Go through the low target.
20451 (do_child_store_inferior_registers): Remove.
20452 (child_store_inferior_registers): Go through the low target.
20453 (win32_resume): Remove debug registers references.
20454 Set context using the low target.
20455 (handle_exception): Change return type to void. Don't record
20456 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20457 first chance exception.
20458 (get_child_debug_event): Change return type to void. Remove
20459 goto loop. Always return after waiting for debug event.
20460 (win32_wait): Convert to switch statement. Handle spurious
20461 events.
20462
20463 * win32-i386-low.c (debug_registers_changed,
20464 debug_registers_used): New.
20465 (initial_stuff): Rename to ...
20466 (i386_initial_stuff): ... this. Clear debug registers
20467 state variables.
20468 (store_debug_registers): Delete.
20469 (i386_get_thread_context): New.
20470 (load_debug_registers): Delete.
20471 (i386_set_thread_context): New.
20472 (i386_thread_added): New.
20473 (single_step): Rename to ...
20474 (i386_single_step): ... this.
20475 (do_fetch_inferior_registers): Rename to ...
20476 (i386_fetch_inferior_register): ... this.
20477 (i386_store_inferior_register): New.
20478 (the_low_target): Adapt to new interface.
20479
20480 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20481 (arm_get_thread_context): New.
20482 (arm_set_thread_context): New.
20483 (regptr): New.
20484 (do_fetch_inferior_registers): Rename to ...
20485 (arm_fetch_inferior_register): ... this.
20486 (arm_store_inferior_register): New.
20487 (arm_wince_breakpoint): Reimplement as unsigned long.
20488 (arm_wince_breakpoint_len): Define.
20489 (the_low_target): Adapt to new interface.
20490
20491 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20492 load_debug_registers. Add get_thread_context, set_thread_context,
20493 thread_added and store_inferior_register. Rename
20494 fetch_inferior_registers to fetch_inferior_register.
20495 (regptr): Remove declaration.
20496
20497 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20498
20499 * linux-low.c (linux_detach): Change return type to int. Return 0.
20500 * spu-low.c (spu_detach): Likewise.
20501
20502 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20503
20504 * target.h (target_ops): Change return type of detach to int.
20505 Add join.
20506 (join_inferior): New.
20507 * server.c (main): Don't skip detach support on mingw32.
20508 If the inferior doesn't support detaching return error.
20509 Call join_inferior instead of using waitpid.
20510 * linux-low.c (linux_join): New.
20511 (linux_target_op): Add linux_join.
20512 * spu-low.c (spu_join): New.
20513 (spu_target_ops): Add spu_join.
20514 * win32-low.c (win32_detach): Adapt to new interface.
20515 Reopen current_process_handle before detaching. Issue a child
20516 resume before detaching.
20517 (win32_join): New.
20518 (win32_target_op): Add win32_join.
20519
20520 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20521
20522 * win32-low.c (win32-attach): Fix return value.
20523 * target.h (target_ops): Describe ATTACH return values.
20524
20525 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20526
20527 * win32-low.c (GETPROCADDRESS): Define.
20528 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20529 (winapi_DebugSetProcessKillOnExit): Likewise.
20530 (win32_create_inferior): Force usage of ansi CreateProcessA.
20531 (win32_attach): Use GETPROCADDRESS.
20532 (win32_detach): Likewise.
20533
20534 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20535
20536 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20537
20538 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20539
20540 * win32-low.c: Commit leftover changes from 2007-03-29.
20541
20542 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20543
20544 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20545 fields short instead of int. Add explicit padding.
20546 (i387_cache_to_fsave): Remove unnecessary casts.
20547 (i387_fsave_to_cache): Doc fix.
20548 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20549
20550 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20551
20552 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20553 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20554
20555 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20556
20557 * configure.srv (arm*-*-mingw32ce*): Move near the other
20558 arm targets.
20559
20560 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20561
20562 * configure.ac: Add errno checking.
20563 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20564 sys/file.h and malloc.h.
20565 (AC_CHECK_DECLS): Add perror.
20566 (srv_mingwce): Handle.
20567 * configure.srv (i[34567]86-*-cygwin*): Add
20568 win32-i386-low.o to srv_tgtobj.
20569 (i[34567]86-*-mingw*): Likewise.
20570 (arm*-*-mingw32ce*): Add case.
20571 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20572 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20573 [__MINGW32CE__] (strerror): New function.
20574 [__MINGW32CE__] (errno): Define to GetLastError.
20575 [__MINGW32CE__] (COUNTOF): New macro.
20576 (remote_open): Remove extra close call.
20577 * mem-break.c (delete_breakpoint_at): New function.
20578 * mem-break.h (delete_breakpoint_at): Declare.
20579 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20580 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20581 [USE_WIN32API] (read, write): Add char* casts.
20582 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20583 * server.h: Include wincecompat.h on Windows CE.
20584 [HAVE_ERRNO_H]: Check.
20585 (perror): Declare if not declared.
20586 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20587 (perror_with_name): Remove errno declaration.
20588 * wincecompat.h: New.
20589 * wincecompat.c: New.
20590 * win32-low.h: New.
20591 * win32-arm-low.c: New.
20592 * win32-i386-low.c: New.
20593 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20594 (OUTMSG2): Make it safe.
20595 (_T): New macro.
20596 (COUNTOF): New macro.
20597 (NUM_REGS): Get it from the low target.
20598 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20599 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20600 (thread_rec): Let low target handle debug registers.
20601 (child_add_thread): Likewise.
20602 (child_init_thread_list): Likewise.
20603 (continue_one_thread): Likewise.
20604 (regptr): New.
20605 (do_child_fetch_inferior_registers): Move to ...
20606 * win32-i386-low.c: ... here, and rename to ...
20607 (do_fetch_inferior_registers): ... this.
20608 * win32-low.c (child_fetch_inferior_registers):
20609 Go through the low target.
20610 (do_child_store_inferior_registers): Use regptr.
20611 (strwinerror): New function.
20612 (win32_create_inferior): Handle Windows CE.
20613 Use strwinerror instead of strerror on Windows error
20614 codes. Add program to the error output.
20615 Don't close the main thread handle on Windows CE.
20616 (win32_attach): Use coredll.dll on Windows CE.
20617 (win32_kill): Close current process and current
20618 thread handles.
20619 (win32_detach): Use coredll.dll on Windows CE.
20620 (win32_resume): Let low target handle debug registers, and
20621 step request.
20622 (handle_exception): Add/Remove initial breakpoint. Avoid
20623 non-existant WSTOPSIG on Windows CE.
20624 (win32_read_inferior_memory): Cast to remove warning.
20625 (win32_arch_string): Go through the low target.
20626 (initialize_low): Call set_breakpoint_data with the low
20627 target's breakpoint.
20628 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20629 FOP_REGNUM, mappings): Move to ...
20630 * win32-i386-low.c: ... here.
20631 * win32-low.c (win32_thread_info): Move to ...
20632 * win32-low.h: ... here.
20633 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20634 win32-arm-low.c and wincecompat.c.
20635 (all:): Add $EXEEXT.
20636 (install-only:): Likewise.
20637 (gdbserver:): Likewise.
20638 (gdbreplay:): Likewise.
20639 * config.in: Regenerate.
20640 * configure: Regenerate.
20641
20642 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20643
20644 * win32-low.c: Rename typedef thread_info to
20645 win32_thread_info throughout.
20646
20647 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20648
20649 * win32-i386-low.c: Rename to ...
20650 * win32-low.c: ... this.
20651 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20652 * Makefile.in: Likewise.
20653
20654 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20655
20656 * remote-utils.c (monitor_output): Constify msg parameter.
20657 * server.h (monitor_output): Likewise.
20658 * win32-i386-low.c (handle_output_debug_string): New.
20659 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20660 handle_output_debug_string.
20661 (get_child_debug_event): Likewise.
20662
20663 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20664
20665 * server.c (main): Correct strtoul check.
20666
20667 2007-03-27 Jon Ringle <jon@ringle.org>
20668
20669 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20670
20671 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20672
20673 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20674
20675 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20676
20677 * terminal.h: Check HAVE_SGTTY_H.
20678
20679 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20680
20681 * remote-utils.c (remote_open): Print out the assigned port number.
20682
20683 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20684
20685 * remote-utils.c (monitor_output): New function.
20686 * server.c (debug_threads): Define here.
20687 (monitor_show_help): New function.
20688 (handle_query): Handle qRcmd.
20689 (main): Do not handle 'd' packet.
20690 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20691 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20692 of debug_threads.
20693
20694 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20695
20696 * Makefile.in (EXEEXT): New.
20697 (clean): Use $(EXEEXT).
20698
20699 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20700
20701 * target.h (target_ops): Rename send_signal to request_interrupt,
20702 and remove enum target_signal parameter.
20703 * linux-low.c (linux_request_interrupt): Rename from
20704 linux_send_signal, and always send SIGINT.
20705 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20706 and always send SIGINT.
20707 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20708 of send_signal.
20709 (input_interrupt): Likewise.
20710
20711 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20712
20713 * server.c (get_features_xml): Check if target implemented
20714 arch_string.
20715 * win32-i386-low.c (win32_arch_string): New.
20716 (win32_target_ops): Add win32_arch_string as arch_string member.
20717
20718 2007-02-22 Markus Deuling <deuling@de.ibm.com>
20719
20720 * spu-low.c (spu_arch_string): New.
20721 (spu_target_ops): Add spu_arch_string.
20722
20723 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20724
20725 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20726 * configure.ac: Do not check for terminal.h.
20727 * configure, config.in: Regenerated.
20728
20729 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20730
20731 * Makefile.in (OBS): Add $(XML_BUILTIN).
20732 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20733 (clean): Update.
20734 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20735 (arm-with-iwmmxt.c): New.
20736 * config.in, configure: Regenerate.
20737 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20738 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20739 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20740 (arm*-*-linux*): Add iWMMXt and regset support.
20741 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20742 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20743 (arm_store_wmmxregset, target_regsets): New.
20744 * server.c (get_features_xml): Take annex argument. Check builtin
20745 XML documents.
20746 (handle_query): Handle multiple annexes.
20747
20748 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20749
20750 * remote-utils.c [USE_WIN32API] (read, write): Define.
20751 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20752 write.
20753
20754 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20755
20756 * linux-i386-low.c (the_low_target): Set arch_string.
20757 * linux-x86-64-low.c (the_low_target): Likewise.
20758 * linux-low.c (linux_arch_string): New.
20759 (linux_target_ops): Add it.
20760 * linux-low.h (struct linux_target_ops): Add arch_string.
20761 * server.c (write_qxfer_response): Use const void * for DATA.
20762 (get_features_xml): New.
20763 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20764 * target.h (struct target_ops): Add arch_string method.
20765
20766 2007-01-03 Denis Pilat <denis.pilat@st.com>
20767 Daniel Jacobowitz <dan@codesourcery.com>
20768
20769 * linux-low.c (linux_kill): Handle being called with no threads.
20770 * win32-i386-low.c (win32_kill): Likewise.
20771 (get_child_debug_event): Clear current_process_handle.
20772
20773 2006-12-30 Denis PILAT <denis.pilat@st.com>
20774 Daniel Jacobowitz <dan@codesourcery.com>
20775
20776 * remote-utils.c (remote_open): Check the type of specified
20777 serial port devices before opening them.
20778 * server.c (main): Kill the inferior if an error occurs during
20779 the first remote_open.
20780
20781 2006-12-05 Markus Deuling <deuling@de.ibm.com>
20782
20783 * README: Update supported targets.
20784
20785 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20786
20787 * Makefile.in (clean): Remove reg-mips64.c.
20788 (reg-mips64.c, reg-mips64.o): New rules.
20789 * configure.srv: Handle mips64. Include regset support for mips.
20790 * linux-mips-low.c (union mips_register): New.
20791 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20792 (mips_breakpoint, mips_breakpoint_at): Use int.
20793 (mips_collect_register, mips_supply_register)
20794 (mips_collect_register_32bit, mips_supply_register_32bit)
20795 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20796 (mips_store_fpregset, target_regsets): New.
20797 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20798
20799 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20800
20801 * configure.srv: Add target "spu*-*-*".
20802 * Makefile.in (clean): Remove reg-spu.c.
20803 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20804 * spu-low.c: New file.
20805
20806 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20807
20808 * configure.ac: Correct td_thr_tls_get_addr test.
20809 * configure: Regenerated.
20810
20811 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20812
20813 * linux-low.c (linux_wait_for_event): Reformat. Use the
20814 pass_signals array.
20815 * remote-utils.c (decode_address_to_semicolon): New.
20816 * server.c (pass_signals, handle_general_set): New.
20817 (handle_query): Mention QPassSignals for qSupported.
20818 (main): Call handle_general_set.
20819 * server.h (pass_signals, decode_address_to_semicolon): New.
20820
20821 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20822
20823 * server.c (handle_query): Correct error handling for read_auxv.
20824
20825 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20826
20827 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20828 and srv_linux_thread_db to yes.
20829 * linux-s390-low.c (s390_fill_gregset): New function.
20830 (target_regsets): Define data structure.
20831
20832 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20833
20834 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20835 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20836 * config.in, configure: Regenerated.
20837 * inferiors.c (gdb_id_to_thread): New function.
20838 (gdb_id_to_thread_id): Use it.
20839 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20840 * linux-low.h (struct process_info): Add th member.
20841 (thread_db_get_tls_address): New prototype.
20842 * remote-utils.c (decode_address): Make non-static.
20843 * server.c (handle_query): Handle qGetTLSAddr.
20844 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20845 * target.h (struct target_ops): Add get_tls_address.
20846 * thread-db.c (maybe_attach_thread): Save the thread handle.
20847 (thread_db_get_tls_address): New.
20848
20849 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20850
20851 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20852 (linux_resume_one_process): Take a siginfo_t *. Update all
20853 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20854 (struct pending_signals): Add a siginfo_t.
20855 (linux_wait_for_process): Always set last_status.
20856 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20857 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20858 * linux-low.h (struct process_info): Add last_status.
20859
20860 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20861
20862 * remote-utils.c (try_rle): New function.
20863 (putpkt_binary): Use it.
20864
20865 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20866
20867 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20868 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20869 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20870 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20871 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20872 point registers.
20873
20874 2006-08-08 Richard Sandiford <richard@codesourcery.com>
20875
20876 * server.c (terminal_fd): New variable.
20877 (old_foreground_pgrp): Likewise.
20878 (restore_old_foreground_pgrp): New function.
20879 (start_inferior): Record the terminal file descriptor in terminal_fd
20880 and its original foreground group in old_foreground_pgrp. Register
20881 restore_old_foreground_pgrp with atexit().
20882
20883 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20884
20885 * server.c (handle_query): Correct qPart to qXfer.
20886
20887 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20888
20889 * configure.ac: Check for more headers which are missing on
20890 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20891 * configure.srv: Add Cygwin and mingw32.
20892 * remote-utils.c: Don't include headers unconditionally which
20893 are missing on mingw32. Include <winsock.h> for mingw32.
20894 (remote_open): Adjust for mingw32 support. Flush
20895 standard error after writing to it.
20896 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20897 (unblock_async_io, enable_async_io, disable_async_io)
20898 (readchar, getpkt): Update for Winsock support.
20899 (prepare_resume_reply): Expect a protocol signal number.
20900 * server.c: Disable <sys/wait.h> on mingw32.
20901 (start_inferior): Adjust for mingw32 support. Flush
20902 standard error after writing to it.
20903 (attach_inferior): Likewise. Use protocol signal
20904 numbers.
20905 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20906 and names.
20907 * win32-i386-low.c: New file.
20908 * Makefile.in (XM_CLIBS): Set.
20909 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20910 (win32-i386-low.o): New dependency rule.
20911 * linux-low.c (linux_wait): Use target signal numbers.
20912 * target.h (struct target_ops): Doc fix.
20913 * server.h (target_signal_to_name): New prototype.
20914 * gdbreplay.c: Don't include headers unconditionally which
20915 are missing on mingw32. Include <winsock.h> for mingw32.
20916 (remote_close, remote_open): Adjust for Winsock support.
20917 * configure, config.in: Regenerated.
20918
20919 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20920
20921 * server.c (decode_xfer_read, write_qxfer_response): New.
20922 (handle_query): Take a packet length argument. Handle
20923 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20924 the qSupported response.
20925 (main): Update call to handle_query.
20926
20927 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20928
20929 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20930 (putpkt_binary): Renamed from putpkt and adjusted for binary
20931 data.
20932 (putpkt): New wrapper for putpkt_binary.
20933 (readchar): Don't mask off the high bit.
20934 (decode_X_packet): New function.
20935 * server.c (main): Call putpkt_binary if a handler sets the packet
20936 length. Save the length of the incoming packet. Handle 'X'.
20937 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20938
20939 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20940
20941 * server.c (handle_query): Handle qSupported.
20942
20943 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20944
20945 * remote-utils.c (all_symbols_looked_up): New variable.
20946 (look_up_one_symbol): Check it.
20947 * server.h (look_up_one_symbol): New declaration.
20948 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
20949
20950 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20951
20952 * Makefile.in (linux-arm-low.o): Update dependencies.
20953 * linux-arm-low.c: Include "gdb_proc_service.h".
20954 (PTRACE_GET_THREAD_AREA): Define.
20955 (ps_get_thread_area): New function.
20956
20957 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
20958
20959 * configure.srv (m68k*-*-uclinux*): New target.
20960 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
20961 (linux_resume_one_process): Remove extraneous cast.
20962 (linux_read_offsets): New.
20963 (linux_target_op): Add linux_read_offsets on mmuless systems.
20964 * server.c (handle_query): Add qOffsets logic.
20965 * target.h (struct target_ops): Add read_offsets.
20966
20967 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20968
20969 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
20970 (PTRACE_GET_THREAD_AREA): Define.
20971 (ps_get_thread_area): New function.
20972 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
20973 (linux-x86-64-low.o): Update.
20974
20975 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20976
20977 * configure.ac: Remove checks for prfpregset_t.
20978 * gdb_proc_service.h: New file.
20979 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
20980 new "gdb_proc_service.h".
20981 * proc-service.c: Likewise.
20982 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
20983 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
20984 * Makefile.in (gdb_proc_service_h): Updated.
20985 * configure, config.in: Regenerated.
20986
20987 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20988
20989 * remote-utils.c (prepare_resume_reply): Move declaration
20990 of gdb_id_from_wait to the top of the block.
20991
20992 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
20993
20994 * linux-low.c (regsets_store_inferior_registers): Read the regset
20995 from the target before filling it.
20996
20997 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20998
20999 * server.c (attach_inferior): Return SIGTRAP for a successful
21000 attach.
21001
21002 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21003
21004 * Makefile.in (OBS): Add version.o.
21005 (STAGESTUFF): Delete.
21006 (version.o): Add dependencies.
21007 (version.c): Replace rule.
21008 (clean): Remove version.c.
21009 * server.c (gdbserver_version): New.
21010 (gdbserver_usage): Use printf.
21011 (main): Handle --version and --help.
21012 * server.h (version, host_name): Add declarations.
21013
21014 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21015
21016 * linux-arm-low.c:
21017 * linux-arm-low.c:
21018 * inferiors.c:
21019 * i387-fp.h:
21020 * i387-fp.c:
21021 * gdbreplay.c:
21022 * regcache.c:
21023 * proc-service.c:
21024 * mem-break.h:
21025 * mem-break.c:
21026 * linux-x86-64-low.c:
21027 * linux-sh-low.c:
21028 * linux-s390-low.c:
21029 * linux-ppc64-low.c:
21030 * linux-ppc-low.c:
21031 * linux-mips-low.c:
21032 * linux-m68k-low.c:
21033 * linux-m32r-low.c:
21034 * linux-low.h:
21035 * linux-low.c:
21036 * linux-ia64-low.c:
21037 * linux-i386-low.c:
21038 * linux-crisv32-low.c:
21039 * thread-db.c:
21040 * terminal.h:
21041 * target.h:
21042 * target.c:
21043 * server.h:
21044 * server.c:
21045 * remote-utils.c:
21046 * regcache.h:
21047 * utils.c:
21048 * Makefile.in:
21049 * configure.ac:
21050 * gdbserver.1: Add (C) after Copyright. Update the FSF
21051 address.
21052
21053 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21054
21055 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21056 (arm_breakpoint_at): Recognize both breakpoints.
21057 (the_low_target): Use the correct breakpoint instruction.
21058
21059 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21060
21061 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21062 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21063 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21064 (the_low_target): Update.
21065
21066 2005-10-25 Andreas Schwab <schwab@suse.de>
21067
21068 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21069
21070 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21071 (ia64_num_regs): Reduce to 462.
21072
21073 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21074
21075 * acinclude.m4: Correct quoting.
21076 * aclocal.m4: Regenerated.
21077
21078 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21079 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21080 (thread_db_init): Call thread_db_err_str.
21081 * configure.ac: Check for TD_VERSION.
21082 * config.in, configure: Regenerated.
21083
21084 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21085
21086 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21087
21088 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21089
21090 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21091 is not available. Define HAVE_PTRACE_GETREGS if it is.
21092 * config.in, configure: Regenerated.
21093 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21094 * linux-i386-low.c, linux-m68k-low.c: Update to use
21095 HAVE_PTRACE_GETREGS.
21096 * linux-low.c (regsets_fetch_inferior_registers)
21097 (regsets_store_inferior_registers): Only return 0 if we processed
21098 GENERAL_REGS.
21099 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21100 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21101
21102 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21103
21104 * inferiors.c (struct thread_info): Add gdb_id.
21105 (add_thread): Add gdb_id argument.
21106 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21107 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21108 calls to add_thread.
21109 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21110 * server.c (handle_query): Use thread_to_gdb_id.
21111 (handle_v_cont, main): Use gdb_id_to_thread_id.
21112 * server.h (add_thread): Update prototype.
21113 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21114 prototypes.
21115
21116 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21117
21118 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21119 left-padded registers.
21120 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21121 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21122
21123 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21124
21125 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21126 * configure: Regenerate.
21127 * config.in: Regenerate.
21128 * server.h (NEED_DECLARATION_STRERROR):
21129 Replace with !HAVE_DECL_STRERROR.
21130
21131 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21132
21133 * linux-low.c (linux_wait, linux_send_signal): Don't test
21134 an unsigned long variable for > 0 if it could be MAX_ULONG.
21135 * server.c (myresume): Likewise.
21136 * target.c (set_desired_inferior): Likewise.
21137
21138 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21139
21140 * configure.ac: Simplify and improve check for socklen_t.
21141 * configure, config.in: Regenerate.
21142
21143 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21144
21145 * acconfig.h: Remove.
21146 * configure.ac: Add a test for socklen_t. Use three-argument
21147 AC_DEFINE throughout.
21148 * config.in: Regenerated using autoheader 2.59.
21149 * configure: Regenerated.
21150
21151 * gdbreplay.c (socklen_t): Provide a default.
21152 (remote_open): Use socklen_t.
21153 * remote-utils.c (socklen_t): Provide a default.
21154 (remote_open): Use socklen_t.
21155 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21156 unsigned char.
21157
21158 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21159 char for buffers.
21160 * linux-low.c (linux_read_memory, linux_write_memory)
21161 (linux_read_auxv): Likewise.
21162 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21163 (check_mem_write): Likewise.
21164 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21165 Likewise.
21166 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21167 (registers_from_string, register_data): Likewise.
21168 * server.c (handle_query, main): Likewise.
21169 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21170 (decode_M_packet): Likewise.
21171 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21172 * target.h (struct target_ops): Update read_memory, write_memory,
21173 and read_auxv.
21174 (read_inferior_memory, write_inferior_memory): Update.
21175 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21176 to unsigned char *.
21177 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21178 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21179 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21180 linux-s390-low.c, linux-sh-low.c: Update for changes in
21181 read_inferior_memory and the_low_target->breakpoint.
21182
21183 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21184
21185 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21186 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21187 * configure.srv: Add powerpc64-*-linux*.
21188 * linux-ppc64-low.c: New file.
21189
21190 2005-05-23 Orjan Friberg <orjanf@axis.com>
21191
21192 * linux-cris-low.c: New file with support for CRIS.
21193 * linux-crisv32-low.c: Ditto for CRISv32.
21194 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21195 (clean): Add reg-cris.c and reg-crisv32.c.
21196 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21197 reg-crisv32.o, and reg-crisv32.c to make rules.
21198 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21199 recognized targets.
21200
21201 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21202
21203 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21204 of sizeof (PTRACE_XFER_TYPE).
21205 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21206
21207 2005-05-12 Orjan Friberg <orjanf@axis.com>
21208
21209 * target.h (struct target_ops): Add insert_watchpoint,
21210 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21211 pointers for hardware watchpoint support.
21212 * linux-low.h (struct linux_target_ops): Ditto.
21213 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21214 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21215 to linux_target_ops.
21216 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21217 reply packet.
21218 * server.c (main): Recognize 'Z' and 'z' packets.
21219
21220 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21221
21222 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21223 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21224 (the_low_target): Add new members.
21225
21226 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21227
21228 * proc-service.c (ps_lgetregs): Search all_processes instead of
21229 all_threads.
21230
21231 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21232
21233 * server.c (start_inferior): Change return type to int.
21234 (attach_inferior): Change sigptr to int *.
21235 (handle_v_cont, handle_v_requests): Change signal to int *.
21236 (main): Change signal to int.
21237
21238 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21239
21240 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21241 * configure.srv: Add m32r*-*-linux*.
21242 * linux-m32r-low.c: New file.
21243
21244 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21245
21246 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21247
21248 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21249
21250 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21251 Take unsigned long arguments for PIDs.
21252 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21253 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21254 (wait_for_sigstop, linux_resume_one_process)
21255 (regsets_fetch_inferior_registers, linux_send_signal)
21256 (linux_read_auxv): Likewise. Update the types of variables holding
21257 PIDs. Update format string specifiers.
21258 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21259 * remote-utils.c (prepare_resume_reply): Likewise.
21260 * server.c (cont_thread, general_thread, step_thread)
21261 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21262 unsigned long.
21263 (handle_query): Update format specifiers.
21264 (handle_v_cont, main): Use strtoul for thread IDs.
21265 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21266 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21267 (general_thread, step_thread, thread_from_wait)
21268 (old_thread_from_wait): Update.
21269 * target.h (struct thread_resume): Use unsigned long for THREAD.
21270 (struct target_ops): Use unsigned long for arguments to attach and
21271 thread_alive.
21272
21273 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21274
21275 * acinclude.m4: Include bfd/bfd.m4 directly.
21276 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21277 <agriffis@toolchain.org>.
21278 * aclocal.m4, configure: Regenerated.
21279
21280 2005-01-07 Andrew Cagney <cagney@gnu.org>
21281
21282 * configure.ac: Rename configure.in, require autoconf 2.59.
21283 * configure: Re-generate.
21284
21285 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21286
21287 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21288 LIBS when finished.
21289 * aclocal.m4: Regenerated.
21290 * configure: Regenerated.
21291
21292 2004-11-21 Andreas Schwab <schwab@suse.de>
21293
21294 * linux-m68k-low.c (m68k_num_gregs): Define.
21295 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21296 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21297 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21298 (m68k_breakpoint_at): New. Add to the_low_target.
21299
21300 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21301 srv_linux_thread_db to yes.
21302
21303 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21304
21305 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21306 (ARCH_SET_FS): Likewise.
21307 (ARCH_GET_FS): Likewise.
21308 (ARCH_GET_GS): Likewise.
21309
21310 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21311
21312 * linux-i386-low.c (ps_get_thread_area): New.
21313 * linux-x86-64-low.c (ps_get_thread_area): New.
21314 * linux-low.c: Include <sys/syscall.h>.
21315 (linux_kill_one_process): Don't kill the first thread here.
21316 (linux_kill): Kill the first thread here.
21317 (kill_lwp): New function.
21318 (send_sigstop, linux_send_signal): Use it.
21319 * proc-service.c: Clean up #ifdefs.
21320 (fpregset_info): Delete.
21321 (ps_lgetregs): Update and enable implementation.
21322 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21323 implementations.
21324 * remote-utils.c (struct sym_cache, symbol_cache): New.
21325 (input_interrupt): Print a clearer message.
21326 (async_io_enabled): New variable.
21327 (enable_async_io, disable_async_io): Use it. Update comments.
21328 (look_up_one_symbol): Use the symbol cache.
21329 * thread-db.c (thread_db_look_up_symbols): New function.
21330 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21331
21332 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21333
21334 * configure.in: Test for -rdynamic.
21335 * configure: Regenerated.
21336 * Makefile (INTERNAL_LDFLAGS): New.
21337 (gdbserver, gdbreplay): Use it.
21338
21339 2004-09-02 Andrew Cagney <cagney@gnu.org>
21340
21341 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21342
21343 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21344
21345 * linux-low.c (linux_wait): Clear all_processes list also.
21346
21347 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21348
21349 * linux-low.c: Include <errno.h>. Remove extern declaration of
21350 errno.
21351
21352 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21353
21354 * gdbreplay.c, server.h, utils.c: Update copyright years.
21355
21356 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21357
21358 * server.c (main): Print child status or termination signal from
21359 variable 'signal', not 'sig'.
21360
21361 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21362
21363 * linux-low.c (linux_read_memory): Change return type to
21364 int. Check for and return error from ptrace().
21365 * target.c (read_inferior_memory): Change return type to int. Pass
21366 back return status from the_target->read_memory().
21367 * target.h (struct target_ops): Adapt *read_memory() prototype.
21368 Update comment.
21369 (read_inferior_memory): Adapt prototype.
21370 * server.c (main): Return an error packet if
21371 read_inferior_memory() returns an error.
21372
21373 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21374
21375 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21376 Unify with other clean targets.
21377
21378 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21379
21380 * server.c (handle_v_cont): Call set_desired_inferior.
21381
21382 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21383
21384 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21385
21386 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21387
21388 * linux-low.c (linux_wait): Unblock async I/O.
21389 (linux_resume): Block and enable async I/O.
21390 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21391 * server.h (block_async_io, unblock_async_io): Add prototypes.
21392
21393 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21394
21395 * remote-utils.c (remote_open): Print a status notice after
21396 opening a TCP port.
21397 * server.c (attach_inferior): Print a status notice after
21398 attaching.
21399
21400 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21401
21402 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21403
21404 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21405
21406 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21407 error packet.
21408 * server.c, target.h: Update copyright years.
21409
21410 2004-02-25 Roland McGrath <roland@redhat.com>
21411
21412 * target.h (struct target_ops): New member `read_auxv'.
21413 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21414 * linux-low.c (linux_read_auxv): New function.
21415 (linux_target_ops): Initialize `read_auxv' member to that.
21416
21417 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21418
21419 Committed by Jim Blandy <jimb@redhat.com>.
21420
21421 * linux-s390-low.c (s390_num_regs): Update.
21422 (s390_regmap): Remove control registers. Use __s390x__ predefine
21423 instead of GPR_SIZE to distiguish s390 and s390x targets.
21424
21425 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21426
21427 * linux-low.c: Update copyright year.
21428 (check_removed_breakpoint): Clear pending_is_breakpoint.
21429 (linux_set_resume_request, linux_queue_one_thread)
21430 (resume_status_pending_p): New functions.
21431 (linux_continue_one_thread): Use process->resume.
21432 (linux_resume): Only resume threads if there are no pending events.
21433 * linux-low.h (struct process_info): Add resume request
21434 pointer.
21435
21436 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21437
21438 * regcache.c (new_register_cache): Clear the allocated register
21439 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21440
21441 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21442
21443 * linux-low.c (linux_resume): Take a struct thread_resume *
21444 argument.
21445 (linux_wait): Update call.
21446 (resume_ptr): New static variable.
21447 (linux_continue_one_thread): Renamed from
21448 linux_continue_one_process. Use resume_ptr.
21449 (linux_resume): Use linux_continue_one_thread.
21450 * server.c (handle_v_cont, handle_v_requests): New functions.
21451 (myresume): New function.
21452 (main): Handle 'v' case.
21453 * target.h (struct thread_resume): New type.
21454 (struct target_ops): Change argument of "resume" to struct
21455 thread_resume *.
21456 (myresume): Delete macro.
21457
21458 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21459
21460 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21461 (uninstall): Support DESTDIR.
21462
21463 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21464
21465 * configure.srv: Add xscale*linux copy of arm*linux entry.
21466
21467 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21468
21469 * linux-arm-low.c (arm_reinsert_addr): New function.
21470 (the_low_target): Add arm_reinsert_addr.
21471
21472 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21473
21474 * mem-break.c: Remove whitespace at end of file.
21475
21476 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21477
21478 * configure.in: Check whether we need to prototype strerror.
21479 * server.h: Optionally prototype strerror.
21480 * gdbreplay.c (perror_with_name): Use strerror.
21481 * linux-low.c (linux_attach_lwp): Use strerror.
21482 * utils.c (perror_with_name): Use strerror.
21483 * config.in, configure: Regenerated.
21484
21485 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21486
21487 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21488 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21489
21490 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21491
21492 * Makefile.in (SFILES): Update.
21493 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21494 low-sun3.c: Remove files.
21495
21496 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21497
21498 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21499 (linux_detach_one_process, linux_detach): New functions.
21500 (linux_target_ops): Add linux_detach.
21501 * server.c (main): Handle 'D' packet.
21502 * target.h (struct target_ops): Add "detach" member.
21503 (detach_inferior): Define.
21504
21505 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21506
21507 From Kelley Cook <kelleycook@wideopenwest.com>:
21508 * configure.srv: Accept i[34567]86 variants.
21509
21510 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21511
21512 * linux-low.c (linux_wait_for_event): Correct comment typos.
21513 (linux_resume_one_process): Call check_removed_breakpoint.
21514 (linux_send_signal): New function.
21515 (linux_target_ops): Add linux_send_signal.
21516 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21517 of kill.
21518 * target.h (struct target_ops): Add send_signal.
21519
21520 2003-05-29 Jim Blandy <jimb@redhat.com>
21521
21522 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21523 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21524 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21525 away part of the register's value.
21526
21527 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21528
21529 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21530 (linux_wait_for_event, linux_init_signals): Likewise.
21531
21532 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21533
21534 * configure.in: Check for stdlib.h.
21535 * configure: Regenerated.
21536 * config.in: Regenerated.
21537
21538 2003-01-04 Andreas Schwab <schwab@suse.de>
21539
21540 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21541
21542 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21543
21544 * Makefile.in: Remove obsolete code.
21545
21546 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21547
21548 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21549 defined(PT_FPR0_HI).
21550
21551 2002-11-17 Stuart Hughes <seh@zee2.com>
21552
21553 * linux-arm-low.c (arm_num_regs): Increase.
21554 (arm_regmap): Include status register.
21555
21556 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21557
21558 * linux-low.c (register_addr): Remove incorrect -1 check.
21559
21560 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21561
21562 * linux-low.c (linux_create_inferior): Call setpgid. Return
21563 the new PID.
21564 (unstopped_p, linux_signal_pid): Remove.
21565 (linux_target_ops): Remove linux_signal_pid.
21566 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21567 global instead of target method.
21568 * target.h (struct target_ops): Remove signal_pid. Update comment
21569 for create_inferior.
21570 * server.c (signal_pid): New variable.
21571 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21572 gdbserver. Set the child to be the foreground process group.
21573 (attach_inferior): Set signal_pid.
21574
21575 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21576
21577 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21578
21579 2002-08-20 Jim Blandy <jimb@redhat.com>
21580
21581 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21582 default for this.
21583
21584 2002-08-01 Andrew Cagney <cagney@redhat.com>
21585
21586 * Makefile.in: Make chill references obsolete.
21587
21588 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21589
21590 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21591 * configure: Regenerate.
21592 * config.in: Regenerate.
21593
21594 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21595
21596 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21597 (perror_with_name, remote_close, remote_open, expect, play): Static.
21598
21599 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21600
21601 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21602 byte offsets instead of an array of indexes.
21603 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21604
21605 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21606
21607 * regcache.c: Add comment.
21608
21609 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21610
21611 * thread-db.c: New file.
21612 * proc-service.c: New file.
21613 * acinclude.m4: New file.
21614 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21615 proc-service.o, and thread-db.o.
21616 (linux-low.o): Add USE_THREAD_DB.
21617 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21618 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21619 * aclocal.m4: Regenerated.
21620 * config.in: Regenerated.
21621 * configure: Regenerated.
21622 * configure.in: Check for proc_service.h, sys/procfs.h,
21623 thread_db.h, and linux/elf.h headrs.
21624 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21625 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21626 Check for -lthread_db and thread support.
21627 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21628 PowerPC, and SuperH.
21629 * i387-fp.c: Constify arguments.
21630 * i387-fp.h: Likewise.
21631 * inferiors.c: (struct thread_info): Renamed from
21632 `struct inferior_info'. Remove PID member. Use generic inferior
21633 list header. All uses updated.
21634 (inferiors, signal_pid): Removed.
21635 (all_threads): New variable.
21636 (get_thread): Define.
21637 (add_inferior_to_list): New function.
21638 (for_each_inferior): New function.
21639 (change_inferior_id): New function.
21640 (add_inferior): Removed.
21641 (remove_inferior): New function.
21642 (add_thread): New function.
21643 (free_one_thread): New function.
21644 (remove_thread): New function.
21645 (clear_inferiors): Use for_each_inferior and free_one_thread.
21646 (find_inferior): New function.
21647 (find_inferior_id): New function.
21648 (inferior_target_data): Update argument type.
21649 (set_inferior_target_data): Likewise.
21650 (inferior_regcache_data): Likewise.
21651 (set_inferior_regcache_data): Likewise.
21652 * linux-low.c (linux_bp_reinsert): Remove.
21653 (all_processes, stopping_threads, using_thrads)
21654 (struct pending_signals, debug_threads, pid_of): New.
21655 (inferior_pid): Replace with macro.
21656 (struct inferior_linux_data): Remove.
21657 (get_stop_pc, add_process): New functions.
21658 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21659 Use add_process and add_thread.
21660 (linux_attach_lwp): New function, based on old linux_attach. Use
21661 add_process and add_thread. Set stop_expected for new threads.
21662 (linux_attach): New function.
21663 (linux_kill_one_process): New function.
21664 (linux_kill): Kill all LWPs.
21665 (linux_thread_alive): Use find_inferior_id.
21666 (check_removed_breakpoints, status_pending_p): New functions.
21667 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21668 Update. Use WNOHANG. Wait for cloned processes also. Update process
21669 struct for the found process.
21670 (linux_wait_for_event): New function.
21671 (linux_wait): Use it. Support LWPs.
21672 (send_sigstop, wait_for_sigstop, stop_all_processes)
21673 (linux_resume_one_process, linux_continue_one_process): New functions.
21674 (linux_resume): Support LWPs.
21675 (REGISTER_RAW_SIZE): Remove.
21676 (fetch_register): Use register_size instead. Call supply_register.
21677 (usr_store_inferior_registers): Likewise. Call collect_register.
21678 Fix recursive case.
21679 (regsets_fetch_inferior_registers): Improve error message.
21680 (regsets_store_inferior_registers): Add debugging.
21681 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21682 (unstopped_p, linux_signal_pid): New functions.
21683 (linux_target_ops): Add linux_signal_pid.
21684 (linux_init_signals): New function.
21685 (initialize_low): Call it. Initialize using_threads.
21686 * regcache.c (inferior_regcache_data): Add valid
21687 flag.
21688 (get_regcache): Fetch registers lazily. Add fetch argument
21689 and update all callers.
21690 (regcache_invalidate_one, regcache_invalidate): New
21691 functions.
21692 (new_register_cache): Renamed from create_register_cache.
21693 Return the new regcache.
21694 (free_register_cache): Change argument to a void *.
21695 (registers_to_string, registers_from_string): Call get_regcache
21696 with fetch flag set.
21697 (register_data): Make static. Pass fetch flag to get_regcache.
21698 (supply_register): Call get_regcache with fetch flag clear.
21699 (collect_register): Call get_regcache with fetch flag set.
21700 (collect_register_as_string): New function.
21701 * regcache.h: Update.
21702 * remote-utils.c (putpkt): Flush after debug output and use
21703 stderr.
21704 Handle input interrupts while waiting for an ACK.
21705 (input_interrupt): Use signal_pid method.
21706 (getpkt): Flush after debug output and use stderr.
21707 (outreg): Use collect_register_as_string.
21708 (new_thread_notify, dead_thread_notify): New functions.
21709 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21710 and general_thread.
21711 (look_up_one_symbol): Flush after debug output.
21712 * server.c (step_thread, server_waiting): New variables.
21713 (start_inferior): Don't use signal_pid. Update call to mywait.
21714 (attach_inferior): Update call to mywait.
21715 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21716 (main): Don't fetch/store registers explicitly. Use
21717 set_desired_inferior. Support proposed ``Hs'' packet. Update
21718 calls to mywait.
21719 * server.h: Update.
21720 (struct inferior_list, struct_inferior_list_entry): New.
21721 * target.c (set_desired_inferior): New.
21722 (write_inferior_memory): Constify.
21723 (mywait): New function.
21724 * target.h: Update.
21725 (struct target_ops): New signal_pid method.
21726 (mywait): Removed macro, added prototype.
21727
21728 * linux-low.h (regset_func): Removed.
21729 (regset_fill_func, regset_store_func): New.
21730 (enum regset_type): New.
21731 (struct regset_info): Add type field. Use new operation types.
21732 (struct linux_target_ops): stop_pc renamed to get_pc.
21733 Add decr_pc_after_break and breakpoint_at.
21734 (get_process, get_thread_proess, get_process_thread)
21735 (strut process_info, all_processes, linux_attach_lwp)
21736 (thread_db_init): New.
21737
21738 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21739 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21740 (the_low_target): Add new members.
21741 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21742 (i386_store_fpxregset): Constify.
21743 (target_regsets): Add new kind identifier.
21744 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21745 (i386_set_pc): Add debugging.
21746 (i386_breakpoint_at): New function.
21747 (the_low_target): Add new members.
21748 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21749 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21750 (mips_breakpoint_at): New.
21751 (the_low_target): Add new members.
21752 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21753 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21754 (the_low_target): Add new members.
21755 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21756 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21757 (the_low_target): Add new members.
21758 * linux-x86-64-low.c (target_regsets): Add new kind
21759 identifier.
21760
21761 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
21762
21763 From Martin Pool <mbp@samba.org>:
21764 * server.c (gdbserver_usage): New function.
21765 (main): Call it.
21766
21767 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
21768
21769 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21770 stop_at -> stop_pc.
21771
21772 2002-05-04 Andrew Cagney <ac131313@redhat.com>
21773
21774 * Makefile.in: Remove obsolete code.
21775
21776 2002-04-24 Michal Ludvig <mludvig@suse.cz>
21777
21778 * linux-low.c (regsets_fetch_inferior_registers),
21779 (regsets_store_inferior_registers): Removed cast to int from
21780 ptrace() calls.
21781 * regcache.h: Added declaration of struct inferior_info.
21782
21783 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21784
21785 * inferiors.c (struct inferior_info): Add regcache_data.
21786 (add_inferior): Call create_register_cache.
21787 (clear_inferiors): Call free_register_cache.
21788 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21789 * regcache.c (struct inferior_regcache_data): New.
21790 (registers): Remove.
21791 (get_regcache): New function.
21792 (create_register_cache, free_register_cache): New functions.
21793 (set_register_cache): Don't initialize the register cache here.
21794 (registers_to_string, registers_from_string, register_data): Call
21795 get_regcache.
21796 * regcache.h: Add prototypes.
21797 * server.h: Likewise.
21798
21799 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21800
21801 * mem-break.c: New file.
21802 * mem-break.h: New file.
21803 * Makefile.in: Add mem-break.o rule; update server.h
21804 dependencies.
21805 * inferiors.c (struct inferior_info): Add target_data
21806 member.
21807 (clear_inferiors): Free target_data member if set.
21808 (inferior_target_data, set_inferior_target_data): New functions.
21809 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21810 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21811 * linux-low.c (linux_bp_reinsert): New variable.
21812 (struct inferior_linux_data): New.
21813 (linux_create_inferior): Use set_inferior_target_data.
21814 (linux_attach): Likewise. Call add_inferior.
21815 (linux_wait_for_one_inferior): New function.
21816 (linux_wait): Call it.
21817 (linux_write_memory): Add const.
21818 (initialize_low): Call set_breakpoint_data.
21819 * linux-low.h (struct linux_target_ops): Add breakpoint
21820 handling members.
21821 * server.c (attach_inferior): Remove extra add_inferior
21822 call.
21823 * server.h: Include mem-break.h. Update inferior.c
21824 prototypes.
21825 * target.c (read_inferior_memory)
21826 (write_inferior_memory): New functions.
21827 * target.h (read_inferior_memory)
21828 (write_inferior_memory): Change macros to prototypes.
21829 (struct target_ops): Update comments. Add const to write_memory
21830 definition.
21831
21832 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
21833
21834 * linux-low.c (usr_store_inferior_registers): Support
21835 registers which are allowed to fail to store.
21836 * linux-low.h (linux_target_ops): Likewise.
21837 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21838 (ppc_cannot_store_register): FPSCR may not be storable.
21839
21840 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21841
21842 * server.h: Include <string.h> if HAVE_STRING_H.
21843 * ChangeLog: Correct paths in last ChangeLog entry.
21844
21845 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21846
21847 * linux-low.h: Remove obsolete prototypes.
21848 (struct linux_target_ops): New.
21849 (extern the_low_target): New.
21850 * linux-low.c (num_regs, regmap): Remove declarations.
21851 (register_addr): Use the_low_target explicitly.
21852 (fetch_register): Likewise.
21853 (usr_fetch_inferior_registers): Likewise.
21854 (usr_store_inferior_registers): Likewise.
21855 * linux-arm-low.c (num_regs): Remove.
21856 (arm_num_regs): Define.
21857 (arm_regmap): Renamed from regmap, made static.
21858 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21859 made static.
21860 (arm_cannot_store_register): Renamed from cannot_store_register,
21861 made static.
21862 (the_low_target): New.
21863 * linux-i386-low.c (num_regs): Remove.
21864 (i386_num_regs): Define.
21865 (i386_regmap): Renamed from regmap, made static.
21866 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21867 made static.
21868 (i386_cannot_store_register): Renamed from cannot_store_register,
21869 made static.
21870 (the_low_target): New.
21871 * linux-ia64-low.c (num_regs): Remove.
21872 (ia64_num_regs): Define.
21873 (ia64_regmap): Renamed from regmap, made static.
21874 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21875 made static.
21876 (ia64_cannot_store_register): Renamed from cannot_store_register,
21877 made static.
21878 (the_low_target): New.
21879 * linux-m68k-low.c (num_regs): Remove.
21880 (m68k_num_regs): Define.
21881 (m68k_regmap): Renamed from regmap, made static.
21882 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21883 made static.
21884 (m68k_cannot_store_register): Renamed from cannot_store_register,
21885 made static.
21886 (the_low_target): New.
21887 * linux-mips-low.c (num_regs): Remove.
21888 (mips_num_regs): Define.
21889 (mips_regmap): Renamed from regmap, made static.
21890 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21891 made static.
21892 (mips_cannot_store_register): Renamed from cannot_store_register,
21893 made static.
21894 (the_low_target): New.
21895 * linux-ppc-low.c (num_regs): Remove.
21896 (ppc_num_regs): Define.
21897 (ppc_regmap): Renamed from regmap, made static.
21898 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21899 made static.
21900 (ppc_cannot_store_register): Renamed from cannot_store_register,
21901 made static.
21902 (the_low_target): New.
21903 * linux-s390-low.c (num_regs): Remove.
21904 (s390_num_regs): Define.
21905 (s390_regmap): Renamed from regmap, made static.
21906 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21907 made static.
21908 (s390_cannot_store_register): Renamed from cannot_store_register,
21909 made static.
21910 (the_low_target): New.
21911 * linux-sh-low.c (num_regs): Remove.
21912 (sh_num_regs): Define.
21913 (sh_regmap): Renamed from regmap, made static.
21914 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21915 made static.
21916 (sh_cannot_store_register): Renamed from cannot_store_register,
21917 made static.
21918 (the_low_target): New.
21919 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21920 (the_low_target): New.
21921
21922 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21923
21924 * Makefile.in: Add stamp-h target.
21925 * configure.in: Create stamp-h.
21926 * configure: Regenerated.
21927
21928 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21929
21930 * inferiors.c: New file.
21931 * target.c: New file.
21932 * target.h: New file.
21933 * Makefile.in: Add target.o and inferiors.o. Update
21934 dependencies.
21935 * linux-low.c (inferior_pid): New static variable,
21936 moved from server.c.
21937 (linux_create_inferior): Renamed from create_inferior.
21938 Call add_inferior. Return 0 on success instead of a PID.
21939 (linux_attach): Renamed from myattach.
21940 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
21941 (linux_thread_alive): Renamed from mythread_alive.
21942 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
21943 child dies.
21944 (linux_resume): Renamed from myresume. Add missing ``return 0''.
21945 (regsets_store_inferior_registers): Correct error message.
21946 Add missing ``return 0''.
21947 (linux_fetch_registers): Renamed from fetch_inferior_registers.
21948 (linux_store_registers): Renamed from store_inferior_registers.
21949 (linux_read_memory): Renamed from read_inferior_memory.
21950 (linux_write_memory): Renamed from write_inferior_memory.
21951 (linux_target_ops): New structure.
21952 (initialize_low): Call set_target_ops ().
21953 * remote-utils.c (unhexify): New function.
21954 (hexify): New function.
21955 (input_interrupt): Send signals to ``signal_pid''.
21956 * server.c (inferior_pid): Remove.
21957 (start_inferior): Update create_inferior call.
21958 (attach_inferior): Call add_inferior.
21959 (handle_query): New function.
21960 (main): Call handle_query for `q' packets.
21961 * server.h: Include "target.h". Remove obsolete prototypes.
21962 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
21963
21964 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21965
21966 * Makefile.in: Add WARN_CFLAGS. Update configury
21967 dependencies.
21968 * configure.in: Check for <string.h>
21969 * configure: Regenerate.
21970 * config.in: Regenerate.
21971 * gdbreplay.c: Include needed system headers.
21972 (remote_open): Remove strchr prototype.
21973 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
21974 * regcache.c (supply_register): Change buf argument to const void *.
21975 (supply_register_by_name): Likewise.
21976 (collect_register): Change buf argument to void *.
21977 (collect_register_by_name): Likewise.
21978 * regcache.h: Add missing prototypes.
21979 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
21980 * server.c (handle_query): New function.
21981 (attached): New static variable, moved out of main.
21982 (main): Quiet longjmp clobber warnings.
21983 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
21984 * utils.c (error): Remove NORETURN.
21985 (fatal): Likewise.
This page took 0.445313 seconds and 5 git commands to generate.